2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.12.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
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://github.com/atgreen/libffi/issues about your
279 $0: system, 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'
594 PACKAGE_STRING='libffi 3.0.12'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
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
678 POWERPC_FREEBSD_FALSE
719 MAINTAINER_MODE_FALSE
744 am__fastdepCCAS_FALSE
774 INSTALL_STRIP_PROGRAM
789 ax_enable_builddir_sed
829 program_transform_name
842 enable_option_checking
844 enable_dependency_tracking
852 enable_portable_binary
854 enable_maintainer_mode
861 ac_precious_vars='build_alias
870 # Initialize some variables set by options.
872 ac_init_version=false
873 ac_unrecognized_opts=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
884 program_transform_name=s,x,x,
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
922 # If the previous option needs an argument, assign it.
923 if test -n "$ac_prev"; then
924 eval $ac_prev=\$ac_option
930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error $? "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=no ;;
989 -docdir | --docdir | --docdi | --doc | --do)
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999 -enable-* | --enable-*)
1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error $? "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1008 "enable_$ac_useropt"
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1013 eval enable_$ac_useropt=\$ac_optarg ;;
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
1022 exec_prefix=$ac_optarg ;;
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
1035 -host | --host | --hos | --ho)
1036 ac_prev=host_alias ;;
1037 -host=* | --host=* | --hos=* | --ho=*)
1038 host_alias=$ac_optarg ;;
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1044 htmldir=$ac_optarg ;;
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
1051 includedir=$ac_optarg ;;
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056 infodir=$ac_optarg ;;
1058 -libdir | --libdir | --libdi | --libd)
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061 libdir=$ac_optarg ;;
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
1068 libexecdir=$ac_optarg ;;
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
1076 | --localstate | --localstat | --localsta | --localst | --locals)
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080 localstatedir=$ac_optarg ;;
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085 mandir=$ac_optarg ;;
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092 | --no-cr | --no-c | -n)
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106 oldincludedir=$ac_optarg ;;
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111 prefix=$ac_optarg ;;
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118 program_prefix=$ac_optarg ;;
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125 program_suffix=$ac_optarg ;;
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
1142 program_transform_name=$ac_optarg ;;
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1149 -psdir | --psdir | --psdi | --psd | --ps)
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162 sbindir=$ac_optarg ;;
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173 sharedstatedir=$ac_optarg ;;
1175 -site | --site | --sit)
1177 -site=* | --site=* | --sit=*)
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183 srcdir=$ac_optarg ;;
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190 sysconfdir=$ac_optarg ;;
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
1193 ac_prev=target_alias ;;
1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195 target_alias=$ac_optarg ;;
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 as_fn_error $? "missing argument to $ac_option"
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 elif test "x$build_alias" != "x$host_alias"; then
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331 test "$silent" = yes && exec 6>/dev/null
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337 as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 as_fn_error $? "pwd does not report name of working directory"
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$as_myself" : 'X\(//\)[^/]' \| \
1349 X"$as_myself" : 'X\(//\)$' \| \
1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures libffi 3.0.12 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking ...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of libffi 3.0.12:";;
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --disable-builddir disable automatic build in subdir of sources
1489 --enable-dependency-tracking
1490 do not reject slow dependency extractors
1491 --disable-dependency-tracking
1492 speeds up one-time build
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-static[=PKGS] build static libraries [default=yes]
1495 --enable-fast-install[=PKGS]
1496 optimize for fast installation [default=yes]
1497 --disable-libtool-lock avoid locking (might break parallel builds)
1498 --enable-portable-binary
1499 disable compiler optimizations that would produce
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful (and
1503 sometimes confusing) to the casual installer
1504 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1505 --enable-debug debugging mode
1506 --disable-structs omit code for struct support
1507 --disable-raw-api make the raw api unavailable
1508 --enable-purify-safety purify-safe mode
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-sysroot=DIR Search for dependent libraries within DIR
1517 (or the compiler's sysroot if not specified).
1518 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CCAS assembler compiler command (defaults to CC)
1530 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1536 Report bugs to <http://github.com/atgreen/libffi/issues>.
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1566 .) # We are building in place.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1599 libffi configure 3.0.12
1600 generated by GNU Autoconf 2.69
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1649 } # ac_fn_c_try_compile
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest$ac_exeext
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest$ac_exeext && {
1677 test "$cross_compiling" = yes ||
1678 test -x conftest$ac_exeext
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689 # interfere with the next link command; also delete a directory that is
1690 # left behind by Apple's compiler. We do this before executing the actions.
1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693 as_fn_set_status $ac_retval
1695 } # ac_fn_c_try_link
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h. */
1714 if ac_fn_c_try_compile "$LINENO"; then :
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_compile
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_link"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>&5
1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783 { { case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_try") 2>&5
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; }; }; then :
1795 $as_echo "$as_me: program exited with status $ac_status" >&5
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1799 ac_retval=$ac_status
1801 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803 as_fn_set_status $ac_retval
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1822 #define $2 innocuous_$2
1824 /* System header to define __stub macros and hopefully few prototypes,
1825 which can conflict with char $2 (); below.
1826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827 <limits.h> exists even on freestanding compilers. */
1830 # include <limits.h>
1832 # include <assert.h>
1837 /* Override any GCC internal prototype to avoid an error.
1838 Use char because int might match the return type of a GCC
1839 builtin and then its argument prototype would still apply. */
1844 /* The GNU C library defines this for functions which it implements
1845 to always fail with ENOSYS. Some functions are actually named
1846 something starting with __ and the normal name is an alias. */
1847 #if defined __stub_$2 || defined __stub___$2
1859 if ac_fn_c_try_link "$LINENO"; then :
1864 rm -f core conftest.err conftest.$ac_objext \
1865 conftest$ac_exeext conftest.$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_func
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1879 ac_fn_c_compute_int ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if test "$cross_compiling" = yes; then
1883 # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1890 static int test_array [1 - 2 * !(($2) >= 0)];
1892 return test_array [0];
1898 if ac_fn_c_try_compile "$LINENO"; then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1909 return test_array [0];
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 ac_hi=$ac_mid; break
1918 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919 if test $ac_lo -le $ac_mid; then
1923 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) < 0)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1953 return test_array [0];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_lo=$ac_mid; break
1962 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1963 if test $ac_mid -le $ac_hi; then
1967 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 # Binary search between lo and hi bounds.
1978 while test "x$ac_lo" != "x$ac_hi"; do
1979 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1988 return test_array [0];
1994 if ac_fn_c_try_compile "$LINENO"; then :
1997 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2009 static long int longval () { return $2; }
2010 static unsigned long int ulongval () { return $2; }
2017 FILE *f = fopen ("conftest.val", "w");
2022 long int i = longval ();
2025 fprintf (f, "%ld", i);
2029 unsigned long int i = ulongval ();
2032 fprintf (f, "%lu", i);
2034 /* Do not output a trailing newline, as this causes \r\n confusion
2035 on some platforms. */
2036 return ferror (f) || fclose (f) != 0;
2042 if ac_fn_c_try_run "$LINENO"; then :
2043 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048 conftest.$ac_objext conftest.beam conftest.$ac_ext
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_c_compute_int
2057 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060 # the include files in INCLUDES and setting the cache variable VAR
2062 ac_fn_c_check_header_mongrel ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if eval \${$3+:} false; then :
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 # Is the header compilable?
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077 $as_echo_n "checking $2 usability... " >&6; }
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_header_compiler=yes
2086 ac_header_compiler=no
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090 $as_echo "$ac_header_compiler" >&6; }
2092 # Is the header present?
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094 $as_echo_n "checking $2 presence... " >&6; }
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2099 if ac_fn_c_try_cpp "$LINENO"; then :
2100 ac_header_preproc=yes
2102 ac_header_preproc=no
2104 rm -f conftest.err conftest.i conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106 $as_echo "$ac_header_preproc" >&6; }
2108 # So? What about this header?
2109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2120 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2124 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ( $as_echo "## ------------------------------------------------------ ##
2128 ## Report this to http://github.com/atgreen/libffi/issues ##
2129 ## ------------------------------------------------------ ##"
2130 ) | sed "s/^/$as_me: WARNING: /" >&2
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2138 eval "$3=\$ac_header_compiler"
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 } # ac_fn_c_check_header_mongrel
2148 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2149 # -------------------------------------------
2150 # Tests whether TYPE exists after having included INCLUDES, setting cache
2151 # variable VAR accordingly.
2152 ac_fn_c_check_type ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2186 if ac_fn_c_try_compile "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 } # ac_fn_c_check_type
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2205 It was created by libffi $as_me 3.0.12, which was
2206 generated by GNU Autoconf 2.69. Invocation command line was
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_must_keep_next=false
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 -* ) ac_must_keep_next=true ;;
2298 as_fn_append ac_configure_args " '$ac_arg'"
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2316 $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2320 # The following way of writing the cache mishandles newlines in values,
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -n "$ac_subst_files"; then
2367 $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2371 for ac_var in $ac_subst_files
2373 eval ac_val=\$$ac_var
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 $as_echo "$ac_var='\''$ac_val'\''"
2382 if test -s confdefs.h; then
2383 $as_echo "## ----------- ##
2390 test "$ac_signal" != 0 &&
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2406 $as_echo "/* confdefs.h */" > confdefs.h
2408 # Predefined preprocessor variables.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2439 if test -n "$CONFIG_SITE"; then
2440 # We do not want a PATH search for config.site.
2441 case $CONFIG_SITE in #((
2442 -*) ac_site_file1=./$CONFIG_SITE;;
2443 */*) ac_site_file1=$CONFIG_SITE;;
2444 *) ac_site_file1=./$CONFIG_SITE;;
2446 elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455 test "x$ac_site_file" = xNONE && continue
2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459 sed 's/^/| /' "$ac_site_file" >&5
2461 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2468 if test -r "$cache_file"; then
2469 # Some versions of bash will fail to source /dev/null (special files
2470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476 *) . "./$cache_file";;
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 # Check that the precious variables saved in the cache have kept the same
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490 eval ac_new_set=\$ac_env_${ac_var}_set
2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492 eval ac_new_val=\$ac_env_${ac_var}_value
2493 case $ac_old_set,$ac_new_set in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2504 if test "x$ac_old_val" != "x$ac_new_val"; then
2505 # differences in whitespace do not lead to failure.
2506 ac_old_val_w=`echo x $ac_old_val`
2507 ac_new_val_w=`echo x $ac_new_val`
2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511 ac_cache_corrupted=:
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515 eval $ac_var=\$ac_old_val
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2518 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2523 # Pass precious variables to config.status.
2524 if test "$ac_new_set" = set; then
2526 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 *) ac_arg=$ac_var=$ac_new_val ;;
2529 case " $ac_configure_args " in
2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 if $ac_cache_corrupted; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553 ac_config_headers="$ac_config_headers fficonfig.h"
2557 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558 if test -f "$ac_dir/install-sh"; then
2560 ac_install_sh="$ac_aux_dir/install-sh -c"
2562 elif test -f "$ac_dir/install.sh"; then
2564 ac_install_sh="$ac_aux_dir/install.sh -c"
2566 elif test -f "$ac_dir/shtool"; then
2568 ac_install_sh="$ac_aux_dir/shtool install -c"
2572 if test -z "$ac_aux_dir"; then
2573 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if ${ac_cv_build+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2610 ac_save_IFS=$IFS; IFS='-'
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if ${ac_cv_host+:} false; then :
2626 $as_echo_n "(cached) " >&6
2628 if test "x$host_alias" = x; then
2629 ac_cv_host=$ac_cv_build
2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2643 ac_save_IFS=$IFS; IFS='-'
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if ${ac_cv_target+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test "x$target_alias" = x; then
2662 ac_cv_target=$ac_cv_host
2664 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692 test "$program_prefix$program_suffix$program_transform_name" = \
2694 program_prefix=${target_alias}-
2696 target_alias=${target_alias-$host_alias}
2698 . ${srcdir}/configure.host
2701 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2702 if test "${ac_configure_args+set}" != "set" ; then
2704 for ac_arg in ${1+"$@"}; do
2705 ac_configure_args="$ac_configure_args '$ac_arg'"
2709 # expand $ac_aux_dir to an absolute path
2710 am_aux_dir=`cd $ac_aux_dir && pwd`
2713 ax_enable_builddir="."
2714 # Check whether --enable-builddir was given.
2715 if test "${enable_builddir+set}" = set; then :
2716 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2718 ax_enable_builddir="auto"
2721 if test ".$ac_srcdir_defaulted" != ".no" ; then
2722 if test ".$srcdir" = ".." ; then
2723 if test -f config.status ; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2725 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2727 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2728 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2729 test ".$TARGET" = "." && TARGET="$target"
2730 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2731 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2732 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2733 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2734 cd $ax_enable_builddir
2735 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2738 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2740 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2742 srcdir=`echo "$ax_enable_builddir" |
2743 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2744 # going to restart from subdirectory location
2745 test -f $srcdir/config.log && mv $srcdir/config.log .
2746 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2747 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2748 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2750 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2751 case "$0" in # restart
2752 /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2753 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2758 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2759 # Extract the first word of "gsed sed", so it can be a program name with args.
2760 set dummy gsed sed; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 case $ax_enable_builddir_sed in
2768 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2790 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2791 if test -n "$ax_enable_builddir_sed"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2793 $as_echo "$ax_enable_builddir_sed" >&6; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2800 ax_enable_builddir_auxdir="$am_aux_dir"
2801 ac_config_commands="$ac_config_commands buildir"
2804 am__api_version='1.12'
2806 # Find a good install program. We prefer a C program (faster),
2807 # so one script is as good as another. But avoid the broken or
2808 # incompatible versions:
2809 # SysV /etc/install, /usr/sbin/install
2810 # SunOS /usr/etc/install
2811 # IRIX /sbin/install
2813 # AmigaOS /C/install, which installs bootblocks on floppy discs
2814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2817 # OS/2's system install, which has a completely different semantic
2818 # ./install, which can be erroneously created by make from ./install.sh.
2819 # Reject install programs that cannot install multiple files.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2821 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2822 if test -z "$INSTALL"; then
2823 if ${ac_cv_path_install+:} false; then :
2824 $as_echo_n "(cached) " >&6
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 # Account for people who put trailing slashes in PATH elements.
2832 case $as_dir/ in #((
2833 ./ | .// | /[cC]/* | \
2834 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2835 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2838 # OSF1 and SCO ODT 3.0 have their own names for install.
2839 # Don't use installbsd from OSF since it installs stuff as root
2841 for ac_prog in ginstall scoinst install; do
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2844 if test $ac_prog = install &&
2845 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846 # AIX install. It has an incompatible calling convention.
2848 elif test $ac_prog = install &&
2849 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850 # program-specific install script used by HP pwplus--don't use.
2853 rm -rf conftest.one conftest.two conftest.dir
2854 echo one > conftest.one
2855 echo two > conftest.two
2857 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2858 test -s conftest.one && test -s conftest.two &&
2859 test -s conftest.dir/conftest.one &&
2860 test -s conftest.dir/conftest.two
2862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2875 rm -rf conftest.one conftest.two conftest.dir
2878 if test "${ac_cv_path_install+set}" = set; then
2879 INSTALL=$ac_cv_path_install
2881 # As a last resort, use the slow shell script. Don't cache a
2882 # value for INSTALL within a source directory, because that will
2883 # break other packages using the cache if that directory is
2884 # removed, or if the value is a relative name.
2885 INSTALL=$ac_install_sh
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2889 $as_echo "$INSTALL" >&6; }
2891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2892 # It thinks the first close brace ends the variable substitution.
2893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2900 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name. Accept space and tab only in the latter.
2906 *[\\\"\#\$\&\'\`$am_lf]*)
2907 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2910 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2911 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2914 # Do 'set' in a subshell so we don't clobber the current shell's
2915 # arguments. Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2921 for am_try in 1 2; do
2922 echo "timestamp, slept: $am_has_slept" > conftest.file
2923 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2924 if test "$*" = "X"; then
2926 set X `ls -t "$srcdir/configure" conftest.file`
2928 if test "$*" != "X $srcdir/configure conftest.file" \
2929 && test "$*" != "X conftest.file $srcdir/configure"; then
2931 # If neither matched, then we have a broken ls. This can happen
2932 # if, for instance, CONFIG_SHELL is bash and it inherits a
2933 # broken ls alias from the environment. This has actually
2934 # happened. Such a system could not be considered "sane".
2935 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2936 alias in your environment" "$LINENO" 5
2938 if test "$2" = conftest.file || test $am_try -eq 2; then
2945 test "$2" = conftest.file
2951 as_fn_error $? "newly created file is older than distributed files!
2952 Check your system clock" "$LINENO" 5
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 # If we didn't sleep, we still need to ensure time stamps of config.status and
2957 # generated files are strictly newer.
2959 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2966 test "$program_prefix" != NONE &&
2967 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2968 # Use a double $ so make ignores it.
2969 test "$program_suffix" != NONE &&
2970 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2971 # Double any \ or $.
2972 # By default was `s,x,x', remove it if useless.
2973 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2974 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2976 if test x"${MISSING+set}" != xset; then
2979 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986 am_missing_run="$MISSING --run "
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 if test x"${install_sh}" != xset; then
2996 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh="\${SHELL} $am_aux_dir/install-sh"
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x; then
3087 case $cross_compiling:$ac_tool_warned in
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3096 STRIP="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in mkdir gmkdir; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3130 test -d ./--version && rmdir ./--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P="$ac_cv_path_mkdir -p"
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3144 for ac_prog in gawk mawk nawk awk
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_AWK+:} false; then :
3151 $as_echo_n "(cached) " >&6
3153 if test -n "$AWK"; then
3154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163 ac_cv_prog_AWK="$ac_prog"
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 if test -n "$AWK"; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3176 $as_echo "$AWK" >&6; }
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3183 test -n "$AWK" && break
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3191 $as_echo_n "(cached) " >&6
3193 cat >conftest.make <<\_ACEOF
3196 @echo '@@@%%%=$(MAKE)=@@@%%%'
3198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3201 eval ac_cv_prog_make_${ac_make}_set=yes;;
3203 eval ac_cv_prog_make_${ac_make}_set=no;;
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 SET_MAKE="MAKE=${MAKE-make}"
3217 rm -rf .tst 2>/dev/null
3218 mkdir .tst 2>/dev/null
3219 if test -d .tst; then
3224 rmdir .tst 2>/dev/null
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228 # is not polluted with repeated "-I."
3229 am__isrc=' -I$(srcdir)'
3230 # test to see if srcdir already configured
3231 if test -f $srcdir/config.status; then
3232 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238 if (cygpath --version) >/dev/null 2>/dev/null; then
3239 CYGPATH_W='cygpath -w'
3246 # Define the identity of the package.
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE "$PACKAGE"
3256 cat >>confdefs.h <<_ACEOF
3257 #define VERSION "$VERSION"
3260 # Some tools Automake needs.
3262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3276 # For better backward compatibility. To be removed once Automake 1.9.x
3277 # dies out for good. For more background, see:
3278 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3279 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3280 mkdir_p='$(MKDIR_P)'
3282 # We need awk for the "check" target. The system "awk" is bad on
3284 # Always define AMTAR for backward compatibility. Yes, it's still used
3285 # in the wild :-( We should find a proper way to deprecate it ...
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3295 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3296 # We must force CC to /not/ be precious variables; otherwise
3297 # the wrong, non-multilib-adjusted value will be used in multilibs.
3298 # As a side effect, we have to subst CFLAGS ourselves.
3299 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3300 # defaults of its own if none are provided.
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3349 if test -z "$ac_cv_prog_CC"; then
3351 # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CC="gcc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3387 if test "x$ac_ct_CC" = x; then
3390 case $cross_compiling:$ac_tool_warned in
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="${ac_tool_prefix}cc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3443 if test -z "$CC"; then
3444 # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463 ac_prog_rejected=yes
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test $ac_prog_rejected = yes; then
3475 # We found a bogon in the path, so make sure we never use it.
3476 set dummy $ac_cv_prog_CC
3478 if test $# != 0; then
3479 # We chose a different compiler from the bogus one.
3480 # However, it has the same basename, so the bogon will be chosen
3481 # first if we set CC to just the basename; use the full file name.
3483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog in cl.exe
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$CC" && break
3543 if test -z "$CC"; then
3545 for ac_prog in cl.exe
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_CC" && break
3587 if test "x$ac_ct_CC" = x; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3612 for ac_option in --version -v -V -qversion; do
3613 { { ac_try="$ac_compiler $ac_option >&5"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3622 if test -s conftest.err; then
3624 ... rest of stderr output deleted ...
3625 10q' conftest.err >conftest.er1
3626 cat conftest.er1 >&5
3628 rm -f conftest.er1 conftest.err
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3657 for ac_file in $ac_files
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666 if { { ac_try="$ac_link_default"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link_default") 2>&5
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3682 for ac_file in $ac_files ''
3684 test -f "$ac_file" || continue
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3689 # We found the default executable, but exeext='' is most
3693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697 # We set ac_cv_exeext here because the later test for it is not
3698 # safe: cross compilers may not add the suffix if given an `-o'
3699 # argument, so we may need to know it at that point already.
3700 # Even if this section looks crufty: it has the advantage of
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3712 if test -z "$ac_file"; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link") 2>&5
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3751 for ac_file in conftest.exe conftest conftest.*; do
3752 test -f "$ac_file" || continue
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3779 FILE *f = fopen ("conftest.out", "w");
3780 return ferror (f) || fclose (f) != 0;
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run. If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792 { { ac_try="$ac_link"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 if { ac_try='./conftest$ac_cv_exeext'
3804 { { case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_try") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; }; then
3816 if test "$cross_compiling" = maybe; then
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compile") 2>&5
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 for ac_file in conftest.o conftest.obj conftest.*; do
3861 test -f "$ac_file" || continue;
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3869 $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "$LINENO"; then :
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923 $as_echo_n "(cached) " >&6
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3940 if ac_fn_c_try_compile "$LINENO"; then :
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3955 if ac_fn_c_try_compile "$LINENO"; then :
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3971 if ac_fn_c_try_compile "$LINENO"; then :
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3992 if test "$GCC" = yes; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 ac_cv_prog_cc_c89=no
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4024 s = g (p, va_arg (v,int));
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4030 function prototypes and stuff, but not '\xHH' hex character constants.
4031 These don't provoke an error unfortunately, instead are silently treated
4032 as 'x'. The following induces an error, until -std is added to get
4033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4034 array size at least. It's necessary to write '\x00'==0 to get something
4035 that's true only with -std. */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039 inside strings and character constants. */
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4060 CC="$ac_save_CC $ac_arg"
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_c89=$ac_arg
4064 rm -f core conftest.err conftest.$ac_objext
4065 test "x$ac_cv_prog_cc_c89" != "xno" && break
4067 rm -f conftest.$ac_ext
4072 case "x$ac_cv_prog_cc_c89" in
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4080 CC="$CC $ac_cv_prog_cc_c89"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 DEPDIR="${am__leading_dot}deps"
4095 ac_config_commands="$ac_config_commands depfiles"
4098 am_make=${MAKE-make}
4099 cat > confinc << 'END'
4101 @echo this is the am__doit target
4104 # If we don't find an include directive, just comment out the code.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4110 # First try GNU make style include.
4111 echo "include confinc" > confmf
4112 # Ignore all kinds of additional output from 'make'.
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122 echo '.include "confinc"' > confmf
4123 case `$am_make -s -f confmf 2> /dev/null` in #(
4124 *the\ am__doit\ target*)
4125 am__include=.include
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134 $as_echo "$_am_result" >&6; }
4135 rm -f confinc confmf
4137 # Check whether --enable-dependency-tracking was given.
4138 if test "${enable_dependency_tracking+set}" = set; then :
4139 enableval=$enable_dependency_tracking;
4142 if test "x$enable_dependency_tracking" != xno; then
4143 am_depcomp="$ac_aux_dir/depcomp"
4147 if test "x$enable_dependency_tracking" != xno; then
4157 depcc="$CC" am_compiler_list=
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160 $as_echo_n "checking dependency style of $depcc... " >&6; }
4161 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165 # We make a subdir and do the tests there. Otherwise we can end up
4166 # making bogus files that we don't know about and never remove. For
4167 # instance it was reported that on HP-UX the gcc test will end up
4168 # making a dummy file named 'D' -- because '-MD' means "put the output
4172 # Copy depcomp to subdir because otherwise we won't find it if we're
4173 # using a relative directory.
4174 cp "$am_depcomp" conftest.dir
4176 # We will build objects and dependencies in a subdirectory because
4177 # it helps to detect inapplicable dependency modes. For instance
4178 # both Tru64's cc and ICC support -MD to output dependencies as a
4179 # side effect of compilation, but ICC will put the dependencies in
4180 # the current directory while Tru64 will put them in the object
4184 am_cv_CC_dependencies_compiler_type=none
4185 if test "$am_compiler_list" = ""; then
4186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189 case " $depcc " in #(
4190 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193 for depmode in $am_compiler_list; do
4194 # Setup a source with many dependencies, because some compilers
4195 # like to wrap large dependency lists on column 80 (with \), and
4196 # we should not choose a depcomp mode which is confused by this.
4198 # We need to recreate these files for each test, as the compiler may
4199 # overwrite some of them when testing with obscure command lines.
4200 # This happens at least with the AIX C compiler.
4202 for i in 1 2 3 4 5 6; do
4203 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205 # Solaris 10 /bin/sh.
4206 echo '/* dummy */' > sub/conftst$i.h
4208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4210 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211 # mode. It turns out that the SunPro C++ compiler does not properly
4212 # handle '-M -o', and we need to detect this. Also, some Intel
4213 # versions had trouble with output in subdirs.
4214 am__obj=sub/conftest.${OBJEXT-o}
4215 am__minus_obj="-o $am__obj"
4218 # This depmode causes a compiler race in universal mode.
4219 test "$am__universal" = false || continue
4222 # After this tag, mechanisms are not by side-effect, so they'll
4223 # only be used when explicitly requested.
4224 if test "x$enable_dependency_tracking" = xyes; then
4230 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231 # This compiler won't grok '-c -o', but also, the minuso test has
4232 # not run yet. These depmodes are late enough in the game, and
4233 # so weak that their functioning should not be impacted.
4234 am__obj=conftest.${OBJEXT-o}
4239 if depmode=$depmode \
4240 source=sub/conftest.c object=$am__obj \
4241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243 >/dev/null 2>conftest.err &&
4244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248 # icc doesn't choke on unknown options, it will just issue warnings
4249 # or remarks (even with -Werror). So we grep stderr for any message
4250 # that says an option was ignored or not supported.
4251 # When given -MP, icc 7.0 and 7.1 complain thusly:
4252 # icc: Command line warning: ignoring option '-M'; no argument required
4253 # The diagnosis changed in icc 8.0:
4254 # icc: Command line remark: option '-MP' not supported
4255 if (grep 'ignoring option' conftest.err ||
4256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257 am_cv_CC_dependencies_compiler_type=$depmode
4266 am_cv_CC_dependencies_compiler_type=none
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275 test "x$enable_dependency_tracking" != xno \
4276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4278 am__fastdepCC_FALSE='#'
4280 am__fastdepCC_TRUE='#'
4281 am__fastdepCC_FALSE=
4291 # By default we simply use the C compiler to build assembly code.
4293 test "${CCAS+set}" = set || CCAS=$CC
4294 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4298 depcc="$CCAS" am_compiler_list=
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4301 $as_echo_n "checking dependency style of $depcc... " >&6; }
4302 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4306 # We make a subdir and do the tests there. Otherwise we can end up
4307 # making bogus files that we don't know about and never remove. For
4308 # instance it was reported that on HP-UX the gcc test will end up
4309 # making a dummy file named 'D' -- because '-MD' means "put the output
4313 # Copy depcomp to subdir because otherwise we won't find it if we're
4314 # using a relative directory.
4315 cp "$am_depcomp" conftest.dir
4317 # We will build objects and dependencies in a subdirectory because
4318 # it helps to detect inapplicable dependency modes. For instance
4319 # both Tru64's cc and ICC support -MD to output dependencies as a
4320 # side effect of compilation, but ICC will put the dependencies in
4321 # the current directory while Tru64 will put them in the object
4325 am_cv_CCAS_dependencies_compiler_type=none
4326 if test "$am_compiler_list" = ""; then
4327 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332 for depmode in $am_compiler_list; do
4333 # Setup a source with many dependencies, because some compilers
4334 # like to wrap large dependency lists on column 80 (with \), and
4335 # we should not choose a depcomp mode which is confused by this.
4337 # We need to recreate these files for each test, as the compiler may
4338 # overwrite some of them when testing with obscure command lines.
4339 # This happens at least with the AIX C compiler.
4341 for i in 1 2 3 4 5 6; do
4342 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344 # Solaris 10 /bin/sh.
4345 echo '/* dummy */' > sub/conftst$i.h
4347 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4349 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350 # mode. It turns out that the SunPro C++ compiler does not properly
4351 # handle '-M -o', and we need to detect this. Also, some Intel
4352 # versions had trouble with output in subdirs.
4353 am__obj=sub/conftest.${OBJEXT-o}
4354 am__minus_obj="-o $am__obj"
4357 # This depmode causes a compiler race in universal mode.
4358 test "$am__universal" = false || continue
4361 # After this tag, mechanisms are not by side-effect, so they'll
4362 # only be used when explicitly requested.
4363 if test "x$enable_dependency_tracking" = xyes; then
4369 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370 # This compiler won't grok '-c -o', but also, the minuso test has
4371 # not run yet. These depmodes are late enough in the game, and
4372 # so weak that their functioning should not be impacted.
4373 am__obj=conftest.${OBJEXT-o}
4378 if depmode=$depmode \
4379 source=sub/conftest.c object=$am__obj \
4380 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382 >/dev/null 2>conftest.err &&
4383 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387 # icc doesn't choke on unknown options, it will just issue warnings
4388 # or remarks (even with -Werror). So we grep stderr for any message
4389 # that says an option was ignored or not supported.
4390 # When given -MP, icc 7.0 and 7.1 complain thusly:
4391 # icc: Command line warning: ignoring option '-M'; no argument required
4392 # The diagnosis changed in icc 8.0:
4393 # icc: Command line remark: option '-MP' not supported
4394 if (grep 'ignoring option' conftest.err ||
4395 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396 am_cv_CCAS_dependencies_compiler_type=$depmode
4405 am_cv_CCAS_dependencies_compiler_type=none
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4411 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4414 test "x$enable_dependency_tracking" != xno \
4415 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4416 am__fastdepCCAS_TRUE=
4417 am__fastdepCCAS_FALSE='#'
4419 am__fastdepCCAS_TRUE='#'
4420 am__fastdepCCAS_FALSE=
4424 if test "x$CC" != xcc; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4426 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4429 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4431 set dummy $CC; ac_cc=`$as_echo "$2" |
4432 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4434 $as_echo_n "(cached) " >&6
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4447 # Make sure it works both with $CC and with simple cc.
4448 # We do the test twice because some compilers refuse to overwrite an
4449 # existing .o file with -o, though they will create one.
4450 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4452 if { { case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_try") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; } &&
4462 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468 (eval "$ac_try") 2>&5
4470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471 test $ac_status = 0; };
4473 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4474 if test "x$CC" != xcc; then
4475 # Test first that cc exists at all.
4476 if { ac_try='cc -c conftest.$ac_ext >&5'
4477 { { case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483 (eval "$ac_try") 2>&5
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }; }; then
4487 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4489 if { { case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495 (eval "$ac_try") 2>&5
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; } &&
4499 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505 (eval "$ac_try") 2>&5
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; };
4513 # cc exists but doesn't like -o.
4514 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4521 rm -f core conftest*
4524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4531 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4535 # FIXME: we rely on the cache variable name because
4536 # there is no other way.
4538 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4539 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4540 if test "$am_t" != yes; then
4541 # Losing compiler, so override with the script.
4542 # FIXME: It is wrong to rewrite CC.
4543 # But if we don't then we get into trouble of one sort or another.
4544 # A longer-term fix would be to have automake use am__CC in this case,
4545 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4546 CC="$am_aux_dir/compile $CC"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4558 macro_version='2.4.2'
4559 macro_revision='1.3337'
4573 ltmain="$ac_aux_dir/ltmain.sh"
4575 # Backslashify metacharacters that are still active within
4576 # double-quoted strings.
4577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4579 # Same as above, but do not quote variable references.
4580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4582 # Sed substitution to delay expansion of an escaped shell variable in a
4583 # double_quote_subst'ed string.
4584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4586 # Sed substitution to delay expansion of an escaped single quote.
4587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4589 # Sed substitution to avoid accidental globbing in evaled expressions
4590 no_glob_subst='s/\*/\\\*/g'
4592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4597 $as_echo_n "checking how to print strings... " >&6; }
4598 # Test print first, because it will be a builtin if present.
4599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4605 # Use this function as a fallback that always works.
4606 func_fallback_echo ()
4608 eval 'cat <<_LTECHO_EOF
4612 ECHO='func_fallback_echo'
4615 # func_echo_all arg...
4616 # Invoke $ECHO with all args, space-separated.
4623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4624 $as_echo "printf" >&6; } ;;
4625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4626 $as_echo "print -r" >&6; } ;;
4627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4628 $as_echo "cat" >&6; } ;;
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4646 if ${ac_cv_path_SED+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4650 for ac_i in 1 2 3 4 5 6 7; do
4651 ac_script="$ac_script$as_nl$ac_script"
4653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4654 { ac_script=; unset ac_script;}
4655 if test -z "$SED"; then
4656 ac_path_SED_found=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_prog in sed gsed; do
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p "$ac_path_SED" || continue
4667 # Check for GNU ac_path_SED and select it if it is found.
4668 # Check for GNU $ac_path_SED
4669 case `"$ac_path_SED" --version 2>&1` in
4671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674 $as_echo_n 0123456789 >"conftest.in"
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo '' >> "conftest.nl"
4681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683 as_fn_arith $ac_count + 1 && ac_count=$as_val
4684 if test $ac_count -gt ${ac_path_SED_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_SED="$ac_path_SED"
4687 ac_path_SED_max=$ac_count
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 $ac_path_SED_found && break 3
4700 if test -z "$ac_cv_path_SED"; then
4701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4709 $as_echo "$ac_cv_path_SED" >&6; }
4710 SED="$ac_cv_path_SED"
4713 test -z "$SED" && SED=sed
4714 Xsed="$SED -e 1s/^X//"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if ${ac_cv_path_GREP+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -z "$GREP"; then
4732 ac_path_GREP_found=false
4733 # Loop through the user's path and test for each of PROGNAME-LIST
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4738 test -z "$as_dir" && as_dir=.
4739 for ac_prog in grep ggrep; do
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742 as_fn_executable_p "$ac_path_GREP" || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744 # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4750 $as_echo_n 0123456789 >"conftest.in"
4753 cat "conftest.in" "conftest.in" >"conftest.tmp"
4754 mv "conftest.tmp" "conftest.in"
4755 cp "conftest.in" "conftest.nl"
4756 $as_echo 'GREP' >> "conftest.nl"
4757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759 as_fn_arith $ac_count + 1 && ac_count=$as_val
4760 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761 # Best one so far, save it but keep looking for a better one
4762 ac_cv_path_GREP="$ac_path_GREP"
4763 ac_path_GREP_max=$ac_count
4765 # 10*(2^10) chars as input seems more than enough
4766 test $ac_count -gt 10 && break
4768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 $ac_path_GREP_found && break 3
4776 if test -z "$ac_cv_path_GREP"; then
4777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4780 ac_cv_path_GREP=$GREP
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786 GREP="$ac_cv_path_GREP"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if ${ac_cv_path_EGREP+:} false; then :
4792 $as_echo_n "(cached) " >&6
4794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795 then ac_cv_path_EGREP="$GREP -E"
4797 if test -z "$EGREP"; then
4798 ac_path_EGREP_found=false
4799 # Loop through the user's path and test for each of PROGNAME-LIST
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 test -z "$as_dir" && as_dir=.
4805 for ac_prog in egrep; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808 as_fn_executable_p "$ac_path_EGREP" || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810 # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4816 $as_echo_n 0123456789 >"conftest.in"
4819 cat "conftest.in" "conftest.in" >"conftest.tmp"
4820 mv "conftest.tmp" "conftest.in"
4821 cp "conftest.in" "conftest.nl"
4822 $as_echo 'EGREP' >> "conftest.nl"
4823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825 as_fn_arith $ac_count + 1 && ac_count=$as_val
4826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827 # Best one so far, save it but keep looking for a better one
4828 ac_cv_path_EGREP="$ac_path_EGREP"
4829 ac_path_EGREP_max=$ac_count
4831 # 10*(2^10) chars as input seems more than enough
4832 test $ac_count -gt 10 && break
4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 $ac_path_EGREP_found && break 3
4842 if test -z "$ac_cv_path_EGREP"; then
4843 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846 ac_cv_path_EGREP=$EGREP
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853 EGREP="$ac_cv_path_EGREP"
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4857 $as_echo_n "checking for fgrep... " >&6; }
4858 if ${ac_cv_path_FGREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4862 then ac_cv_path_FGREP="$GREP -F"
4864 if test -z "$FGREP"; then
4865 ac_path_FGREP_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in fgrep; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_FGREP" || continue
4876 # Check for GNU ac_path_FGREP and select it if it is found.
4877 # Check for GNU $ac_path_FGREP
4878 case `"$ac_path_FGREP" --version 2>&1` in
4880 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4883 $as_echo_n 0123456789 >"conftest.in"
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo 'FGREP' >> "conftest.nl"
4890 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_FGREP="$ac_path_FGREP"
4896 ac_path_FGREP_max=$ac_count
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 $ac_path_FGREP_found && break 3
4909 if test -z "$ac_cv_path_FGREP"; then
4910 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913 ac_cv_path_FGREP=$FGREP
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4919 $as_echo "$ac_cv_path_FGREP" >&6; }
4920 FGREP="$ac_cv_path_FGREP"
4923 test -z "$GREP" && GREP=grep
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then :
4945 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4951 if test "$GCC" = yes; then
4952 # Check if gcc -print-prog-name=ld gives a path.
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4957 # gcc leaves a trailing carriage return which upsets mingw
4958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4963 # Accept absolute paths.
4965 re_direlt='/[^/][^/]*/\.\./'
4966 # Canonicalize the pathname of ld
4967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4971 test -z "$LD" && LD="$ac_prog"
4974 # If it fails, then pretend we aren't using GCC.
4978 # If it is relative, then search for the first ld in PATH.
4982 elif test "$with_gnu_ld" = yes; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4989 if ${lt_cv_path_LD+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 if test -z "$LD"; then
4993 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994 for ac_dir in $PATH; do
4996 test -z "$ac_dir" && ac_dir=.
4997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998 lt_cv_path_LD="$ac_dir/$ac_prog"
4999 # Check to see if the program is GNU ld. I'd rather use --version,
5000 # but apparently some variants of GNU ld only accept -v.
5001 # Break only if it was the GNU/non-GNU ld that we prefer.
5002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003 *GNU* | *'with BFD'*)
5004 test "$with_gnu_ld" != no && break
5007 test "$with_gnu_ld" != yes && break
5014 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5019 if test -n "$LD"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5026 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5029 if ${lt_cv_prog_gnu_ld+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033 case `$LD -v 2>&1 </dev/null` in
5034 *GNU* | *'with BFD'*)
5035 lt_cv_prog_gnu_ld=yes
5038 lt_cv_prog_gnu_ld=no
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044 with_gnu_ld=$lt_cv_prog_gnu_ld
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5055 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5056 if ${lt_cv_path_NM+:} false; then :
5057 $as_echo_n "(cached) " >&6
5059 if test -n "$NM"; then
5060 # Let the user override the test.
5063 lt_nm_to_check="${ac_tool_prefix}nm"
5064 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5065 lt_nm_to_check="$lt_nm_to_check nm"
5067 for lt_tmp_nm in $lt_nm_to_check; do
5068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5071 test -z "$ac_dir" && ac_dir=.
5072 tmp_nm="$ac_dir/$lt_tmp_nm"
5073 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5074 # Check to see if the nm accepts a BSD-compat flag.
5075 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5076 # nm: unknown option "B" ignored
5077 # Tru64's nm complains that /dev/null is an invalid object file
5078 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5079 */dev/null* | *'Invalid file or object type'*)
5080 lt_cv_path_NM="$tmp_nm -B"
5084 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5086 lt_cv_path_NM="$tmp_nm -p"
5090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091 continue # so that we can try to find one that supports BSD flags
5100 : ${lt_cv_path_NM=no}
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5104 $as_echo "$lt_cv_path_NM" >&6; }
5105 if test "$lt_cv_path_NM" != "no"; then
5108 # Didn't find any BSD compatible name lister, look for dumpbin.
5109 if test -n "$DUMPBIN"; then :
5110 # Let the user override the test.
5112 if test -n "$ac_tool_prefix"; then
5113 for ac_prog in dumpbin "link -dump"
5115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_DUMPBIN+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$DUMPBIN"; then
5123 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 DUMPBIN=$ac_cv_prog_DUMPBIN
5143 if test -n "$DUMPBIN"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5145 $as_echo "$DUMPBIN" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$DUMPBIN" && break
5155 if test -z "$DUMPBIN"; then
5156 ac_ct_DUMPBIN=$DUMPBIN
5157 for ac_prog in dumpbin "link -dump"
5159 # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 if test -n "$ac_ct_DUMPBIN"; then
5167 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5187 if test -n "$ac_ct_DUMPBIN"; then
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5189 $as_echo "$ac_ct_DUMPBIN" >&6; }
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5196 test -n "$ac_ct_DUMPBIN" && break
5199 if test "x$ac_ct_DUMPBIN" = x; then
5202 case $cross_compiling:$ac_tool_warned in
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5208 DUMPBIN=$ac_ct_DUMPBIN
5212 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5214 DUMPBIN="$DUMPBIN -symbols"
5222 if test "$DUMPBIN" != ":"; then
5226 test -z "$NM" && NM=nm
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5234 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5235 if ${lt_cv_nm_interface+:} false; then :
5236 $as_echo_n "(cached) " >&6
5238 lt_cv_nm_interface="BSD nm"
5239 echo "int some_variable = 0;" > conftest.$ac_ext
5240 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5241 (eval "$ac_compile" 2>conftest.err)
5242 cat conftest.err >&5
5243 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5244 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5245 cat conftest.err >&5
5246 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5247 cat conftest.out >&5
5248 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5249 lt_cv_nm_interface="MS dumpbin"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5254 $as_echo "$lt_cv_nm_interface" >&6; }
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5257 $as_echo_n "checking whether ln -s works... " >&6; }
5259 if test "$LN_S" = "ln -s"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5264 $as_echo "no, using $LN_S" >&6; }
5267 # find the maximum length of command line arguments
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5269 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5270 if ${lt_cv_sys_max_cmd_len+:} false; then :
5271 $as_echo_n "(cached) " >&6
5278 # On DJGPP, this test can blow up pretty badly due to problems in libc
5279 # (any single argument exceeding 2000 bytes causes a buffer overrun
5280 # during glob expansion). Even if it were fixed, the result of this
5281 # check would be larger than it should be.
5282 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5286 # Under GNU Hurd, this test is not required because there is
5287 # no limit to the length of command line arguments.
5288 # Libtool will interpret -1 as no limit whatsoever
5289 lt_cv_sys_max_cmd_len=-1;
5292 cygwin* | mingw* | cegcc*)
5293 # On Win9x/ME, this test blows up -- it succeeds, but takes
5294 # about 5 minutes as the teststring grows exponentially.
5295 # Worse, since 9x/ME are not pre-emptively multitasking,
5296 # you end up with a "frozen" computer, even though with patience
5297 # the test eventually succeeds (with a max line length of 256k).
5298 # Instead, let's just punt: use the minimum linelength reported by
5299 # all of the supported platforms: 8192 (on NT/2K/XP).
5300 lt_cv_sys_max_cmd_len=8192;
5304 # On MiNT this can take a long time and run out of memory.
5305 lt_cv_sys_max_cmd_len=8192;
5309 # On AmigaOS with pdksh, this test takes hours, literally.
5310 # So we just punt and use a minimum line length of 8192.
5311 lt_cv_sys_max_cmd_len=8192;
5314 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5315 # This has been around since 386BSD, at least. Likely further.
5316 if test -x /sbin/sysctl; then
5317 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5318 elif test -x /usr/sbin/sysctl; then
5319 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5321 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5323 # And add a safety zone
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5330 lt_cv_sys_max_cmd_len=196608
5334 # The test takes a long time on OS/2.
5335 lt_cv_sys_max_cmd_len=8192
5339 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5340 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5341 # nice to cause kernel panics so lets avoid the loop below.
5342 # First set a reasonable default.
5343 lt_cv_sys_max_cmd_len=16384
5345 if test -x /sbin/sysconfig; then
5346 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5347 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 lt_cv_sys_max_cmd_len=102400
5354 sysv5* | sco5v6* | sysv4.2uw2*)
5355 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5356 if test -n "$kargmax"; then
5357 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5359 lt_cv_sys_max_cmd_len=32768
5363 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5364 if test -n "$lt_cv_sys_max_cmd_len" && \
5365 test undefined != "$lt_cv_sys_max_cmd_len"; then
5366 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5369 # Make teststring a little bigger before we do anything with it.
5370 # a 1K string should be a reasonable start.
5371 for i in 1 2 3 4 5 6 7 8 ; do
5372 teststring=$teststring$teststring
5374 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5375 # If test is not a shell built-in, we'll probably end up computing a
5376 # maximum length that is only half of the actual maximum length, but
5378 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5379 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5380 test $i != 17 # 1/2 MB should be enough
5383 teststring=$teststring$teststring
5385 # Only check the string length outside the loop.
5386 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5388 # Add a significant safety factor because C++ compilers can tack on
5389 # massive amounts of additional arguments before passing them to the
5390 # linker. It appears as though 1/2 is a usable value.
5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5403 $as_echo "none" >&6; }
5405 max_cmd_len=$lt_cv_sys_max_cmd_len
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5418 # Try some XSI features
5421 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5423 && eval 'test $(( 1 + 1 )) -eq 2 \
5424 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5427 $as_echo "$xsi_shell" >&6; }
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5435 && lt_shell_append=yes
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5437 $as_echo "$lt_shell_append" >&6; }
5440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5450 # test EBCDIC or ASCII
5451 case `echo X|tr X '\101'` in
5452 A) # ASCII based system
5453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5454 lt_SP2NL='tr \040 \012'
5455 lt_NL2SP='tr \015\012 \040\040'
5457 *) # EBCDIC based system
5458 lt_SP2NL='tr \100 \n'
5459 lt_NL2SP='tr \r\n \100\100'
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5472 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5473 if ${lt_cv_to_host_file_cmd+:} false; then :
5474 $as_echo_n "(cached) " >&6
5479 *-*-mingw* ) # actually msys
5480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5483 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5485 * ) # otherwise, assume *nix
5486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5492 *-*-mingw* ) # actually msys
5493 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5496 lt_cv_to_host_file_cmd=func_convert_file_noop
5498 * ) # otherwise, assume *nix
5499 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5503 * ) # unhandled hosts (and "normal" native builds)
5504 lt_cv_to_host_file_cmd=func_convert_file_noop
5510 to_host_file_cmd=$lt_cv_to_host_file_cmd
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5512 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5519 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5520 if ${lt_cv_to_tool_file_cmd+:} false; then :
5521 $as_echo_n "(cached) " >&6
5523 #assume ordinary cross tools, or native build.
5524 lt_cv_to_tool_file_cmd=func_convert_file_noop
5528 *-*-mingw* ) # actually msys
5529 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5539 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5546 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5547 if ${lt_cv_ld_reload_flag+:} false; then :
5548 $as_echo_n "(cached) " >&6
5550 lt_cv_ld_reload_flag='-r'
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5553 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5554 reload_flag=$lt_cv_ld_reload_flag
5555 case $reload_flag in
5557 *) reload_flag=" $reload_flag" ;;
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5561 cygwin* | mingw* | pw32* | cegcc*)
5562 if test "$GCC" != yes; then
5567 if test "$GCC" = yes; then
5568 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5583 if test -n "$ac_tool_prefix"; then
5584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_OBJDUMP+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$OBJDUMP"; then
5592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 OBJDUMP=$ac_cv_prog_OBJDUMP
5612 if test -n "$OBJDUMP"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5614 $as_echo "$OBJDUMP" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5622 if test -z "$ac_cv_prog_OBJDUMP"; then
5623 ac_ct_OBJDUMP=$OBJDUMP
5624 # Extract the first word of "objdump", so it can be a program name with args.
5625 set dummy objdump; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 if test -n "$ac_ct_OBJDUMP"; then
5632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5652 if test -n "$ac_ct_OBJDUMP"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5654 $as_echo "$ac_ct_OBJDUMP" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5660 if test "x$ac_ct_OBJDUMP" = x; then
5663 case $cross_compiling:$ac_tool_warned in
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5667 ac_tool_warned=yes ;;
5669 OBJDUMP=$ac_ct_OBJDUMP
5672 OBJDUMP="$ac_cv_prog_OBJDUMP"
5675 test -z "$OBJDUMP" && OBJDUMP=objdump
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5686 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5687 if ${lt_cv_deplibs_check_method+:} false; then :
5688 $as_echo_n "(cached) " >&6
5690 lt_cv_file_magic_cmd='$MAGIC_CMD'
5691 lt_cv_file_magic_test_file=
5692 lt_cv_deplibs_check_method='unknown'
5693 # Need to set the preceding variable on all platforms that support
5694 # interlibrary dependencies.
5695 # 'none' -- dependencies not supported.
5696 # `unknown' -- same as none, but documents that we really don't know.
5697 # 'pass_all' -- all dependencies passed with no checks.
5698 # 'test_compile' -- check by making test program.
5699 # 'file_magic [[regex]]' -- check by looking for files in library path
5700 # which responds to the $file_magic_cmd with a given extended regex.
5701 # If you have `file' or equivalent on your system and you're not sure
5702 # whether `pass_all' will *always* work, you probably want this one.
5706 lt_cv_deplibs_check_method=pass_all
5710 lt_cv_deplibs_check_method=pass_all
5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5715 lt_cv_file_magic_cmd='/usr/bin/file -L'
5716 lt_cv_file_magic_test_file=/shlib/libc.so
5720 # func_win32_libid is a shell function defined in ltmain.sh
5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722 lt_cv_file_magic_cmd='func_win32_libid'
5726 # Base MSYS/MinGW do not provide the 'file' command needed by
5727 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5728 # unless we find 'file', for example because we are cross-compiling.
5729 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5730 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5732 lt_cv_file_magic_cmd='func_win32_libid'
5734 # Keep this pattern in sync with the one in func_win32_libid.
5735 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5741 # use the weaker test based on 'objdump'. See mingw*.
5742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743 lt_cv_file_magic_cmd='$OBJDUMP -f'
5746 darwin* | rhapsody*)
5747 lt_cv_deplibs_check_method=pass_all
5750 freebsd* | dragonfly*)
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5754 # Not sure whether the presence of OpenBSD here was a mistake.
5755 # Let's accept both of them until this is cleared up.
5756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5762 lt_cv_deplibs_check_method=pass_all
5767 lt_cv_deplibs_check_method=pass_all
5771 lt_cv_deplibs_check_method=pass_all
5774 hpux10.20* | hpux11*)
5775 lt_cv_file_magic_cmd=/usr/bin/file
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5782 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]'
5783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5797 irix5* | irix6* | nonstopux*)
5799 *-32|*"-32 ") libmagic=32-bit;;
5800 *-n32|*"-n32 ") libmagic=N32;;
5801 *-64|*"-64 ") libmagic=64-bit;;
5802 *) libmagic=never-match;;
5804 lt_cv_deplibs_check_method=pass_all
5807 # This must be glibc/ELF.
5808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5809 lt_cv_deplibs_check_method=pass_all
5813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5827 lt_cv_deplibs_check_method=pass_all
5831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5838 osf3* | osf4* | osf5*)
5839 lt_cv_deplibs_check_method=pass_all
5843 lt_cv_deplibs_check_method=pass_all
5847 lt_cv_deplibs_check_method=pass_all
5850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5851 lt_cv_deplibs_check_method=pass_all
5855 case $host_vendor in
5857 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]'
5858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5861 lt_cv_deplibs_check_method=pass_all
5864 lt_cv_file_magic_cmd='/bin/file'
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5868 lt_cv_file_magic_cmd='/bin/file'
5869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5870 lt_cv_file_magic_test_file=/lib/libc.so
5873 lt_cv_deplibs_check_method=pass_all
5876 lt_cv_deplibs_check_method=pass_all
5882 lt_cv_deplibs_check_method=pass_all
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5888 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5892 if test "$build" = "$host"; then
5895 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5898 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5904 file_magic_cmd=$lt_cv_file_magic_cmd
5905 deplibs_check_method=$lt_cv_deplibs_check_method
5906 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5929 if test -n "$ac_tool_prefix"; then
5930 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_DLLTOOL+:} false; then :
5935 $as_echo_n "(cached) " >&6
5937 if test -n "$DLLTOOL"; then
5938 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 DLLTOOL=$ac_cv_prog_DLLTOOL
5958 if test -n "$DLLTOOL"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5960 $as_echo "$DLLTOOL" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5968 if test -z "$ac_cv_prog_DLLTOOL"; then
5969 ac_ct_DLLTOOL=$DLLTOOL
5970 # Extract the first word of "dlltool", so it can be a program name with args.
5971 set dummy dlltool; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5975 $as_echo_n "(cached) " >&6
5977 if test -n "$ac_ct_DLLTOOL"; then
5978 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5998 if test -n "$ac_ct_DLLTOOL"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6000 $as_echo "$ac_ct_DLLTOOL" >&6; }
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6006 if test "x$ac_ct_DLLTOOL" = x; then
6009 case $cross_compiling:$ac_tool_warned in
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6015 DLLTOOL=$ac_ct_DLLTOOL
6018 DLLTOOL="$ac_cv_prog_DLLTOOL"
6021 test -z "$DLLTOOL" && DLLTOOL=dlltool
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6033 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6034 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6035 $as_echo_n "(cached) " >&6
6037 lt_cv_sharedlib_from_linklib_cmd='unknown'
6040 cygwin* | mingw* | pw32* | cegcc*)
6041 # two different shell functions defined in ltmain.sh
6042 # decide which to use based on capabilities of $DLLTOOL
6043 case `$DLLTOOL --help 2>&1` in
6044 *--identify-strict*)
6045 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6053 # fallback: assume linklib IS sharedlib
6054 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6060 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6061 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6062 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6071 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_AR+:} false; then :
6079 $as_echo_n "(cached) " >&6
6081 if test -n "$AR"; then
6082 ac_cv_prog_AR="$AR" # Let the user override the test.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 if test -n "$AR"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6104 $as_echo "$AR" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6111 test -n "$AR" && break
6114 if test -z "$AR"; then
6118 # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6125 if test -n "$ac_ct_AR"; then
6126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_ac_ct_AR="$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6146 if test -n "$ac_ct_AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6148 $as_echo "$ac_ct_AR" >&6; }
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6155 test -n "$ac_ct_AR" && break
6158 if test "x$ac_ct_AR" = x; then
6161 case $cross_compiling:$ac_tool_warned in
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6185 $as_echo_n "checking for archiver @FILE support... " >&6; }
6186 if ${lt_cv_ar_at_file+:} false; then :
6187 $as_echo_n "(cached) " >&6
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202 echo conftest.$ac_objext > conftest.lst
6203 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6205 (eval $lt_ar_try) 2>&5
6207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208 test $ac_status = 0; }
6209 if test "$ac_status" -eq 0; then
6210 # Ensure the archiver fails upon bogus file names.
6211 rm -f conftest.$ac_objext libconftest.a
6212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6213 (eval $lt_ar_try) 2>&5
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }
6217 if test "$ac_status" -ne 0; then
6221 rm -f conftest.* libconftest.a
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6228 $as_echo "$lt_cv_ar_at_file" >&6; }
6230 if test "x$lt_cv_ar_at_file" = xno; then
6233 archiver_list_spec=$lt_cv_ar_at_file
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}strip; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_STRIP+:} false; then :
6248 $as_echo_n "(cached) " >&6
6250 if test -n "$STRIP"; then
6251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 STRIP=$ac_cv_prog_STRIP
6271 if test -n "$STRIP"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6273 $as_echo "$STRIP" >&6; }
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6281 if test -z "$ac_cv_prog_STRIP"; then
6283 # Extract the first word of "strip", so it can be a program name with args.
6284 set dummy strip; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6288 $as_echo_n "(cached) " >&6
6290 if test -n "$ac_ct_STRIP"; then
6291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 ac_cv_prog_ac_ct_STRIP="strip"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311 if test -n "$ac_ct_STRIP"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6313 $as_echo "$ac_ct_STRIP" >&6; }
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6319 if test "x$ac_ct_STRIP" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6331 STRIP="$ac_cv_prog_STRIP"
6334 test -z "$STRIP" && STRIP=:
6341 if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_RANLIB+:} false; then :
6347 $as_echo_n "(cached) " >&6
6349 if test -n "$RANLIB"; then
6350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 RANLIB=$ac_cv_prog_RANLIB
6370 if test -n "$RANLIB"; then
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6372 $as_echo "$RANLIB" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6380 if test -z "$ac_cv_prog_RANLIB"; then
6381 ac_ct_RANLIB=$RANLIB
6382 # Extract the first word of "ranlib", so it can be a program name with args.
6383 set dummy ranlib; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 if test -n "$ac_ct_RANLIB"; then
6390 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_ac_ct_RANLIB="ranlib"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410 if test -n "$ac_ct_RANLIB"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6412 $as_echo "$ac_ct_RANLIB" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6418 if test "x$ac_ct_RANLIB" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6427 RANLIB=$ac_ct_RANLIB
6430 RANLIB="$ac_cv_prog_RANLIB"
6433 test -z "$RANLIB" && RANLIB=:
6440 # Determine commands to create old-style static archives.
6441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6442 old_postinstall_cmds='chmod 644 $oldlib'
6443 old_postuninstall_cmds=
6445 if test -n "$RANLIB"; then
6448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6451 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6454 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6459 lock_old_archive_extraction=yes ;;
6461 lock_old_archive_extraction=no ;;
6502 # If no C compiler was specified, use CC.
6505 # If no C compiler flags were specified, use CFLAGS.
6506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6508 # Allow CC to be a program name with arguments.
6512 # Check for command to grab the raw symbol name followed by C symbol from nm.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6514 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6515 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6516 $as_echo_n "(cached) " >&6
6519 # These are sane defaults that work on at least a few old systems.
6520 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6522 # Character class describing NM global symbol codes.
6523 symcode='[BCDEGRST]'
6525 # Regexp to match symbols that can be accessed directly from C.
6526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6528 # Define system-specific variables.
6533 cygwin* | mingw* | pw32* | cegcc*)
6534 symcode='[ABCDGISTW]'
6537 if test "$host_cpu" = ia64; then
6538 symcode='[ABCDEGRST]'
6542 symcode='[BCDEGRST]'
6545 symcode='[BCDEGQRST]'
6556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6564 # If we're using GNU nm, then use its standard symbol codes.
6565 case `$NM -V 2>&1` in
6566 *GNU* | *'with BFD'*)
6567 symcode='[ABCDGIRSTW]' ;;
6570 # Transform an extracted symbol line into a proper C declaration.
6571 # Some systems (esp. on ia64) link data and code symbols differently,
6572 # so use this general approach.
6573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6575 # Transform an extracted symbol line into symbol name and symbol address
6576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6577 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'"
6579 # Handle CRLF in mingw tool chain
6583 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6587 # Try without a prefix underscore, then with it.
6588 for ac_symprfx in "" "_"; do
6590 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6591 symxfrm="\\1 $ac_symprfx\\2 \\2"
6593 # Write the raw and C identifiers.
6594 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6595 # Fake it for dumpbin and say T for any non-static function
6596 # and D for any global variable.
6597 # Also find C++ and __fastcall symbols from MSVC++,
6598 # which start with @ or ?.
6599 lt_cv_sys_global_symbol_pipe="$AWK '"\
6600 " {last_section=section; section=\$ 3};"\
6601 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6602 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6603 " \$ 0!~/External *\|/{next};"\
6604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6605 " {if(hide[section]) next};"\
6606 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6607 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6608 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6609 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6610 " ' prfx=^$ac_symprfx"
6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6614 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6616 # Check to see that the pipe works correctly.
6620 cat > conftest.$ac_ext <<_LT_EOF
6625 void nm_test_func(void);
6626 void nm_test_func(void){}
6630 int main(){nm_test_var='a';nm_test_func();return(0);}
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634 (eval $ac_compile) 2>&5
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637 test $ac_status = 0; }; then
6638 # Now try to grab the symbols.
6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644 test $ac_status = 0; } && test -s "$nlist"; then
6645 # Try sorting and uniquifying the output.
6646 if sort "$nlist" | uniq > "$nlist"T; then
6647 mv -f "$nlist"T "$nlist"
6652 # Make sure that we snagged all the symbols we need.
6653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6655 cat <<_LT_EOF > conftest.$ac_ext
6656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6657 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6658 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6659 relocations are performed -- see ld's documentation on pseudo-relocs. */
6660 # define LT_DLSYM_CONST
6661 #elif defined(__osf__)
6662 /* This system does not cope well with relocations in const data. */
6663 # define LT_DLSYM_CONST
6665 # define LT_DLSYM_CONST const
6673 # Now generate the symbol file.
6674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6676 cat <<_LT_EOF >> conftest.$ac_ext
6678 /* The mapping between symbol names and symbols. */
6679 LT_DLSYM_CONST struct {
6683 lt__PROGRAM__LTX_preloaded_symbols[] =
6685 { "@PROGRAM@", (void *) 0 },
6687 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6688 cat <<\_LT_EOF >> conftest.$ac_ext
6692 /* This works around a problem in FreeBSD linker */
6693 #ifdef FREEBSD_WORKAROUND
6694 static const void *lt_preloaded_setup() {
6695 return lt__PROGRAM__LTX_preloaded_symbols;
6703 # Now try linking the two files.
6704 mv conftest.$ac_objext conftstm.$ac_objext
6705 lt_globsym_save_LIBS=$LIBS
6706 lt_globsym_save_CFLAGS=$CFLAGS
6707 LIBS="conftstm.$ac_objext"
6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6710 (eval $ac_link) 2>&5
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6716 LIBS=$lt_globsym_save_LIBS
6717 CFLAGS=$lt_globsym_save_CFLAGS
6719 echo "cannot find nm_test_func in $nlist" >&5
6722 echo "cannot find nm_test_var in $nlist" >&5
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6728 echo "$progname: failed program was:" >&5
6729 cat conftest.$ac_ext >&5
6731 rm -rf conftest* conftst*
6733 # Do not use the global_symbol_pipe unless it works.
6734 if test "$pipe_works" = yes; then
6737 lt_cv_sys_global_symbol_pipe=
6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6744 lt_cv_sys_global_symbol_to_cdecl=
6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6748 $as_echo "failed" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6751 $as_echo "ok" >&6; }
6754 # Response file support.
6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6756 nm_file_list_spec='@'
6757 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6758 nm_file_list_spec='@'
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6788 $as_echo_n "checking for sysroot... " >&6; }
6790 # Check whether --with-sysroot was given.
6791 if test "${with_sysroot+set}" = set; then :
6792 withval=$with_sysroot;
6799 case ${with_sysroot} in #(
6801 if test "$GCC" = yes; then
6802 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6806 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6812 $as_echo "${with_sysroot}" >&6; }
6813 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6818 $as_echo "${lt_sysroot:-no}" >&6; }
6824 # Check whether --enable-libtool-lock was given.
6825 if test "${enable_libtool_lock+set}" = set; then :
6826 enableval=$enable_libtool_lock;
6829 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6831 # Some flags need to be propagated to the compiler or linker for good
6835 # Find out which ABI we are using.
6836 echo 'int i;' > conftest.$ac_ext
6837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838 (eval $ac_compile) 2>&5
6840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841 test $ac_status = 0; }; then
6842 case `/usr/bin/file conftest.$ac_objext` in
6854 # Find out which ABI we are using.
6855 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 if test "$lt_cv_prog_gnu_ld" = yes; then
6862 case `/usr/bin/file conftest.$ac_objext` in
6864 LD="${LD-ld} -melf32bsmip"
6867 LD="${LD-ld} -melf32bmipn32"
6870 LD="${LD-ld} -melf64bmip"
6874 case `/usr/bin/file conftest.$ac_objext` in
6890 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6891 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6892 # Find out which ABI we are using.
6893 echo 'int i;' > conftest.$ac_ext
6894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 (eval $ac_compile) 2>&5
6897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898 test $ac_status = 0; }; then
6899 case `/usr/bin/file conftest.o` in
6902 x86_64-*kfreebsd*-gnu)
6903 LD="${LD-ld} -m elf_i386_fbsd"
6906 case `/usr/bin/file conftest.o` in
6908 LD="${LD-ld} -m elf32_x86_64"
6911 LD="${LD-ld} -m elf_i386"
6915 ppc64-*linux*|powerpc64-*linux*)
6916 LD="${LD-ld} -m elf32ppclinux"
6919 LD="${LD-ld} -m elf_s390"
6922 LD="${LD-ld} -m elf32_sparc"
6928 x86_64-*kfreebsd*-gnu)
6929 LD="${LD-ld} -m elf_x86_64_fbsd"
6932 LD="${LD-ld} -m elf_x86_64"
6934 ppc*-*linux*|powerpc*-*linux*)
6935 LD="${LD-ld} -m elf64ppc"
6937 s390*-*linux*|s390*-*tpf*)
6938 LD="${LD-ld} -m elf64_s390"
6941 LD="${LD-ld} -m elf64_sparc"
6951 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952 SAVE_CFLAGS="$CFLAGS"
6953 CFLAGS="$CFLAGS -belf"
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false; then :
6957 $as_echo_n "(cached) " >&6
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 lt_cv_cc_needs_belf=yes
6979 lt_cv_cc_needs_belf=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6993 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994 CFLAGS="$SAVE_CFLAGS"
6998 # Find out which ABI we are using.
6999 echo 'int i;' > conftest.$ac_ext
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 case `/usr/bin/file conftest.o` in
7007 case $lt_cv_prog_gnu_ld in
7011 LD="${LD-ld} -m elf_x86_64"
7014 LD="${LD-ld} -m elf64_sparc"
7017 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7018 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7023 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7035 need_locks="$enable_libtool_lock"
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}mt; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 if test -n "$MANIFEST_TOOL"; then
7046 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7066 if test -n "$MANIFEST_TOOL"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7068 $as_echo "$MANIFEST_TOOL" >&6; }
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7077 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7078 # Extract the first word of "mt", so it can be a program name with args.
7079 set dummy mt; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 if test -n "$ac_ct_MANIFEST_TOOL"; then
7086 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7106 if test -n "$ac_ct_MANIFEST_TOOL"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7108 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7117 case $cross_compiling:$ac_tool_warned in
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7129 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7131 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7132 if ${lt_cv_path_mainfest_tool+:} false; then :
7133 $as_echo_n "(cached) " >&6
7135 lt_cv_path_mainfest_tool=no
7136 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7137 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7138 cat conftest.err >&5
7139 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7140 lt_cv_path_mainfest_tool=yes
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7145 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7146 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7156 rhapsody* | darwin*)
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7163 $as_echo_n "(cached) " >&6
7165 if test -n "$DSYMUTIL"; then
7166 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7186 if test -n "$DSYMUTIL"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7188 $as_echo "$DSYMUTIL" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7196 if test -z "$ac_cv_prog_DSYMUTIL"; then
7197 ac_ct_DSYMUTIL=$DSYMUTIL
7198 # Extract the first word of "dsymutil", so it can be a program name with args.
7199 set dummy dsymutil; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7203 $as_echo_n "(cached) " >&6
7205 if test -n "$ac_ct_DSYMUTIL"; then
7206 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7226 if test -n "$ac_ct_DSYMUTIL"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7228 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7234 if test "x$ac_ct_DSYMUTIL" = x; then
7237 case $cross_compiling:$ac_tool_warned in
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7243 DSYMUTIL=$ac_ct_DSYMUTIL
7246 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7249 if test -n "$ac_tool_prefix"; then
7250 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_NMEDIT+:} false; then :
7255 $as_echo_n "(cached) " >&6
7257 if test -n "$NMEDIT"; then
7258 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277 NMEDIT=$ac_cv_prog_NMEDIT
7278 if test -n "$NMEDIT"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7280 $as_echo "$NMEDIT" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7288 if test -z "$ac_cv_prog_NMEDIT"; then
7289 ac_ct_NMEDIT=$NMEDIT
7290 # Extract the first word of "nmedit", so it can be a program name with args.
7291 set dummy nmedit; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -n "$ac_ct_NMEDIT"; then
7298 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7318 if test -n "$ac_ct_NMEDIT"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7320 $as_echo "$ac_ct_NMEDIT" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$ac_ct_NMEDIT" = x; then
7329 case $cross_compiling:$ac_tool_warned in
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7335 NMEDIT=$ac_ct_NMEDIT
7338 NMEDIT="$ac_cv_prog_NMEDIT"
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_LIPO+:} false; then :
7347 $as_echo_n "(cached) " >&6
7349 if test -n "$LIPO"; then
7350 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 LIPO=$ac_cv_prog_LIPO
7370 if test -n "$LIPO"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7372 $as_echo "$LIPO" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7380 if test -z "$ac_cv_prog_LIPO"; then
7382 # Extract the first word of "lipo", so it can be a program name with args.
7383 set dummy lipo; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$ac_ct_LIPO"; then
7390 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_LIPO="lipo"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7410 if test -n "$ac_ct_LIPO"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7412 $as_echo "$ac_ct_LIPO" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7418 if test "x$ac_ct_LIPO" = x; then
7421 case $cross_compiling:$ac_tool_warned in
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7430 LIPO="$ac_cv_prog_LIPO"
7433 if test -n "$ac_tool_prefix"; then
7434 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}otool; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_OTOOL+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 if test -n "$OTOOL"; then
7442 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 OTOOL=$ac_cv_prog_OTOOL
7462 if test -n "$OTOOL"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7464 $as_echo "$OTOOL" >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7472 if test -z "$ac_cv_prog_OTOOL"; then
7474 # Extract the first word of "otool", so it can be a program name with args.
7475 set dummy otool; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$ac_ct_OTOOL"; then
7482 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_ac_ct_OTOOL="otool"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7502 if test -n "$ac_ct_OTOOL"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7504 $as_echo "$ac_ct_OTOOL" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7510 if test "x$ac_ct_OTOOL" = x; then
7513 case $cross_compiling:$ac_tool_warned in
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7522 OTOOL="$ac_cv_prog_OTOOL"
7525 if test -n "$ac_tool_prefix"; then
7526 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_OTOOL64+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 if test -n "$OTOOL64"; then
7534 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 OTOOL64=$ac_cv_prog_OTOOL64
7554 if test -n "$OTOOL64"; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7556 $as_echo "$OTOOL64" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7564 if test -z "$ac_cv_prog_OTOOL64"; then
7565 ac_ct_OTOOL64=$OTOOL64
7566 # Extract the first word of "otool64", so it can be a program name with args.
7567 set dummy otool64; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7571 $as_echo_n "(cached) " >&6
7573 if test -n "$ac_ct_OTOOL64"; then
7574 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_ac_ct_OTOOL64="otool64"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7594 if test -n "$ac_ct_OTOOL64"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7596 $as_echo "$ac_ct_OTOOL64" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7602 if test "x$ac_ct_OTOOL64" = x; then
7605 case $cross_compiling:$ac_tool_warned in
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7611 OTOOL64=$ac_ct_OTOOL64
7614 OTOOL64="$ac_cv_prog_OTOOL64"
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7644 $as_echo_n "checking for -single_module linker flag... " >&6; }
7645 if ${lt_cv_apple_cc_single_mod+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 lt_cv_apple_cc_single_mod=no
7649 if test -z "${LT_MULTI_MODULE}"; then
7650 # By default we will add the -single_module flag. You can override
7651 # by either setting the environment variable LT_MULTI_MODULE
7652 # non-empty at configure time, or by adding -multi_module to the
7654 rm -rf libconftest.dylib*
7655 echo "int foo(void){return 1;}" > conftest.c
7656 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7657 -dynamiclib -Wl,-single_module conftest.c" >&5
7658 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7659 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7661 # If there is a non-empty error log, and "single_module"
7662 # appears in it, assume the flag caused a linker warning
7663 if test -s conftest.err && $GREP single_module conftest.err; then
7664 cat conftest.err >&5
7665 # Otherwise, if the output was created with a 0 exit code from
7666 # the compiler, it worked.
7667 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7668 lt_cv_apple_cc_single_mod=yes
7670 cat conftest.err >&5
7672 rm -rf libconftest.dylib*
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7677 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7680 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7681 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 lt_cv_ld_exported_symbols_list=no
7685 save_LDFLAGS=$LDFLAGS
7686 echo "_main" > conftest.sym
7687 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7699 if ac_fn_c_try_link "$LINENO"; then :
7700 lt_cv_ld_exported_symbols_list=yes
7702 lt_cv_ld_exported_symbols_list=no
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 LDFLAGS="$save_LDFLAGS"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7710 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7713 $as_echo_n "checking for -force_load linker flag... " >&6; }
7714 if ${lt_cv_ld_force_load+:} false; then :
7715 $as_echo_n "(cached) " >&6
7717 lt_cv_ld_force_load=no
7718 cat > conftest.c << _LT_EOF
7719 int forced_loaded() { return 2;}
7721 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7722 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7723 echo "$AR cru libconftest.a conftest.o" >&5
7724 $AR cru libconftest.a conftest.o 2>&5
7725 echo "$RANLIB libconftest.a" >&5
7726 $RANLIB libconftest.a 2>&5
7727 cat > conftest.c << _LT_EOF
7728 int main() { return 0;}
7730 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7731 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7733 if test -s conftest.err && $GREP force_load conftest.err; then
7734 cat conftest.err >&5
7735 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7736 lt_cv_ld_force_load=yes
7738 cat conftest.err >&5
7740 rm -f conftest.err libconftest.a conftest conftest.c
7741 rm -rf conftest.dSYM
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7745 $as_echo "$lt_cv_ld_force_load" >&6; }
7747 rhapsody* | darwin1.[012])
7748 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7750 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7751 darwin*) # darwin 5.x on
7752 # if running on 10.5 or later, the deployment target defaults
7753 # to the OS version, if on x86, and 10.4, the deployment
7754 # target defaults to 10.4. Don't you love it?
7755 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7756 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7759 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7765 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7766 _lt_dar_single_mod='$single_module'
7768 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7769 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7771 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7773 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7774 _lt_dsymutil='~$DSYMUTIL $lib || :'
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7787 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7788 # On Suns, sometimes $CPP names a directory.
7789 if test -n "$CPP" && test -d "$CPP"; then
7792 if test -z "$CPP"; then
7793 if ${ac_cv_prog_CPP+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 # Double quotes because CPP needs to be expanded
7797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7800 for ac_c_preproc_warn_flag in '' yes
7802 # Use a header file that comes with gcc, so configuring glibc
7803 # with a fresh cross-compiler works.
7804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7805 # <limits.h> exists even on freestanding compilers.
7806 # On the NeXT, cc -E runs the code through the compiler's parser,
7807 # not just through cpp. "Syntax error" is here to catch this case.
7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h. */
7811 # include <limits.h>
7813 # include <assert.h>
7817 if ac_fn_c_try_cpp "$LINENO"; then :
7820 # Broken: fails on valid input.
7823 rm -f conftest.err conftest.i conftest.$ac_ext
7825 # OK, works on sane cases. Now check whether nonexistent headers
7826 # can be detected and how.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #include <ac_nonexistent.h>
7831 if ac_fn_c_try_cpp "$LINENO"; then :
7832 # Broken: success on invalid input.
7835 # Passes both tests.
7839 rm -f conftest.err conftest.i conftest.$ac_ext
7842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843 rm -f conftest.i conftest.err conftest.$ac_ext
7844 if $ac_preproc_ok; then :
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7857 $as_echo "$CPP" >&6; }
7859 for ac_c_preproc_warn_flag in '' yes
7861 # Use a header file that comes with gcc, so configuring glibc
7862 # with a fresh cross-compiler works.
7863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864 # <limits.h> exists even on freestanding compilers.
7865 # On the NeXT, cc -E runs the code through the compiler's parser,
7866 # not just through cpp. "Syntax error" is here to catch this case.
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7870 # include <limits.h>
7872 # include <assert.h>
7876 if ac_fn_c_try_cpp "$LINENO"; then :
7879 # Broken: fails on valid input.
7882 rm -f conftest.err conftest.i conftest.$ac_ext
7884 # OK, works on sane cases. Now check whether nonexistent headers
7885 # can be detected and how.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <ac_nonexistent.h>
7890 if ac_fn_c_try_cpp "$LINENO"; then :
7891 # Broken: success on invalid input.
7894 # Passes both tests.
7898 rm -f conftest.err conftest.i conftest.$ac_ext
7901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7902 rm -f conftest.i conftest.err conftest.$ac_ext
7903 if $ac_preproc_ok; then :
7906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7908 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7909 See \`config.log' for more details" "$LINENO" 5; }
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7920 $as_echo_n "checking for ANSI C header files... " >&6; }
7921 if ${ac_cv_header_stdc+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 ac_cv_header_stdc=yes
7942 ac_cv_header_stdc=no
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 if test $ac_cv_header_stdc = yes; then
7947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954 $EGREP "memchr" >/dev/null 2>&1; then :
7957 ac_cv_header_stdc=no
7963 if test $ac_cv_header_stdc = yes; then
7964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971 $EGREP "free" >/dev/null 2>&1; then :
7974 ac_cv_header_stdc=no
7980 if test $ac_cv_header_stdc = yes; then
7981 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7982 if test "$cross_compiling" = yes; then :
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7989 #if ((' ' & 0x0FF) == 0x020)
7990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7993 # define ISLOWER(c) \
7994 (('a' <= (c) && (c) <= 'i') \
7995 || ('j' <= (c) && (c) <= 'r') \
7996 || ('s' <= (c) && (c) <= 'z'))
7997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8005 for (i = 0; i < 256; i++)
8006 if (XOR (islower (i), ISLOWER (i))
8007 || toupper (i) != TOUPPER (i))
8012 if ac_fn_c_try_run "$LINENO"; then :
8015 ac_cv_header_stdc=no
8017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8018 conftest.$ac_objext conftest.beam conftest.$ac_ext
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8024 $as_echo "$ac_cv_header_stdc" >&6; }
8025 if test $ac_cv_header_stdc = yes; then
8027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8033 inttypes.h stdint.h unistd.h
8035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8039 cat >>confdefs.h <<_ACEOF
8040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8048 for ac_header in dlfcn.h
8050 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8052 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8053 cat >>confdefs.h <<_ACEOF
8054 #define HAVE_DLFCN_H 1
8075 # Check whether --enable-shared was given.
8076 if test "${enable_shared+set}" = set; then :
8077 enableval=$enable_shared; p=${PACKAGE-default}
8079 yes) enable_shared=yes ;;
8080 no) enable_shared=no ;;
8083 # Look at the argument we got. We use all the common list separators.
8084 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8085 for pkg in $enableval; do
8087 if test "X$pkg" = "X$p"; then
8106 # Check whether --enable-static was given.
8107 if test "${enable_static+set}" = set; then :
8108 enableval=$enable_static; p=${PACKAGE-default}
8110 yes) enable_static=yes ;;
8111 no) enable_static=no ;;
8114 # Look at the argument we got. We use all the common list separators.
8115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116 for pkg in $enableval; do
8118 if test "X$pkg" = "X$p"; then
8138 # Check whether --with-pic was given.
8139 if test "${with_pic+set}" = set; then :
8140 withval=$with_pic; lt_p=${PACKAGE-default}
8142 yes|no) pic_mode=$withval ;;
8145 # Look at the argument we got. We use all the common list separators.
8146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147 for lt_pkg in $withval; do
8149 if test "X$lt_pkg" = "X$lt_p"; then
8161 test -z "$pic_mode" && pic_mode=default
8169 # Check whether --enable-fast-install was given.
8170 if test "${enable_fast_install+set}" = set; then :
8171 enableval=$enable_fast_install; p=${PACKAGE-default}
8173 yes) enable_fast_install=yes ;;
8174 no) enable_fast_install=no ;;
8176 enable_fast_install=no
8177 # Look at the argument we got. We use all the common list separators.
8178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8179 for pkg in $enableval; do
8181 if test "X$pkg" = "X$p"; then
8182 enable_fast_install=yes
8189 enable_fast_install=yes
8202 # This can be used to rebuild libtool when needed
8203 LIBTOOL_DEPS="$ltmain"
8205 # Always use our own libtool.
8206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8237 test -z "$LN_S" && LN_S="ln -s"
8252 if test -n "${ZSH_VERSION+set}" ; then
8253 setopt NO_GLOB_SUBST
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8257 $as_echo_n "checking for objdir... " >&6; }
8258 if ${lt_cv_objdir+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 rm -f .libs 2>/dev/null
8262 mkdir .libs 2>/dev/null
8263 if test -d .libs; then
8266 # MS-DOS does not allow filenames that begin with a dot.
8269 rmdir .libs 2>/dev/null
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8272 $as_echo "$lt_cv_objdir" >&6; }
8273 objdir=$lt_cv_objdir
8279 cat >>confdefs.h <<_ACEOF
8280 #define LT_OBJDIR "$lt_cv_objdir/"
8288 # AIX sometimes has problems with the GCC collect2 program. For some
8289 # reason, if we set the COLLECT_NAMES environment variable, the problems
8290 # vanish in a puff of smoke.
8291 if test "X${COLLECT_NAMES+set}" != Xset; then
8293 export COLLECT_NAMES
8300 can_build_shared=yes
8302 # All known linkers require a `.a' archive for static linking (except MSVC,
8303 # which needs '.lib').
8306 with_gnu_ld="$lt_cv_prog_gnu_ld"
8309 old_CFLAGS="$CFLAGS"
8311 # Set sane defaults for various variables
8312 test -z "$CC" && CC=cc
8313 test -z "$LTCC" && LTCC=$CC
8314 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8315 test -z "$LD" && LD=ld
8316 test -z "$ac_objext" && ac_objext=o
8318 for cc_temp in $compiler""; do
8320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8326 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8329 # Only perform the check for file, if the check method requires it
8330 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8331 case $deplibs_check_method in
8333 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8335 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8336 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8337 $as_echo_n "(cached) " >&6
8341 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8344 lt_save_MAGIC_CMD="$MAGIC_CMD"
8345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8347 for ac_dir in $ac_dummy; do
8349 test -z "$ac_dir" && ac_dir=.
8350 if test -f $ac_dir/${ac_tool_prefix}file; then
8351 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8352 if test -n "$file_magic_test_file"; then
8353 case $deplibs_check_method in
8355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8356 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8358 $EGREP "$file_magic_regex" > /dev/null; then
8363 *** Warning: the command libtool uses to detect shared libraries,
8364 *** $file_magic_cmd, produces output that libtool cannot recognize.
8365 *** The result is that libtool may fail to recognize shared libraries
8366 *** as such. This will affect the creation of libtool libraries that
8367 *** depend on shared libraries, but programs linked with such libtool
8368 *** libraries will work regardless of this problem. Nevertheless, you
8369 *** may want to report the problem to your system manager and/or to
8370 *** bug-libtool@gnu.org
8380 MAGIC_CMD="$lt_save_MAGIC_CMD"
8385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8386 if test -n "$MAGIC_CMD"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8388 $as_echo "$MAGIC_CMD" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8398 if test -z "$lt_cv_path_MAGIC_CMD"; then
8399 if test -n "$ac_tool_prefix"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8401 $as_echo_n "checking for file... " >&6; }
8402 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8403 $as_echo_n "(cached) " >&6
8407 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410 lt_save_MAGIC_CMD="$MAGIC_CMD"
8411 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8412 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8413 for ac_dir in $ac_dummy; do
8415 test -z "$ac_dir" && ac_dir=.
8416 if test -f $ac_dir/file; then
8417 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8418 if test -n "$file_magic_test_file"; then
8419 case $deplibs_check_method in
8421 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8424 $EGREP "$file_magic_regex" > /dev/null; then
8429 *** Warning: the command libtool uses to detect shared libraries,
8430 *** $file_magic_cmd, produces output that libtool cannot recognize.
8431 *** The result is that libtool may fail to recognize shared libraries
8432 *** as such. This will affect the creation of libtool libraries that
8433 *** depend on shared libraries, but programs linked with such libtool
8434 *** libraries will work regardless of this problem. Nevertheless, you
8435 *** may want to report the problem to your system manager and/or to
8436 *** bug-libtool@gnu.org
8446 MAGIC_CMD="$lt_save_MAGIC_CMD"
8451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8452 if test -n "$MAGIC_CMD"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8454 $as_echo "$MAGIC_CMD" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8470 # Use C for the default configuration in the libtool script
8474 ac_cpp='$CPP $CPPFLAGS'
8475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8480 # Source file extension for C test sources.
8483 # Object file extension for compiled C test sources.
8487 # Code to be used in simple compile tests
8488 lt_simple_compile_test_code="int some_variable = 0;"
8490 # Code to be used in simple link tests
8491 lt_simple_link_test_code='int main(){return(0);}'
8499 # If no C compiler was specified, use CC.
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505 # Allow CC to be a program name with arguments.
8508 # Save the default compiler, since it gets overwritten when the other
8509 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8510 compiler_DEFAULT=$CC
8512 # save warnings/boilerplate of simple test code
8513 ac_outfile=conftest.$ac_objext
8514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8516 _lt_compiler_boilerplate=`cat conftest.err`
8519 ac_outfile=conftest.$ac_objext
8520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8522 _lt_linker_boilerplate=`cat conftest.err`
8527 ## There is no encapsulation within the following macros, do not change
8528 ## the running order or otherwise move them around unless you know exactly
8529 ## what you are doing...
8530 if test -n "$compiler"; then
8532 lt_prog_compiler_no_builtin_flag=
8534 if test "$GCC" = yes; then
8535 case $cc_basename in
8537 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8539 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8544 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_cv_prog_compiler_rtti_exceptions=no
8548 ac_outfile=conftest.$ac_objext
8549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550 lt_compiler_flag="-fno-rtti -fno-exceptions"
8551 # Insert the option either (1) after the last *FLAGS variable, or
8552 # (2) before a word containing "conftest.", or (3) at the end.
8553 # Note that $ac_compile itself does not contain backslashes and begins
8554 # with a dollar sign (not a hyphen), so the echo should work correctly.
8555 # The option is referenced via a variable to avoid confusing sed.
8556 lt_compile=`echo "$ac_compile" | $SED \
8557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559 -e 's:$: $lt_compiler_flag:'`
8560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561 (eval "$lt_compile" 2>conftest.err)
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 if (exit $ac_status) && test -s "$ac_outfile"; then
8566 # The compiler can only warn and ignore the option if not recognized
8567 # So say no if there are warnings other than the usual output.
8568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8571 lt_cv_prog_compiler_rtti_exceptions=yes
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8578 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8581 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8593 lt_prog_compiler_wl=
8594 lt_prog_compiler_pic=
8595 lt_prog_compiler_static=
8598 if test "$GCC" = yes; then
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_static='-static'
8604 # All AIX code is PIC.
8605 if test "$host_cpu" = ia64; then
8606 # AIX 5 now supports IA64 processor
8607 lt_prog_compiler_static='-Bstatic'
8614 # see comment about AmigaOS4 .so support
8615 lt_prog_compiler_pic='-fPIC'
8618 # FIXME: we need at least 68020 code to build shared libraries, but
8619 # adding the `-m68020' flag to GCC prevents building anything better,
8621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8627 # PIC is the default for these OSes.
8630 mingw* | cygwin* | pw32* | os2* | cegcc*)
8631 # This hack is so that the source file can tell whether it is being
8632 # built for inclusion in a dll (and should export symbols for example).
8633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8634 # (--disable-auto-import) libraries
8635 lt_prog_compiler_pic='-DDLL_EXPORT'
8638 darwin* | rhapsody*)
8639 # PIC is the default on this platform
8640 # Common symbols not allowed in MH_DYLIB files
8641 lt_prog_compiler_pic='-fno-common'
8645 # PIC is the default for Haiku.
8646 # The "-static" flag exists, but is broken.
8647 lt_prog_compiler_static=
8651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8653 # sets the default TLS model and affects inlining.
8659 lt_prog_compiler_pic='-fPIC'
8665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8666 # Instead, we relocate shared libraries at runtime.
8670 # Just because we use GCC doesn't mean we suddenly get shared libraries
8671 # on systems that don't support them.
8672 lt_prog_compiler_can_build_shared=no
8677 # QNX uses GNU C++, but need to define -shared option too, otherwise
8679 lt_prog_compiler_pic='-fPIC -shared'
8683 if test -d /usr/nec; then
8684 lt_prog_compiler_pic=-Kconform_pic
8689 lt_prog_compiler_pic='-fPIC'
8693 case $cc_basename in
8694 nvcc*) # Cuda Compiler Driver 2.2
8695 lt_prog_compiler_wl='-Xlinker '
8696 if test -n "$lt_prog_compiler_pic"; then
8697 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8702 # PORTME Check for flag to pass linker flags through the system compiler.
8705 lt_prog_compiler_wl='-Wl,'
8706 if test "$host_cpu" = ia64; then
8707 # AIX 5 now supports IA64 processor
8708 lt_prog_compiler_static='-Bstatic'
8710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8714 mingw* | cygwin* | pw32* | os2* | cegcc*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 hpux9* | hpux10* | hpux11*)
8721 lt_prog_compiler_wl='-Wl,'
8722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8729 lt_prog_compiler_pic='+Z'
8732 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8733 lt_prog_compiler_static='${wl}-a ${wl}archive'
8736 irix5* | irix6* | nonstopux*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # PIC (with -KPIC) is the default.
8739 lt_prog_compiler_static='-non_shared'
8742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8743 case $cc_basename in
8744 # old Intel for x86_64 which still supported -KPIC.
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-static'
8750 # icc used to be incompatible with GCC.
8751 # ICC 10 doesn't accept -KPIC any more.
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-fPIC'
8755 lt_prog_compiler_static='-static'
8757 # Lahey Fortran 8.1.
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='--shared'
8761 lt_prog_compiler_static='--static'
8764 # NAG Fortran compiler
8765 lt_prog_compiler_wl='-Wl,-Wl,,'
8766 lt_prog_compiler_pic='-PIC'
8767 lt_prog_compiler_static='-Bstatic'
8769 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8770 # Portland Group compilers (*not* the Pentium gcc compiler,
8771 # which looks to be a dead project)
8772 lt_prog_compiler_wl='-Wl,'
8773 lt_prog_compiler_pic='-fpic'
8774 lt_prog_compiler_static='-Bstatic'
8777 lt_prog_compiler_wl='-Wl,'
8778 # All Alpha code is PIC.
8779 lt_prog_compiler_static='-non_shared'
8781 xl* | bgxl* | bgf* | mpixl*)
8782 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-qpic'
8785 lt_prog_compiler_static='-qstaticlink'
8788 case `$CC -V 2>&1 | sed 5q` in
8789 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8790 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8793 lt_prog_compiler_wl=''
8795 *Sun\ F* | *Sun*Fortran*)
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl='-Qoption ld '
8802 lt_prog_compiler_pic='-KPIC'
8803 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl='-Wl,'
8806 *Intel*\ [CF]*Compiler*)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fPIC'
8809 lt_prog_compiler_static='-static'
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-fpic'
8814 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8827 # QNX uses GNU C++, but need to define -shared option too, otherwise
8829 lt_prog_compiler_pic='-fPIC -shared'
8832 osf3* | osf4* | osf5*)
8833 lt_prog_compiler_wl='-Wl,'
8834 # All OSF/1 code is PIC.
8835 lt_prog_compiler_static='-non_shared'
8839 lt_prog_compiler_static='-non_shared'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 case $cc_basename in
8846 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8847 lt_prog_compiler_wl='-Qoption ld ';;
8849 lt_prog_compiler_wl='-Wl,';;
8854 lt_prog_compiler_wl='-Qoption ld '
8855 lt_prog_compiler_pic='-PIC'
8856 lt_prog_compiler_static='-Bstatic'
8859 sysv4 | sysv4.2uw2* | sysv4.3*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8866 if test -d /usr/nec ;then
8867 lt_prog_compiler_pic='-Kconform_pic'
8868 lt_prog_compiler_static='-Bstatic'
8872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_can_build_shared=no
8884 lt_prog_compiler_pic='-pic'
8885 lt_prog_compiler_static='-Bstatic'
8889 lt_prog_compiler_can_build_shared=no
8895 # For platforms which do not support PIC, -DPIC is meaningless:
8897 lt_prog_compiler_pic=
8900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8906 if ${lt_cv_prog_compiler_pic+:} false; then :
8907 $as_echo_n "(cached) " >&6
8909 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8912 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8913 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8916 # Check to make sure the PIC flag actually works.
8918 if test -n "$lt_prog_compiler_pic"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8921 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 lt_cv_prog_compiler_pic_works=no
8925 ac_outfile=conftest.$ac_objext
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 # The option is referenced via a variable to avoid confusing sed.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>conftest.err)
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s "$ac_outfile"; then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings other than the usual output.
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_pic_works=yes
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8958 case $lt_prog_compiler_pic in
8960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8963 lt_prog_compiler_pic=
8964 lt_prog_compiler_can_build_shared=no
8980 # Check to make sure the static flag actually works.
8982 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8984 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8985 if ${lt_cv_prog_compiler_static_works+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 lt_cv_prog_compiler_static_works=no
8989 save_LDFLAGS="$LDFLAGS"
8990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8993 # The linker can only warn and ignore the option if not recognized
8994 # So say no if there are warnings
8995 if test -s conftest.err; then
8996 # Append any errors to the config.log.
8997 cat conftest.err 1>&5
8998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000 if diff conftest.exp conftest.er2 >/dev/null; then
9001 lt_cv_prog_compiler_static_works=yes
9004 lt_cv_prog_compiler_static_works=yes
9008 LDFLAGS="$save_LDFLAGS"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9012 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9014 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9017 lt_prog_compiler_static=
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9028 if ${lt_cv_prog_compiler_c_o+:} false; then :
9029 $as_echo_n "(cached) " >&6
9031 lt_cv_prog_compiler_c_o=no
9032 $RM -r conftest 2>/dev/null
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038 lt_compiler_flag="-o out/conftest2.$ac_objext"
9039 # Insert the option either (1) after the last *FLAGS variable, or
9040 # (2) before a word containing "conftest.", or (3) at the end.
9041 # Note that $ac_compile itself does not contain backslashes and begins
9042 # with a dollar sign (not a hyphen), so the echo should work correctly.
9043 lt_compile=`echo "$ac_compile" | $SED \
9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046 -e 's:$: $lt_compiler_flag:'`
9047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9048 (eval "$lt_compile" 2>out/conftest.err)
9050 cat out/conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9054 # The compiler can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_c_o=yes
9064 # SGI C++ compiler will create directory out/ii_files/ for
9065 # template instantiation
9066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9067 $RM out/* && rmdir out
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9083 if ${lt_cv_prog_compiler_c_o+:} false; then :
9084 $as_echo_n "(cached) " >&6
9086 lt_cv_prog_compiler_c_o=no
9087 $RM -r conftest 2>/dev/null
9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093 lt_compiler_flag="-o out/conftest2.$ac_objext"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 lt_compile=`echo "$ac_compile" | $SED \
9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101 -e 's:$: $lt_compiler_flag:'`
9102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103 (eval "$lt_compile" 2>out/conftest.err)
9105 cat out/conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_c_o=yes
9119 # SGI C++ compiler will create directory out/ii_files/ for
9120 # template instantiation
9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122 $RM out/* && rmdir out
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134 hard_links="nottested"
9135 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9136 # do not overwrite the value of need_locks provided by the user
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9138 $as_echo_n "checking if we can lock with hard links... " >&6; }
9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9143 ln conftest.a conftest.b 2>&5 || hard_links=no
9144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9146 $as_echo "$hard_links" >&6; }
9147 if test "$hard_links" = no; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9149 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9165 allow_undefined_flag=
9166 always_export_symbols=no
9168 archive_expsym_cmds=
9169 compiler_needs_object=no
9170 enable_shared_with_static_runtimes=no
9171 export_dynamic_flag_spec=
9172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9173 hardcode_automatic=no
9175 hardcode_direct_absolute=no
9176 hardcode_libdir_flag_spec=
9177 hardcode_libdir_separator=
9179 hardcode_shlibpath_var=unsupported
9181 link_all_deplibs=unknown
9184 old_archive_from_new_cmds=
9185 old_archive_from_expsyms_cmds=
9186 thread_safe_flag_spec=
9187 whole_archive_flag_spec=
9188 # include_expsyms should be a list of space-separated symbols to be *always*
9189 # included in the symbol list
9191 # exclude_expsyms can be an extended regexp of symbols to exclude
9192 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9193 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9194 # as well as any symbol that contains `d'.
9195 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9196 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9197 # platforms (ab)use it in PIC code, but their linkers get confused if
9198 # the symbol is explicitly referenced. Since portable code cannot
9199 # rely on this symbol name, it's probably fine to never include it in
9200 # preloaded symbol tables.
9201 # Exclude shared library initialization/finalization symbols.
9202 extract_expsyms_cmds=
9205 cygwin* | mingw* | pw32* | cegcc*)
9206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9207 # When not using gcc, we currently assume that we are using
9208 # Microsoft Visual C++.
9209 if test "$GCC" != yes; then
9214 # we just hope/assume this is gcc and not c89 (= MSVC++)
9224 # On some targets, GNU ld is compatible enough with the native linker
9225 # that we're better off using the native interface for both.
9226 lt_use_gnu_ld_interface=no
9227 if test "$with_gnu_ld" = yes; then
9230 # The AIX port of GNU ld has always aspired to compatibility
9231 # with the native linker. However, as the warning in the GNU ld
9232 # block says, versions before 2.19.5* couldn't really create working
9233 # shared libraries, regardless of the interface used.
9234 case `$LD -v 2>&1` in
9235 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9236 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9237 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9239 lt_use_gnu_ld_interface=yes
9244 lt_use_gnu_ld_interface=yes
9249 if test "$lt_use_gnu_ld_interface" = yes; then
9250 # If archive_cmds runs LD, not CC, wlarc should be empty
9253 # Set some defaults for GNU ld with shared library support. These
9254 # are reset later if shared libraries are not supported. Putting them
9255 # here allows them to be overridden if necessary.
9256 runpath_var=LD_RUN_PATH
9257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258 export_dynamic_flag_spec='${wl}--export-dynamic'
9259 # ancient GNU ld didn't support --whole-archive et. al.
9260 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9261 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9263 whole_archive_flag_spec=
9265 supports_anon_versioning=no
9266 case `$LD -v 2>&1` in
9267 *GNU\ gold*) supports_anon_versioning=yes ;;
9268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271 *\ 2.11.*) ;; # other 2.11 versions
9272 *) supports_anon_versioning=yes ;;
9275 # See if GNU ld supports shared libraries.
9278 # On AIX/PPC, the GNU linker is very broken
9279 if test "$host_cpu" != ia64; then
9283 *** Warning: the GNU linker, at least up to release 2.19, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support. If you
9286 *** really care for shared libraries, you may want to install binutils
9287 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9288 *** You will then need to restart the configuration process.
9297 # see comment about AmigaOS4 .so support
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds=''
9302 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)'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_minus_L=yes
9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 allow_undefined_flag=unsupported
9312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9313 # support --undefined. This deserves some investigation. FIXME
9314 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 cygwin* | mingw* | pw32* | cegcc*)
9321 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9322 # as there is no search path for DLLs.
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 export_dynamic_flag_spec='${wl}--export-all-symbols'
9325 allow_undefined_flag=unsupported
9326 always_export_symbols=no
9327 enable_shared_with_static_runtimes=yes
9328 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'
9329 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9331 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333 # If the export-symbols file already is a .def file (1st line
9334 # is EXPORTS), use it as is; otherwise, prepend...
9335 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9336 cp $export_symbols $output_objdir/$soname.def;
9338 echo EXPORTS > $output_objdir/$soname.def;
9339 cat $export_symbols >> $output_objdir/$soname.def;
9341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 link_all_deplibs=yes
9354 hardcode_shlibpath_var=no
9355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9356 export_dynamic_flag_spec='${wl}-E'
9357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9358 # Instead, shared libraries are loaded at an image base (0x10000000 by
9359 # default) and relocated if they conflict, which is a slow very memory
9360 # consuming and fragmenting process. To avoid this, we pick a random,
9361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9364 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'
9367 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9369 if test "$host_os" = linux-dietlibc; then
9370 case $cc_basename in
9371 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9374 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9375 && test "$tmp_diet" = no
9377 tmp_addflag=' $pic_flag'
9378 tmp_sharedflag='-shared'
9379 case $cc_basename,$host_cpu in
9380 pgcc*) # Portland Group C compiler
9381 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'
9382 tmp_addflag=' $pic_flag'
9384 pgf77* | pgf90* | pgf95* | pgfortran*)
9385 # Portland Group f77 and f90 compilers
9386 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'
9387 tmp_addflag=' $pic_flag -Mnomain' ;;
9388 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9389 tmp_addflag=' -i_dynamic' ;;
9390 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9391 tmp_addflag=' -i_dynamic -nofor_main' ;;
9392 ifc* | ifort*) # Intel Fortran compiler
9393 tmp_addflag=' -nofor_main' ;;
9394 lf95*) # Lahey Fortran 8.1
9395 whole_archive_flag_spec=
9396 tmp_sharedflag='--shared' ;;
9397 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9398 tmp_sharedflag='-qmkshrobj'
9400 nvcc*) # Cuda Compiler Driver 2.2
9401 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'
9402 compiler_needs_object=yes
9405 case `$CC -V 2>&1 | sed 5q` in
9406 *Sun\ C*) # Sun C 5.9
9407 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'
9408 compiler_needs_object=yes
9409 tmp_sharedflag='-G' ;;
9410 *Sun\ F*) # Sun Fortran 8.3
9411 tmp_sharedflag='-G' ;;
9413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415 if test "x$supports_anon_versioning" = xyes; then
9416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9418 echo "local: *; };" >> $output_objdir/$libname.ver~
9419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9422 case $cc_basename in
9423 xlf* | bgf* | bgxlf* | mpixlf*)
9424 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9425 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9428 if test "x$supports_anon_versioning" = xyes; then
9429 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9430 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9431 echo "local: *; };" >> $output_objdir/$libname.ver~
9432 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9443 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9452 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9457 *** create shared libraries on Solaris systems. Therefore, libtool
9458 *** is disabling shared libraries support. We urge you to upgrade GNU
9459 *** binutils to release 2.9.1 or newer. Another option is to modify
9460 *** your PATH or compiler configuration so that the native linker is
9461 *** used, and then restart.
9464 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9473 case `$LD -v 2>&1` in
9474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9479 *** reliably create shared libraries on SCO systems. Therefore, libtool
9480 *** is disabling shared libraries support. We urge you to upgrade GNU
9481 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9482 *** your PATH or compiler configuration so that the native linker is
9483 *** used, and then restart.
9488 # For security reasons, it is highly recommended that you always
9489 # use absolute paths for naming shared libraries, and exclude the
9490 # DT_RUNPATH tag from executables and libraries. But doing so
9491 # requires that you compile everything twice, which is a pain.
9492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9507 hardcode_shlibpath_var=no
9511 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9520 if test "$ld_shlibs" = no; then
9522 hardcode_libdir_flag_spec=
9523 export_dynamic_flag_spec=
9524 whole_archive_flag_spec=
9527 # PORTME fill in a description of your system's linker (not GNU ld)
9530 allow_undefined_flag=unsupported
9531 always_export_symbols=yes
9532 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'
9533 # Note: this linker hardcodes the directories in LIBPATH if there
9534 # are no directories specified by -L.
9535 hardcode_minus_L=yes
9536 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9537 # Neither direct hardcoding nor static linking is supported with a
9539 hardcode_direct=unsupported
9544 if test "$host_cpu" = ia64; then
9545 # On IA64, the linker does run time linking by default, so we don't
9546 # have to do anything special.
9547 aix_use_runtimelinking=no
9548 exp_sym_flag='-Bexport'
9551 # If we're using GNU nm, then we don't want the "-C" option.
9552 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9553 # Also, AIX nm treats weak defined symbols like other global
9554 # defined symbols, whereas GNU nm marks them as "W".
9555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9556 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'
9558 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'
9560 aix_use_runtimelinking=no
9562 # Test if we are trying to use run time linking or normal
9563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9564 # need to do runtime linking.
9565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9566 for ld_flag in $LDFLAGS; do
9567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9568 aix_use_runtimelinking=yes
9575 exp_sym_flag='-bexport'
9576 no_entry_flag='-bnoentry'
9579 # When large executables or shared objects are built, AIX ld can
9580 # have problems creating the table of contents. If linking a library
9581 # or program results in "error TOC overflow" add -mminimal-toc to
9582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9587 hardcode_direct_absolute=yes
9588 hardcode_libdir_separator=':'
9589 link_all_deplibs=yes
9590 file_list_spec='${wl}-f,'
9592 if test "$GCC" = yes; then
9593 case $host_os in aix4.[012]|aix4.[012].*)
9594 # We only want to do this on AIX 4.2 and lower, the check
9595 # below for broken collect2 doesn't work under 4.3+
9596 collect2name=`${CC} -print-prog-name=collect2`
9597 if test -f "$collect2name" &&
9598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9600 # We have reworked collect2
9603 # We have old collect2
9604 hardcode_direct=unsupported
9605 # It fails to find uninstalled libraries when the uninstalled
9606 # path is not listed in the libpath. Setting hardcode_minus_L
9607 # to unsupported forces relinking
9608 hardcode_minus_L=yes
9609 hardcode_libdir_flag_spec='-L$libdir'
9610 hardcode_libdir_separator=
9614 shared_flag='-shared'
9615 if test "$aix_use_runtimelinking" = yes; then
9616 shared_flag="$shared_flag "'${wl}-G'
9620 if test "$host_cpu" = ia64; then
9621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9622 # chokes on -Wl,-G. The following line is correct:
9625 if test "$aix_use_runtimelinking" = yes; then
9626 shared_flag='${wl}-G'
9628 shared_flag='${wl}-bM:SRE'
9633 export_dynamic_flag_spec='${wl}-bexpall'
9634 # It seems that -bexpall does not export symbols beginning with
9635 # underscore (_), so it is better to generate a list of symbols to export.
9636 always_export_symbols=yes
9637 if test "$aix_use_runtimelinking" = yes; then
9638 # Warning - without using the other runtime loading flags (-brtl),
9639 # -berok will link without error, but may produce a broken library.
9640 allow_undefined_flag='-berok'
9641 # Determine the default libpath from the value encoded in an
9643 if test "${lt_cv_aix_libpath+set}" = set; then
9644 aix_libpath=$lt_cv_aix_libpath
9646 if ${lt_cv_aix_libpath_+:} false; then :
9647 $as_echo_n "(cached) " >&6
9649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h. */
9660 if ac_fn_c_try_link "$LINENO"; then :
9662 lt_aix_libpath_sed='
9663 /Import File Strings/,/^$/ {
9665 s/^0 *\([^ ]*\) *$/\1/
9669 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9670 # Check for a 64-bit object if we didn't find anything.
9671 if test -z "$lt_cv_aix_libpath_"; then
9672 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 rm -f core conftest.err conftest.$ac_objext \
9676 conftest$ac_exeext conftest.$ac_ext
9677 if test -z "$lt_cv_aix_libpath_"; then
9678 lt_cv_aix_libpath_="/usr/lib:/lib"
9683 aix_libpath=$lt_cv_aix_libpath_
9686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9687 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"
9689 if test "$host_cpu" = ia64; then
9690 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9691 allow_undefined_flag="-z nodefs"
9692 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"
9694 # Determine the default libpath from the value encoded in an
9696 if test "${lt_cv_aix_libpath+set}" = set; then
9697 aix_libpath=$lt_cv_aix_libpath
9699 if ${lt_cv_aix_libpath_+:} false; then :
9700 $as_echo_n "(cached) " >&6
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9713 if ac_fn_c_try_link "$LINENO"; then :
9715 lt_aix_libpath_sed='
9716 /Import File Strings/,/^$/ {
9718 s/^0 *\([^ ]*\) *$/\1/
9722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 # Check for a 64-bit object if we didn't find anything.
9724 if test -z "$lt_cv_aix_libpath_"; then
9725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$lt_cv_aix_libpath_"; then
9731 lt_cv_aix_libpath_="/usr/lib:/lib"
9736 aix_libpath=$lt_cv_aix_libpath_
9739 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9740 # Warning - without using the other run time loading flags,
9741 # -berok will link without error, but may produce a broken library.
9742 no_undefined_flag=' ${wl}-bernotok'
9743 allow_undefined_flag=' ${wl}-berok'
9744 if test "$with_gnu_ld" = yes; then
9745 # We only use this code for GNU lds that support --whole-archive.
9746 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9748 # Exported symbols can be pulled into shared objects from archives
9749 whole_archive_flag_spec='$convenience'
9751 archive_cmds_need_lc=yes
9752 # This is similar to how AIX traditionally builds its shared libraries.
9753 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'
9761 # see comment about AmigaOS4 .so support
9762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763 archive_expsym_cmds=''
9766 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)'
9767 hardcode_libdir_flag_spec='-L$libdir'
9768 hardcode_minus_L=yes
9774 export_dynamic_flag_spec=-rdynamic
9777 cygwin* | mingw* | pw32* | cegcc*)
9778 # When not using gcc, we currently assume that we are using
9779 # Microsoft Visual C++.
9780 # hardcode_libdir_flag_spec is actually meaningless, as there is
9781 # no search path for DLLs.
9782 case $cc_basename in
9785 hardcode_libdir_flag_spec=' '
9786 allow_undefined_flag=unsupported
9787 always_export_symbols=yes
9789 # Tell ltmain to make .lib files, not .a files.
9791 # Tell ltmain to make .dll files, not .so files.
9793 # FIXME: Setting linknames here is a bad hack.
9794 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9795 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9796 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9798 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9800 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9802 # The linker will not automatically build a static lib if we build a DLL.
9803 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9804 enable_shared_with_static_runtimes=yes
9805 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9808 old_postinstall_cmds='chmod 644 $oldlib'
9809 postlink_cmds='lt_outputfile="@OUTPUT@"~
9810 lt_tool_outputfile="@TOOL_OUTPUT@"~
9811 case $lt_outputfile in
9814 lt_outputfile="$lt_outputfile.exe"
9815 lt_tool_outputfile="$lt_tool_outputfile.exe"
9818 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9819 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9820 $RM "$lt_outputfile.manifest";
9824 # Assume MSVC wrapper
9825 hardcode_libdir_flag_spec=' '
9826 allow_undefined_flag=unsupported
9827 # Tell ltmain to make .lib files, not .a files.
9829 # Tell ltmain to make .dll files, not .so files.
9831 # FIXME: Setting linknames here is a bad hack.
9832 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9833 # The linker will automatically build a .lib file if we build a DLL.
9834 old_archive_from_new_cmds='true'
9835 # FIXME: Should let the user specify the lib program.
9836 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9837 enable_shared_with_static_runtimes=yes
9842 darwin* | rhapsody*)
9845 archive_cmds_need_lc=no
9847 hardcode_automatic=yes
9848 hardcode_shlibpath_var=unsupported
9849 if test "$lt_cv_ld_force_load" = "yes"; then
9850 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\"`'
9853 whole_archive_flag_spec=''
9855 link_all_deplibs=yes
9856 allow_undefined_flag="$_lt_dar_allow_undefined"
9857 case $cc_basename in
9858 ifort*) _lt_dar_can_shared=yes ;;
9859 *) _lt_dar_can_shared=$GCC ;;
9861 if test "$_lt_dar_can_shared" = "yes"; then
9862 output_verbose_link_cmd=func_echo_all
9863 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9864 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9865 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}"
9866 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}"
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_libdir_flag_spec='-L$libdir'
9877 hardcode_shlibpath_var=no
9880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9881 # support. Future versions do this automatically, but an explicit c++rt0.o
9882 # does not break anything, and helps significantly (at the cost of a little
9885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9886 hardcode_libdir_flag_spec='-R$libdir'
9888 hardcode_shlibpath_var=no
9891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_minus_L=yes
9896 hardcode_shlibpath_var=no
9899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9900 freebsd* | dragonfly*)
9901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9902 hardcode_libdir_flag_spec='-R$libdir'
9904 hardcode_shlibpath_var=no
9908 if test "$GCC" = yes; then
9909 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'
9911 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'
9913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9914 hardcode_libdir_separator=:
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 export_dynamic_flag_spec='${wl}-E'
9924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9929 if test "$with_gnu_ld" = no; then
9930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9931 hardcode_libdir_separator=:
9933 hardcode_direct_absolute=yes
9934 export_dynamic_flag_spec='${wl}-E'
9935 # hardcode_minus_L: Not really in the search PATH,
9936 # but as the default location of the library.
9937 hardcode_minus_L=yes
9942 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9957 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9964 # Older versions of the 11.00 compiler do not understand -b yet
9965 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9967 $as_echo_n "checking if $CC understands -b... " >&6; }
9968 if ${lt_cv_prog_compiler__b+:} false; then :
9969 $as_echo_n "(cached) " >&6
9971 lt_cv_prog_compiler__b=no
9972 save_LDFLAGS="$LDFLAGS"
9973 LDFLAGS="$LDFLAGS -b"
9974 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9975 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9976 # The linker can only warn and ignore the option if not recognized
9977 # So say no if there are warnings
9978 if test -s conftest.err; then
9979 # Append any errors to the config.log.
9980 cat conftest.err 1>&5
9981 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9983 if diff conftest.exp conftest.er2 >/dev/null; then
9984 lt_cv_prog_compiler__b=yes
9987 lt_cv_prog_compiler__b=yes
9991 LDFLAGS="$save_LDFLAGS"
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9995 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9997 if test x"$lt_cv_prog_compiler__b" = xyes; then
9998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10006 if test "$with_gnu_ld" = no; then
10007 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10008 hardcode_libdir_separator=:
10013 hardcode_shlibpath_var=no
10016 hardcode_direct=yes
10017 hardcode_direct_absolute=yes
10018 export_dynamic_flag_spec='${wl}-E'
10020 # hardcode_minus_L: Not really in the search PATH,
10021 # but as the default location of the library.
10022 hardcode_minus_L=yes
10028 irix5* | irix6* | nonstopux*)
10029 if test "$GCC" = yes; then
10030 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'
10031 # Try to use the -exported_symbol ld option, if it does not
10032 # work, assume that -exports_file does not work either and
10033 # implicitly export all symbols.
10034 # This should be the same for all languages, so no per-tag cache variable.
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10036 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10037 if ${lt_cv_irix_exported_symbol+:} false; then :
10038 $as_echo_n "(cached) " >&6
10040 save_LDFLAGS="$LDFLAGS"
10041 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10044 int foo (void) { return 0; }
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 lt_cv_irix_exported_symbol=yes
10049 lt_cv_irix_exported_symbol=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LDFLAGS="$save_LDFLAGS"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10056 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10057 if test "$lt_cv_irix_exported_symbol" = yes; then
10058 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'
10061 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'
10062 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'
10064 archive_cmds_need_lc='no'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 hardcode_libdir_separator=:
10068 link_all_deplibs=yes
10072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10075 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10077 hardcode_libdir_flag_spec='-R$libdir'
10078 hardcode_direct=yes
10079 hardcode_shlibpath_var=no
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_direct=yes
10085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086 hardcode_libdir_separator=:
10087 hardcode_shlibpath_var=no
10094 if test -f /usr/libexec/ld.so; then
10095 hardcode_direct=yes
10096 hardcode_shlibpath_var=no
10097 hardcode_direct_absolute=yes
10098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10101 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10102 export_dynamic_flag_spec='${wl}-E'
10105 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_libdir_flag_spec='-R$libdir'
10110 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121 hardcode_libdir_flag_spec='-L$libdir'
10122 hardcode_minus_L=yes
10123 allow_undefined_flag=unsupported
10124 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'
10125 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10129 if test "$GCC" = yes; then
10130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10131 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'
10133 allow_undefined_flag=' -expect_unresolved \*'
10134 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'
10136 archive_cmds_need_lc='no'
10137 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10138 hardcode_libdir_separator=:
10141 osf4* | osf5*) # as osf3* with the addition of -msym flag
10142 if test "$GCC" = yes; then
10143 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10144 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'
10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 allow_undefined_flag=' -expect_unresolved \*'
10148 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'
10149 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~
10150 $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'
10152 # Both c and cxx compiler support -rpath directly
10153 hardcode_libdir_flag_spec='-rpath $libdir'
10155 archive_cmds_need_lc='no'
10156 hardcode_libdir_separator=:
10160 no_undefined_flag=' -z defs'
10161 if test "$GCC" = yes; then
10163 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165 $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'
10167 case `$CC -V 2>&1` in
10170 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10172 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10176 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10178 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10182 hardcode_libdir_flag_spec='-R$libdir'
10183 hardcode_shlibpath_var=no
10185 solaris2.[0-5] | solaris2.[0-5].*) ;;
10187 # The compiler driver will combine and reorder linker options,
10188 # but understands `-z linker_flag'. GCC discards it without `$wl',
10189 # but is careful enough not to reorder.
10190 # Supported since Solaris 2.6 (maybe 2.5.1?)
10191 if test "$GCC" = yes; then
10192 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10194 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10198 link_all_deplibs=yes
10202 if test "x$host_vendor" = xsequent; then
10203 # Use $CC to link under sequent, because it throws in some extra .o
10204 # files that make .init and .fini sections work.
10205 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_libdir_flag_spec='-L$libdir'
10210 hardcode_direct=yes
10211 hardcode_minus_L=yes
10212 hardcode_shlibpath_var=no
10216 case $host_vendor in
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_direct=yes # is this really true???
10222 ## LD is ld it makes a PLAMLIB
10223 ## CC just makes a GrossModule.
10224 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10225 reload_cmds='$CC -r -o $output$reload_objs'
10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10233 runpath_var='LD_RUN_PATH'
10234 hardcode_shlibpath_var=no
10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_shlibpath_var=no
10240 export_dynamic_flag_spec='-Bexport'
10244 if test -d /usr/nec; then
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_shlibpath_var=no
10247 runpath_var=LD_RUN_PATH
10248 hardcode_runpath_var=yes
10253 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10254 no_undefined_flag='${wl}-z,text'
10255 archive_cmds_need_lc=no
10256 hardcode_shlibpath_var=no
10257 runpath_var='LD_RUN_PATH'
10259 if test "$GCC" = yes; then
10260 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 sysv5* | sco3.2v5* | sco5v6*)
10269 # Note: We can NOT use -z defs as we might desire, because we do not
10270 # link with -lc, and that would cause any symbols used from libc to
10271 # always be unresolved, which means just about no library would
10272 # ever link correctly. If we're not using GNU ld we use -z text
10273 # though, which does catch some bad symbols but isn't as heavy-handed
10275 no_undefined_flag='${wl}-z,text'
10276 allow_undefined_flag='${wl}-z,nodefs'
10277 archive_cmds_need_lc=no
10278 hardcode_shlibpath_var=no
10279 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10280 hardcode_libdir_separator=':'
10281 link_all_deplibs=yes
10282 export_dynamic_flag_spec='${wl}-Bexport'
10283 runpath_var='LD_RUN_PATH'
10285 if test "$GCC" = yes; then
10286 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_shlibpath_var=no
10305 if test x$host_vendor = xsni; then
10307 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10308 export_dynamic_flag_spec='${wl}-Blargedynsym'
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10315 $as_echo "$ld_shlibs" >&6; }
10316 test "$ld_shlibs" = no && can_build_shared=no
10318 with_gnu_ld=$with_gnu_ld
10335 # Do we need to explicitly link libc?
10337 case "x$archive_cmds_need_lc" in
10339 # Assume -lc should be added
10340 archive_cmds_need_lc=yes
10342 if test "$enable_shared" = yes && test "$GCC" = yes; then
10343 case $archive_cmds in
10345 # FIXME: we may have to deal with multi-command sequences.
10348 # Test whether the compiler implicitly links with -lc since on some
10349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10350 # to ld, don't add -lc before -lgcc.
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10353 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10354 $as_echo_n "(cached) " >&6
10357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10360 (eval $ac_compile) 2>&5
10362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363 test $ac_status = 0; } 2>conftest.err; then
10366 libobjs=conftest.$ac_objext
10368 wl=$lt_prog_compiler_wl
10369 pic_flag=$lt_prog_compiler_pic
10375 lt_save_allow_undefined_flag=$allow_undefined_flag
10376 allow_undefined_flag=
10377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10378 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381 test $ac_status = 0; }
10383 lt_cv_archive_cmds_need_lc=no
10385 lt_cv_archive_cmds_need_lc=yes
10387 allow_undefined_flag=$lt_save_allow_undefined_flag
10389 cat conftest.err 1>&5
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10395 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10396 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10557 if test "$GCC" = yes; then
10559 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10560 *) lt_awk_arg="/^libraries:/" ;;
10563 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10564 *) lt_sed_strip_eq="s,=/,/,g" ;;
10566 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10567 case $lt_search_path_spec in
10569 # if the path contains ";" then we assume it to be the separator
10570 # otherwise default to the standard path separator (i.e. ":") - it is
10571 # assumed that no part of a normal pathname contains ";" but that should
10572 # okay in the real world where ";" in dirpaths is itself problematic.
10573 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10579 # Ok, now we have the path, separated by spaces, we can step through it
10580 # and add multilib dir if necessary.
10581 lt_tmp_lt_search_path_spec=
10582 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10583 for lt_sys_path in $lt_search_path_spec; do
10584 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10587 test -d "$lt_sys_path" && \
10588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10591 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10592 BEGIN {RS=" "; FS="/|\n";} {
10595 for (lt_i = NF; lt_i > 0; lt_i--) {
10596 if ($lt_i != "" && $lt_i != ".") {
10597 if ($lt_i == "..") {
10600 if (lt_count == 0) {
10601 lt_foo="/" $lt_i lt_foo;
10608 if (lt_foo != "") { lt_freq[lt_foo]++; }
10609 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10611 # AWK program above erroneously prepends '/' to C:/dos/paths
10614 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10615 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10617 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10621 library_names_spec=
10622 libname_spec='lib$name'
10626 postuninstall_cmds=
10630 shlibpath_overrides_runpath=unknown
10632 dynamic_linker="$host_os ld.so"
10633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10634 need_lib_prefix=unknown
10635 hardcode_into_libs=no
10637 # when you set need_version to no, make sure it does not cause -set_version
10638 # flags to be left without arguments
10639 need_version=unknown
10643 version_type=linux # correct to gnu/linux during the next big refactor
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10645 shlibpath_var=LIBPATH
10647 # AIX 3 has no versioning support, so we append a major version to the name.
10648 soname_spec='${libname}${release}${shared_ext}$major'
10652 version_type=linux # correct to gnu/linux during the next big refactor
10655 hardcode_into_libs=yes
10656 if test "$host_cpu" = ia64; then
10657 # AIX 5 supports IA64
10658 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10659 shlibpath_var=LD_LIBRARY_PATH
10661 # With GCC up to 2.95.x, collect2 would create an import file
10662 # for dependence libraries. The import file would start with
10663 # the line `#! .'. This would cause the generated library to
10664 # depend on `.', always an invalid library. This was fixed in
10665 # development snapshots of GCC prior to 3.0.
10667 aix4 | aix4.[01] | aix4.[01].*)
10668 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10670 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10673 can_build_shared=no
10677 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10678 # soname into executable. Probably we can add versioning support to
10679 # collect2, so additional links can be useful in future.
10680 if test "$aix_use_runtimelinking" = yes; then
10681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10682 # instead of lib<name>.a to let people know that these are not
10683 # typical AIX shared libraries.
10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 # We preserve .a as extension for shared libraries through AIX4.2
10687 # and later when we are not doing run time linking.
10688 library_names_spec='${libname}${release}.a $libname.a'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LIBPATH
10698 # Since July 2007 AmigaOS4 officially supports .so libraries.
10699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 library_names_spec='$libname.ixlibrary $libname.a'
10704 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10705 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'
10711 library_names_spec='${libname}${shared_ext}'
10712 dynamic_linker="$host_os ld.so"
10713 shlibpath_var=LIBRARY_PATH
10717 version_type=linux # correct to gnu/linux during the next big refactor
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10722 shlibpath_var=LD_LIBRARY_PATH
10723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10725 # the default ld.so.conf also contains /usr/contrib/lib and
10726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10727 # libtool to hard-code these into programs
10730 cygwin* | mingw* | pw32* | cegcc*)
10731 version_type=windows
10736 case $GCC,$cc_basename in
10739 library_names_spec='$libname.dll.a'
10740 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10741 postinstall_cmds='base_file=`basename \${file}`~
10742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10743 dldir=$destdir/`dirname \$dlpath`~
10744 test -d \$dldir || mkdir -p \$dldir~
10745 $install_prog $dir/$dlname \$dldir/$dlname~
10746 chmod a+x \$dldir/$dlname~
10747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751 dlpath=$dir/\$dldll~
10753 shlibpath_overrides_runpath=yes
10757 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10758 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10763 # MinGW DLLs use traditional 'lib' prefix
10764 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767 # pw32 DLLs use 'pw' prefix rather than 'lib'
10768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10771 dynamic_linker='Win32 ld.exe'
10776 libname_spec='$name'
10777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 library_names_spec='${libname}.dll.lib'
10782 sys_lib_search_path_spec=
10785 for lt_path in $LIB
10788 # Let DOS variable expansion print the short 8.3 style file name.
10789 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10790 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10793 # Convert to MSYS style.
10794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10797 # Convert to unix form, then to dos form, then back to unix form
10798 # but this time dos style (no spaces!) so that the unix form looks
10799 # like /cygdrive/c/PROGRA~1:/cygdr...
10800 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10801 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10802 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805 sys_lib_search_path_spec="$LIB"
10806 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10807 # It is most probably a Windows format PATH.
10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10812 # FIXME: find the short name or the path components, as spaces are
10813 # common. (e.g. "Program Files" -> "PROGRA~1")
10817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818 postinstall_cmds='base_file=`basename \${file}`~
10819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820 dldir=$destdir/`dirname \$dlpath`~
10821 test -d \$dldir || mkdir -p \$dldir~
10822 $install_prog $dir/$dlname \$dldir/$dlname'
10823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10824 dlpath=$dir/\$dldll~
10826 shlibpath_overrides_runpath=yes
10827 dynamic_linker='Win32 link.exe'
10831 # Assume MSVC wrapper
10832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833 dynamic_linker='Win32 ld.exe'
10836 # FIXME: first we should search . and the directory the executable is in
10840 darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10845 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846 soname_spec='${libname}${release}${major}$shared_ext'
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10856 version_type=linux # correct to gnu/linux during the next big refactor
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10864 freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10871 freebsd[23].*) objformat=aout ;;
10872 *) objformat=elf ;;
10875 version_type=freebsd-$objformat
10876 case $version_type in
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10887 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes
10892 freebsd3.[01]* | freebsdelf3.[01]*)
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10901 *) # from 4.6 on, and DragonFly
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10909 version_type=linux # correct to gnu/linux during the next big refactor
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=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10920 version_type=linux # correct to gnu/linux during the next big refactor
10923 dynamic_linker="$host_os runtime_loader"
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10929 hardcode_into_libs=yes
10932 hpux9* | hpux10* | hpux11*)
10933 # Give a soname corresponding to the major version so that dld.sl refuses to
10934 # link against other versions.
10941 hardcode_into_libs=yes
10942 dynamic_linker="$host_os dld.so"
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946 soname_spec='${libname}${release}${shared_ext}$major'
10947 if test "X$HPUX_IA64_MODE" = X32; then
10948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10956 hardcode_into_libs=yes
10957 dynamic_linker="$host_os dld.sl"
10958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10967 dynamic_linker="$host_os dld.sl"
10968 shlibpath_var=SHLIB_PATH
10969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10975 postinstall_cmds='chmod 555 $lib'
10976 # or fails outright, so override atomically:
10977 install_override_mode=555
10981 version_type=linux # correct to gnu/linux during the next big refactor
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=no
10989 hardcode_into_libs=yes
10992 irix5* | irix6* | nonstopux*)
10994 nonstopux*) version_type=nonstopux ;;
10996 if test "$lt_cv_prog_gnu_ld" = yes; then
10997 version_type=linux # correct to gnu/linux during the next big refactor
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 irix5* | nonstopux*)
11008 libsuff= shlibsuff=
11011 case $LD in # libtool.m4 will add one of these switches to LD
11012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013 libsuff= shlibsuff= libmagic=32-bit;;
11014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015 libsuff=32 shlibsuff=N32 libmagic=N32;;
11016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018 *) libsuff= shlibsuff= libmagic=never-match;;
11022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023 shlibpath_overrides_runpath=no
11024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11026 hardcode_into_libs=yes
11029 # No shared lib support for Linux oldld, aout, or coff.
11030 linux*oldld* | linux*aout* | linux*coff*)
11034 # This must be glibc/ELF.
11035 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11036 version_type=linux # correct to gnu/linux during the next big refactor
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=no
11045 # Some binutils ld are patched to set DT_RUNPATH
11046 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11047 $as_echo_n "(cached) " >&6
11049 lt_cv_shlibpath_overrides_runpath=no
11050 save_LDFLAGS=$LDFLAGS
11051 save_libdir=$libdir
11052 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11053 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11067 lt_cv_shlibpath_overrides_runpath=yes
11070 rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072 LDFLAGS=$save_LDFLAGS
11073 libdir=$save_libdir
11077 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11079 # This implies no fast_install, which is unacceptable.
11080 # Some rework will be needed to allow for fast_install
11081 # before this can be enabled.
11082 hardcode_into_libs=yes
11084 # Add ABI-specific directories to the system library path.
11085 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11087 # Append ld.so.conf contents to the search path
11088 if test -f /etc/ld.so.conf; then
11089 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' ' '`
11090 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11094 # We used to test for /lib/ld.so.1 and disable shared libraries on
11095 # powerpc, because MkLinux only supported shared libraries with the
11096 # GNU dynamic linker. Since this was broken with cross compilers,
11097 # most powerpc-linux boxes support dynamic linking these days and
11098 # people can always --disable-shared, the test was removed, and we
11099 # assume the GNU/Linux dynamic linker is in use.
11100 dynamic_linker='GNU/Linux ld.so'
11107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110 dynamic_linker='NetBSD (a.out) ld.so'
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 dynamic_linker='NetBSD ld.elf_so'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 hardcode_into_libs=yes
11122 version_type=linux # correct to gnu/linux during the next big refactor
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=no
11136 hardcode_into_libs=yes
11137 dynamic_linker='ldqnx.so'
11142 sys_lib_dlsearch_path_spec="/usr/lib"
11144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11147 *) need_version=no ;;
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11154 openbsd2.[89] | openbsd2.[89].*)
11155 shlibpath_overrides_runpath=no
11158 shlibpath_overrides_runpath=yes
11162 shlibpath_overrides_runpath=yes
11167 libname_spec='$name'
11170 library_names_spec='$libname${shared_ext} $libname.a'
11171 dynamic_linker='OS/2 ld.exe'
11172 shlibpath_var=LIBPATH
11175 osf3* | osf4* | osf5*)
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11191 version_type=linux # correct to gnu/linux during the next big refactor
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11199 # ldd complains unless libraries are executable
11200 postinstall_cmds='chmod +x $lib'
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=yes
11209 if test "$with_gnu_ld" = yes; then
11216 version_type=linux # correct to gnu/linux during the next big refactor
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 case $host_vendor in
11222 shlibpath_overrides_runpath=no
11224 runpath_var=LD_RUN_PATH
11232 shlibpath_overrides_runpath=no
11233 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11239 if test -d /usr/nec ;then
11240 version_type=linux # correct to gnu/linux during the next big refactor
11241 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11242 soname_spec='$libname${shared_ext}.$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11248 version_type=freebsd-elf
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=yes
11255 hardcode_into_libs=yes
11256 if test "$with_gnu_ld" = yes; then
11257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11259 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11262 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11266 sys_lib_dlsearch_path_spec='/usr/lib'
11270 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11271 version_type=linux # correct to gnu/linux during the next big refactor
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 shlibpath_var=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath=no
11277 hardcode_into_libs=yes
11281 version_type=linux # correct to gnu/linux during the next big refactor
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11292 $as_echo "$dynamic_linker" >&6; }
11293 test "$dynamic_linker" = no && can_build_shared=no
11295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11296 if test "$GCC" = yes; then
11297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11300 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11301 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11303 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11304 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11401 if test -n "$hardcode_libdir_flag_spec" ||
11402 test -n "$runpath_var" ||
11403 test "X$hardcode_automatic" = "Xyes" ; then
11405 # We can hardcode non-existent directories.
11406 if test "$hardcode_direct" != no &&
11407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11408 # have to relink, otherwise we might link with an installed library
11409 # when we should be linking with a yet-to-be-installed one
11410 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11411 test "$hardcode_minus_L" != no; then
11412 # Linking always hardcodes the temporary library directory.
11413 hardcode_action=relink
11415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11416 hardcode_action=immediate
11419 # We cannot hardcode anything, or else we can only hardcode existing
11421 hardcode_action=unsupported
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11424 $as_echo "$hardcode_action" >&6; }
11426 if test "$hardcode_action" = relink ||
11427 test "$inherit_rpath" = yes; then
11428 # Fast installation is not supported
11429 enable_fast_install=no
11430 elif test "$shlibpath_overrides_runpath" = yes ||
11431 test "$enable_shared" = no; then
11432 # Fast installation is not necessary
11433 enable_fast_install=needless
11441 if test "x$enable_dlopen" != xyes; then
11442 enable_dlopen=unknown
11443 enable_dlopen_self=unknown
11444 enable_dlopen_self_static=unknown
11451 lt_cv_dlopen="load_add_on"
11453 lt_cv_dlopen_self=yes
11456 mingw* | pw32* | cegcc*)
11457 lt_cv_dlopen="LoadLibrary"
11462 lt_cv_dlopen="dlopen"
11467 # if libdl is installed we need to link against it
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11470 if ${ac_cv_lib_dl_dlopen+:} false; then :
11471 $as_echo_n "(cached) " >&6
11473 ac_check_lib_save_LIBS=$LIBS
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dl_dlopen=yes
11496 ac_cv_lib_dl_dlopen=no
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11503 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11504 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11508 lt_cv_dlopen="dyld"
11510 lt_cv_dlopen_self=yes
11517 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11518 if test "x$ac_cv_func_shl_load" = xyes; then :
11519 lt_cv_dlopen="shl_load"
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11522 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11523 if ${ac_cv_lib_dld_shl_load+:} false; then :
11524 $as_echo_n "(cached) " >&6
11526 ac_check_lib_save_LIBS=$LIBS
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11541 return shl_load ();
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 ac_cv_lib_dld_shl_load=yes
11549 ac_cv_lib_dld_shl_load=no
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11556 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11557 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11558 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11560 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11561 if test "x$ac_cv_func_dlopen" = xyes; then :
11562 lt_cv_dlopen="dlopen"
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11565 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11566 if ${ac_cv_lib_dl_dlopen+:} false; then :
11567 $as_echo_n "(cached) " >&6
11569 ac_check_lib_save_LIBS=$LIBS
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11589 if ac_fn_c_try_link "$LINENO"; then :
11590 ac_cv_lib_dl_dlopen=yes
11592 ac_cv_lib_dl_dlopen=no
11594 rm -f core conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11601 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11604 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11605 if ${ac_cv_lib_svld_dlopen+:} false; then :
11606 $as_echo_n "(cached) " >&6
11608 ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-lsvld $LIBS"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 ac_cv_lib_svld_dlopen=yes
11631 ac_cv_lib_svld_dlopen=no
11633 rm -f core conftest.err conftest.$ac_objext \
11634 conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11638 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11639 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11640 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11643 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11644 if ${ac_cv_lib_dld_dld_link+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 ac_check_lib_save_LIBS=$LIBS
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11662 return dld_link ();
11667 if ac_fn_c_try_link "$LINENO"; then :
11668 ac_cv_lib_dld_dld_link=yes
11670 ac_cv_lib_dld_dld_link=no
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11677 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11678 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11679 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11700 if test "x$lt_cv_dlopen" != xno; then
11706 case $lt_cv_dlopen in
11708 save_CPPFLAGS="$CPPFLAGS"
11709 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711 save_LDFLAGS="$LDFLAGS"
11712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715 LIBS="$lt_cv_dlopen_libs $LIBS"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11718 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self+:} false; then :
11720 $as_echo_n "(cached) " >&6
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self=cross
11725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726 lt_status=$lt_dlunknown
11727 cat > conftest.$ac_ext <<_LT_EOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11738 # define LT_DLGLOBAL RTLD_GLOBAL
11741 # define LT_DLGLOBAL DL_GLOBAL
11743 # define LT_DLGLOBAL 0
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11754 # define LT_DLLAZY_OR_NOW DL_LAZY
11757 # define LT_DLLAZY_OR_NOW RTLD_NOW
11760 # define LT_DLLAZY_OR_NOW DL_NOW
11762 # define LT_DLLAZY_OR_NOW 0
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 int fnord () __attribute__((visibility("default")));
11775 int fnord () { return 42; }
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11789 /* dlclose (self); */
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802 (./conftest; exit; ) >&5 2>/dev/null
11804 case x$lt_status in
11805 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810 # compilation failed
11811 lt_cv_dlopen_self=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11819 $as_echo "$lt_cv_dlopen_self" >&6; }
11821 if test "x$lt_cv_dlopen_self" = xyes; then
11822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11824 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11825 if ${lt_cv_dlopen_self_static+:} false; then :
11826 $as_echo_n "(cached) " >&6
11828 if test "$cross_compiling" = yes; then :
11829 lt_cv_dlopen_self_static=cross
11831 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832 lt_status=$lt_dlunknown
11833 cat > conftest.$ac_ext <<_LT_EOF
11834 #line $LINENO "configure"
11835 #include "confdefs.h"
11844 # define LT_DLGLOBAL RTLD_GLOBAL
11847 # define LT_DLGLOBAL DL_GLOBAL
11849 # define LT_DLGLOBAL 0
11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854 find out it does not work in some platform. */
11855 #ifndef LT_DLLAZY_OR_NOW
11857 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11860 # define LT_DLLAZY_OR_NOW DL_LAZY
11863 # define LT_DLLAZY_OR_NOW RTLD_NOW
11866 # define LT_DLLAZY_OR_NOW DL_NOW
11868 # define LT_DLLAZY_OR_NOW 0
11875 /* When -fvisbility=hidden is used, assume the code has been annotated
11876 correspondingly for the symbols needed. */
11877 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878 int fnord () __attribute__((visibility("default")));
11881 int fnord () { return 42; }
11884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885 int status = $lt_dlunknown;
11889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11892 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11893 else puts (dlerror ());
11895 /* dlclose (self); */
11903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904 (eval $ac_link) 2>&5
11906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11908 (./conftest; exit; ) >&5 2>/dev/null
11910 case x$lt_status in
11911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916 # compilation failed
11917 lt_cv_dlopen_self_static=no
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11925 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11928 CPPFLAGS="$save_CPPFLAGS"
11929 LDFLAGS="$save_LDFLAGS"
11934 case $lt_cv_dlopen_self in
11935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936 *) enable_dlopen_self=unknown ;;
11939 case $lt_cv_dlopen_self_static in
11940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941 *) enable_dlopen_self_static=unknown ;;
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11964 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11965 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11971 # FIXME - insert some real tests, host_os isn't really good enough
11974 if test -n "$STRIP" ; then
11975 striplib="$STRIP -x"
11976 old_striplib="$STRIP -S"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
12002 # Report which library types will actually be built
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12004 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12006 $as_echo "$can_build_shared" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12009 $as_echo_n "checking whether to build shared libraries... " >&6; }
12010 test "$can_build_shared" = "no" && enable_shared=no
12012 # On AIX, shared libraries and static libraries use the same namespace, and
12013 # are all built from PIC.
12016 test "$enable_shared" = yes && enable_static=no
12017 if test -n "$RANLIB"; then
12018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12019 postinstall_cmds='$RANLIB $lib'
12024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12025 test "$enable_shared" = yes && enable_static=no
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12030 $as_echo "$enable_shared" >&6; }
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12033 $as_echo_n "checking whether to build static libraries... " >&6; }
12034 # Make sure either enable_shared or enable_static is yes.
12035 test "$enable_shared" = yes || enable_static=yes
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12037 $as_echo "$enable_static" >&6; }
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12065 ac_config_commands="$ac_config_commands libtool"
12070 # Only expand once:
12075 # Test for 64-bit build.
12076 # The cast to long int works around a bug in the HP C Compiler
12077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12079 # This bug is HP SR number 8606223364.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12081 $as_echo_n "checking size of size_t... " >&6; }
12082 if ${ac_cv_sizeof_size_t+:} false; then :
12083 $as_echo_n "(cached) " >&6
12085 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12088 if test "$ac_cv_type_size_t" = yes; then
12089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error 77 "cannot compute sizeof (size_t)
12092 See \`config.log' for more details" "$LINENO" 5; }
12094 ac_cv_sizeof_size_t=0
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12100 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12104 cat >>confdefs.h <<_ACEOF
12105 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12111 $as_echo_n "checking for C compiler vendor... " >&6; }
12112 if ${ax_cv_c_compiler_vendor+:} false; then :
12113 $as_echo_n "(cached) " >&6
12115 # note: don't check for gcc first since some other compilers define __GNUC__
12116 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
12117 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
12118 pathscale: __PATHCC__,__PATHSCALE__
12121 sun: __SUNPRO_C,__SUNPRO_CC
12122 hp: __HP_cc,__HP_aCC
12123 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12124 borland: __BORLANDC__,__TURBOC__
12130 microsoft: _MSC_VER
12131 metrowerks: __MWERKS__
12132 watcom: __WATCOMC__
12135 for ventest in $vendors; do
12137 *:) vendor=$ventest; continue ;;
12138 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12155 if ac_fn_c_try_compile "$LINENO"; then :
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12164 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12171 # Check whether --enable-portable-binary was given.
12172 if test "${enable_portable_binary+set}" = set; then :
12173 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12175 acx_maxopt_portable=no
12179 # Try to determine "good" native compiler flags if none specified via CFLAGS
12180 if test "$ac_test_CFLAGS" != "set"; then
12182 case $ax_cv_c_compiler_vendor in
12183 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12184 if test "x$acx_maxopt_portable" = xno; then
12185 CFLAGS="$CFLAGS -arch host"
12188 sun) CFLAGS="-native -fast -xO5 -dalign"
12189 if test "x$acx_maxopt_portable" = xyes; then
12190 CFLAGS="$CFLAGS -xarch=generic"
12193 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
12194 if test "x$acx_maxopt_portable" = xyes; then
12195 CFLAGS="$CFLAGS +DAportable"
12198 ibm) if test "x$acx_maxopt_portable" = xno; then
12199 xlc_opt="-qarch=auto -qtune=auto"
12201 xlc_opt="-qtune=auto"
12203 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12205 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12206 if eval \${$as_CACHEVAR+:} false; then :
12207 $as_echo_n "(cached) " >&6
12210 ax_check_save_flags=$CFLAGS
12211 CFLAGS="$CFLAGS $xlc_opt"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224 eval "$as_CACHEVAR=yes"
12226 eval "$as_CACHEVAR=no"
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229 CFLAGS=$ax_check_save_flags
12231 eval ac_res=\$$as_CACHEVAR
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12233 $as_echo "$ac_res" >&6; }
12234 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12235 CFLAGS="-O3 -qansialias -w $xlc_opt"
12237 CFLAGS="-O3 -qansialias -w"
12238 echo "******************************************************"
12239 echo "* You seem to have the IBM C compiler. It is *"
12240 echo "* recommended for best performance that you use: *"
12242 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12244 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
12245 echo "* CPU you have. (Set the CFLAGS environment var. *"
12246 echo "* and re-run configure.) For more info, man cc. *"
12247 echo "******************************************************"
12252 intel) CFLAGS="-O3 -ansi_alias"
12253 if test "x$acx_maxopt_portable" = xno; then
12254 icc_archflag=unknown
12258 # icc accepts gcc assembly syntax, so these should work:
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
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12267 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12268 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12269 $as_echo_n "(cached) " >&6
12271 if test "$cross_compiling" = yes; then :
12272 ax_cv_gcc_x86_cpuid_0=unknown
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12281 int op = 0, eax, ebx, ecx, edx;
12284 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12286 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12287 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12295 if ac_fn_c_try_run "$LINENO"; then :
12296 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12298 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12301 conftest.$ac_objext conftest.beam conftest.$ac_ext
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12306 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12322 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12323 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12324 $as_echo_n "(cached) " >&6
12326 if test "$cross_compiling" = yes; then :
12327 ax_cv_gcc_x86_cpuid_1=unknown
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12336 int op = 1, eax, ebx, ecx, edx;
12339 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12341 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12342 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12350 if ac_fn_c_try_run "$LINENO"; then :
12351 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12353 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12356 conftest.$ac_objext conftest.beam conftest.$ac_ext
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12361 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12369 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12370 *:756e6547:*:*) # Intel
12371 case $ax_cv_gcc_x86_cpuid_1 in
12372 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12373 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12374 *f??:*:*:*) icc_flags="-xN -xW -xK";;
12378 if test "x$icc_flags" != x; then
12379 for flag in $icc_flags; do
12380 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12382 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12383 if eval \${$as_CACHEVAR+:} false; then :
12384 $as_echo_n "(cached) " >&6
12387 ax_check_save_flags=$CFLAGS
12388 CFLAGS="$CFLAGS $flag"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 eval "$as_CACHEVAR=yes"
12403 eval "$as_CACHEVAR=no"
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 CFLAGS=$ax_check_save_flags
12408 eval ac_res=\$$as_CACHEVAR
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12410 $as_echo "$ac_res" >&6; }
12411 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12412 icc_archflag=$flag; break
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12420 $as_echo_n "checking for icc architecture flag... " >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12422 $as_echo "$icc_archflag" >&6; }
12423 if test "x$icc_archflag" != xunknown; then
12424 CFLAGS="$CFLAGS $icc_archflag"
12430 # default optimization flags for gcc on all systems
12431 CFLAGS="-O3 -fomit-frame-pointer"
12433 # -malign-double for x86 systems
12434 # LIBFFI -- DON'T DO THIS - CHANGES ABI
12435 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12437 # -fstrict-aliasing for gcc-2.95+
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12439 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12440 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12441 $as_echo_n "(cached) " >&6
12444 ax_check_save_flags=$CFLAGS
12445 CFLAGS="$CFLAGS -fstrict-aliasing"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12457 if ac_fn_c_try_compile "$LINENO"; then :
12458 ax_cv_check_cflags___fstrict_aliasing=yes
12460 ax_cv_check_cflags___fstrict_aliasing=no
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463 CFLAGS=$ax_check_save_flags
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12466 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12467 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12468 CFLAGS="$CFLAGS -fstrict-aliasing"
12474 # note that we enable "unsafe" fp optimization with other compilers, too
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12476 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12477 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12478 $as_echo_n "(cached) " >&6
12481 ax_check_save_flags=$CFLAGS
12482 CFLAGS="$CFLAGS -ffast-math"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12494 if ac_fn_c_try_compile "$LINENO"; then :
12495 ax_cv_check_cflags___ffast_math=yes
12497 ax_cv_check_cflags___ffast_math=no
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 CFLAGS=$ax_check_save_flags
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12503 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12504 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12505 CFLAGS="$CFLAGS -ffast-math"
12515 # Check whether --with-gcc-arch was given.
12516 if test "${with_gcc_arch+set}" = set; then :
12517 withval=$with_gcc_arch; ax_gcc_arch=$withval
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12524 $as_echo_n "checking for gcc architecture flag... " >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12527 if ${ax_cv_gcc_archflag+:} false; then :
12528 $as_echo_n "(cached) " >&6
12531 ax_cv_gcc_archflag="unknown"
12533 if test "$GCC" = yes; then
12535 if test "x$ax_gcc_arch" = xyes; then
12537 if test "$cross_compiling" = no; then
12539 i[3456]86*|x86_64*) # use cpuid codes
12542 ac_cpp='$CPP $CPPFLAGS'
12543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12548 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12549 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12550 $as_echo_n "(cached) " >&6
12552 if test "$cross_compiling" = yes; then :
12553 ax_cv_gcc_x86_cpuid_0=unknown
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12562 int op = 0, eax, ebx, ecx, edx;
12565 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12567 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12568 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12576 if ac_fn_c_try_run "$LINENO"; then :
12577 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12579 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12582 conftest.$ac_objext conftest.beam conftest.$ac_ext
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12587 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12589 ac_cpp='$CPP $CPPFLAGS'
12590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597 ac_cpp='$CPP $CPPFLAGS'
12598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12603 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12604 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 if test "$cross_compiling" = yes; then :
12608 ax_cv_gcc_x86_cpuid_1=unknown
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12617 int op = 1, eax, ebx, ecx, edx;
12620 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12622 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12623 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12631 if ac_fn_c_try_run "$LINENO"; then :
12632 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12634 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12637 conftest.$ac_objext conftest.beam conftest.$ac_ext
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12642 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650 case $ax_cv_gcc_x86_cpuid_0 in
12651 *:756e6547:*:*) # Intel
12652 case $ax_cv_gcc_x86_cpuid_1 in
12653 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12654 *5??:*:*:*) ax_gcc_arch=pentium ;;
12655 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12656 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12657 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12658 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12659 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12660 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12661 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12662 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12663 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12664 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12665 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12666 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12667 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12669 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12670 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12672 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12674 *:68747541:*:*) # AMD
12675 case $ax_cv_gcc_x86_cpuid_1 in
12676 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12677 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12678 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12679 *60?:*:*:*) ax_gcc_arch=k7 ;;
12680 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12681 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12682 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12692 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12693 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 if test "$cross_compiling" = yes; then :
12697 ax_cv_gcc_x86_cpuid_0x80000006=unknown
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12706 int op = 0x80000006, eax, ebx, ecx, edx;
12709 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12711 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12712 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12720 if ac_fn_c_try_run "$LINENO"; then :
12721 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12723 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726 conftest.$ac_objext conftest.beam conftest.$ac_ext
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12731 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739 case $ax_cv_gcc_x86_cpuid_0x80000006 in
12740 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12741 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12742 *) ax_gcc_arch="athlon-4 athlon k7" ;;
12744 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12745 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12746 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12747 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12748 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12749 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12750 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12752 *:746e6543:*:*) # IDT
12753 case $ax_cv_gcc_x86_cpuid_1 in
12754 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12755 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12756 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12757 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12760 if test x"$ax_gcc_arch" = x; then # fallback
12762 i586*) ax_gcc_arch=pentium ;;
12763 i686*) ax_gcc_arch=pentiumpro ;;
12769 # Extract the first word of "prtdiag", so it can be a program name with args.
12770 set dummy prtdiag; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if ${ac_cv_path_PRTDIAG+:} false; then :
12774 $as_echo_n "(cached) " >&6
12778 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12783 for as_dir in $as_dummy
12786 test -z "$as_dir" && as_dir=.
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12797 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12801 PRTDIAG=$ac_cv_path_PRTDIAG
12802 if test -n "$PRTDIAG"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12804 $as_echo "$PRTDIAG" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12811 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`
12812 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12814 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12815 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12816 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12817 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12818 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12819 *cypress*) ax_gcc_arch=cypress ;;
12822 alphaev5) ax_gcc_arch=ev5 ;;
12823 alphaev56) ax_gcc_arch=ev56 ;;
12824 alphapca56) ax_gcc_arch="pca56 ev56" ;;
12825 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12826 alphaev6) ax_gcc_arch=ev6 ;;
12827 alphaev67) ax_gcc_arch=ev67 ;;
12828 alphaev68) ax_gcc_arch="ev68 ev67" ;;
12829 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12830 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12831 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12834 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`
12835 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12837 *750*) ax_gcc_arch="750 G3" ;;
12838 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12839 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12840 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12841 *970*) ax_gcc_arch="970 G5 power4";;
12842 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12843 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12844 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12845 *) ax_gcc_arch=$cputype ;;
12847 ax_gcc_arch="$ax_gcc_arch powerpc"
12850 fi # not cross-compiling
12853 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12854 for arch in $ax_gcc_arch; do
12855 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12856 flags="-mtune=$arch"
12857 # -mcpu=$arch and m$arch generate nonportable code on every arch except
12858 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12859 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12861 flags="-march=$arch -mcpu=$arch -m$arch"
12863 for flag in $flags; do
12864 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12866 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12867 if eval \${$as_CACHEVAR+:} false; then :
12868 $as_echo_n "(cached) " >&6
12871 ax_check_save_flags=$CFLAGS
12872 CFLAGS="$CFLAGS $flag"
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 eval "$as_CACHEVAR=yes"
12887 eval "$as_CACHEVAR=no"
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890 CFLAGS=$ax_check_save_flags
12892 eval ac_res=\$$as_CACHEVAR
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12894 $as_echo "$ac_res" >&6; }
12895 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12896 ax_cv_gcc_archflag=$flag; break
12902 test "x$ax_cv_gcc_archflag" = xunknown || break
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12911 $as_echo_n "checking for gcc architecture flag... " >&6; }
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12913 $as_echo "$ax_cv_gcc_archflag" >&6; }
12914 if test "x$ax_cv_gcc_archflag" = xunknown; then
12917 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12923 if test -z "$CFLAGS"; then
12925 echo "********************************************************"
12926 echo "* WARNING: Don't know the best CFLAGS for this system *"
12927 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12928 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12929 echo "********************************************************"
12934 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12936 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12937 if eval \${$as_CACHEVAR+:} false; then :
12938 $as_echo_n "(cached) " >&6
12941 ax_check_save_flags=$CFLAGS
12942 CFLAGS="$CFLAGS $CFLAGS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12954 if ac_fn_c_try_compile "$LINENO"; then :
12955 eval "$as_CACHEVAR=yes"
12957 eval "$as_CACHEVAR=no"
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 CFLAGS=$ax_check_save_flags
12962 eval ac_res=\$$as_CACHEVAR
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12964 $as_echo "$ac_res" >&6; }
12965 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12970 echo "********************************************************"
12971 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12972 echo "* your compiler. *"
12973 echo "* Use ./configure CFLAGS=... to specify your own flags *"
12974 echo "********************************************************"
12983 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12985 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12986 if ${CFLAGS+:} false; then :
12987 case " $CFLAGS " in
12989 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12990 (: CFLAGS already contains ) 2>&5
12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993 test $ac_status = 0; }
12996 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12997 (: CFLAGS="$CFLAGS ") 2>&5
12999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000 test $ac_status = 0; }
13009 ac_cpp='$CPP $CPPFLAGS'
13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13015 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13016 if ${ac_cv_cflags_warn_all+:} false; then :
13017 $as_echo_n "(cached) " >&6
13019 ac_cv_cflags_warn_all="no, unknown"
13020 ac_save_CFLAGS="$CFLAGS"
13021 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" #
13022 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 CFLAGS="$ac_save_CFLAGS"
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13043 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13045 case ".$ac_cv_cflags_warn_all" in
13048 *) if ${CFLAGS+:} false; then :
13049 case " $CFLAGS " in
13050 *" $ac_cv_cflags_warn_all "*)
13051 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13052 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13055 test $ac_status = 0; }
13058 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13059 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }
13063 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13067 CFLAGS="$ac_cv_cflags_warn_all"
13073 ac_cpp='$CPP $CPPFLAGS'
13074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081 if test "x$GCC" = "xyes"; then
13082 CFLAGS="$CFLAGS -fexceptions"
13085 cat > local.exp <<EOF
13086 set CC_FOR_TARGET "$CC"
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13093 # Check whether --enable-maintainer-mode was given.
13094 if test "${enable_maintainer_mode+set}" = set; then :
13095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13097 USE_MAINTAINER_MODE=no
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13102 if test $USE_MAINTAINER_MODE = yes; then
13103 MAINTAINER_MODE_TRUE=
13104 MAINTAINER_MODE_FALSE='#'
13106 MAINTAINER_MODE_TRUE='#'
13107 MAINTAINER_MODE_FALSE=
13110 MAINT=$MAINTAINER_MODE_TRUE
13114 for ac_header in sys/mman.h
13116 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13117 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13118 cat >>confdefs.h <<_ACEOF
13119 #define HAVE_SYS_MMAN_H 1
13126 for ac_func in mmap
13128 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13129 if test "x$ac_cv_func_mmap" = xyes; then :
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_MMAP 1
13138 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13139 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13140 libffi_header_sys_mman_h=yes
13142 libffi_header_sys_mman_h=no
13146 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13147 if test "x$ac_cv_func_mmap" = xyes; then :
13148 libffi_func_mmap=yes
13150 libffi_func_mmap=no
13153 if test "$libffi_header_sys_mman_h" != yes \
13154 || test "$libffi_func_mmap" != yes; then
13155 ac_cv_func_mmap_file=no
13156 ac_cv_func_mmap_dev_zero=no
13157 ac_cv_func_mmap_anon=no
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13160 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13161 if ${ac_cv_func_mmap_file+:} false; then :
13162 $as_echo_n "(cached) " >&6
13164 # Add a system to this blacklist if
13165 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13166 # memory area containing the same data that you'd get if you applied
13167 # read() to the same fd. The only system known to have a problem here
13168 # is VMS, where text files have record structure.
13171 ac_cv_func_mmap_file=no ;;
13173 ac_cv_func_mmap_file=yes;;
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13177 $as_echo "$ac_cv_func_mmap_file" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13179 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13180 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13181 $as_echo_n "(cached) " >&6
13183 # Add a system to this blacklist if it has mmap() but /dev/zero
13184 # does not exist, or if mmapping /dev/zero does not give anonymous
13185 # zeroed pages with both the following properties:
13186 # 1. If you map N consecutive pages in with one call, and then
13187 # unmap any subset of those pages, the pages that were not
13188 # explicitly unmapped remain accessible.
13189 # 2. If you map two adjacent blocks of memory and then unmap them
13190 # both at once, they must both go away.
13191 # Systems known to be in this category are Windows (all variants),
13194 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13195 ac_cv_func_mmap_dev_zero=no ;;
13197 ac_cv_func_mmap_dev_zero=yes;;
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13201 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13203 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13205 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13206 if ${ac_cv_decl_map_anon+:} false; then :
13207 $as_echo_n "(cached) " >&6
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 #include <sys/types.h>
13212 #include <sys/mman.h>
13213 #include <unistd.h>
13215 #ifndef MAP_ANONYMOUS
13216 #define MAP_ANONYMOUS MAP_ANON
13222 int n = MAP_ANONYMOUS;
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228 ac_cv_decl_map_anon=yes
13230 ac_cv_decl_map_anon=no
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13235 $as_echo "$ac_cv_decl_map_anon" >&6; }
13237 if test $ac_cv_decl_map_anon = no; then
13238 ac_cv_func_mmap_anon=no
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13241 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13242 if ${ac_cv_func_mmap_anon+:} false; then :
13243 $as_echo_n "(cached) " >&6
13245 # Add a system to this blacklist if it has mmap() and MAP_ANON or
13246 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13247 # doesn't give anonymous zeroed pages with the same properties listed
13248 # above for use of /dev/zero.
13249 # Systems known to be in this category are Windows, VMS, and SCO Unix.
13251 vms* | cygwin* | pe | mingw* | sco* | udk* )
13252 ac_cv_func_mmap_anon=no ;;
13254 ac_cv_func_mmap_anon=yes;;
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13258 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13262 if test $ac_cv_func_mmap_file = yes; then
13264 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13267 if test $ac_cv_func_mmap_dev_zero = yes; then
13269 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13272 if test $ac_cv_func_mmap_anon = yes; then
13274 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13279 if test -d $srcdir/testsuite; then
13281 TESTSUBDIR_FALSE='#'
13283 TESTSUBDIR_TRUE='#'
13288 TARGETDIR="unknown"
13291 TARGET=AARCH64; TARGETDIR=aarch64
13295 TARGET=ALPHA; TARGETDIR=alpha;
13296 # Support 128-bit long double, changeable via command-line switch.
13297 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13301 TARGET=ARM; TARGETDIR=arm
13304 amd64-*-freebsd* | amd64-*-openbsd*)
13305 TARGET=X86_64; TARGETDIR=x86
13309 TARGET=X86_64; TARGETDIR=x86
13313 TARGET=X86_64; TARGETDIR=x86
13317 TARGET=AVR32; TARGETDIR=avr32
13321 TARGET=BFIN; TARGETDIR=bfin
13325 TARGET=LIBFFI_CRIS; TARGETDIR=cris
13329 TARGET=FRV; TARGETDIR=frv
13332 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13333 TARGET=PA_LINUX; TARGETDIR=pa
13336 TARGET=PA64_HPUX; TARGETDIR=pa
13339 TARGET=PA_HPUX; TARGETDIR=pa
13342 i?86-*-freebsd* | i?86-*-openbsd*)
13343 TARGET=X86_FREEBSD; TARGETDIR=x86
13345 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13346 TARGET=X86_WIN32; TARGETDIR=x86
13347 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13348 # We must also check with_cross_host to decide if this is a native
13349 # or cross-build and select where to install dlls appropriately.
13350 if test -n "$with_cross_host" &&
13351 test x"$with_cross_host" != x"no"; then
13352 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13354 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13358 TARGET=X86_DARWIN; TARGETDIR=x86
13360 i?86-*-solaris2.1[0-9]*)
13362 if test $ac_cv_sizeof_size_t = 4; then
13370 TARGET=X86_DARWIN; TARGETDIR=x86
13373 x86_64-*-cygwin* | x86_64-*-mingw*)
13374 TARGET=X86_WIN64; TARGETDIR=x86
13375 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13376 # We must also check with_cross_host to decide if this is a native
13377 # or cross-build and select where to install dlls appropriately.
13378 if test -n "$with_cross_host" &&
13379 test x"$with_cross_host" != x"no"; then
13380 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13382 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13386 i?86-*-* | x86_64-*-*)
13388 if test $ac_cv_sizeof_size_t = 4; then
13403 TARGET=IA64; TARGETDIR=ia64
13407 TARGET=M32R; TARGETDIR=m32r
13411 TARGET=M68K; TARGETDIR=m68k
13415 TARGET=MICROBLAZE; TARGETDIR=microblaze
13419 TARGET=MOXIE; TARGETDIR=moxie
13422 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13423 TARGET=MIPS; TARGETDIR=mips
13425 mips*-*-linux* | mips*-*-openbsd*)
13426 # Support 128-bit long double for NewABI.
13427 HAVE_LONG_DOUBLE='defined(__mips64)'
13428 TARGET=MIPS; TARGETDIR=mips
13431 powerpc*-*-linux* | powerpc-*-sysv*)
13432 TARGET=POWERPC; TARGETDIR=powerpc
13434 powerpc-*-amigaos*)
13435 TARGET=POWERPC; TARGETDIR=powerpc
13438 TARGET=POWERPC; TARGETDIR=powerpc
13440 powerpc-*-darwin* | powerpc64-*-darwin*)
13441 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13443 powerpc-*-aix* | rs6000-*-aix*)
13444 TARGET=POWERPC_AIX; TARGETDIR=powerpc
13446 powerpc-*-freebsd* | powerpc-*-openbsd*)
13447 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13449 powerpc64-*-freebsd*)
13450 TARGET=POWERPC; TARGETDIR=powerpc
13453 TARGET=POWERPC; TARGETDIR=powerpc
13456 s390-*-* | s390x-*-*)
13457 TARGET=S390; TARGETDIR=s390
13460 sh-*-* | sh[34]*-*-*)
13461 TARGET=SH; TARGETDIR=sh
13463 sh64-*-* | sh5*-*-*)
13464 TARGET=SH64; TARGETDIR=sh64
13468 TARGET=SPARC; TARGETDIR=sparc
13472 TARGET=TILE; TARGETDIR=tile
13476 TARGET=XTENSA; TARGETDIR=xtensa
13484 if test $TARGETDIR = unknown; then
13485 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13488 if test x$TARGET = xMIPS; then
13496 if test x$TARGET = xBFIN; then
13504 if test x$TARGET = xSPARC; then
13512 if test x$TARGET = xX86; then
13520 if test x$TARGET = xX86_FREEBSD; then
13522 X86_FREEBSD_FALSE='#'
13524 X86_FREEBSD_TRUE='#'
13528 if test x$TARGET = xX86_WIN32; then
13530 X86_WIN32_FALSE='#'
13536 if test x$TARGET = xX86_WIN64; then
13538 X86_WIN64_FALSE='#'
13544 if test x$TARGET = xX86_DARWIN; then
13546 X86_DARWIN_FALSE='#'
13548 X86_DARWIN_TRUE='#'
13552 if test x$TARGET = xALPHA; then
13560 if test x$TARGET = xIA64; then
13568 if test x$TARGET = xM32R; then
13576 if test x$TARGET = xM68K; then
13584 if test x$TARGET = xMICROBLAZE; then
13586 MICROBLAZE_FALSE='#'
13588 MICROBLAZE_TRUE='#'
13592 if test x$TARGET = xMOXIE; then
13600 if test x$TARGET = xPOWERPC; then
13608 if test x$TARGET = xPOWERPC_AIX; then
13610 POWERPC_AIX_FALSE='#'
13612 POWERPC_AIX_TRUE='#'
13616 if test x$TARGET = xPOWERPC_DARWIN; then
13617 POWERPC_DARWIN_TRUE=
13618 POWERPC_DARWIN_FALSE='#'
13620 POWERPC_DARWIN_TRUE='#'
13621 POWERPC_DARWIN_FALSE=
13624 if test x$TARGET = xPOWERPC_FREEBSD; then
13625 POWERPC_FREEBSD_TRUE=
13626 POWERPC_FREEBSD_FALSE='#'
13628 POWERPC_FREEBSD_TRUE='#'
13629 POWERPC_FREEBSD_FALSE=
13632 if test x$TARGET = xAARCH64; then
13640 if test x$TARGET = xARM; then
13648 if test x$TARGET = xAVR32; then
13656 if test x$TARGET = xLIBFFI_CRIS; then
13658 LIBFFI_CRIS_FALSE='#'
13660 LIBFFI_CRIS_TRUE='#'
13664 if test x$TARGET = xFRV; then
13672 if test x$TARGET = xS390; then
13680 if test x$TARGET = xX86_64; then
13688 if test x$TARGET = xSH; then
13696 if test x$TARGET = xSH64; then
13704 if test x$TARGET = xPA_LINUX; then
13712 if test x$TARGET = xPA_HPUX; then
13720 if test x$TARGET = xPA64_HPUX; then
13722 PA64_HPUX_FALSE='#'
13728 if test x$TARGET = xTILE; then
13736 if test x$TARGET = xXTENSA; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13746 $as_echo_n "checking for ANSI C header files... " >&6; }
13747 if ${ac_cv_header_stdc+:} false; then :
13748 $as_echo_n "(cached) " >&6
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13752 #include <stdlib.h>
13753 #include <stdarg.h>
13754 #include <string.h>
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766 ac_cv_header_stdc=yes
13768 ac_cv_header_stdc=no
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772 if test $ac_cv_header_stdc = yes; then
13773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <string.h>
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780 $EGREP "memchr" >/dev/null 2>&1; then :
13783 ac_cv_header_stdc=no
13789 if test $ac_cv_header_stdc = yes; then
13790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 #include <stdlib.h>
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797 $EGREP "free" >/dev/null 2>&1; then :
13800 ac_cv_header_stdc=no
13806 if test $ac_cv_header_stdc = yes; then
13807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13808 if test "$cross_compiling" = yes; then :
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h. */
13814 #include <stdlib.h>
13815 #if ((' ' & 0x0FF) == 0x020)
13816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13819 # define ISLOWER(c) \
13820 (('a' <= (c) && (c) <= 'i') \
13821 || ('j' <= (c) && (c) <= 'r') \
13822 || ('s' <= (c) && (c) <= 'z'))
13823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13831 for (i = 0; i < 256; i++)
13832 if (XOR (islower (i), ISLOWER (i))
13833 || toupper (i) != TOUPPER (i))
13838 if ac_fn_c_try_run "$LINENO"; then :
13841 ac_cv_header_stdc=no
13843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13844 conftest.$ac_objext conftest.beam conftest.$ac_ext
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13850 $as_echo "$ac_cv_header_stdc" >&6; }
13851 if test $ac_cv_header_stdc = yes; then
13853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13857 for ac_func in memcpy
13859 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13860 if test "x$ac_cv_func_memcpy" = xyes; then :
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_MEMCPY 1
13868 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13869 if test "x$ac_cv_type_size_t" = xyes; then :
13873 cat >>confdefs.h <<_ACEOF
13874 #define size_t unsigned int
13879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13880 # for constant arguments. Useless!
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13882 $as_echo_n "checking for working alloca.h... " >&6; }
13883 if ${ac_cv_working_alloca_h+:} false; then :
13884 $as_echo_n "(cached) " >&6
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <alloca.h>
13892 char *p = (char *) alloca (2 * sizeof (int));
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 ac_cv_working_alloca_h=yes
13901 ac_cv_working_alloca_h=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13907 $as_echo "$ac_cv_working_alloca_h" >&6; }
13908 if test $ac_cv_working_alloca_h = yes; then
13910 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13915 $as_echo_n "checking for alloca... " >&6; }
13916 if ${ac_cv_func_alloca_works+:} false; then :
13917 $as_echo_n "(cached) " >&6
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13922 # define alloca __builtin_alloca
13925 # include <malloc.h>
13926 # define alloca _alloca
13928 # ifdef HAVE_ALLOCA_H
13929 # include <alloca.h>
13934 # ifndef alloca /* predefined by HP cc +Olibcalls */
13935 void *alloca (size_t);
13945 char *p = (char *) alloca (1);
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 ac_cv_func_alloca_works=yes
13954 ac_cv_func_alloca_works=no
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13960 $as_echo "$ac_cv_func_alloca_works" >&6; }
13962 if test $ac_cv_func_alloca_works = yes; then
13964 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13967 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13968 # that cause trouble. Some versions do not even contain alloca or
13969 # contain a buggy version. If you still want to use their alloca,
13970 # use ar to extract alloca.o from them instead of compiling alloca.c.
13972 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13974 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13978 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13979 if ${ac_cv_os_cray+:} false; then :
13980 $as_echo_n "(cached) " >&6
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13984 #if defined CRAY && ! defined CRAY2
13991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13992 $EGREP "webecray" >/dev/null 2>&1; then :
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14001 $as_echo "$ac_cv_os_cray" >&6; }
14002 if test $ac_cv_os_cray = yes; then
14003 for ac_func in _getb67 GETB67 getb67; do
14004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14008 cat >>confdefs.h <<_ACEOF
14009 #define CRAY_STACKSEG_END $ac_func
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14019 $as_echo_n "checking stack direction for C alloca... " >&6; }
14020 if ${ac_cv_c_stack_direction+:} false; then :
14021 $as_echo_n "(cached) " >&6
14023 if test "$cross_compiling" = yes; then :
14024 ac_cv_c_stack_direction=0
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028 $ac_includes_default
14030 find_stack_direction (int *addr, int depth)
14032 int dir, dummy = 0;
14035 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14036 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14037 return dir + dummy;
14041 main (int argc, char **argv)
14043 return find_stack_direction (0, argc + !argv + 20) < 0;
14046 if ac_fn_c_try_run "$LINENO"; then :
14047 ac_cv_c_stack_direction=1
14049 ac_cv_c_stack_direction=-1
14051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14052 conftest.$ac_objext conftest.beam conftest.$ac_ext
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14057 $as_echo "$ac_cv_c_stack_direction" >&6; }
14058 cat >>confdefs.h <<_ACEOF
14059 #define STACK_DIRECTION $ac_cv_c_stack_direction
14066 # The cast to long int works around a bug in the HP C Compiler
14067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14069 # This bug is HP SR number 8606223364.
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14071 $as_echo_n "checking size of double... " >&6; }
14072 if ${ac_cv_sizeof_double+:} false; then :
14073 $as_echo_n "(cached) " >&6
14075 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
14078 if test "$ac_cv_type_double" = yes; then
14079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14081 as_fn_error 77 "cannot compute sizeof (double)
14082 See \`config.log' for more details" "$LINENO" 5; }
14084 ac_cv_sizeof_double=0
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14090 $as_echo "$ac_cv_sizeof_double" >&6; }
14094 cat >>confdefs.h <<_ACEOF
14095 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14099 # The cast to long int works around a bug in the HP C Compiler
14100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14102 # This bug is HP SR number 8606223364.
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14104 $as_echo_n "checking size of long double... " >&6; }
14105 if ${ac_cv_sizeof_long_double+:} false; then :
14106 $as_echo_n "(cached) " >&6
14108 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
14111 if test "$ac_cv_type_long_double" = yes; then
14112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14114 as_fn_error 77 "cannot compute sizeof (long double)
14115 See \`config.log' for more details" "$LINENO" 5; }
14117 ac_cv_sizeof_long_double=0
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14123 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14127 cat >>confdefs.h <<_ACEOF
14128 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14133 # Also AC_SUBST this variable for ffi.h.
14134 if test -z "$HAVE_LONG_DOUBLE"; then
14136 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14137 if test $ac_cv_sizeof_long_double != 0; then
14140 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14148 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14149 if ${ac_cv_c_bigendian+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 ac_cv_c_bigendian=unknown
14153 # See if we're dealing with a universal compiler.
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156 #ifndef __APPLE_CC__
14157 not a universal capable compiler
14162 if ac_fn_c_try_compile "$LINENO"; then :
14164 # Check for potential -arch flags. It is not universal unless
14165 # there are at least two -arch flags with different values.
14168 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14169 if test -n "$ac_prev"; then
14171 i?86 | x86_64 | ppc | ppc64)
14172 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14175 ac_cv_c_bigendian=universal
14181 elif test "x$ac_word" = "x-arch"; then
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 if test $ac_cv_c_bigendian = unknown; then
14188 # See if sys/param.h defines the BYTE_ORDER macro.
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14191 #include <sys/types.h>
14192 #include <sys/param.h>
14197 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14198 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14200 bogus endian macros
14207 if ac_fn_c_try_compile "$LINENO"; then :
14208 # It does; now see whether it defined to BIG_ENDIAN or not.
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 #include <sys/types.h>
14212 #include <sys/param.h>
14217 #if BYTE_ORDER != BIG_ENDIAN
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226 ac_cv_c_bigendian=yes
14228 ac_cv_c_bigendian=no
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 if test $ac_cv_c_bigendian = unknown; then
14235 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 #include <limits.h>
14243 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14244 bogus endian macros
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 # It does; now see whether it defined to _BIG_ENDIAN or not.
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14255 #include <limits.h>
14260 #ifndef _BIG_ENDIAN
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269 ac_cv_c_bigendian=yes
14271 ac_cv_c_bigendian=no
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 if test $ac_cv_c_bigendian = unknown; then
14278 # Compile a test program.
14279 if test "$cross_compiling" = yes; then :
14280 # Try to guess by grepping values from an object file.
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 short int ascii_mm[] =
14284 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14285 short int ascii_ii[] =
14286 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14287 int use_ascii (int i) {
14288 return ascii_mm[i] + ascii_ii[i];
14290 short int ebcdic_ii[] =
14291 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14292 short int ebcdic_mm[] =
14293 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14294 int use_ebcdic (int i) {
14295 return ebcdic_mm[i] + ebcdic_ii[i];
14302 return use_ascii (foo) == use_ebcdic (foo);
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14309 ac_cv_c_bigendian=yes
14311 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14312 if test "$ac_cv_c_bigendian" = unknown; then
14313 ac_cv_c_bigendian=no
14315 # finding both strings is unlikely to happen, but who knows?
14316 ac_cv_c_bigendian=unknown
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 $ac_includes_default
14329 /* Are we little or big endian? From Harbison&Steele. */
14333 char c[sizeof (long int)];
14336 return u.c[sizeof (long int) - 1] == 1;
14342 if ac_fn_c_try_run "$LINENO"; then :
14343 ac_cv_c_bigendian=no
14345 ac_cv_c_bigendian=yes
14347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14348 conftest.$ac_objext conftest.beam conftest.$ac_ext
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14354 $as_echo "$ac_cv_c_bigendian" >&6; }
14355 case $ac_cv_c_bigendian in #(
14357 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14363 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14367 as_fn_error $? "unknown endianness
14368 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14373 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14374 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14375 $as_echo_n "(cached) " >&6
14378 gcc_cv_as_cfi_pseudo_op=unknown
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 asm (".cfi_startproc\n\t.cfi_endproc");
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391 gcc_cv_as_cfi_pseudo_op=yes
14393 gcc_cv_as_cfi_pseudo_op=no
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14399 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14400 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14402 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14407 if test x$TARGET = xSPARC; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14409 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14410 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14411 $as_echo_n "(cached) " >&6
14414 save_CFLAGS="$CFLAGS"
14415 save_LDFLAGS="$LDFLAGS"
14416 CFLAGS="$CFLAGS -fpic"
14417 LDFLAGS="$LDFLAGS -shared"
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14429 if ac_fn_c_try_link "$LINENO"; then :
14430 libffi_cv_as_sparc_ua_pcrel=yes
14432 libffi_cv_as_sparc_ua_pcrel=no
14434 rm -f core conftest.err conftest.$ac_objext \
14435 conftest$ac_exeext conftest.$ac_ext
14436 CFLAGS="$save_CFLAGS"
14437 LDFLAGS="$save_LDFLAGS"
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14440 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14441 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14443 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14448 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14449 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14450 $as_echo_n "(cached) " >&6
14453 libffi_cv_as_register_pseudo_op=unknown
14454 # Check if we have .register
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14461 asm (".register %g2, #scratch");
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 libffi_cv_as_register_pseudo_op=yes
14469 libffi_cv_as_register_pseudo_op=no
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14475 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14476 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14478 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14483 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14485 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14486 if ${libffi_cv_as_x86_pcrel+:} false; then :
14487 $as_echo_n "(cached) " >&6
14490 libffi_cv_as_x86_pcrel=no
14491 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14492 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14493 libffi_cv_as_x86_pcrel=yes
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14498 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14499 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14501 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14506 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14507 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14508 $as_echo_n "(cached) " >&6
14511 libffi_cv_as_ascii_pseudo_op=unknown
14512 # Check if we have .ascii
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h. */
14519 asm (".ascii \\"string\\"");
14524 if ac_fn_c_try_compile "$LINENO"; then :
14525 libffi_cv_as_ascii_pseudo_op=yes
14527 libffi_cv_as_ascii_pseudo_op=no
14529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14533 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14534 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14536 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14541 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14542 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14543 $as_echo_n "(cached) " >&6
14546 libffi_cv_as_string_pseudo_op=unknown
14547 # Check if we have .string
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14554 asm (".string \\"string\\"");
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560 libffi_cv_as_string_pseudo_op=yes
14562 libffi_cv_as_string_pseudo_op=no
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14568 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14569 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14571 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14576 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14577 # Check whether --enable-pax_emutramp was given.
14578 if test "${enable_pax_emutramp+set}" = set; then :
14579 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14581 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14587 if test x$TARGET = xX86_WIN64; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14589 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14590 if ${lt_cv_sys_symbol_underscore+:} false; then :
14591 $as_echo_n "(cached) " >&6
14593 lt_cv_sys_symbol_underscore=no
14594 cat > conftest.$ac_ext <<_LT_EOF
14595 void nm_test_func(){}
14596 int main(){nm_test_func;return 0;}
14598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14599 (eval $ac_compile) 2>&5
14601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602 test $ac_status = 0; }; then
14603 # Now try to grab the symbols.
14604 ac_nlist=conftest.nm
14605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14606 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; } && test -s "$ac_nlist"; then
14610 # See whether the symbols have a leading underscore.
14611 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14612 lt_cv_sys_symbol_underscore=yes
14614 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14617 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14621 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14624 echo "configure: failed program was:" >&5
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14631 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14632 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14635 if test "x$sys_symbol_underscore" = xyes; then
14637 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14642 FFI_EXEC_TRAMPOLINE_TABLE=0
14644 *arm*-apple-darwin*)
14645 FFI_EXEC_TRAMPOLINE_TABLE=1
14647 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14650 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14652 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14656 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14657 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14658 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14660 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14661 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14666 if test x$TARGET = xX86_64; then
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14668 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14669 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14670 $as_echo_n "(cached) " >&6
14673 libffi_cv_as_x86_64_unwind_section_type=yes
14674 echo '.section .eh_frame,"a",@unwind' > conftest.s
14675 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14676 libffi_cv_as_x86_64_unwind_section_type=no
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14681 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14682 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14684 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14689 if test "x$GCC" = "xyes"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14691 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14692 if ${libffi_cv_ro_eh_frame+:} false; then :
14693 $as_echo_n "(cached) " >&6
14696 libffi_cv_ro_eh_frame=no
14697 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14698 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14699 objdump -h conftest.o > conftest.dump 2>&1
14700 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14701 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14702 sed -n $libffi_test_line conftest.dump > conftest.line
14703 if grep READONLY conftest.line > /dev/null; then
14704 libffi_cv_ro_eh_frame=yes
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14711 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14712 if test "x$libffi_cv_ro_eh_frame" = xyes; then
14714 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14717 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14721 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14726 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14727 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14728 $as_echo_n "(cached) " >&6
14731 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
14732 libffi_cv_hidden_visibility_attribute=no
14733 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14735 (eval $ac_try) 2>&5
14737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14738 test $ac_status = 0; }; }; then
14739 if grep '\.hidden.*foo' conftest.s >/dev/null; then
14740 libffi_cv_hidden_visibility_attribute=yes
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14747 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14748 if test $libffi_cv_hidden_visibility_attribute = yes; then
14750 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14762 # Check whether --enable-debug was given.
14763 if test "${enable_debug+set}" = set; then :
14764 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14766 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14771 if test "$enable_debug" = "yes"; then
14773 FFI_DEBUG_FALSE='#'
14780 # Check whether --enable-structs was given.
14781 if test "${enable_structs+set}" = set; then :
14782 enableval=$enable_structs; if test "$enable_structs" = "no"; then
14784 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14789 if test "$enable_debug" = "yes"; then
14791 FFI_DEBUG_FALSE='#'
14798 # Check whether --enable-raw-api was given.
14799 if test "${enable_raw_api+set}" = set; then :
14800 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14802 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14808 # Check whether --enable-purify-safety was given.
14809 if test "${enable_purify_safety+set}" = set; then :
14810 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14812 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14818 # These variables are only ever used when we cross-build to X86_WIN32.
14819 # And we only support this with GCC, so...
14820 if test "x$GCC" = "xyes"; then
14821 if test -n "$with_cross_host" &&
14822 test x"$with_cross_host" != x"no"; then
14823 toolexecdir='$(exec_prefix)/$(target_alias)'
14824 toolexeclibdir='$(toolexecdir)/lib'
14826 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14827 toolexeclibdir='$(libdir)'
14829 multi_os_directory=`$CC -print-multi-os-directory`
14830 case $multi_os_directory in
14831 .) ;; # Avoid trailing /.
14832 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14836 toolexeclibdir='$(libdir)'
14840 ac_config_commands="$ac_config_commands include"
14842 ac_config_commands="$ac_config_commands src"
14845 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14848 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14851 cat >confcache <<\_ACEOF
14852 # This file is a shell script that caches the results of configure
14853 # tests run on this system so they can be shared between configure
14854 # scripts and configure runs, see configure's option --config-cache.
14855 # It is not useful on other systems. If it contains results you don't
14856 # want to keep, you may remove or edit it.
14858 # config.status only pays attention to the cache file if you give it
14859 # the --recheck option to rerun configure.
14861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14863 # following values.
14867 # The following way of writing the cache mishandles newlines in values,
14868 # but we know of no workaround that is simple, portable, and efficient.
14869 # So, we kill variables containing newlines.
14870 # Ultrix sh set writes to stderr and can't be redirected directly,
14871 # and sets the high bit in the cache file unless we assign to the vars.
14873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14874 eval ac_val=\$$ac_var
14878 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14879 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14882 _ | IFS | as_nl) ;; #(
14883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14884 *) { eval $ac_var=; unset $ac_var;} ;;
14890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14891 *${as_nl}ac_space=\ *)
14892 # `set' does not quote correctly, so add quotes: double-quote
14893 # substitution turns \\\\ into \\, and sed turns \\ into \.
14896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14899 # `set' quotes correctly as required by POSIX, so do not add quotes.
14900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14909 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14911 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14914 if test -w "$cache_file"; then
14915 if test "x$cache_file" != "x/dev/null"; then
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14917 $as_echo "$as_me: updating cache $cache_file" >&6;}
14918 if test ! -f "$cache_file" || test -h "$cache_file"; then
14919 cat confcache >"$cache_file"
14921 case $cache_file in #(
14923 mv -f confcache "$cache_file"$$ &&
14924 mv -f "$cache_file"$$ "$cache_file" ;; #(
14926 mv -f confcache "$cache_file" ;;
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14932 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14938 # Let make expand exec_prefix.
14939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14941 DEFS=-DHAVE_CONFIG_H
14946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14947 # 1. Remove the extension, and $U if already installed.
14948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14949 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14951 # will be set to the directory where LIBOBJS objects are built.
14952 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14953 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14955 LIBOBJS=$ac_libobjs
14957 LTLIBOBJS=$ac_ltlibobjs
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14961 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14962 if test -n "$am_sleep_pid"; then
14963 # Hide warnings about reused PIDs.
14964 wait $am_sleep_pid 2>/dev/null
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14967 $as_echo "done" >&6; }
14968 if test -n "$EXEEXT"; then
14970 am__EXEEXT_FALSE='#'
14972 am__EXEEXT_TRUE='#'
14976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14977 as_fn_error $? "conditional \"AMDEP\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14981 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14984 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14985 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14988 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14989 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14992 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14993 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14996 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14997 as_fn_error $? "conditional \"MIPS\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15000 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15001 as_fn_error $? "conditional \"BFIN\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15004 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15005 as_fn_error $? "conditional \"SPARC\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15008 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15009 as_fn_error $? "conditional \"X86\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15012 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15013 as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15016 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15017 as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15020 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15021 as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15025 as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15029 as_fn_error $? "conditional \"ALPHA\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15033 as_fn_error $? "conditional \"IA64\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15036 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15037 as_fn_error $? "conditional \"M32R\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15040 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15041 as_fn_error $? "conditional \"M68K\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15044 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15045 as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15048 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15049 as_fn_error $? "conditional \"MOXIE\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15053 as_fn_error $? "conditional \"POWERPC\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15057 as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15061 as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15065 as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15069 as_fn_error $? "conditional \"AARCH64\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15073 as_fn_error $? "conditional \"ARM\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15077 as_fn_error $? "conditional \"AVR32\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15081 as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15085 as_fn_error $? "conditional \"FRV\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15089 as_fn_error $? "conditional \"S390\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15092 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15093 as_fn_error $? "conditional \"X86_64\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15096 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15097 as_fn_error $? "conditional \"SH\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15101 as_fn_error $? "conditional \"SH64\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15105 as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15108 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15109 as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15112 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15113 as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15117 as_fn_error $? "conditional \"TILE\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15121 as_fn_error $? "conditional \"XTENSA\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15125 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15126 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15129 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15130 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15133 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15134 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15138 : "${CONFIG_STATUS=./config.status}"
15140 ac_clean_files_save=$ac_clean_files
15141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15143 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15145 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15147 # Generated by $as_me.
15148 # Run this file to recreate the current configuration.
15149 # Compiler output produced by configure, useful for debugging
15150 # configure, is in config.log if it exists.
15153 ac_cs_recheck=false
15156 SHELL=\${CONFIG_SHELL-$SHELL}
15159 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15160 ## -------------------- ##
15161 ## M4sh Initialization. ##
15162 ## -------------------- ##
15164 # Be more Bourne compatible
15165 DUALCASE=1; export DUALCASE # for MKS sh
15166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15169 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15170 # is contrary to our usage. Disable this feature.
15171 alias -g '${1+"$@"}'='"$@"'
15172 setopt NO_GLOB_SUBST
15174 case `(set -o) 2>/dev/null` in #(
15186 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15187 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15190 # Prefer a ksh shell builtin over an external printf program on Solaris,
15191 # but without wasting forks for bash or zsh.
15192 if test -z "$BASH_VERSION$ZSH_VERSION" \
15193 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15194 as_echo='print -r --'
15195 as_echo_n='print -rn --'
15196 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15197 as_echo='printf %s\n'
15198 as_echo_n='printf %s'
15200 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15201 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15202 as_echo_n='/usr/ucb/echo -n'
15204 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15205 as_echo_n_body='eval
15209 expr "X$arg" : "X\\(.*\\)$as_nl";
15210 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15212 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15214 export as_echo_n_body
15215 as_echo_n='sh -c $as_echo_n_body as_echo'
15217 export as_echo_body
15218 as_echo='sh -c $as_echo_body as_echo'
15221 # The user is always right.
15222 if test "${PATH_SEPARATOR+set}" != set; then
15224 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15225 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15232 # We need space, tab and new line, in precisely that order. Quoting is
15233 # there to prevent editors from complaining about space-tab.
15234 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15235 # splitting by setting IFS to empty value.)
15238 # Find who we are. Look in the path if we contain no directory separator.
15241 *[\\/]* ) as_myself=$0 ;;
15242 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243 for as_dir in $PATH
15246 test -z "$as_dir" && as_dir=.
15247 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15253 # We did not find ourselves, most probably we were run as `sh COMMAND'
15254 # in which case we are not to be found in the path.
15255 if test "x$as_myself" = x; then
15258 if test ! -f "$as_myself"; then
15259 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15263 # Unset variables that we do not need and which cause bugs (e.g. in
15264 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15265 # suppresses any "Segmentation fault" message there. '((' could
15266 # trigger a bug in pdksh 5.2.14.
15267 for as_var in BASH_ENV ENV MAIL MAILPATH
15268 do eval test x\${$as_var+set} = xset \
15269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15285 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15286 # ----------------------------------------
15287 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15288 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15289 # script with STATUS, using 1 if that was 0.
15292 as_status=$1; test $as_status -eq 0 && as_status=1
15294 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15295 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15297 $as_echo "$as_me: error: $2" >&2
15298 as_fn_exit $as_status
15302 # as_fn_set_status STATUS
15303 # -----------------------
15304 # Set $? to STATUS, without forking.
15305 as_fn_set_status ()
15308 } # as_fn_set_status
15310 # as_fn_exit STATUS
15311 # -----------------
15312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15316 as_fn_set_status $1
15322 # Portably unset VAR.
15325 { eval $1=; unset $1;}
15327 as_unset=as_fn_unset
15328 # as_fn_append VAR VALUE
15329 # ----------------------
15330 # Append the text in VALUE to the end of the definition contained in VAR. Take
15331 # advantage of any shell optimizations that allow amortized linear growth over
15332 # repeated appends, instead of the typical quadratic growth present in naive
15334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15335 eval 'as_fn_append ()
15346 # as_fn_arith ARG...
15347 # ------------------
15348 # Perform arithmetic evaluation on the ARGs, and store the result in the
15349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15350 # must be portable across $(()) and expr.
15351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15352 eval 'as_fn_arith ()
15359 as_val=`expr "$@" || test $? -eq 1`
15364 if expr a : '\(a\)' >/dev/null 2>&1 &&
15365 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15372 as_basename=basename
15377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15383 as_me=`$as_basename -- "$0" ||
15384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15385 X"$0" : 'X\(//\)$' \| \
15386 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15388 sed '/^.*\/\([^/][^/]*\)\/*$/{
15402 # Avoid depending upon Character Ranges.
15403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15406 as_cr_digits='0123456789'
15407 as_cr_alnum=$as_cr_Letters$as_cr_digits
15409 ECHO_C= ECHO_N= ECHO_T=
15410 case `echo -n x` in #(((((
15412 case `echo 'xy\c'` in
15413 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15415 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15422 rm -f conf$$ conf$$.exe conf$$.file
15423 if test -d conf$$.dir; then
15424 rm -f conf$$.dir/conf$$.file
15427 mkdir conf$$.dir 2>/dev/null
15429 if (echo >conf$$.file) 2>/dev/null; then
15430 if ln -s conf$$.file conf$$ 2>/dev/null; then
15432 # ... but there are two gotchas:
15433 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15434 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15435 # In both cases, we have to default to `cp -pR'.
15436 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15438 elif ln conf$$.file conf$$ 2>/dev/null; then
15446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15447 rmdir conf$$.dir 2>/dev/null
15452 # Create "$as_dir" as a directory, including parents if necessary.
15457 -*) as_dir=./$as_dir;;
15459 test -d "$as_dir" || eval $as_mkdir_p || {
15463 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15464 *) as_qdir=$as_dir;;
15466 as_dirs="'$as_qdir' $as_dirs"
15467 as_dir=`$as_dirname -- "$as_dir" ||
15468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15469 X"$as_dir" : 'X\(//\)[^/]' \| \
15470 X"$as_dir" : 'X\(//\)$' \| \
15471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15472 $as_echo X"$as_dir" |
15473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15477 /^X\(\/\/\)[^/].*/{
15490 test -d "$as_dir" && break
15492 test -z "$as_dirs" || eval "mkdir $as_dirs"
15493 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15497 if mkdir -p . 2>/dev/null; then
15498 as_mkdir_p='mkdir -p "$as_dir"'
15500 test -d ./-p && rmdir ./-p
15505 # as_fn_executable_p FILE
15506 # -----------------------
15507 # Test if FILE is an executable regular file.
15508 as_fn_executable_p ()
15510 test -f "$1" && test -x "$1"
15511 } # as_fn_executable_p
15512 as_test_x='test -x'
15513 as_executable_p=as_fn_executable_p
15515 # Sed expression to map a string onto a valid CPP name.
15516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15518 # Sed expression to map a string onto a valid variable name.
15519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15523 ## ----------------------------------- ##
15524 ## Main body of $CONFIG_STATUS script. ##
15525 ## ----------------------------------- ##
15527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 # Save the log message, to keep $0 and so on meaningful, and to
15531 # report actual input values of CONFIG_FILES etc. instead of their
15532 # values after options handling.
15534 This file was extended by libffi $as_me 3.0.12, which was
15535 generated by GNU Autoconf 2.69. Invocation command line was
15537 CONFIG_FILES = $CONFIG_FILES
15538 CONFIG_HEADERS = $CONFIG_HEADERS
15539 CONFIG_LINKS = $CONFIG_LINKS
15540 CONFIG_COMMANDS = $CONFIG_COMMANDS
15543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15548 case $ac_config_files in *"
15549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15552 case $ac_config_headers in *"
15553 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558 # Files that config.status was made for.
15559 config_files="$ac_config_files"
15560 config_headers="$ac_config_headers"
15561 config_links="$ac_config_links"
15562 config_commands="$ac_config_commands"
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15568 \`$as_me' instantiates files and other configuration actions
15569 from templates according to the current configuration. Unless the files
15570 and actions are specified as TAGs, all are instantiated by default.
15572 Usage: $0 [OPTION]... [TAG]...
15574 -h, --help print this help, then exit
15575 -V, --version print version number and configuration settings, then exit
15576 --config print configuration, then exit
15577 -q, --quiet, --silent
15578 do not print progress messages
15579 -d, --debug don't remove temporary files
15580 --recheck update $as_me by reconfiguring in the same conditions
15581 --file=FILE[:TEMPLATE]
15582 instantiate the configuration file FILE
15583 --header=FILE[:TEMPLATE]
15584 instantiate the configuration header FILE
15586 Configuration files:
15589 Configuration headers:
15592 Configuration links:
15595 Configuration commands:
15598 Report bugs to <http://github.com/atgreen/libffi/issues>."
15601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15604 libffi config.status 3.0.12
15605 configured by $0, generated by GNU Autoconf 2.69,
15606 with options \\"\$ac_cs_config\\"
15608 Copyright (C) 2012 Free Software Foundation, Inc.
15609 This config.status script is free software; the Free Software Foundation
15610 gives unlimited permission to copy, distribute and modify it."
15617 test -n "\$AWK" || AWK=awk
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # The default lists apply if the user does not specify any file.
15627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15632 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15644 # Handling of the options.
15645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15648 $as_echo "$ac_cs_version"; exit ;;
15649 --config | --confi | --conf | --con | --co | --c )
15650 $as_echo "$ac_cs_config"; exit ;;
15651 --debug | --debu | --deb | --de | --d | -d )
15653 --file | --fil | --fi | --f )
15656 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15657 '') as_fn_error $? "missing file argument" ;;
15659 as_fn_append CONFIG_FILES " '$ac_optarg'"
15660 ac_need_defaults=false;;
15661 --header | --heade | --head | --hea )
15664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15666 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15667 ac_need_defaults=false;;
15669 # Conflict between --help and --header
15670 as_fn_error $? "ambiguous option: \`$1'
15671 Try \`$0 --help' for more information.";;
15672 --help | --hel | -h )
15673 $as_echo "$ac_cs_usage"; exit ;;
15674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15675 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15678 # This is an error.
15679 -*) as_fn_error $? "unrecognized option: \`$1'
15680 Try \`$0 --help' for more information." ;;
15682 *) as_fn_append ac_config_targets " $1"
15683 ac_need_defaults=false ;;
15689 ac_configure_extra_args=
15691 if $ac_cs_silent; then
15693 ac_configure_extra_args="$ac_configure_extra_args --silent"
15697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15698 if \$ac_cs_recheck; then
15699 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15701 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15702 CONFIG_SHELL='$SHELL'
15703 export CONFIG_SHELL
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15713 ## Running $as_me. ##
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15723 ax_enable_builddir_srcdir="$srcdir" # $srcdir
15724 ax_enable_builddir_host="$HOST" # $HOST / $host
15725 ax_enable_builddir_version="$VERSION" # $VERSION
15726 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
15727 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15728 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
15729 ax_enable_builddir="$ax_enable_builddir" # $SUB
15731 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15734 # The HP-UX ksh and POSIX shell print the target directory to stdout
15735 # if CDPATH is set.
15736 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15738 sed_quote_subst='$sed_quote_subst'
15739 double_quote_subst='$double_quote_subst'
15740 delay_variable_subst='$delay_variable_subst'
15741 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15742 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15743 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15744 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15745 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15746 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15747 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15748 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15749 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15750 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15751 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15752 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15753 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15754 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15755 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15756 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15757 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15758 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15759 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15760 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15761 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15762 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15763 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15764 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15765 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15766 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15767 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15768 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15769 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15770 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15771 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15772 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15773 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15774 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15775 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15776 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15777 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15778 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15779 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15780 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15781 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15782 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15783 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15784 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15785 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15786 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15787 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15788 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15789 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15790 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15791 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15792 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15793 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15794 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15795 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15796 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15797 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"`'
15798 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15799 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15800 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15801 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15802 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15803 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15804 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15805 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15806 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15807 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15808 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15809 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15810 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15811 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15812 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15813 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15814 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15815 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15816 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15818 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15819 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15820 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15821 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15822 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15823 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15824 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15825 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15826 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15827 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15828 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15829 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15830 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15831 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15832 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15833 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15834 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15835 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15836 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15837 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15838 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15839 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15840 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15841 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15842 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15843 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15844 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15845 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15846 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15847 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15848 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15849 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15850 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15851 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15852 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15853 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15854 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15855 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15856 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15857 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15858 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15859 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15860 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15861 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15862 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15863 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15864 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15865 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15866 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15867 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15868 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15869 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15870 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15873 LTCFLAGS='$LTCFLAGS'
15874 compiler='$compiler_DEFAULT'
15876 # A function that is used when there is no print builtin or printf.
15877 func_fallback_echo ()
15879 eval 'cat <<_LTECHO_EOF
15884 # Quote evaled strings.
15899 deplibs_check_method \
15904 sharedlib_from_linklib_cmd \
15907 archiver_list_spec \
15913 lt_cv_sys_global_symbol_pipe \
15914 lt_cv_sys_global_symbol_to_cdecl \
15915 lt_cv_sys_global_symbol_to_c_name_address \
15916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15917 nm_file_list_spec \
15918 lt_prog_compiler_no_builtin_flag \
15919 lt_prog_compiler_pic \
15920 lt_prog_compiler_wl \
15921 lt_prog_compiler_static \
15922 lt_cv_prog_compiler_c_o \
15931 export_dynamic_flag_spec \
15932 whole_archive_flag_spec \
15933 compiler_needs_object \
15935 allow_undefined_flag \
15936 no_undefined_flag \
15937 hardcode_libdir_flag_spec \
15938 hardcode_libdir_separator \
15942 variables_saved_for_relink \
15944 library_names_spec \
15946 install_override_mode \
15950 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15951 *[\\\\\\\`\\"\\\$]*)
15952 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15955 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15960 # Double-quote double-evaled strings.
15961 for var in reload_cmds \
15962 old_postinstall_cmds \
15963 old_postuninstall_cmds \
15965 extract_expsyms_cmds \
15966 old_archive_from_new_cmds \
15967 old_archive_from_expsyms_cmds \
15969 archive_expsym_cmds \
15971 module_expsym_cmds \
15972 export_symbols_cmds \
15976 postuninstall_cmds \
15978 sys_lib_search_path_spec \
15979 sys_lib_dlsearch_path_spec; do
15980 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15981 *[\\\\\\\`\\"\\\$]*)
15982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15990 ac_aux_dir='$ac_aux_dir'
15991 xsi_shell='$xsi_shell'
15992 lt_shell_append='$lt_shell_append'
15994 # See if we are running on zsh, and set the options which allow our
15995 # commands through without removal of \ escapes INIT.
15996 if test -n "\${ZSH_VERSION+set}" ; then
15997 setopt NO_GLOB_SUBST
16003 TIMESTAMP='$TIMESTAMP'
16009 TARGETDIR="$TARGETDIR"
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16015 # Handling of arguments.
16016 for ac_config_target in $ac_config_targets
16018 case $ac_config_target in
16019 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16020 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16021 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16022 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16023 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16024 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16025 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16026 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16027 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16028 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16029 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16030 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16031 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16033 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16038 # If the user did not use the arguments to specify the items to instantiate,
16039 # then the envvar interface is used. Set only those that are not.
16040 # We use the long form for the default assignment because of an extremely
16041 # bizarre bug on SunOS 4.1.3.
16042 if $ac_need_defaults; then
16043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16045 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16049 # Have a temporary directory for convenience. Make it in the build tree
16050 # simply because there is no reason against having it here, and in addition,
16051 # creating and moving files from /tmp can sometimes cause problems.
16052 # Hook for its removal unless debugging.
16053 # Note that there is a small window in which the directory will not be cleaned:
16054 # after its creation but before its name has been assigned to `$tmp'.
16058 trap 'exit_status=$?
16059 : "${ac_tmp:=$tmp}"
16060 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16062 trap 'as_fn_exit 1' 1 2 13 15
16064 # Create a (secure) tmp directory for tmp files.
16067 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16071 tmp=./conf$$-$RANDOM
16072 (umask 077 && mkdir "$tmp")
16073 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16076 # Set up the scripts for CONFIG_FILES section.
16077 # No need to generate them if there are no CONFIG_FILES.
16078 # This happens for instance with `./config.status config.h'.
16079 if test -n "$CONFIG_FILES"; then
16082 ac_cr=`echo X | tr X '\015'`
16083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16084 # But we know of no other shell where ac_cr would be empty at this
16085 # point, so we can use a bashism as a fallback.
16086 if test "x$ac_cr" = x; then
16087 eval ac_cr=\$\'\\r\'
16089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16093 ac_cs_awk_cr=$ac_cr
16096 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16101 echo "cat >conf$$subs.awk <<_ACEOF" &&
16102 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16104 } >conf$$subs.sh ||
16105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16108 for ac_last_try in false false false false false :; do
16109 . ./conf$$subs.sh ||
16110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16112 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16113 if test $ac_delim_n = $ac_delim_num; then
16115 elif $ac_last_try; then
16116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16121 rm -f conf$$subs.sh
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16128 s/^/S["/; s/!.*/"]=/
16138 s/\(.\{148\}\)..*/\1/
16140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16152 s/\(.\{148\}\)..*/\1/
16154 s/["\\]/\\&/g; s/^/"/; s/$/"/
16158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16163 ' <conf$$subs.awk | sed '
16168 ' >>$CONFIG_STATUS || ac_write_fail=1
16169 rm -f conf$$subs.awk
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16172 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16173 for (key in S) S_is_set[key] = 1
16179 nfields = split(line, field, "@")
16181 len = length(field[1])
16182 for (i = 2; i < nfields; i++) {
16184 keylen = length(key)
16185 if (S_is_set[key]) {
16187 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16188 len += length(value) + length(field[++i])
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16201 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16204 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16205 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16210 # trailing colons and then remove the whole line if VPATH becomes empty
16211 # (actually we leave an empty line to preserve line numbers).
16212 if test "x$srcdir" = x.; then
16213 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 fi # test -n "$CONFIG_FILES"
16234 # Set up the scripts for CONFIG_HEADERS section.
16235 # No need to generate them if there are no CONFIG_HEADERS.
16236 # This happens for instance with `./config.status Makefile'.
16237 if test -n "$CONFIG_HEADERS"; then
16238 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16242 # Transform confdefs.h into an awk script `defines.awk', embedded as
16243 # here-document in config.status, that substitutes the proper values into
16244 # config.h.in to produce config.h.
16246 # Create a delimiter string that does not exist in confdefs.h, to ease
16247 # handling of long lines.
16249 for ac_last_try in false false :; do
16250 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16251 if test -z "$ac_tt"; then
16253 elif $ac_last_try; then
16254 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16260 # For the awk script, D is an array of macro values keyed by name,
16261 # likewise P contains macro parameters if any. Preserve backslash
16262 # newline sequences.
16264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16266 s/.\{148\}/&'"$ac_delim"'/g
16269 s/^[ ]*#[ ]*define[ ][ ]*/ /
16276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16283 D["\1"]=" \3\\\\\\n"\\/p
16285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16290 s/.\{148\}/&'"$ac_delim"'/g
16295 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16300 ' <confdefs.h | sed '
16301 s/'"$ac_delim"'/"\\\
16302 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16305 for (key in D) D_is_set[key] = 1
16308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16310 split(line, arg, " ")
16311 if (arg[1] == "#") {
16315 defundef = substr(arg[1], 2)
16318 split(mac1, mac2, "(") #)
16320 prefix = substr(line, 1, index(line, defundef) - 1)
16321 if (D_is_set[macro]) {
16322 # Preserve the white space surrounding the "#".
16323 print prefix "define", macro P[macro] D[macro]
16326 # Replace #undef with comments. This is necessary, for example,
16327 # in the case of _POSIX_SOURCE, which is predefined and required
16328 # on some systems where configure will not decide to define it.
16329 if (defundef == "undef") {
16330 print "/*", prefix defundef, macro, "*/"
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16340 fi # test -n "$CONFIG_HEADERS"
16343 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16348 :[FHLC]) ac_mode=$ac_tag; continue;;
16350 case $ac_mode$ac_tag in
16352 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16353 :[FH]-) ac_tag=-:-;;
16354 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16371 -) ac_f="$ac_tmp/stdin";;
16372 *) # Look for the file first in the build tree, then in the source tree
16373 # (if the path is not absolute). The absolute path cannot be DOS-style,
16374 # because $ac_f cannot contain `:'.
16378 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16380 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16382 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16383 as_fn_append ac_file_inputs " '$ac_f'"
16386 # Let's still pretend it is `configure' which instantiates (i.e., don't
16387 # use $as_me), people would be surprised to read:
16388 # /* config.h. Generated by config.status. */
16389 configure_input='Generated from '`
16390 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16392 if test x"$ac_file" != x-; then
16393 configure_input="$ac_file. $configure_input"
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16395 $as_echo "$as_me: creating $ac_file" >&6;}
16397 # Neutralize special characters interpreted by sed in replacement strings.
16398 case $configure_input in #(
16399 *\&* | *\|* | *\\* )
16400 ac_sed_conf_input=`$as_echo "$configure_input" |
16401 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16402 *) ac_sed_conf_input=$configure_input;;
16406 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16412 ac_dir=`$as_dirname -- "$ac_file" ||
16413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16414 X"$ac_file" : 'X\(//\)[^/]' \| \
16415 X"$ac_file" : 'X\(//\)$' \| \
16416 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16417 $as_echo X"$ac_file" |
16418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16422 /^X\(\/\/\)[^/].*/{
16435 as_dir="$ac_dir"; as_fn_mkdir_p
16439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16442 # A ".." for each directory in $ac_dir_suffix.
16443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16444 case $ac_top_builddir_sub in
16445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16449 ac_abs_top_builddir=$ac_pwd
16450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16451 # for backward compatibility:
16452 ac_top_builddir=$ac_top_build_prefix
16455 .) # We are building in place.
16457 ac_top_srcdir=$ac_top_builddir_sub
16458 ac_abs_top_srcdir=$ac_pwd ;;
16459 [\\/]* | ?:[\\/]* ) # Absolute name.
16460 ac_srcdir=$srcdir$ac_dir_suffix;
16461 ac_top_srcdir=$srcdir
16462 ac_abs_top_srcdir=$srcdir ;;
16463 *) # Relative name.
16464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16465 ac_top_srcdir=$ac_top_build_prefix$srcdir
16466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16478 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16479 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16481 ac_MKDIR_P=$MKDIR_P
16483 [\\/$]* | ?:[\\/]* ) ;;
16484 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16489 # If the template does not know about datarootdir, expand it.
16490 # FIXME: This hack should be removed a few years after 2.60.
16491 ac_datarootdir_hack=; ac_datarootdir_seen=
16502 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16503 *datarootdir*) ac_datarootdir_seen=yes;;
16504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16506 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16509 ac_datarootdir_hack='
16510 s&@datadir@&$datadir&g
16511 s&@docdir@&$docdir&g
16512 s&@infodir@&$infodir&g
16513 s&@localedir@&$localedir&g
16514 s&@mandir@&$mandir&g
16515 s&\\\${datarootdir}&$datarootdir&g' ;;
16519 # Neutralize VPATH when `$srcdir' = `.'.
16520 # Shell code in configure.ac might set extrasub.
16521 # FIXME: do we really want to maintain this feature?
16522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16523 ac_sed_extra="$ac_vpsub
16526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16529 s|@configure_input@|$ac_sed_conf_input|;t t
16530 s&@top_builddir@&$ac_top_builddir_sub&;t t
16531 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16532 s&@srcdir@&$ac_srcdir&;t t
16533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16534 s&@top_srcdir@&$ac_top_srcdir&;t t
16535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16536 s&@builddir@&$ac_builddir&;t t
16537 s&@abs_builddir@&$ac_abs_builddir&;t t
16538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16539 s&@INSTALL@&$ac_INSTALL&;t t
16540 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16541 $ac_datarootdir_hack
16543 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16544 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16546 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16547 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16548 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16549 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16551 which seems to be undefined. Please make sure it is defined" >&5
16552 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16553 which seems to be undefined. Please make sure it is defined" >&2;}
16555 rm -f "$ac_tmp/stdin"
16557 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16558 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16566 if test x"$ac_file" != x-; then
16568 $as_echo "/* $configure_input */" \
16569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16570 } >"$ac_tmp/config.h" \
16571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16572 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16577 mv "$ac_tmp/config.h" "$ac_file" \
16578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16581 $as_echo "/* $configure_input */" \
16582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16583 || as_fn_error $? "could not create -" "$LINENO" 5
16585 # Compute "$ac_file"'s index in $config_headers.
16588 for _am_header in $config_headers :; do
16589 case $_am_header in
16590 $_am_arg | $_am_arg:* )
16593 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16596 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16597 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598 X"$_am_arg" : 'X\(//\)[^/]' \| \
16599 X"$_am_arg" : 'X\(//\)$' \| \
16600 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16601 $as_echo X"$_am_arg" |
16602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16606 /^X\(\/\/\)[^/].*/{
16618 s/.*/./; q'`/stamp-h$_am_stamp_count
16625 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16628 # Prefer the file from the source tree if names are identical.
16629 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16630 ac_source=$srcdir/$ac_source
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16634 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16636 if test ! -r "$ac_source"; then
16637 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16641 # Try a relative symlink, then a hard link, then a copy.
16643 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16644 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16646 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16647 ln "$ac_source" "$ac_file" 2>/dev/null ||
16648 cp -p "$ac_source" "$ac_file" ||
16649 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16652 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16653 $as_echo "$as_me: executing $ac_file commands" >&6;}
16658 case $ac_file$ac_mode in
16659 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
16660 if test ".$ax_enable_builddir" = ".." ; then
16661 if test -f "$top_srcdir/Makefile" ; then
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16663 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16666 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16669 if test -f "$ac_top_srcdir/Makefile" ; then
16670 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16671 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16673 if test -f "$ac_top_srcdir/Makefile" ; then
16674 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16675 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16676 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16677 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16678 then rm $ac_top_srcdir/Makefile ; fi
16679 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
16681 if test ! -f "$ac_top_srcdir/Makefile" ; then
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16683 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16684 x='`' ; cat >$tmp/conftemp.sed <<_EOF
16697 s/\\(\\n\\) /\\1 /g
16701 s/^srcdir *=.*/srcdir = ./
16702 s/^top_srcdir *=.*/top_srcdir = ./
16710 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16711 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16713 /^all all-all[ :]/i\\
16714 all-configured : all-all
16715 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16718 @ HOST="\$(HOST)\" \\\\\\
16719 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16720 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16721 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16722 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16723 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16724 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16725 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16726 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16727 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16729 @ HOST="\$(HOST)\" \\\\\\
16730 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16731 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16732 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16733 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16734 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16735 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16736 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16737 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16738 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16739 /dist-[a-zA-Z0-9]*-all *:/a\\
16740 @ HOST="\$(HOST)\" \\\\\\
16741 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16742 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16743 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16744 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16745 ; if test "\$\$found" -eq "0" ; then : \\\\\\
16746 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16747 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16748 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16749 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16750 /distclean-all *:/a\\
16751 @ HOST="\$(HOST)\" \\\\\\
16752 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16753 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16754 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16755 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16756 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16757 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16758 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16759 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16760 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16761 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16762 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16764 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
16765 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16766 if test -f "$ac_top_srcdir/Makefile.mk" ; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16768 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16769 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16771 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16773 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16775 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16776 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
16777 >$ac_top_srcdir/Makefile~
16778 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16781 xxxx="\\#\\#\\#\\#"
16782 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16783 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16784 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16785 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
16786 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
16787 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16789 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16790 rm "$tmp/mkfile.tmp"
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16793 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16794 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16798 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16800 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16805 # are listed without --file. Let's play safe and only enable the eval
16806 # if we detect the quoting.
16807 case $CONFIG_FILES in
16808 *\'*) eval set x "$CONFIG_FILES" ;;
16809 *) set x $CONFIG_FILES ;;
16814 # Strip MF so we end up with the name of the file.
16815 mf=`echo "$mf" | sed -e 's/:.*$//'`
16816 # Check whether this is an Automake generated Makefile or not.
16817 # We used to match only the files named 'Makefile.in', but
16818 # some people rename them; so instead we look at the file content.
16819 # Grep'ing the first line is not enough: some people post-process
16820 # each Makefile.in and add a new line on top of each file to say so.
16821 # Grep'ing the whole file is not good either: AIX grep has a line
16822 # limit of 2048, but all sed's we know have understand at least 4000.
16823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16824 dirpart=`$as_dirname -- "$mf" ||
16825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16826 X"$mf" : 'X\(//\)[^/]' \| \
16827 X"$mf" : 'X\(//\)$' \| \
16828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16834 /^X\(\/\/\)[^/].*/{
16850 # Extract the definition of DEPDIR, am__include, and am__quote
16851 # from the Makefile without running 'make'.
16852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16853 test -z "$DEPDIR" && continue
16854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16855 test -z "am__include" && continue
16856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16857 # Find all dependency output files, they are included files with
16858 # $(DEPDIR) in their names. We invoke sed twice because it is the
16859 # simplest approach to changing $(DEPDIR) to its actual value in the
16861 for file in `sed -n "
16862 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16863 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16864 # Make sure the directory exists.
16865 test -f "$dirpart/$file" && continue
16866 fdir=`$as_dirname -- "$file" ||
16867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16868 X"$file" : 'X\(//\)[^/]' \| \
16869 X"$file" : 'X\(//\)$' \| \
16870 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16871 $as_echo X"$file" |
16872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16876 /^X\(\/\/\)[^/].*/{
16889 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16890 # echo "creating $dirpart/$file"
16891 echo '# dummy' > "$dirpart/$file"
16898 # See if we are running on zsh, and set the options which allow our
16899 # commands through without removal of \ escapes.
16900 if test -n "${ZSH_VERSION+set}" ; then
16901 setopt NO_GLOB_SUBST
16904 cfgfile="${ofile}T"
16905 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16908 cat <<_LT_EOF >> "$cfgfile"
16911 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16912 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16914 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16916 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16917 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16919 # Written by Gordon Matzigkeit, 1996
16921 # This file is part of GNU Libtool.
16923 # GNU Libtool is free software; you can redistribute it and/or
16924 # modify it under the terms of the GNU General Public License as
16925 # published by the Free Software Foundation; either version 2 of
16926 # the License, or (at your option) any later version.
16928 # As a special exception to the GNU General Public License,
16929 # if you distribute this file as part of a program or library that
16930 # is built using GNU Libtool, you may include this file under the
16931 # same distribution terms that you use for the rest of that program.
16933 # GNU Libtool is distributed in the hope that it will be useful,
16934 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16936 # GNU General Public License for more details.
16938 # You should have received a copy of the GNU General Public License
16939 # along with GNU Libtool; see the file COPYING. If not, a copy
16940 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16941 # obtained by writing to the Free Software Foundation, Inc.,
16942 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16945 # The names of the tagged configurations supported by this script.
16948 # ### BEGIN LIBTOOL CONFIG
16950 # Which release of libtool.m4 was used?
16951 macro_version=$macro_version
16952 macro_revision=$macro_revision
16954 # Whether or not to build shared libraries.
16955 build_libtool_libs=$enable_shared
16957 # Whether or not to build static libraries.
16958 build_old_libs=$enable_static
16960 # What type of objects to build.
16963 # Whether or not to optimize for fast installation.
16964 fast_install=$enable_fast_install
16966 # Shell to use when invoking shell scripts.
16969 # An echo program that protects backslashes.
16972 # The PATH separator for the build system.
16973 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16976 host_alias=$host_alias
16980 # The build system.
16981 build_alias=$build_alias
16985 # A sed program that does not truncate output.
16988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16989 Xsed="\$SED -e 1s/^X//"
16991 # A grep program that handles long lines.
16997 # A literal string matcher.
17000 # A BSD- or MS-compatible name lister.
17003 # Whether we need soft or hard links.
17006 # What is the maximum length of a command?
17007 max_cmd_len=$max_cmd_len
17009 # Object file suffix (normally "o").
17012 # Executable file suffix (normally "").
17015 # whether the shell understands "unset".
17018 # turn spaces into newlines.
17021 # turn newlines into spaces.
17024 # convert \$build file names to \$host format.
17025 to_host_file_cmd=$lt_cv_to_host_file_cmd
17027 # convert \$build files to toolchain format.
17028 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17030 # An object symbol dumper.
17031 OBJDUMP=$lt_OBJDUMP
17033 # Method to check whether dependent libraries are shared objects.
17034 deplibs_check_method=$lt_deplibs_check_method
17036 # Command to use when deplibs_check_method = "file_magic".
17037 file_magic_cmd=$lt_file_magic_cmd
17039 # How to find potential files when deplibs_check_method = "file_magic".
17040 file_magic_glob=$lt_file_magic_glob
17042 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17043 want_nocaseglob=$lt_want_nocaseglob
17045 # DLL creation program.
17046 DLLTOOL=$lt_DLLTOOL
17048 # Command to associate shared and link libraries.
17049 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17054 # Flags to create an archive.
17055 AR_FLAGS=$lt_AR_FLAGS
17057 # How to feed a file listing to the archiver.
17058 archiver_list_spec=$lt_archiver_list_spec
17060 # A symbol stripping program.
17063 # Commands used to install an old-style archive.
17065 old_postinstall_cmds=$lt_old_postinstall_cmds
17066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17068 # Whether to use a lock for old archive extraction.
17069 lock_old_archive_extraction=$lock_old_archive_extraction
17074 # LTCC compiler flags.
17075 LTCFLAGS=$lt_CFLAGS
17077 # Take the output of nm and produce a listing of raw symbols and C names.
17078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17080 # Transform the output of nm in a proper C declaration.
17081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17083 # Transform the output of nm in a C name address pair.
17084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17086 # Transform the output of nm in a C name address pair when lib prefix is needed.
17087 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17089 # Specify filename containing input files for \$NM.
17090 nm_file_list_spec=$lt_nm_file_list_spec
17092 # The root where to search for dependent libraries,and in which our libraries should be installed.
17093 lt_sysroot=$lt_sysroot
17095 # The name of the directory that contains temporary libtool files.
17098 # Used to examine libraries when file_magic_cmd begins with "file".
17099 MAGIC_CMD=$MAGIC_CMD
17101 # Must we lock files when doing compilation?
17102 need_locks=$lt_need_locks
17105 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17107 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17108 DSYMUTIL=$lt_DSYMUTIL
17110 # Tool to change global to local symbols on Mac OS X.
17113 # Tool to manipulate fat objects and archives on Mac OS X.
17116 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17119 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17120 OTOOL64=$lt_OTOOL64
17122 # Old archive suffix (normally "a").
17125 # Shared library suffix (normally ".so").
17126 shrext_cmds=$lt_shrext_cmds
17128 # The commands to extract the exported symbol list from a shared archive.
17129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17131 # Variables whose values should be saved in libtool wrapper scripts and
17132 # restored at link time.
17133 variables_saved_for_relink=$lt_variables_saved_for_relink
17135 # Do we need the "lib" prefix for modules?
17136 need_lib_prefix=$need_lib_prefix
17138 # Do we need a version for libraries?
17139 need_version=$need_version
17141 # Library versioning type.
17142 version_type=$version_type
17144 # Shared library runtime path variable.
17145 runpath_var=$runpath_var
17147 # Shared library path variable.
17148 shlibpath_var=$shlibpath_var
17150 # Is shlibpath searched before the hard-coded library search path?
17151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17153 # Format of library name prefix.
17154 libname_spec=$lt_libname_spec
17156 # List of archive names. First name is the real one, the rest are links.
17157 # The last name is the one that the linker finds with -lNAME
17158 library_names_spec=$lt_library_names_spec
17160 # The coded name of the library, if different from the real name.
17161 soname_spec=$lt_soname_spec
17163 # Permission mode override for installation of shared libraries.
17164 install_override_mode=$lt_install_override_mode
17166 # Command to use after installation of a shared archive.
17167 postinstall_cmds=$lt_postinstall_cmds
17169 # Command to use after uninstallation of a shared archive.
17170 postuninstall_cmds=$lt_postuninstall_cmds
17172 # Commands used to finish a libtool library installation in a directory.
17173 finish_cmds=$lt_finish_cmds
17175 # As "finish_cmds", except a single script fragment to be evaled but
17177 finish_eval=$lt_finish_eval
17179 # Whether we should hardcode library paths into libraries.
17180 hardcode_into_libs=$hardcode_into_libs
17182 # Compile-time system search path for libraries.
17183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17185 # Run-time system search path for libraries.
17186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17188 # Whether dlopen is supported.
17189 dlopen_support=$enable_dlopen
17191 # Whether dlopen of programs is supported.
17192 dlopen_self=$enable_dlopen_self
17194 # Whether dlopen of statically linked programs is supported.
17195 dlopen_self_static=$enable_dlopen_self_static
17197 # Commands to strip libraries.
17198 old_striplib=$lt_old_striplib
17199 striplib=$lt_striplib
17202 # The linker used to build libraries.
17205 # How to create reloadable object files.
17206 reload_flag=$lt_reload_flag
17207 reload_cmds=$lt_reload_cmds
17209 # Commands used to build an old-style archive.
17210 old_archive_cmds=$lt_old_archive_cmds
17212 # A language specific compiler.
17215 # Is the compiler the GNU compiler?
17218 # Compiler flag to turn off builtin functions.
17219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17221 # Additional compiler flags for building library objects.
17222 pic_flag=$lt_lt_prog_compiler_pic
17224 # How to pass a linker flag through the compiler.
17225 wl=$lt_lt_prog_compiler_wl
17227 # Compiler flag to prevent dynamic linking.
17228 link_static_flag=$lt_lt_prog_compiler_static
17230 # Does compiler simultaneously support -c and -o options?
17231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17233 # Whether or not to add -lc for building shared libraries.
17234 build_libtool_need_lc=$archive_cmds_need_lc
17236 # Whether or not to disallow shared libs when runtime libs are static.
17237 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17239 # Compiler flag to allow reflexive dlopens.
17240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17242 # Compiler flag to generate shared objects directly from archives.
17243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17245 # Whether the compiler copes with passing no objects directly.
17246 compiler_needs_object=$lt_compiler_needs_object
17248 # Create an old-style archive from a shared archive.
17249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17251 # Create a temporary old-style archive to link instead of a shared archive.
17252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17254 # Commands used to build a shared archive.
17255 archive_cmds=$lt_archive_cmds
17256 archive_expsym_cmds=$lt_archive_expsym_cmds
17258 # Commands used to build a loadable module if different from building
17259 # a shared archive.
17260 module_cmds=$lt_module_cmds
17261 module_expsym_cmds=$lt_module_expsym_cmds
17263 # Whether we are building with GNU ld or not.
17264 with_gnu_ld=$lt_with_gnu_ld
17266 # Flag that allows shared libraries with undefined symbols to be built.
17267 allow_undefined_flag=$lt_allow_undefined_flag
17269 # Flag that enforces no undefined symbols.
17270 no_undefined_flag=$lt_no_undefined_flag
17272 # Flag to hardcode \$libdir into a binary during linking.
17273 # This must work even if \$libdir does not exist
17274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17276 # Whether we need a single "-rpath" flag with a separated argument.
17277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17279 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17280 # DIR into the resulting binary.
17281 hardcode_direct=$hardcode_direct
17283 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17284 # DIR into the resulting binary and the resulting library dependency is
17285 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17286 # library is relocated.
17287 hardcode_direct_absolute=$hardcode_direct_absolute
17289 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17290 # into the resulting binary.
17291 hardcode_minus_L=$hardcode_minus_L
17293 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17294 # into the resulting binary.
17295 hardcode_shlibpath_var=$hardcode_shlibpath_var
17297 # Set to "yes" if building a shared library automatically hardcodes DIR
17298 # into the library and all subsequent libraries and executables linked
17300 hardcode_automatic=$hardcode_automatic
17302 # Set to yes if linker adds runtime paths of dependent libraries
17303 # to runtime path list.
17304 inherit_rpath=$inherit_rpath
17306 # Whether libtool must link a program against all its dependency libraries.
17307 link_all_deplibs=$link_all_deplibs
17309 # Set to "yes" if exported symbols are required.
17310 always_export_symbols=$always_export_symbols
17312 # The commands to list exported symbols.
17313 export_symbols_cmds=$lt_export_symbols_cmds
17315 # Symbols that should not be listed in the preloaded symbols.
17316 exclude_expsyms=$lt_exclude_expsyms
17318 # Symbols that must always be exported.
17319 include_expsyms=$lt_include_expsyms
17321 # Commands necessary for linking programs (against libraries) with templates.
17322 prelink_cmds=$lt_prelink_cmds
17324 # Commands necessary for finishing linking programs.
17325 postlink_cmds=$lt_postlink_cmds
17327 # Specify filename containing input files.
17328 file_list_spec=$lt_file_list_spec
17330 # How to hardcode a shared library path into an executable.
17331 hardcode_action=$hardcode_action
17333 # ### END LIBTOOL CONFIG
17339 cat <<\_LT_EOF >> "$cfgfile"
17340 # AIX sometimes has problems with the GCC collect2 program. For some
17341 # reason, if we set the COLLECT_NAMES environment variable, the problems
17342 # vanish in a puff of smoke.
17343 if test "X${COLLECT_NAMES+set}" != Xset; then
17345 export COLLECT_NAMES
17352 ltmain="$ac_aux_dir/ltmain.sh"
17355 # We use sed instead of cat because bash on DJGPP gets confused if
17356 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17357 # text mode, it properly converts lines to CR/LF. This bash problem
17358 # is reportedly fixed, but why not run on old versions too?
17359 sed '$q' "$ltmain" >> "$cfgfile" \
17360 || (rm -f "$cfgfile"; exit 1)
17362 if test x"$xsi_shell" = xyes; then
17363 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17367 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17368 \ * ) func_dirname_result="${3}" ;;\
17370 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17371 && mv -f "$cfgfile.tmp" "$cfgfile" \
17372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17373 test 0 -eq $? || _lt_function_replace_fail=:
17376 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17379 \ func_basename_result="${1##*/}"\
17380 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
17382 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail=:
17386 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17387 func_dirname_and_basename ()\
17390 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17391 \ * ) func_dirname_result="${3}" ;;\
17393 \ func_basename_result="${1##*/}"\
17394 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17395 && mv -f "$cfgfile.tmp" "$cfgfile" \
17396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17397 test 0 -eq $? || _lt_function_replace_fail=:
17400 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17403 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17404 \ # positional parameters, so assign one to ordinary parameter first.\
17405 \ func_stripname_result=${3}\
17406 \ func_stripname_result=${func_stripname_result#"${1}"}\
17407 \ func_stripname_result=${func_stripname_result%"${2}"}\
17408 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17409 && mv -f "$cfgfile.tmp" "$cfgfile" \
17410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17411 test 0 -eq $? || _lt_function_replace_fail=:
17414 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17415 func_split_long_opt ()\
17417 \ func_split_long_opt_name=${1%%=*}\
17418 \ func_split_long_opt_arg=${1#*=}\
17419 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17420 && mv -f "$cfgfile.tmp" "$cfgfile" \
17421 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17422 test 0 -eq $? || _lt_function_replace_fail=:
17425 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17426 func_split_short_opt ()\
17428 \ func_split_short_opt_arg=${1#??}\
17429 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17430 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17431 && mv -f "$cfgfile.tmp" "$cfgfile" \
17432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17436 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17440 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17441 \ *) func_lo2o_result=${1} ;;\
17443 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17444 && mv -f "$cfgfile.tmp" "$cfgfile" \
17445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446 test 0 -eq $? || _lt_function_replace_fail=:
17449 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17452 func_xform_result=${1%.*}.lo\
17453 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17454 && mv -f "$cfgfile.tmp" "$cfgfile" \
17455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17456 test 0 -eq $? || _lt_function_replace_fail=:
17459 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17462 func_arith_result=$(( $* ))\
17463 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17464 && mv -f "$cfgfile.tmp" "$cfgfile" \
17465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17466 test 0 -eq $? || _lt_function_replace_fail=:
17469 sed -e '/^func_len ()$/,/^} # func_len /c\
17472 func_len_result=${#1}\
17473 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17474 && mv -f "$cfgfile.tmp" "$cfgfile" \
17475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17476 test 0 -eq $? || _lt_function_replace_fail=:
17480 if test x"$lt_shell_append" = xyes; then
17481 sed -e '/^func_append ()$/,/^} # func_append /c\
17484 eval "${1}+=\\${2}"\
17485 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17486 && mv -f "$cfgfile.tmp" "$cfgfile" \
17487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17488 test 0 -eq $? || _lt_function_replace_fail=:
17491 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17492 func_append_quoted ()\
17494 \ func_quote_for_eval "${2}"\
17495 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17496 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17497 && mv -f "$cfgfile.tmp" "$cfgfile" \
17498 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17499 test 0 -eq $? || _lt_function_replace_fail=:
17502 # Save a `func_append' function call where possible by direct use of '+='
17503 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17504 && mv -f "$cfgfile.tmp" "$cfgfile" \
17505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17506 test 0 -eq $? || _lt_function_replace_fail=:
17508 # Save a `func_append' function call even when '+=' is not available
17509 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17510 && mv -f "$cfgfile.tmp" "$cfgfile" \
17511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17512 test 0 -eq $? || _lt_function_replace_fail=:
17515 if test x"$_lt_function_replace_fail" = x":"; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17517 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17521 mv -f "$cfgfile" "$ofile" ||
17522 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17526 "include":C) test -d include || mkdir include ;;
17528 test -d src || mkdir src
17529 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17538 ac_clean_files=$ac_clean_files_save
17540 test $ac_write_fail = 0 ||
17541 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17544 # configure is writing to config.log, and then calls config.status.
17545 # config.status does its own redirection, appending to config.log.
17546 # Unfortunately, on DOS this fails, as config.log is still kept open
17547 # by configure, so config.status won't be able to write to it; its
17548 # output is simply discarded. So we exec the FD to /dev/null,
17549 # effectively closing config.log, so it can be properly (re)opened and
17550 # appended to by config.status. When coming back to configure, we
17551 # need to make the FD available again.
17552 if test "$no_create" != yes; then
17554 ac_config_status_args=
17555 test "$silent" = yes &&
17556 ac_config_status_args="$ac_config_status_args --quiet"
17558 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17560 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17561 # would make configure fail if this is the last instruction.
17562 $ac_cs_success || as_fn_exit 1
17564 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17566 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}