2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fuse 2.9.9.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
589 PACKAGE_TARNAME='fuse'
590 PACKAGE_VERSION='2.9.9'
591 PACKAGE_STRING='fuse 2.9.9'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars='am__EXEEXT_FALSE
703 INSTALL_STRIP_PROGRAM
758 program_transform_name
771 enable_option_checking
778 enable_dependency_tracking
791 ac_precious_vars='build_alias
803 # Initialize some variables set by options.
805 ac_init_version=false
806 ac_unrecognized_opts=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
817 program_transform_name=s,x,x,
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 runstatedir='${localstatedir}/run'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
856 # If the previous option needs an argument, assign it.
857 if test -n "$ac_prev"; then
858 eval $ac_prev=\$ac_option
864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 # Accept the important Cygnus configure options, so we can diagnose typos.
871 case $ac_dashdash$ac_option in
875 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 -build | --build | --buil | --bui | --bu)
881 ac_prev=build_alias ;;
882 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
883 build_alias=$ac_optarg ;;
885 -cache-file | --cache-file | --cache-fil | --cache-fi \
886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
887 ac_prev=cache_file ;;
888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
890 cache_file=$ac_optarg ;;
893 cache_file=config.cache ;;
895 -datadir | --datadir | --datadi | --datad)
897 -datadir=* | --datadir=* | --datadi=* | --datad=*)
898 datadir=$ac_optarg ;;
900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
901 | --dataroo | --dataro | --datar)
902 ac_prev=datarootdir ;;
903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
905 datarootdir=$ac_optarg ;;
907 -disable-* | --disable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 -enable-* | --enable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
947 eval enable_$ac_useropt=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -runstatedir | --runstatedir | --runstatedi | --runstated \
1093 | --runstate | --runstat | --runsta | --runst | --runs \
1094 | --run | --ru | --r)
1095 ac_prev=runstatedir ;;
1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1098 | --run=* | --ru=* | --r=*)
1099 runstatedir=$ac_optarg ;;
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=no ;;
1179 # Obsolete; use --with-x.
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir runstatedir
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1247 # Be sure to have absolute directory names.
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 elif test "x$build_alias" != "x$host_alias"; then
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error $? "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error $? "pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1317 ac_srcdir_defaulted=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1351 \`configure' configures fuse 2.9.9 to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking ...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1392 --libdir=DIR object code libraries [EPREFIX/lib]
1393 --includedir=DIR C header files [PREFIX/include]
1394 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1397 --infodir=DIR info documentation [DATAROOTDIR/info]
1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1399 --mandir=DIR man documentation [DATAROOTDIR/man]
1400 --docdir=DIR documentation root [DATAROOTDIR/doc/fuse]
1401 --htmldir=DIR html documentation [DOCDIR]
1402 --dvidir=DIR dvi documentation [DOCDIR]
1403 --pdfdir=DIR pdf documentation [DOCDIR]
1404 --psdir=DIR ps documentation [DOCDIR]
1410 --program-prefix=PREFIX prepend PREFIX to installed program names
1411 --program-suffix=SUFFIX append SUFFIX to installed program names
1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415 --build=BUILD configure for building on BUILD [guessed]
1416 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 --target=TARGET configure for building compilers for TARGET [HOST]
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of fuse 2.9.9:";;
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --enable-dependency-tracking
1438 do not reject slow dependency extractors
1439 --disable-dependency-tracking
1440 speeds up one-time build
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --disable-largefile omit support for large files
1443 --enable-lib Compile with library
1444 --enable-util Compile with util
1445 --enable-example Compile with examples
1446 --disable-mtab Disable and ignore usage of /etc/mtab
1447 --disable-rpath do not hardcode runtime library paths
1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1454 --with-aix-soname=aix|svr4|both
1455 shared library versioning (aka "SONAME") variant to
1456 provide on AIX, [default=aix].
1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1458 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1459 compiler's sysroot if not specified).
1460 --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
1461 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1464 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1475 User-defined run-time library search path.
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to the package provider.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1511 .) # We are building in place.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 fuse configure 2.9.9
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 test -x conftest$ac_exeext
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_link
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if eval \${$3+:} false; then :
1652 $as_echo_n "(cached) " >&6
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 } # ac_fn_c_check_header_compile
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } > conftest.i && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=$ac_status
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (); below.
1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772 <limits.h> exists even on freestanding compilers. */
1775 # include <limits.h>
1777 # include <assert.h>
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1804 if ac_fn_c_try_link "$LINENO"; then :
1809 rm -f core conftest.err conftest.$ac_objext \
1810 conftest$ac_exeext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_func
1819 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1820 # ----------------------------------------------------
1821 # Tries to find if the field MEMBER exists in type AGGR, after including
1822 # INCLUDES, setting cache variable VAR accordingly.
1823 ac_fn_c_check_member ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1827 $as_echo_n "checking for $2.$3... " >&6; }
1828 if eval \${$4+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1844 if ac_fn_c_try_compile "$LINENO"; then :
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1854 if (sizeof ac_aggr.$3)
1860 if ac_fn_c_try_compile "$LINENO"; then :
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_member
1875 cat >config.log <<_ACEOF
1876 This file contains any messages produced by compilers while
1877 running configure, to aid debugging if configure makes a mistake.
1879 It was created by fuse $as_me 2.9.9, which was
1880 generated by GNU Autoconf 2.69. Invocation command line was
1892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 test -z "$as_dir" && as_dir=.
1916 $as_echo "PATH: $as_dir"
1932 # Keep a trace of the command line.
1933 # Strip out --no-create and --no-recursion so they do not pile up.
1934 # Strip out --silent because we don't want to record it for future runs.
1935 # Also quote any args containing shell meta-characters.
1936 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_must_keep_next=false
1946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948 | -silent | --silent | --silen | --sile | --sil)
1951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1956 as_fn_append ac_configure_args1 " '$ac_arg'"
1957 if test $ac_must_keep_next = true; then
1958 ac_must_keep_next=false # Got value, back to normal.
1961 *=* | --config-cache | -C | -disable-* | --disable-* \
1962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964 | -with-* | --with-* | -without-* | --without-* | --x)
1965 case "$ac_configure_args0 " in
1966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 -* ) ac_must_keep_next=true ;;
1972 as_fn_append ac_configure_args " '$ac_arg'"
1977 { ac_configure_args0=; unset ac_configure_args0;}
1978 { ac_configure_args1=; unset ac_configure_args1;}
1980 # When interrupted or exit'd, cleanup temporary files, and complete
1981 # config.log. We remove comments because anyway the quotes in there
1982 # would cause problems or look ugly.
1983 # WARNING: Use '\'' to represent an apostrophe within the trap.
1984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985 trap 'exit_status=$?
1986 # Save into config.log some information that might help in debugging.
1990 $as_echo "## ---------------- ##
1991 ## Cache variables. ##
1992 ## ---------------- ##"
1994 # The following way of writing the cache mishandles newlines in values,
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2026 $as_echo "## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##"
2030 for ac_var in $ac_subst_vars
2032 eval ac_val=\$$ac_var
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 $as_echo "$ac_var='\''$ac_val'\''"
2040 if test -n "$ac_subst_files"; then
2041 $as_echo "## ------------------- ##
2042 ## File substitutions. ##
2043 ## ------------------- ##"
2045 for ac_var in $ac_subst_files
2047 eval ac_val=\$$ac_var
2049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 $as_echo "$ac_var='\''$ac_val'\''"
2056 if test -s confdefs.h; then
2057 $as_echo "## ----------- ##
2064 test "$ac_signal" != 0 &&
2065 $as_echo "$as_me: caught signal $ac_signal"
2066 $as_echo "$as_me: exit $exit_status"
2068 rm -f core *.core core.conftest.* &&
2069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 for ac_signal in 1 2 13 15; do
2073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078 rm -f -r conftest* confdefs.h
2080 $as_echo "/* confdefs.h */" > confdefs.h
2082 # Predefined preprocessor variables.
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_STRING "$PACKAGE_STRING"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_URL "$PACKAGE_URL"
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer an explicitly selected file to automatically selected ones.
2113 if test -n "$CONFIG_SITE"; then
2114 # We do not want a PATH search for config.site.
2115 case $CONFIG_SITE in #((
2116 -*) ac_site_file1=./$CONFIG_SITE;;
2117 */*) ac_site_file1=$CONFIG_SITE;;
2118 *) ac_site_file1=./$CONFIG_SITE;;
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_file1=$prefix/share/config.site
2122 ac_site_file2=$prefix/etc/config.site
2124 ac_site_file1=$ac_default_prefix/share/config.site
2125 ac_site_file2=$ac_default_prefix/etc/config.site
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 test "x$ac_site_file" = xNONE && continue
2130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 sed 's/^/| /' "$ac_site_file" >&5
2135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 as_fn_error $? "failed to load site script $ac_site_file
2138 See \`config.log' for more details" "$LINENO" 5; }
2142 if test -r "$cache_file"; then
2143 # Some versions of bash will fail to source /dev/null (special files
2144 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147 $as_echo "$as_me: loading cache $cache_file" >&6;}
2149 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150 *) . "./$cache_file";;
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 # Check that the precious variables saved in the cache have kept the same
2161 ac_cache_corrupted=false
2162 for ac_var in $ac_precious_vars; do
2163 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164 eval ac_new_set=\$ac_env_${ac_var}_set
2165 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166 eval ac_new_val=\$ac_env_${ac_var}_value
2167 case $ac_old_set,$ac_new_set in
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2178 if test "x$ac_old_val" != "x$ac_new_val"; then
2179 # differences in whitespace do not lead to failure.
2180 ac_old_val_w=`echo x $ac_old_val`
2181 ac_new_val_w=`echo x $ac_new_val`
2182 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185 ac_cache_corrupted=:
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189 eval $ac_var=\$ac_old_val
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 # Pass precious variables to config.status.
2198 if test "$ac_new_set" = set; then
2200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 *) ac_arg=$ac_var=$ac_new_val ;;
2203 case " $ac_configure_args " in
2204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 if $ac_cache_corrupted; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2216 ## -------------------- ##
2217 ## Main body of script. ##
2218 ## -------------------- ##
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2232 if test -f "$ac_dir/install-sh"; then
2234 ac_install_sh="$ac_aux_dir/install-sh -c"
2236 elif test -f "$ac_dir/install.sh"; then
2238 ac_install_sh="$ac_aux_dir/install.sh -c"
2240 elif test -f "$ac_dir/shtool"; then
2242 ac_install_sh="$ac_aux_dir/shtool install -c"
2246 if test -z "$ac_aux_dir"; then
2247 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2250 # These three variables are undocumented and unsupported,
2251 # and are intended to be withdrawn in a future Autoconf release.
2252 # They can cause serious problems if a builder's source tree is in a directory
2253 # whose full name contains unusual characters.
2254 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2255 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2256 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2259 # Make sure we can run config.sub.
2260 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2261 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2264 $as_echo_n "checking build system type... " >&6; }
2265 if ${ac_cv_build+:} false; then :
2266 $as_echo_n "(cached) " >&6
2268 ac_build_alias=$build_alias
2269 test "x$ac_build_alias" = x &&
2270 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2271 test "x$ac_build_alias" = x &&
2272 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2273 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2274 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2278 $as_echo "$ac_cv_build" >&6; }
2279 case $ac_cv_build in
2281 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2284 ac_save_IFS=$IFS; IFS='-'
2290 # Remember, the first character of IFS is used to create $*,
2291 # except with old shells:
2294 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2298 $as_echo_n "checking host system type... " >&6; }
2299 if ${ac_cv_host+:} false; then :
2300 $as_echo_n "(cached) " >&6
2302 if test "x$host_alias" = x; then
2303 ac_cv_host=$ac_cv_build
2305 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2306 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2311 $as_echo "$ac_cv_host" >&6; }
2314 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2317 ac_save_IFS=$IFS; IFS='-'
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2327 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2331 $as_echo_n "checking target system type... " >&6; }
2332 if ${ac_cv_target+:} false; then :
2333 $as_echo_n "(cached) " >&6
2335 if test "x$target_alias" = x; then
2336 ac_cv_target=$ac_cv_host
2338 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2339 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2344 $as_echo "$ac_cv_target" >&6; }
2345 case $ac_cv_target in
2347 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2349 target=$ac_cv_target
2350 ac_save_IFS=$IFS; IFS='-'
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2360 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2363 # The aliases save the names the user supplied, while $host etc.
2364 # will get canonicalized.
2365 test -n "$target_alias" &&
2366 test "$program_prefix$program_suffix$program_transform_name" = \
2368 program_prefix=${target_alias}-
2369 am__api_version='1.15'
2371 # Find a good install program. We prefer a C program (faster),
2372 # so one script is as good as another. But avoid the broken or
2373 # incompatible versions:
2374 # SysV /etc/install, /usr/sbin/install
2375 # SunOS /usr/etc/install
2376 # IRIX /sbin/install
2378 # AmigaOS /C/install, which installs bootblocks on floppy discs
2379 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2380 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2381 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2382 # OS/2's system install, which has a completely different semantic
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 # Reject install programs that cannot install multiple files.
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2386 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2387 if test -z "$INSTALL"; then
2388 if ${ac_cv_path_install+:} false; then :
2389 $as_echo_n "(cached) " >&6
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 # Account for people who put trailing slashes in PATH elements.
2397 case $as_dir/ in #((
2398 ./ | .// | /[cC]/* | \
2399 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2400 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2403 # OSF1 and SCO ODT 3.0 have their own names for install.
2404 # Don't use installbsd from OSF since it installs stuff as root
2406 for ac_prog in ginstall scoinst install; do
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2409 if test $ac_prog = install &&
2410 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # AIX install. It has an incompatible calling convention.
2413 elif test $ac_prog = install &&
2414 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # program-specific install script used by HP pwplus--don't use.
2418 rm -rf conftest.one conftest.two conftest.dir
2419 echo one > conftest.one
2420 echo two > conftest.two
2422 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2423 test -s conftest.one && test -s conftest.two &&
2424 test -s conftest.dir/conftest.one &&
2425 test -s conftest.dir/conftest.two
2427 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440 rm -rf conftest.one conftest.two conftest.dir
2443 if test "${ac_cv_path_install+set}" = set; then
2444 INSTALL=$ac_cv_path_install
2446 # As a last resort, use the slow shell script. Don't cache a
2447 # value for INSTALL within a source directory, because that will
2448 # break other packages using the cache if that directory is
2449 # removed, or if the value is a relative name.
2450 INSTALL=$ac_install_sh
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2454 $as_echo "$INSTALL" >&6; }
2456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2457 # It thinks the first close brace ends the variable substitution.
2458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2465 $as_echo_n "checking whether build environment is sane... " >&6; }
2466 # Reject unsafe characters in $srcdir or the absolute working directory
2467 # name. Accept space and tab only in the latter.
2471 *[\\\"\#\$\&\'\`$am_lf]*)
2472 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2475 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2476 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2479 # Do 'set' in a subshell so we don't clobber the current shell's
2480 # arguments. Must try -L first in case configure is actually a
2481 # symlink; some systems play weird games with the mod time of symlinks
2482 # (eg FreeBSD returns the mod time of the symlink's containing
2486 for am_try in 1 2; do
2487 echo "timestamp, slept: $am_has_slept" > conftest.file
2488 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2489 if test "$*" = "X"; then
2491 set X `ls -t "$srcdir/configure" conftest.file`
2493 if test "$*" != "X $srcdir/configure conftest.file" \
2494 && test "$*" != "X conftest.file $srcdir/configure"; then
2496 # If neither matched, then we have a broken ls. This can happen
2497 # if, for instance, CONFIG_SHELL is bash and it inherits a
2498 # broken ls alias from the environment. This has actually
2499 # happened. Such a system could not be considered "sane".
2500 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2503 if test "$2" = conftest.file || test $am_try -eq 2; then
2510 test "$2" = conftest.file
2516 as_fn_error $? "newly created file is older than distributed files!
2517 Check your system clock" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520 $as_echo "yes" >&6; }
2521 # If we didn't sleep, we still need to ensure time stamps of config.status and
2522 # generated files are strictly newer.
2524 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2531 test "$program_prefix" != NONE &&
2532 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2533 # Use a double $ so make ignores it.
2534 test "$program_suffix" != NONE &&
2535 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2536 # Double any \ or $.
2537 # By default was `s,x,x', remove it if useless.
2538 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2539 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2541 # Expand $ac_aux_dir to an absolute path.
2542 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2544 if test x"${MISSING+set}" != xset; then
2547 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2549 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2552 # Use eval to expand $SHELL
2553 if eval "$MISSING --is-lightweight"; then
2554 am_missing_run="$MISSING "
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2558 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2561 if test x"${install_sh+set}" != xset; then
2564 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2566 install_sh="\${SHELL} $am_aux_dir/install-sh"
2570 # Installed binaries are usually stripped using 'strip' when the user
2571 # run "make install-strip". However 'strip' might not be the right
2572 # tool to use in cross-compilation environments, therefore Automake
2573 # will honor the 'STRIP' environment variable to overrule this program.
2574 if test "$cross_compiling" != no; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}strip; ac_word=$2
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if ${ac_cv_prog_STRIP+:} false; then :
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2606 $as_echo "$STRIP" >&6; }
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609 $as_echo "no" >&6; }
2614 if test -z "$ac_cv_prog_STRIP"; then
2616 # Extract the first word of "strip", so it can be a program name with args.
2617 set dummy strip; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$ac_ct_STRIP"; then
2624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 ac_cv_prog_ac_ct_STRIP="strip"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644 if test -n "$ac_ct_STRIP"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2646 $as_echo "$ac_ct_STRIP" >&6; }
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649 $as_echo "no" >&6; }
2652 if test "x$ac_ct_STRIP" = x; then
2655 case $cross_compiling:$ac_tool_warned in
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2664 STRIP="$ac_cv_prog_STRIP"
2668 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2671 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2672 if test -z "$MKDIR_P"; then
2673 if ${ac_cv_path_mkdir+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2680 test -z "$as_dir" && as_dir=.
2681 for ac_prog in mkdir gmkdir; do
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2684 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2685 'mkdir (GNU coreutils) '* | \
2686 'mkdir (coreutils) '* | \
2687 'mkdir (fileutils) '4.1*)
2688 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2698 test -d ./--version && rmdir ./--version
2699 if test "${ac_cv_path_mkdir+set}" = set; then
2700 MKDIR_P="$ac_cv_path_mkdir -p"
2702 # As a last resort, use the slow shell script. Don't cache a
2703 # value for MKDIR_P within a source directory, because that will
2704 # break other packages using the cache if that directory is
2705 # removed, or if the value is a relative name.
2706 MKDIR_P="$ac_install_sh -d"
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2710 $as_echo "$MKDIR_P" >&6; }
2712 for ac_prog in gawk mawk nawk awk
2714 # Extract the first word of "$ac_prog", so it can be a program name with args.
2715 set dummy $ac_prog; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_AWK+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 if test -n "$AWK"; then
2722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 test -z "$as_dir" && as_dir=.
2729 for ac_exec_ext in '' $ac_executable_extensions; do
2730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731 ac_cv_prog_AWK="$ac_prog"
2732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 if test -n "$AWK"; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2744 $as_echo "$AWK" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2751 test -n "$AWK" && break
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2755 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2758 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 cat >conftest.make <<\_ACEOF
2764 @echo '@@@%%%=$(MAKE)=@@@%%%'
2766 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2767 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2769 eval ac_cv_prog_make_${ac_make}_set=yes;;
2771 eval ac_cv_prog_make_${ac_make}_set=no;;
2775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2777 $as_echo "yes" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2782 SET_MAKE="MAKE=${MAKE-make}"
2785 rm -rf .tst 2>/dev/null
2786 mkdir .tst 2>/dev/null
2787 if test -d .tst; then
2792 rmdir .tst 2>/dev/null
2794 # Check whether --enable-silent-rules was given.
2795 if test "${enable_silent_rules+set}" = set; then :
2796 enableval=$enable_silent_rules;
2799 case $enable_silent_rules in # (((
2800 yes) AM_DEFAULT_VERBOSITY=0;;
2801 no) AM_DEFAULT_VERBOSITY=1;;
2802 *) AM_DEFAULT_VERBOSITY=1;;
2804 am_make=${MAKE-make}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2806 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2807 if ${am_cv_make_support_nested_variables+:} false; then :
2808 $as_echo_n "(cached) " >&6
2810 if $as_echo 'TRUE=$(BAR$(V))
2816 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2817 am_cv_make_support_nested_variables=yes
2819 am_cv_make_support_nested_variables=no
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2823 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2824 if test $am_cv_make_support_nested_variables = yes; then
2826 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828 AM_V=$AM_DEFAULT_VERBOSITY
2829 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2833 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2834 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2835 # is not polluted with repeated "-I."
2836 am__isrc=' -I$(srcdir)'
2837 # test to see if srcdir already configured
2838 if test -f $srcdir/config.status; then
2839 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843 # test whether we have cygpath
2844 if test -z "$CYGPATH_W"; then
2845 if (cygpath --version) >/dev/null 2>/dev/null; then
2846 CYGPATH_W='cygpath -w'
2853 # Define the identity of the package.
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE "$PACKAGE"
2863 cat >>confdefs.h <<_ACEOF
2864 #define VERSION "$VERSION"
2867 # Some tools Automake needs.
2869 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2872 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2875 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2878 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2881 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2883 # For better backward compatibility. To be removed once Automake 1.9.x
2884 # dies out for good. For more background, see:
2885 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2886 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2887 mkdir_p='$(MKDIR_P)'
2889 # We need awk for the "check" target (and possibly the TAP driver). The
2890 # system "awk" is bad on some platforms.
2891 # Always define AMTAR for backward compatibility. Yes, it's still used
2892 # in the wild :-( We should find a proper way to deprecate it ...
2896 # We'll loop over all known methods to create a tar archive until one works.
2897 _am_tools='gnutar pax cpio none'
2899 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2906 # POSIX will say in a future version that running "rm -f" with no argument
2907 # is OK; and we want to be able to make that assumption in our Makefile
2908 # recipes. So use an aggressive probe to check that the usage we want is
2909 # actually supported "in the wild" to an acceptable degree.
2910 # See automake bug#10828.
2911 # To make any issue more visible, cause the running configure to be aborted
2912 # by default if the 'rm' program in use doesn't match our expectations; the
2913 # user can still override this though.
2914 if rm -f && rm -fr && rm -rf; then : OK; else
2918 Your 'rm' program seems unable to run without file operands specified
2919 on the command line, even when the '-f' option is present. This is contrary
2920 to the behaviour of most rm programs out there, and not conforming with
2921 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2923 Please tell bug-automake@gnu.org about your system, including the value
2924 of your $PATH and any error possibly output before this message. This
2925 can help us improve future automake versions.
2928 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2929 echo 'Configuration will proceed anyway, since you have set the' >&2
2930 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2934 Aborting the configuration process, to ensure you take notice of the issue.
2936 You can download and install GNU coreutils to get an 'rm' implementation
2937 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2939 If you want to complete the configuration process using your problematic
2940 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2941 to "yes", and re-run configure.
2944 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2948 # Check whether --enable-silent-rules was given.
2949 if test "${enable_silent_rules+set}" = set; then :
2950 enableval=$enable_silent_rules;
2953 case $enable_silent_rules in # (((
2954 yes) AM_DEFAULT_VERBOSITY=0;;
2955 no) AM_DEFAULT_VERBOSITY=1;;
2956 *) AM_DEFAULT_VERBOSITY=0;;
2958 am_make=${MAKE-make}
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2960 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2961 if ${am_cv_make_support_nested_variables+:} false; then :
2962 $as_echo_n "(cached) " >&6
2964 if $as_echo 'TRUE=$(BAR$(V))
2970 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2971 am_cv_make_support_nested_variables=yes
2973 am_cv_make_support_nested_variables=no
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2977 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2978 if test $am_cv_make_support_nested_variables = yes; then
2980 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2982 AM_V=$AM_DEFAULT_VERBOSITY
2983 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2987 ac_config_headers="$ac_config_headers include/config.h"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2993 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2998 macro_version='2.4.6'
2999 macro_revision='2.4.6'
3013 ltmain=$ac_aux_dir/ltmain.sh
3015 # Backslashify metacharacters that are still active within
3016 # double-quoted strings.
3017 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3019 # Same as above, but do not quote variable references.
3020 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3022 # Sed substitution to delay expansion of an escaped shell variable in a
3023 # double_quote_subst'ed string.
3024 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3026 # Sed substitution to delay expansion of an escaped single quote.
3027 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3029 # Sed substitution to avoid accidental globbing in evaled expressions
3030 no_glob_subst='s/\*/\\\*/g'
3032 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3037 $as_echo_n "checking how to print strings... " >&6; }
3038 # Test print first, because it will be a builtin if present.
3039 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3045 # Use this function as a fallback that always works.
3046 func_fallback_echo ()
3048 eval 'cat <<_LTECHO_EOF
3052 ECHO='func_fallback_echo'
3055 # func_echo_all arg...
3056 # Invoke $ECHO with all args, space-separated.
3063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3064 $as_echo "printf" >&6; } ;;
3065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3066 $as_echo "print -r" >&6; } ;;
3067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3068 $as_echo "cat" >&6; } ;;
3084 DEPDIR="${am__leading_dot}deps"
3086 ac_config_commands="$ac_config_commands depfiles"
3089 am_make=${MAKE-make}
3090 cat > confinc << 'END'
3092 @echo this is the am__doit target
3095 # If we don't find an include directive, just comment out the code.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3097 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3101 # First try GNU make style include.
3102 echo "include confinc" > confmf
3103 # Ignore all kinds of additional output from 'make'.
3104 case `$am_make -s -f confmf 2> /dev/null` in #(
3105 *the\ am__doit\ target*)
3111 # Now try BSD make style include.
3112 if test "$am__include" = "#"; then
3113 echo '.include "confinc"' > confmf
3114 case `$am_make -s -f confmf 2> /dev/null` in #(
3115 *the\ am__doit\ target*)
3116 am__include=.include
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3125 $as_echo "$_am_result" >&6; }
3126 rm -f confinc confmf
3128 # Check whether --enable-dependency-tracking was given.
3129 if test "${enable_dependency_tracking+set}" = set; then :
3130 enableval=$enable_dependency_tracking;
3133 if test "x$enable_dependency_tracking" != xno; then
3134 am_depcomp="$ac_aux_dir/depcomp"
3138 if test "x$enable_dependency_tracking" != xno; then
3148 ac_cpp='$CPP $CPPFLAGS'
3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152 if test -n "$ac_tool_prefix"; then
3153 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3191 if test -z "$ac_cv_prog_CC"; then
3193 # Extract the first word of "gcc", so it can be a program name with args.
3194 set dummy gcc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_ac_ct_CC="gcc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223 $as_echo "$ac_ct_CC" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3229 if test "x$ac_ct_CC" = x; then
3232 case $cross_compiling:$ac_tool_warned in
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3236 ac_tool_warned=yes ;;
3244 if test -z "$CC"; then
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}cc; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_CC+:} false; then :
3251 $as_echo_n "(cached) " >&6
3253 if test -n "$CC"; then
3254 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_CC="${ac_tool_prefix}cc"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 if test -n "$CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276 $as_echo "$CC" >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3285 if test -z "$CC"; then
3286 # Extract the first word of "cc", so it can be a program name with args.
3287 set dummy cc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if ${ac_cv_prog_CC+:} false; then :
3291 $as_echo_n "(cached) " >&6
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3305 ac_prog_rejected=yes
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 if test $ac_prog_rejected = yes; then
3317 # We found a bogon in the path, so make sure we never use it.
3318 set dummy $ac_cv_prog_CC
3320 if test $# != 0; then
3321 # We chose a different compiler from the bogus one.
3322 # However, it has the same basename, so the bogon will be chosen
3323 # first if we set CC to just the basename; use the full file name.
3325 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3341 if test -z "$CC"; then
3342 if test -n "$ac_tool_prefix"; then
3343 for ac_prog in cl.exe
3345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_CC+:} false; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$CC" && break
3385 if test -z "$CC"; then
3387 for ac_prog in cl.exe
3389 # Extract the first word of "$ac_prog", so it can be a program name with args.
3390 set dummy $ac_prog; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3396 if test -n "$ac_ct_CC"; then
3397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_ac_ct_CC="$ac_prog"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3417 if test -n "$ac_ct_CC"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3419 $as_echo "$ac_ct_CC" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3426 test -n "$ac_ct_CC" && break
3429 if test "x$ac_ct_CC" = x; then
3432 case $cross_compiling:$ac_tool_warned in
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436 ac_tool_warned=yes ;;
3445 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "no acceptable C compiler found in \$PATH
3448 See \`config.log' for more details" "$LINENO" 5; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3454 for ac_option in --version -v -V -qversion; do
3455 { { ac_try="$ac_compiler $ac_option >&5"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 if test -s conftest.err; then
3466 ... rest of stderr output deleted ...
3467 10q' conftest.err >conftest.er1
3468 cat conftest.er1 >&5
3470 rm -f conftest.er1 conftest.err
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 ac_clean_files_save=$ac_clean_files
3487 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3488 # Try to create an executable without -o first, disregard a.out.
3489 # It will help us diagnose broken compilers, and finding out an intuition
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3492 $as_echo_n "checking whether the C compiler works... " >&6; }
3493 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495 # The possible output files:
3496 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3499 for ac_file in $ac_files
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3503 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3508 if { { ac_try="$ac_link_default"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514 $as_echo "$ac_try_echo"; } >&5
3515 (eval "$ac_link_default") 2>&5
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }; then :
3519 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3520 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3521 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3522 # so that the user can short-circuit this test for compilers unknown to
3524 for ac_file in $ac_files ''
3526 test -f "$ac_file" || continue
3528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3531 # We found the default executable, but exeext='' is most
3535 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 # We set ac_cv_exeext here because the later test for it is not
3540 # safe: cross compilers may not add the suffix if given an `-o'
3541 # argument, so we may need to know it at that point already.
3542 # Even if this section looks crufty: it has the advantage of
3549 test "$ac_cv_exeext" = no && ac_cv_exeext=
3554 if test -z "$ac_file"; then :
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 $as_echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3562 as_fn_error 77 "C compiler cannot create executables
3563 See \`config.log' for more details" "$LINENO" 5; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3566 $as_echo "yes" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3569 $as_echo_n "checking for C compiler default output file name... " >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3571 $as_echo "$ac_file" >&6; }
3572 ac_exeext=$ac_cv_exeext
3574 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3575 ac_clean_files=$ac_clean_files_save
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3577 $as_echo_n "checking for suffix of executables... " >&6; }
3578 if { { ac_try="$ac_link"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_link") 2>&5
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3590 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3591 # work properly (i.e., refer to `conftest.exe'), while it won't with
3593 for ac_file in conftest.exe conftest conftest.*; do
3594 test -f "$ac_file" || continue
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603 { { $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 $? "cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 rm -f conftest conftest$ac_cv_exeext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3610 $as_echo "$ac_cv_exeext" >&6; }
3612 rm -f conftest.$ac_ext
3613 EXEEXT=$ac_cv_exeext
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3621 FILE *f = fopen ("conftest.out", "w");
3622 return ferror (f) || fclose (f) != 0;
3628 ac_clean_files="$ac_clean_files conftest.out"
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 if test "$cross_compiling" != yes; then
3634 { { ac_try="$ac_link"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640 $as_echo "$ac_try_echo"; } >&5
3641 (eval "$ac_link") 2>&5
3643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3644 test $ac_status = 0; }
3645 if { ac_try='./conftest$ac_cv_exeext'
3646 { { case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651 $as_echo "$ac_try_echo"; } >&5
3652 (eval "$ac_try") 2>&5
3654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655 test $ac_status = 0; }; }; then
3658 if test "$cross_compiling" = maybe; then
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "cannot run C compiled programs.
3664 If you meant to cross compile, use \`--host'.
3665 See \`config.log' for more details" "$LINENO" 5; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3670 $as_echo "$cross_compiling" >&6; }
3672 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3673 ac_clean_files=$ac_clean_files_save
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3675 $as_echo_n "checking for suffix of object files... " >&6; }
3676 if ${ac_cv_objext+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 rm -f conftest.o conftest.obj
3691 if { { ac_try="$ac_compile"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_compile") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 for ac_file in conftest.o conftest.obj conftest.*; do
3703 test -f "$ac_file" || continue;
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3706 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error $? "cannot compute suffix of object files: cannot compile
3717 See \`config.log' for more details" "$LINENO" 5; }
3719 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3722 $as_echo "$ac_cv_objext" >&6; }
3723 OBJEXT=$ac_cv_objext
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3726 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3727 if ${ac_cv_c_compiler_gnu+:} false; then :
3728 $as_echo_n "(cached) " >&6
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3744 if ac_fn_c_try_compile "$LINENO"; then :
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3754 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3755 if test $ac_compiler_gnu = yes; then
3760 ac_test_CFLAGS=${CFLAGS+set}
3761 ac_save_CFLAGS=$CFLAGS
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3763 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3764 if ${ac_cv_prog_cc_g+:} false; then :
3765 $as_echo_n "(cached) " >&6
3767 ac_save_c_werror_flag=$ac_c_werror_flag
3768 ac_c_werror_flag=yes
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3797 if ac_fn_c_try_compile "$LINENO"; then :
3800 ac_c_werror_flag=$ac_save_c_werror_flag
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3813 if ac_fn_c_try_compile "$LINENO"; then :
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3824 $as_echo "$ac_cv_prog_cc_g" >&6; }
3825 if test "$ac_test_CFLAGS" = set; then
3826 CFLAGS=$ac_save_CFLAGS
3827 elif test $ac_cv_prog_cc_g = yes; then
3828 if test "$GCC" = yes; then
3834 if test "$GCC" = yes; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3842 if ${ac_cv_prog_cc_c89+:} false; then :
3843 $as_echo_n "(cached) " >&6
3845 ac_cv_prog_cc_c89=no
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3852 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3853 struct buf { int x; };
3854 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3855 static char *e (p, i)
3861 static char *f (char * (*g) (char **, int), char **p, ...)
3866 s = g (p, va_arg (v,int));
3871 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3872 function prototypes and stuff, but not '\xHH' hex character constants.
3873 These don't provoke an error unfortunately, instead are silently treated
3874 as 'x'. The following induces an error, until -std is added to get
3875 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3876 array size at least. It's necessary to write '\x00'==0 to get something
3877 that's true only with -std. */
3878 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3881 inside strings and character constants. */
3883 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885 int test (int i, double x);
3886 struct s1 {int (*f) (int a);};
3887 struct s2 {int (*f) (double a);};
3888 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3894 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3899 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3900 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902 CC="$ac_save_CC $ac_arg"
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904 ac_cv_prog_cc_c89=$ac_arg
3906 rm -f core conftest.err conftest.$ac_objext
3907 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909 rm -f conftest.$ac_ext
3914 case "x$ac_cv_prog_cc_c89" in
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3917 $as_echo "none needed" >&6; } ;;
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3920 $as_echo "unsupported" >&6; } ;;
3922 CC="$CC $ac_cv_prog_cc_c89"
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3924 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926 if test "x$ac_cv_prog_cc_c89" != xno; then :
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3942 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3943 if ${am_cv_prog_cc_c_o+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3957 # Make sure it works both with $CC and with simple cc.
3958 # Following AC_PROG_CC_C_O, we do the test twice because some
3959 # compilers refuse to overwrite an existing .o file with -o,
3960 # though they will create one.
3961 am_cv_prog_cc_c_o=yes
3963 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3964 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } \
3968 && test -f conftest2.$ac_objext; then
3971 am_cv_prog_cc_c_o=no
3975 rm -f core conftest*
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3979 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3980 if test "$am_cv_prog_cc_c_o" != yes; then
3981 # Losing compiler, so override with the script.
3982 # FIXME: It is wrong to rewrite CC.
3983 # But if we don't then we get into trouble of one sort or another.
3984 # A longer-term fix would be to have automake use am__CC in this case,
3985 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3986 CC="$am_aux_dir/compile $CC"
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 depcc="$CC" am_compiler_list=
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3998 $as_echo_n "checking dependency style of $depcc... " >&6; }
3999 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4003 # We make a subdir and do the tests there. Otherwise we can end up
4004 # making bogus files that we don't know about and never remove. For
4005 # instance it was reported that on HP-UX the gcc test will end up
4006 # making a dummy file named 'D' -- because '-MD' means "put the output
4010 # Copy depcomp to subdir because otherwise we won't find it if we're
4011 # using a relative directory.
4012 cp "$am_depcomp" conftest.dir
4014 # We will build objects and dependencies in a subdirectory because
4015 # it helps to detect inapplicable dependency modes. For instance
4016 # both Tru64's cc and ICC support -MD to output dependencies as a
4017 # side effect of compilation, but ICC will put the dependencies in
4018 # the current directory while Tru64 will put them in the object
4022 am_cv_CC_dependencies_compiler_type=none
4023 if test "$am_compiler_list" = ""; then
4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4027 case " $depcc " in #(
4028 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4031 for depmode in $am_compiler_list; do
4032 # Setup a source with many dependencies, because some compilers
4033 # like to wrap large dependency lists on column 80 (with \), and
4034 # we should not choose a depcomp mode which is confused by this.
4036 # We need to recreate these files for each test, as the compiler may
4037 # overwrite some of them when testing with obscure command lines.
4038 # This happens at least with the AIX C compiler.
4040 for i in 1 2 3 4 5 6; do
4041 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4043 # Solaris 10 /bin/sh.
4044 echo '/* dummy */' > sub/conftst$i.h
4046 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4049 # mode. It turns out that the SunPro C++ compiler does not properly
4050 # handle '-M -o', and we need to detect this. Also, some Intel
4051 # versions had trouble with output in subdirs.
4052 am__obj=sub/conftest.${OBJEXT-o}
4053 am__minus_obj="-o $am__obj"
4056 # This depmode causes a compiler race in universal mode.
4057 test "$am__universal" = false || continue
4060 # After this tag, mechanisms are not by side-effect, so they'll
4061 # only be used when explicitly requested.
4062 if test "x$enable_dependency_tracking" = xyes; then
4068 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4069 # This compiler won't grok '-c -o', but also, the minuso test has
4070 # not run yet. These depmodes are late enough in the game, and
4071 # so weak that their functioning should not be impacted.
4072 am__obj=conftest.${OBJEXT-o}
4077 if depmode=$depmode \
4078 source=sub/conftest.c object=$am__obj \
4079 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4080 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4081 >/dev/null 2>conftest.err &&
4082 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086 # icc doesn't choke on unknown options, it will just issue warnings
4087 # or remarks (even with -Werror). So we grep stderr for any message
4088 # that says an option was ignored or not supported.
4089 # When given -MP, icc 7.0 and 7.1 complain thusly:
4090 # icc: Command line warning: ignoring option '-M'; no argument required
4091 # The diagnosis changed in icc 8.0:
4092 # icc: Command line remark: option '-MP' not supported
4093 if (grep 'ignoring option' conftest.err ||
4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095 am_cv_CC_dependencies_compiler_type=$depmode
4104 am_cv_CC_dependencies_compiler_type=none
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4113 test "x$enable_dependency_tracking" != xno \
4114 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_FALSE='#'
4118 am__fastdepCC_TRUE='#'
4119 am__fastdepCC_FALSE=
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4125 if ${ac_cv_path_SED+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4129 for ac_i in 1 2 3 4 5 6 7; do
4130 ac_script="$ac_script$as_nl$ac_script"
4132 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4133 { ac_script=; unset ac_script;}
4134 if test -z "$SED"; then
4135 ac_path_SED_found=false
4136 # Loop through the user's path and test for each of PROGNAME-LIST
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in sed gsed; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4145 as_fn_executable_p "$ac_path_SED" || continue
4146 # Check for GNU ac_path_SED and select it if it is found.
4147 # Check for GNU $ac_path_SED
4148 case `"$ac_path_SED" --version 2>&1` in
4150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4153 $as_echo_n 0123456789 >"conftest.in"
4156 cat "conftest.in" "conftest.in" >"conftest.tmp"
4157 mv "conftest.tmp" "conftest.in"
4158 cp "conftest.in" "conftest.nl"
4159 $as_echo '' >> "conftest.nl"
4160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4162 as_fn_arith $ac_count + 1 && ac_count=$as_val
4163 if test $ac_count -gt ${ac_path_SED_max-0}; then
4164 # Best one so far, save it but keep looking for a better one
4165 ac_cv_path_SED="$ac_path_SED"
4166 ac_path_SED_max=$ac_count
4168 # 10*(2^10) chars as input seems more than enough
4169 test $ac_count -gt 10 && break
4171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4174 $ac_path_SED_found && break 3
4179 if test -z "$ac_cv_path_SED"; then
4180 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4188 $as_echo "$ac_cv_path_SED" >&6; }
4189 SED="$ac_cv_path_SED"
4192 test -z "$SED" && SED=sed
4193 Xsed="$SED -e 1s/^X//"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4206 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4207 if ${ac_cv_path_GREP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -z "$GREP"; then
4211 ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4217 test -z "$as_dir" && as_dir=.
4218 for ac_prog in grep ggrep; do
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221 as_fn_executable_p "$ac_path_GREP" || continue
4222 # Check for GNU ac_path_GREP and select it if it is found.
4223 # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4229 $as_echo_n 0123456789 >"conftest.in"
4232 cat "conftest.in" "conftest.in" >"conftest.tmp"
4233 mv "conftest.tmp" "conftest.in"
4234 cp "conftest.in" "conftest.nl"
4235 $as_echo 'GREP' >> "conftest.nl"
4236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238 as_fn_arith $ac_count + 1 && ac_count=$as_val
4239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240 # Best one so far, save it but keep looking for a better one
4241 ac_cv_path_GREP="$ac_path_GREP"
4242 ac_path_GREP_max=$ac_count
4244 # 10*(2^10) chars as input seems more than enough
4245 test $ac_count -gt 10 && break
4247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4250 $ac_path_GREP_found && break 3
4255 if test -z "$ac_cv_path_GREP"; then
4256 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4259 ac_cv_path_GREP=$GREP
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4264 $as_echo "$ac_cv_path_GREP" >&6; }
4265 GREP="$ac_cv_path_GREP"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4269 $as_echo_n "checking for egrep... " >&6; }
4270 if ${ac_cv_path_EGREP+:} false; then :
4271 $as_echo_n "(cached) " >&6
4273 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4274 then ac_cv_path_EGREP="$GREP -E"
4276 if test -z "$EGREP"; then
4277 ac_path_EGREP_found=false
4278 # Loop through the user's path and test for each of PROGNAME-LIST
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4283 test -z "$as_dir" && as_dir=.
4284 for ac_prog in egrep; do
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4287 as_fn_executable_p "$ac_path_EGREP" || continue
4288 # Check for GNU ac_path_EGREP and select it if it is found.
4289 # Check for GNU $ac_path_EGREP
4290 case `"$ac_path_EGREP" --version 2>&1` in
4292 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4295 $as_echo_n 0123456789 >"conftest.in"
4298 cat "conftest.in" "conftest.in" >"conftest.tmp"
4299 mv "conftest.tmp" "conftest.in"
4300 cp "conftest.in" "conftest.nl"
4301 $as_echo 'EGREP' >> "conftest.nl"
4302 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4304 as_fn_arith $ac_count + 1 && ac_count=$as_val
4305 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4306 # Best one so far, save it but keep looking for a better one
4307 ac_cv_path_EGREP="$ac_path_EGREP"
4308 ac_path_EGREP_max=$ac_count
4310 # 10*(2^10) chars as input seems more than enough
4311 test $ac_count -gt 10 && break
4313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4316 $ac_path_EGREP_found && break 3
4321 if test -z "$ac_cv_path_EGREP"; then
4322 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4325 ac_cv_path_EGREP=$EGREP
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4331 $as_echo "$ac_cv_path_EGREP" >&6; }
4332 EGREP="$ac_cv_path_EGREP"
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4336 $as_echo_n "checking for fgrep... " >&6; }
4337 if ${ac_cv_path_FGREP+:} false; then :
4338 $as_echo_n "(cached) " >&6
4340 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4341 then ac_cv_path_FGREP="$GREP -F"
4343 if test -z "$FGREP"; then
4344 ac_path_FGREP_found=false
4345 # Loop through the user's path and test for each of PROGNAME-LIST
4346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 test -z "$as_dir" && as_dir=.
4351 for ac_prog in fgrep; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4354 as_fn_executable_p "$ac_path_FGREP" || continue
4355 # Check for GNU ac_path_FGREP and select it if it is found.
4356 # Check for GNU $ac_path_FGREP
4357 case `"$ac_path_FGREP" --version 2>&1` in
4359 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4362 $as_echo_n 0123456789 >"conftest.in"
4365 cat "conftest.in" "conftest.in" >"conftest.tmp"
4366 mv "conftest.tmp" "conftest.in"
4367 cp "conftest.in" "conftest.nl"
4368 $as_echo 'FGREP' >> "conftest.nl"
4369 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 as_fn_arith $ac_count + 1 && ac_count=$as_val
4372 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4373 # Best one so far, save it but keep looking for a better one
4374 ac_cv_path_FGREP="$ac_path_FGREP"
4375 ac_path_FGREP_max=$ac_count
4377 # 10*(2^10) chars as input seems more than enough
4378 test $ac_count -gt 10 && break
4380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 $ac_path_FGREP_found && break 3
4388 if test -z "$ac_cv_path_FGREP"; then
4389 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392 ac_cv_path_FGREP=$FGREP
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4398 $as_echo "$ac_cv_path_FGREP" >&6; }
4399 FGREP="$ac_cv_path_FGREP"
4402 test -z "$GREP" && GREP=grep
4422 # Check whether --with-gnu-ld was given.
4423 if test "${with_gnu_ld+set}" = set; then :
4424 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4430 if test yes = "$GCC"; then
4431 # Check if gcc -print-prog-name=ld gives a path.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4433 $as_echo_n "checking for ld used by $CC... " >&6; }
4436 # gcc leaves a trailing carriage return, which upsets mingw
4437 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4439 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4442 # Accept absolute paths.
4444 re_direlt='/[^/][^/]*/\.\./'
4445 # Canonicalize the pathname of ld
4446 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4447 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4448 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4450 test -z "$LD" && LD=$ac_prog
4453 # If it fails, then pretend we aren't using GCC.
4457 # If it is relative, then search for the first ld in PATH.
4461 elif test yes = "$with_gnu_ld"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4463 $as_echo_n "checking for GNU ld... " >&6; }
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4466 $as_echo_n "checking for non-GNU ld... " >&6; }
4468 if ${lt_cv_path_LD+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 if test -z "$LD"; then
4472 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4473 for ac_dir in $PATH; do
4475 test -z "$ac_dir" && ac_dir=.
4476 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4477 lt_cv_path_LD=$ac_dir/$ac_prog
4478 # Check to see if the program is GNU ld. I'd rather use --version,
4479 # but apparently some variants of GNU ld only accept -v.
4480 # Break only if it was the GNU/non-GNU ld that we prefer.
4481 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4482 *GNU* | *'with BFD'*)
4483 test no != "$with_gnu_ld" && break
4486 test yes != "$with_gnu_ld" && break
4493 lt_cv_path_LD=$LD # Let the user override the test with a path.
4498 if test -n "$LD"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4500 $as_echo "$LD" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4505 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4507 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4508 if ${lt_cv_prog_gnu_ld+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4512 case `$LD -v 2>&1 </dev/null` in
4513 *GNU* | *'with BFD'*)
4514 lt_cv_prog_gnu_ld=yes
4517 lt_cv_prog_gnu_ld=no
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4522 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4523 with_gnu_ld=$lt_cv_prog_gnu_ld
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4534 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4535 if ${lt_cv_path_NM+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 if test -n "$NM"; then
4539 # Let the user override the test.
4542 lt_nm_to_check=${ac_tool_prefix}nm
4543 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4544 lt_nm_to_check="$lt_nm_to_check nm"
4546 for lt_tmp_nm in $lt_nm_to_check; do
4547 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4548 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4550 test -z "$ac_dir" && ac_dir=.
4551 tmp_nm=$ac_dir/$lt_tmp_nm
4552 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4553 # Check to see if the nm accepts a BSD-compat flag.
4554 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4555 # nm: unknown option "B" ignored
4556 # Tru64's nm complains that /dev/null is an invalid object file
4557 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4559 mingw*) lt_bad_file=conftest.nm/nofile ;;
4560 *) lt_bad_file=/dev/null ;;
4562 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4563 *$lt_bad_file* | *'Invalid file or object type'*)
4564 lt_cv_path_NM="$tmp_nm -B"
4568 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4570 lt_cv_path_NM="$tmp_nm -p"
4574 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4575 continue # so that we can try to find one that supports BSD flags
4584 : ${lt_cv_path_NM=no}
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4588 $as_echo "$lt_cv_path_NM" >&6; }
4589 if test no != "$lt_cv_path_NM"; then
4592 # Didn't find any BSD compatible name lister, look for dumpbin.
4593 if test -n "$DUMPBIN"; then :
4594 # Let the user override the test.
4596 if test -n "$ac_tool_prefix"; then
4597 for ac_prog in dumpbin "link -dump"
4599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_DUMPBIN+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$DUMPBIN"; then
4607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 DUMPBIN=$ac_cv_prog_DUMPBIN
4627 if test -n "$DUMPBIN"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4629 $as_echo "$DUMPBIN" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 test -n "$DUMPBIN" && break
4639 if test -z "$DUMPBIN"; then
4640 ac_ct_DUMPBIN=$DUMPBIN
4641 for ac_prog in dumpbin "link -dump"
4643 # Extract the first word of "$ac_prog", so it can be a program name with args.
4644 set dummy $ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$ac_ct_DUMPBIN"; then
4651 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4671 if test -n "$ac_ct_DUMPBIN"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4673 $as_echo "$ac_ct_DUMPBIN" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4680 test -n "$ac_ct_DUMPBIN" && break
4683 if test "x$ac_ct_DUMPBIN" = x; then
4686 case $cross_compiling:$ac_tool_warned in
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4690 ac_tool_warned=yes ;;
4692 DUMPBIN=$ac_ct_DUMPBIN
4696 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4698 DUMPBIN="$DUMPBIN -symbols -headers"
4706 if test : != "$DUMPBIN"; then
4710 test -z "$NM" && NM=nm
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4718 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4719 if ${lt_cv_nm_interface+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 lt_cv_nm_interface="BSD nm"
4723 echo "int some_variable = 0;" > conftest.$ac_ext
4724 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4725 (eval "$ac_compile" 2>conftest.err)
4726 cat conftest.err >&5
4727 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4728 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4729 cat conftest.err >&5
4730 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4731 cat conftest.out >&5
4732 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4733 lt_cv_nm_interface="MS dumpbin"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4738 $as_echo "$lt_cv_nm_interface" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4741 $as_echo_n "checking whether ln -s works... " >&6; }
4743 if test "$LN_S" = "ln -s"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4745 $as_echo "yes" >&6; }
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4748 $as_echo "no, using $LN_S" >&6; }
4751 # find the maximum length of command line arguments
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4753 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4754 if ${lt_cv_sys_max_cmd_len+:} false; then :
4755 $as_echo_n "(cached) " >&6
4762 # On DJGPP, this test can blow up pretty badly due to problems in libc
4763 # (any single argument exceeding 2000 bytes causes a buffer overrun
4764 # during glob expansion). Even if it were fixed, the result of this
4765 # check would be larger than it should be.
4766 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4770 # Under GNU Hurd, this test is not required because there is
4771 # no limit to the length of command line arguments.
4772 # Libtool will interpret -1 as no limit whatsoever
4773 lt_cv_sys_max_cmd_len=-1;
4776 cygwin* | mingw* | cegcc*)
4777 # On Win9x/ME, this test blows up -- it succeeds, but takes
4778 # about 5 minutes as the teststring grows exponentially.
4779 # Worse, since 9x/ME are not pre-emptively multitasking,
4780 # you end up with a "frozen" computer, even though with patience
4781 # the test eventually succeeds (with a max line length of 256k).
4782 # Instead, let's just punt: use the minimum linelength reported by
4783 # all of the supported platforms: 8192 (on NT/2K/XP).
4784 lt_cv_sys_max_cmd_len=8192;
4788 # On MiNT this can take a long time and run out of memory.
4789 lt_cv_sys_max_cmd_len=8192;
4793 # On AmigaOS with pdksh, this test takes hours, literally.
4794 # So we just punt and use a minimum line length of 8192.
4795 lt_cv_sys_max_cmd_len=8192;
4798 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4799 # This has been around since 386BSD, at least. Likely further.
4800 if test -x /sbin/sysctl; then
4801 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4802 elif test -x /usr/sbin/sysctl; then
4803 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4805 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4807 # And add a safety zone
4808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4813 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4814 lt_cv_sys_max_cmd_len=196608
4818 # The test takes a long time on OS/2.
4819 lt_cv_sys_max_cmd_len=8192
4823 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4824 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4825 # nice to cause kernel panics so lets avoid the loop below.
4826 # First set a reasonable default.
4827 lt_cv_sys_max_cmd_len=16384
4829 if test -x /sbin/sysconfig; then
4830 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4831 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4836 lt_cv_sys_max_cmd_len=102400
4838 sysv5* | sco5v6* | sysv4.2uw2*)
4839 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4840 if test -n "$kargmax"; then
4841 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4843 lt_cv_sys_max_cmd_len=32768
4847 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4848 if test -n "$lt_cv_sys_max_cmd_len" && \
4849 test undefined != "$lt_cv_sys_max_cmd_len"; then
4850 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853 # Make teststring a little bigger before we do anything with it.
4854 # a 1K string should be a reasonable start.
4855 for i in 1 2 3 4 5 6 7 8; do
4856 teststring=$teststring$teststring
4858 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4859 # If test is not a shell built-in, we'll probably end up computing a
4860 # maximum length that is only half of the actual maximum length, but
4862 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4863 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4864 test 17 != "$i" # 1/2 MB should be enough
4867 teststring=$teststring$teststring
4869 # Only check the string length outside the loop.
4870 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4872 # Add a significant safety factor because C++ compilers can tack on
4873 # massive amounts of additional arguments before passing them to the
4874 # linker. It appears as though 1/2 is a usable value.
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4882 if test -n "$lt_cv_sys_max_cmd_len"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4884 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4887 $as_echo "none" >&6; }
4889 max_cmd_len=$lt_cv_sys_max_cmd_len
4900 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4910 # test EBCDIC or ASCII
4911 case `echo X|tr X '\101'` in
4912 A) # ASCII based system
4913 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4914 lt_SP2NL='tr \040 \012'
4915 lt_NL2SP='tr \015\012 \040\040'
4917 *) # EBCDIC based system
4918 lt_SP2NL='tr \100 \n'
4919 lt_NL2SP='tr \r\n \100\100'
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4932 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4933 if ${lt_cv_to_host_file_cmd+:} false; then :
4934 $as_echo_n "(cached) " >&6
4939 *-*-mingw* ) # actually msys
4940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4943 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4945 * ) # otherwise, assume *nix
4946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4952 *-*-mingw* ) # actually msys
4953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4956 lt_cv_to_host_file_cmd=func_convert_file_noop
4958 * ) # otherwise, assume *nix
4959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4963 * ) # unhandled hosts (and "normal" native builds)
4964 lt_cv_to_host_file_cmd=func_convert_file_noop
4970 to_host_file_cmd=$lt_cv_to_host_file_cmd
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4972 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4979 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4980 if ${lt_cv_to_tool_file_cmd+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 #assume ordinary cross tools, or native build.
4984 lt_cv_to_tool_file_cmd=func_convert_file_noop
4988 *-*-mingw* ) # actually msys
4989 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4997 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4999 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5006 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5007 if ${lt_cv_ld_reload_flag+:} false; then :
5008 $as_echo_n "(cached) " >&6
5010 lt_cv_ld_reload_flag='-r'
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5013 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5014 reload_flag=$lt_cv_ld_reload_flag
5015 case $reload_flag in
5017 *) reload_flag=" $reload_flag" ;;
5019 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 cygwin* | mingw* | pw32* | cegcc*)
5022 if test yes != "$GCC"; then
5027 if test yes = "$GCC"; then
5028 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5030 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5045 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_OBJDUMP+:} false; then :
5049 $as_echo_n "(cached) " >&6
5051 if test -n "$OBJDUMP"; then
5052 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 OBJDUMP=$ac_cv_prog_OBJDUMP
5072 if test -n "$OBJDUMP"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5074 $as_echo "$OBJDUMP" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5082 if test -z "$ac_cv_prog_OBJDUMP"; then
5083 ac_ct_OBJDUMP=$OBJDUMP
5084 # Extract the first word of "objdump", so it can be a program name with args.
5085 set dummy objdump; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5089 $as_echo_n "(cached) " >&6
5091 if test -n "$ac_ct_OBJDUMP"; then
5092 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5101 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5111 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5112 if test -n "$ac_ct_OBJDUMP"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5114 $as_echo "$ac_ct_OBJDUMP" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5120 if test "x$ac_ct_OBJDUMP" = x; then
5123 case $cross_compiling:$ac_tool_warned in
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127 ac_tool_warned=yes ;;
5129 OBJDUMP=$ac_ct_OBJDUMP
5132 OBJDUMP="$ac_cv_prog_OBJDUMP"
5135 test -z "$OBJDUMP" && OBJDUMP=objdump
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5146 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5147 if ${lt_cv_deplibs_check_method+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 lt_cv_file_magic_cmd='$MAGIC_CMD'
5151 lt_cv_file_magic_test_file=
5152 lt_cv_deplibs_check_method='unknown'
5153 # Need to set the preceding variable on all platforms that support
5154 # interlibrary dependencies.
5155 # 'none' -- dependencies not supported.
5156 # 'unknown' -- same as none, but documents that we really don't know.
5157 # 'pass_all' -- all dependencies passed with no checks.
5158 # 'test_compile' -- check by making test program.
5159 # 'file_magic [[regex]]' -- check by looking for files in library path
5160 # that responds to the $file_magic_cmd with a given extended regex.
5161 # If you have 'file' or equivalent on your system and you're not sure
5162 # whether 'pass_all' will *always* work, you probably want this one.
5166 lt_cv_deplibs_check_method=pass_all
5170 lt_cv_deplibs_check_method=pass_all
5174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5175 lt_cv_file_magic_cmd='/usr/bin/file -L'
5176 lt_cv_file_magic_test_file=/shlib/libc.so
5180 # func_win32_libid is a shell function defined in ltmain.sh
5181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5182 lt_cv_file_magic_cmd='func_win32_libid'
5186 # Base MSYS/MinGW do not provide the 'file' command needed by
5187 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5188 # unless we find 'file', for example because we are cross-compiling.
5189 if ( file / ) >/dev/null 2>&1; then
5190 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5191 lt_cv_file_magic_cmd='func_win32_libid'
5193 # Keep this pattern in sync with the one in func_win32_libid.
5194 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5195 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 # use the weaker test based on 'objdump'. See mingw*.
5201 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5202 lt_cv_file_magic_cmd='$OBJDUMP -f'
5205 darwin* | rhapsody*)
5206 lt_cv_deplibs_check_method=pass_all
5209 freebsd* | dragonfly*)
5210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5213 # Not sure whether the presence of OpenBSD here was a mistake.
5214 # Let's accept both of them until this is cleared up.
5215 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5216 lt_cv_file_magic_cmd=/usr/bin/file
5217 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5221 lt_cv_deplibs_check_method=pass_all
5226 lt_cv_deplibs_check_method=pass_all
5229 hpux10.20* | hpux11*)
5230 lt_cv_file_magic_cmd=/usr/bin/file
5233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5237 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]'
5238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5242 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5252 irix5* | irix6* | nonstopux*)
5254 *-32|*"-32 ") libmagic=32-bit;;
5255 *-n32|*"-n32 ") libmagic=N32;;
5256 *-64|*"-64 ") libmagic=64-bit;;
5257 *) libmagic=never-match;;
5259 lt_cv_deplibs_check_method=pass_all
5262 # This must be glibc/ELF.
5263 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5264 lt_cv_deplibs_check_method=pass_all
5267 netbsd* | netbsdelf*-gnu)
5268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5277 lt_cv_file_magic_cmd=/usr/bin/file
5278 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5282 lt_cv_deplibs_check_method=pass_all
5286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5293 osf3* | osf4* | osf5*)
5294 lt_cv_deplibs_check_method=pass_all
5298 lt_cv_deplibs_check_method=pass_all
5302 lt_cv_deplibs_check_method=pass_all
5305 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5306 lt_cv_deplibs_check_method=pass_all
5310 case $host_vendor in
5312 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]'
5313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5316 lt_cv_deplibs_check_method=pass_all
5319 lt_cv_file_magic_cmd='/bin/file'
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5323 lt_cv_file_magic_cmd='/bin/file'
5324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5325 lt_cv_file_magic_test_file=/lib/libc.so
5328 lt_cv_deplibs_check_method=pass_all
5331 lt_cv_deplibs_check_method=pass_all
5337 lt_cv_deplibs_check_method=pass_all
5340 lt_cv_deplibs_check_method=pass_all
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5346 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5350 if test "$build" = "$host"; then
5353 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5356 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5362 file_magic_cmd=$lt_cv_file_magic_cmd
5363 deplibs_check_method=$lt_cv_deplibs_check_method
5364 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5387 if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5389 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_DLLTOOL+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 if test -n "$DLLTOOL"; then
5396 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 DLLTOOL=$ac_cv_prog_DLLTOOL
5416 if test -n "$DLLTOOL"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5418 $as_echo "$DLLTOOL" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5426 if test -z "$ac_cv_prog_DLLTOOL"; then
5427 ac_ct_DLLTOOL=$DLLTOOL
5428 # Extract the first word of "dlltool", so it can be a program name with args.
5429 set dummy dlltool; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 if test -n "$ac_ct_DLLTOOL"; then
5436 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5456 if test -n "$ac_ct_DLLTOOL"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5458 $as_echo "$ac_ct_DLLTOOL" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5464 if test "x$ac_ct_DLLTOOL" = x; then
5467 case $cross_compiling:$ac_tool_warned in
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5471 ac_tool_warned=yes ;;
5473 DLLTOOL=$ac_ct_DLLTOOL
5476 DLLTOOL="$ac_cv_prog_DLLTOOL"
5479 test -z "$DLLTOOL" && DLLTOOL=dlltool
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5491 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5492 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5493 $as_echo_n "(cached) " >&6
5495 lt_cv_sharedlib_from_linklib_cmd='unknown'
5498 cygwin* | mingw* | pw32* | cegcc*)
5499 # two different shell functions defined in ltmain.sh;
5500 # decide which one to use based on capabilities of $DLLTOOL
5501 case `$DLLTOOL --help 2>&1` in
5502 *--identify-strict*)
5503 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5506 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5511 # fallback: assume linklib IS sharedlib
5512 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5518 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5519 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5520 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5529 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_AR+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 if test -n "$AR"; then
5540 ac_cv_prog_AR="$AR" # Let the user override the test.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 if test -n "$AR"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5562 $as_echo "$AR" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5569 test -n "$AR" && break
5572 if test -z "$AR"; then
5576 # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$ac_ct_AR"; then
5584 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_ac_ct_AR="$ac_prog"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5604 if test -n "$ac_ct_AR"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5606 $as_echo "$ac_ct_AR" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5613 test -n "$ac_ct_AR" && break
5616 if test "x$ac_ct_AR" = x; then
5619 case $cross_compiling:$ac_tool_warned in
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5623 ac_tool_warned=yes ;;
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5643 $as_echo_n "checking for archiver @FILE support... " >&6; }
5644 if ${lt_cv_ar_at_file+:} false; then :
5645 $as_echo_n "(cached) " >&6
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5659 if ac_fn_c_try_compile "$LINENO"; then :
5660 echo conftest.$ac_objext > conftest.lst
5661 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5663 (eval $lt_ar_try) 2>&5
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; }
5667 if test 0 -eq "$ac_status"; then
5668 # Ensure the archiver fails upon bogus file names.
5669 rm -f conftest.$ac_objext libconftest.a
5670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5671 (eval $lt_ar_try) 2>&5
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }
5675 if test 0 -ne "$ac_status"; then
5679 rm -f conftest.* libconftest.a
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5686 $as_echo "$lt_cv_ar_at_file" >&6; }
5688 if test no = "$lt_cv_ar_at_file"; then
5691 archiver_list_spec=$lt_cv_ar_at_file
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}strip; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_STRIP+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$STRIP"; then
5709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 STRIP=$ac_cv_prog_STRIP
5729 if test -n "$STRIP"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5731 $as_echo "$STRIP" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5739 if test -z "$ac_cv_prog_STRIP"; then
5741 # Extract the first word of "strip", so it can be a program name with args.
5742 set dummy strip; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 if test -n "$ac_ct_STRIP"; then
5749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_STRIP="strip"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5769 if test -n "$ac_ct_STRIP"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5771 $as_echo "$ac_ct_STRIP" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5777 if test "x$ac_ct_STRIP" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5784 ac_tool_warned=yes ;;
5789 STRIP="$ac_cv_prog_STRIP"
5792 test -z "$STRIP" && STRIP=:
5799 if test -n "$ac_tool_prefix"; then
5800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_RANLIB+:} false; then :
5805 $as_echo_n "(cached) " >&6
5807 if test -n "$RANLIB"; then
5808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 test -z "$as_dir" && as_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 RANLIB=$ac_cv_prog_RANLIB
5828 if test -n "$RANLIB"; then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5830 $as_echo "$RANLIB" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5838 if test -z "$ac_cv_prog_RANLIB"; then
5839 ac_ct_RANLIB=$RANLIB
5840 # Extract the first word of "ranlib", so it can be a program name with args.
5841 set dummy ranlib; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$ac_ct_RANLIB"; then
5848 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_ac_ct_RANLIB="ranlib"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5868 if test -n "$ac_ct_RANLIB"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5870 $as_echo "$ac_ct_RANLIB" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5876 if test "x$ac_ct_RANLIB" = x; then
5879 case $cross_compiling:$ac_tool_warned in
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5885 RANLIB=$ac_ct_RANLIB
5888 RANLIB="$ac_cv_prog_RANLIB"
5891 test -z "$RANLIB" && RANLIB=:
5898 # Determine commands to create old-style static archives.
5899 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5900 old_postinstall_cmds='chmod 644 $oldlib'
5901 old_postuninstall_cmds=
5903 if test -n "$RANLIB"; then
5906 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5909 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5912 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5917 lock_old_archive_extraction=yes ;;
5919 lock_old_archive_extraction=no ;;
5960 # If no C compiler was specified, use CC.
5963 # If no C compiler flags were specified, use CFLAGS.
5964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5966 # Allow CC to be a program name with arguments.
5970 # Check for command to grab the raw symbol name followed by C symbol from nm.
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5972 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5973 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5974 $as_echo_n "(cached) " >&6
5977 # These are sane defaults that work on at least a few old systems.
5978 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5980 # Character class describing NM global symbol codes.
5981 symcode='[BCDEGRST]'
5983 # Regexp to match symbols that can be accessed directly from C.
5984 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5986 # Define system-specific variables.
5991 cygwin* | mingw* | pw32* | cegcc*)
5992 symcode='[ABCDGISTW]'
5995 if test ia64 = "$host_cpu"; then
5996 symcode='[ABCDEGRST]'
6000 symcode='[BCDEGRST]'
6003 symcode='[BCDEGQRST]'
6014 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022 # If we're using GNU nm, then use its standard symbol codes.
6023 case `$NM -V 2>&1` in
6024 *GNU* | *'with BFD'*)
6025 symcode='[ABCDGIRSTW]' ;;
6028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6029 # Gets list of data symbols to import.
6030 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6031 # Adjust the below global symbol transforms to fixup imported variables.
6032 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6033 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6034 lt_c_name_lib_hook="\
6035 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6036 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6038 # Disable hooks by default.
6039 lt_cv_sys_global_symbol_to_import=
6045 # Transform an extracted symbol line into a proper C declaration.
6046 # Some systems (esp. on ia64) link data and code symbols differently,
6047 # so use this general approach.
6048 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6050 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6051 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6053 # Transform an extracted symbol line into symbol name and symbol address
6054 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6056 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6057 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6059 # Transform an extracted symbol line into symbol name with lib prefix and
6061 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6062 $lt_c_name_lib_hook\
6063 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6064 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6065 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6067 # Handle CRLF in mingw tool chain
6071 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6075 # Try without a prefix underscore, then with it.
6076 for ac_symprfx in "" "_"; do
6078 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6079 symxfrm="\\1 $ac_symprfx\\2 \\2"
6081 # Write the raw and C identifiers.
6082 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6083 # Fake it for dumpbin and say T for any non-static function,
6084 # D for any global variable and I for any imported variable.
6085 # Also find C++ and __fastcall symbols from MSVC++,
6086 # which start with @ or ?.
6087 lt_cv_sys_global_symbol_pipe="$AWK '"\
6088 " {last_section=section; section=\$ 3};"\
6089 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6090 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6091 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6092 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6093 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6094 " \$ 0!~/External *\|/{next};"\
6095 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6096 " {if(hide[section]) next};"\
6097 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6098 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6099 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6100 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6101 " ' prfx=^$ac_symprfx"
6103 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6105 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6107 # Check to see that the pipe works correctly.
6111 cat > conftest.$ac_ext <<_LT_EOF
6116 void nm_test_func(void);
6117 void nm_test_func(void){}
6121 int main(){nm_test_var='a';nm_test_func();return(0);}
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125 (eval $ac_compile) 2>&5
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
6129 # Now try to grab the symbols.
6131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6132 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6135 test $ac_status = 0; } && test -s "$nlist"; then
6136 # Try sorting and uniquifying the output.
6137 if sort "$nlist" | uniq > "$nlist"T; then
6138 mv -f "$nlist"T "$nlist"
6143 # Make sure that we snagged all the symbols we need.
6144 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6145 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6146 cat <<_LT_EOF > conftest.$ac_ext
6147 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6148 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6149 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6150 relocations are performed -- see ld's documentation on pseudo-relocs. */
6151 # define LT_DLSYM_CONST
6152 #elif defined __osf__
6153 /* This system does not cope well with relocations in const data. */
6154 # define LT_DLSYM_CONST
6156 # define LT_DLSYM_CONST const
6164 # Now generate the symbol file.
6165 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6167 cat <<_LT_EOF >> conftest.$ac_ext
6169 /* The mapping between symbol names and symbols. */
6170 LT_DLSYM_CONST struct {
6174 lt__PROGRAM__LTX_preloaded_symbols[] =
6176 { "@PROGRAM@", (void *) 0 },
6178 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6179 cat <<\_LT_EOF >> conftest.$ac_ext
6183 /* This works around a problem in FreeBSD linker */
6184 #ifdef FREEBSD_WORKAROUND
6185 static const void *lt_preloaded_setup() {
6186 return lt__PROGRAM__LTX_preloaded_symbols;
6194 # Now try linking the two files.
6195 mv conftest.$ac_objext conftstm.$ac_objext
6196 lt_globsym_save_LIBS=$LIBS
6197 lt_globsym_save_CFLAGS=$CFLAGS
6198 LIBS=conftstm.$ac_objext
6199 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6201 (eval $ac_link) 2>&5
6203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6204 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6207 LIBS=$lt_globsym_save_LIBS
6208 CFLAGS=$lt_globsym_save_CFLAGS
6210 echo "cannot find nm_test_func in $nlist" >&5
6213 echo "cannot find nm_test_var in $nlist" >&5
6216 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6219 echo "$progname: failed program was:" >&5
6220 cat conftest.$ac_ext >&5
6222 rm -rf conftest* conftst*
6224 # Do not use the global_symbol_pipe unless it works.
6225 if test yes = "$pipe_works"; then
6228 lt_cv_sys_global_symbol_pipe=
6234 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6235 lt_cv_sys_global_symbol_to_cdecl=
6237 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6239 $as_echo "failed" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6242 $as_echo "ok" >&6; }
6245 # Response file support.
6246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6247 nm_file_list_spec='@'
6248 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6249 nm_file_list_spec='@'
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6289 $as_echo_n "checking for sysroot... " >&6; }
6291 # Check whether --with-sysroot was given.
6292 if test "${with_sysroot+set}" = set; then :
6293 withval=$with_sysroot;
6300 case $with_sysroot in #(
6302 if test yes = "$GCC"; then
6303 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6307 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6313 $as_echo "$with_sysroot" >&6; }
6314 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6319 $as_echo "${lt_sysroot:-no}" >&6; }
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6326 $as_echo_n "checking for a working dd... " >&6; }
6327 if ${ac_cv_path_lt_DD+:} false; then :
6328 $as_echo_n "(cached) " >&6
6330 printf 0123456789abcdef0123456789abcdef >conftest.i
6331 cat conftest.i conftest.i >conftest2.i
6333 if test -z "$lt_DD"; then
6334 ac_path_lt_DD_found=false
6335 # Loop through the user's path and test for each of PROGNAME-LIST
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 test -z "$as_dir" && as_dir=.
6341 for ac_prog in dd; do
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6344 as_fn_executable_p "$ac_path_lt_DD" || continue
6345 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6346 cmp -s conftest.i conftest.out \
6347 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6349 $ac_path_lt_DD_found && break 3
6354 if test -z "$ac_cv_path_lt_DD"; then
6358 ac_cv_path_lt_DD=$lt_DD
6361 rm -f conftest.i conftest2.i conftest.out
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6364 $as_echo "$ac_cv_path_lt_DD" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6368 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6369 if ${lt_cv_truncate_bin+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 printf 0123456789abcdef0123456789abcdef >conftest.i
6373 cat conftest.i conftest.i >conftest2.i
6375 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6376 cmp -s conftest.i conftest.out \
6377 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6379 rm -f conftest.i conftest2.i conftest.out
6380 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6383 $as_echo "$lt_cv_truncate_bin" >&6; }
6391 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6394 for cc_temp in $*""; do
6396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6402 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6405 # Check whether --enable-libtool-lock was given.
6406 if test "${enable_libtool_lock+set}" = set; then :
6407 enableval=$enable_libtool_lock;
6410 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6412 # Some flags need to be propagated to the compiler or linker for good
6416 # Find out what ABI is being produced by ac_compile, and set mode
6417 # options accordingly.
6418 echo 'int i;' > conftest.$ac_ext
6419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6420 (eval $ac_compile) 2>&5
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }; then
6424 case `/usr/bin/file conftest.$ac_objext` in
6436 # Find out what ABI is being produced by ac_compile, and set linker
6437 # options accordingly.
6438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6440 (eval $ac_compile) 2>&5
6442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6443 test $ac_status = 0; }; then
6444 if test yes = "$lt_cv_prog_gnu_ld"; then
6445 case `/usr/bin/file conftest.$ac_objext` in
6447 LD="${LD-ld} -melf32bsmip"
6450 LD="${LD-ld} -melf32bmipn32"
6453 LD="${LD-ld} -melf64bmip"
6457 case `/usr/bin/file conftest.$ac_objext` in
6474 # Find out what ABI is being produced by ac_compile, and set linker
6475 # options accordingly.
6476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6478 (eval $ac_compile) 2>&5
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; }; then
6483 case `/usr/bin/file conftest.$ac_objext` in
6491 case `/usr/bin/file conftest.$ac_objext` in
6493 emul="${emul}btsmip"
6496 emul="${emul}ltsmip"
6499 case `/usr/bin/file conftest.$ac_objext` in
6504 LD="${LD-ld} -m $emul"
6509 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6510 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6511 # Find out what ABI is being produced by ac_compile, and set linker
6512 # options accordingly. Note that the listed cases only cover the
6513 # situations where additional linker options are needed (such as when
6514 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6515 # vice versa); the common cases where no linker options are needed do
6516 # not appear in the list.
6517 echo 'int i;' > conftest.$ac_ext
6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6519 (eval $ac_compile) 2>&5
6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6522 test $ac_status = 0; }; then
6523 case `/usr/bin/file conftest.o` in
6526 x86_64-*kfreebsd*-gnu)
6527 LD="${LD-ld} -m elf_i386_fbsd"
6530 case `/usr/bin/file conftest.o` in
6532 LD="${LD-ld} -m elf32_x86_64"
6535 LD="${LD-ld} -m elf_i386"
6539 powerpc64le-*linux*)
6540 LD="${LD-ld} -m elf32lppclinux"
6543 LD="${LD-ld} -m elf32ppclinux"
6546 LD="${LD-ld} -m elf_s390"
6549 LD="${LD-ld} -m elf32_sparc"
6555 x86_64-*kfreebsd*-gnu)
6556 LD="${LD-ld} -m elf_x86_64_fbsd"
6559 LD="${LD-ld} -m elf_x86_64"
6562 LD="${LD-ld} -m elf64lppc"
6565 LD="${LD-ld} -m elf64ppc"
6567 s390*-*linux*|s390*-*tpf*)
6568 LD="${LD-ld} -m elf64_s390"
6571 LD="${LD-ld} -m elf64_sparc"
6581 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583 CFLAGS="$CFLAGS -belf"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6585 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6586 if ${lt_cv_cc_needs_belf+:} false; then :
6587 $as_echo_n "(cached) " >&6
6590 ac_cpp='$CPP $CPPFLAGS'
6591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6606 if ac_fn_c_try_link "$LINENO"; then :
6607 lt_cv_cc_needs_belf=yes
6609 lt_cv_cc_needs_belf=no
6611 rm -f core conftest.err conftest.$ac_objext \
6612 conftest$ac_exeext conftest.$ac_ext
6614 ac_cpp='$CPP $CPPFLAGS'
6615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6621 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6622 if test yes != "$lt_cv_cc_needs_belf"; then
6623 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6628 # Find out what ABI is being produced by ac_compile, and set linker
6629 # options accordingly.
6630 echo 'int i;' > conftest.$ac_ext
6631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6632 (eval $ac_compile) 2>&5
6634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635 test $ac_status = 0; }; then
6636 case `/usr/bin/file conftest.o` in
6638 case $lt_cv_prog_gnu_ld in
6641 i?86-*-solaris*|x86_64-*-solaris*)
6642 LD="${LD-ld} -m elf_x86_64"
6645 LD="${LD-ld} -m elf64_sparc"
6648 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6649 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6666 need_locks=$enable_libtool_lock
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}mt; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$MANIFEST_TOOL"; then
6677 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6697 if test -n "$MANIFEST_TOOL"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6699 $as_echo "$MANIFEST_TOOL" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6707 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6708 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6709 # Extract the first word of "mt", so it can be a program name with args.
6710 set dummy mt; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$ac_ct_MANIFEST_TOOL"; then
6717 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6737 if test -n "$ac_ct_MANIFEST_TOOL"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6739 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6745 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6748 case $cross_compiling:$ac_tool_warned in
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6754 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6757 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6760 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6762 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6763 if ${lt_cv_path_mainfest_tool+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 lt_cv_path_mainfest_tool=no
6767 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6768 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6769 cat conftest.err >&5
6770 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6771 lt_cv_path_mainfest_tool=yes
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6776 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6777 if test yes != "$lt_cv_path_mainfest_tool"; then
6787 rhapsody* | darwin*)
6788 if test -n "$ac_tool_prefix"; then
6789 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6790 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792 $as_echo_n "checking for $ac_word... " >&6; }
6793 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6794 $as_echo_n "(cached) " >&6
6796 if test -n "$DSYMUTIL"; then
6797 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6806 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6817 if test -n "$DSYMUTIL"; then
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6819 $as_echo "$DSYMUTIL" >&6; }
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822 $as_echo "no" >&6; }
6827 if test -z "$ac_cv_prog_DSYMUTIL"; then
6828 ac_ct_DSYMUTIL=$DSYMUTIL
6829 # Extract the first word of "dsymutil", so it can be a program name with args.
6830 set dummy dsymutil; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6834 $as_echo_n "(cached) " >&6
6836 if test -n "$ac_ct_DSYMUTIL"; then
6837 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6846 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6857 if test -n "$ac_ct_DSYMUTIL"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6859 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6865 if test "x$ac_ct_DSYMUTIL" = x; then
6868 case $cross_compiling:$ac_tool_warned in
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872 ac_tool_warned=yes ;;
6874 DSYMUTIL=$ac_ct_DSYMUTIL
6877 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_NMEDIT+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$NMEDIT"; then
6889 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 NMEDIT=$ac_cv_prog_NMEDIT
6909 if test -n "$NMEDIT"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6911 $as_echo "$NMEDIT" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_prog_NMEDIT"; then
6920 ac_ct_NMEDIT=$NMEDIT
6921 # Extract the first word of "nmedit", so it can be a program name with args.
6922 set dummy nmedit; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 if test -n "$ac_ct_NMEDIT"; then
6929 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6949 if test -n "$ac_ct_NMEDIT"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6951 $as_echo "$ac_ct_NMEDIT" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$ac_ct_NMEDIT" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6966 NMEDIT=$ac_ct_NMEDIT
6969 NMEDIT="$ac_cv_prog_NMEDIT"
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_LIPO+:} false; then :
6978 $as_echo_n "(cached) " >&6
6980 if test -n "$LIPO"; then
6981 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 LIPO=$ac_cv_prog_LIPO
7001 if test -n "$LIPO"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7003 $as_echo "$LIPO" >&6; }
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7011 if test -z "$ac_cv_prog_LIPO"; then
7013 # Extract the first word of "lipo", so it can be a program name with args.
7014 set dummy lipo; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 if test -n "$ac_ct_LIPO"; then
7021 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_LIPO="lipo"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7041 if test -n "$ac_ct_LIPO"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7043 $as_echo "$ac_ct_LIPO" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7049 if test "x$ac_ct_LIPO" = x; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7061 LIPO="$ac_cv_prog_LIPO"
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}otool; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_OTOOL+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -n "$OTOOL"; then
7073 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 OTOOL=$ac_cv_prog_OTOOL
7093 if test -n "$OTOOL"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7095 $as_echo "$OTOOL" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7103 if test -z "$ac_cv_prog_OTOOL"; then
7105 # Extract the first word of "otool", so it can be a program name with args.
7106 set dummy otool; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 if test -n "$ac_ct_OTOOL"; then
7113 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_OTOOL="otool"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7133 if test -n "$ac_ct_OTOOL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7135 $as_echo "$ac_ct_OTOOL" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7141 if test "x$ac_ct_OTOOL" = x; then
7144 case $cross_compiling:$ac_tool_warned in
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7153 OTOOL="$ac_cv_prog_OTOOL"
7156 if test -n "$ac_tool_prefix"; then
7157 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7158 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_prog_OTOOL64+:} false; then :
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$OTOOL64"; then
7165 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 OTOOL64=$ac_cv_prog_OTOOL64
7185 if test -n "$OTOOL64"; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7187 $as_echo "$OTOOL64" >&6; }
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190 $as_echo "no" >&6; }
7195 if test -z "$ac_cv_prog_OTOOL64"; then
7196 ac_ct_OTOOL64=$OTOOL64
7197 # Extract the first word of "otool64", so it can be a program name with args.
7198 set dummy otool64; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_OTOOL64"; then
7205 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_OTOOL64="otool64"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7225 if test -n "$ac_ct_OTOOL64"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7227 $as_echo "$ac_ct_OTOOL64" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7233 if test "x$ac_ct_OTOOL64" = x; then
7236 case $cross_compiling:$ac_tool_warned in
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7240 ac_tool_warned=yes ;;
7242 OTOOL64=$ac_ct_OTOOL64
7245 OTOOL64="$ac_cv_prog_OTOOL64"
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7275 $as_echo_n "checking for -single_module linker flag... " >&6; }
7276 if ${lt_cv_apple_cc_single_mod+:} false; then :
7277 $as_echo_n "(cached) " >&6
7279 lt_cv_apple_cc_single_mod=no
7280 if test -z "$LT_MULTI_MODULE"; then
7281 # By default we will add the -single_module flag. You can override
7282 # by either setting the environment variable LT_MULTI_MODULE
7283 # non-empty at configure time, or by adding -multi_module to the
7285 rm -rf libconftest.dylib*
7286 echo "int foo(void){return 1;}" > conftest.c
7287 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7288 -dynamiclib -Wl,-single_module conftest.c" >&5
7289 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7290 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292 # If there is a non-empty error log, and "single_module"
7293 # appears in it, assume the flag caused a linker warning
7294 if test -s conftest.err && $GREP single_module conftest.err; then
7295 cat conftest.err >&5
7296 # Otherwise, if the output was created with a 0 exit code from
7297 # the compiler, it worked.
7298 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7299 lt_cv_apple_cc_single_mod=yes
7301 cat conftest.err >&5
7303 rm -rf libconftest.dylib*
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7308 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7311 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7312 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7313 $as_echo_n "(cached) " >&6
7315 lt_cv_ld_exported_symbols_list=no
7316 save_LDFLAGS=$LDFLAGS
7317 echo "_main" > conftest.sym
7318 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7330 if ac_fn_c_try_link "$LINENO"; then :
7331 lt_cv_ld_exported_symbols_list=yes
7333 lt_cv_ld_exported_symbols_list=no
7335 rm -f core conftest.err conftest.$ac_objext \
7336 conftest$ac_exeext conftest.$ac_ext
7337 LDFLAGS=$save_LDFLAGS
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7341 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7344 $as_echo_n "checking for -force_load linker flag... " >&6; }
7345 if ${lt_cv_ld_force_load+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 lt_cv_ld_force_load=no
7349 cat > conftest.c << _LT_EOF
7350 int forced_loaded() { return 2;}
7352 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7353 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7354 echo "$AR cru libconftest.a conftest.o" >&5
7355 $AR cru libconftest.a conftest.o 2>&5
7356 echo "$RANLIB libconftest.a" >&5
7357 $RANLIB libconftest.a 2>&5
7358 cat > conftest.c << _LT_EOF
7359 int main() { return 0;}
7361 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7362 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7364 if test -s conftest.err && $GREP force_load conftest.err; then
7365 cat conftest.err >&5
7366 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7367 lt_cv_ld_force_load=yes
7369 cat conftest.err >&5
7371 rm -f conftest.err libconftest.a conftest conftest.c
7372 rm -rf conftest.dSYM
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7376 $as_echo "$lt_cv_ld_force_load" >&6; }
7378 rhapsody* | darwin1.[012])
7379 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7381 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7382 darwin*) # darwin 5.x on
7383 # if running on 10.5 or later, the deployment target defaults
7384 # to the OS version, if on x86, and 10.4, the deployment
7385 # target defaults to 10.4. Don't you love it?
7386 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7387 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7388 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7390 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7392 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7396 if test yes = "$lt_cv_apple_cc_single_mod"; then
7397 _lt_dar_single_mod='$single_module'
7399 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7400 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7402 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7404 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7405 _lt_dsymutil='~$DSYMUTIL $lib || :'
7412 # func_munge_path_list VARIABLE PATH
7413 # -----------------------------------
7414 # VARIABLE is name of variable containing _space_ separated list of
7415 # directories to be munged by the contents of PATH, which is string
7418 # string "DIR[ DIR]" will be prepended to VARIABLE
7420 # string "DIR[ DIR]" will be appended to VARIABLE
7421 # "DIRP[:DIRP]::[DIRA:]DIRA"
7422 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7423 # "DIRA[ DIRA]" will be appended to VARIABLE
7425 # VARIABLE will be replaced by "DIR[ DIR]"
7426 func_munge_path_list ()
7432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7448 ac_cpp='$CPP $CPPFLAGS'
7449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7454 # On Suns, sometimes $CPP names a directory.
7455 if test -n "$CPP" && test -d "$CPP"; then
7458 if test -z "$CPP"; then
7459 if ${ac_cv_prog_CPP+:} false; then :
7460 $as_echo_n "(cached) " >&6
7462 # Double quotes because CPP needs to be expanded
7463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7466 for ac_c_preproc_warn_flag in '' yes
7468 # Use a header file that comes with gcc, so configuring glibc
7469 # with a fresh cross-compiler works.
7470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7471 # <limits.h> exists even on freestanding compilers.
7472 # On the NeXT, cc -E runs the code through the compiler's parser,
7473 # not just through cpp. "Syntax error" is here to catch this case.
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7477 # include <limits.h>
7479 # include <assert.h>
7483 if ac_fn_c_try_cpp "$LINENO"; then :
7486 # Broken: fails on valid input.
7489 rm -f conftest.err conftest.i conftest.$ac_ext
7491 # OK, works on sane cases. Now check whether nonexistent headers
7492 # can be detected and how.
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <ac_nonexistent.h>
7497 if ac_fn_c_try_cpp "$LINENO"; then :
7498 # Broken: success on invalid input.
7501 # Passes both tests.
7505 rm -f conftest.err conftest.i conftest.$ac_ext
7508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7509 rm -f conftest.i conftest.err conftest.$ac_ext
7510 if $ac_preproc_ok; then :
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7523 $as_echo "$CPP" >&6; }
7525 for ac_c_preproc_warn_flag in '' yes
7527 # Use a header file that comes with gcc, so configuring glibc
7528 # with a fresh cross-compiler works.
7529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7530 # <limits.h> exists even on freestanding compilers.
7531 # On the NeXT, cc -E runs the code through the compiler's parser,
7532 # not just through cpp. "Syntax error" is here to catch this case.
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 # include <limits.h>
7538 # include <assert.h>
7542 if ac_fn_c_try_cpp "$LINENO"; then :
7545 # Broken: fails on valid input.
7548 rm -f conftest.err conftest.i conftest.$ac_ext
7550 # OK, works on sane cases. Now check whether nonexistent headers
7551 # can be detected and how.
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554 #include <ac_nonexistent.h>
7556 if ac_fn_c_try_cpp "$LINENO"; then :
7557 # Broken: success on invalid input.
7560 # Passes both tests.
7564 rm -f conftest.err conftest.i conftest.$ac_ext
7567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7568 rm -f conftest.i conftest.err conftest.$ac_ext
7569 if $ac_preproc_ok; then :
7572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7575 See \`config.log' for more details" "$LINENO" 5; }
7579 ac_cpp='$CPP $CPPFLAGS'
7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7586 $as_echo_n "checking for ANSI C header files... " >&6; }
7587 if ${ac_cv_header_stdc+:} false; then :
7588 $as_echo_n "(cached) " >&6
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7605 if ac_fn_c_try_compile "$LINENO"; then :
7606 ac_cv_header_stdc=yes
7608 ac_cv_header_stdc=no
7610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612 if test $ac_cv_header_stdc = yes; then
7613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7620 $EGREP "memchr" >/dev/null 2>&1; then :
7623 ac_cv_header_stdc=no
7629 if test $ac_cv_header_stdc = yes; then
7630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7637 $EGREP "free" >/dev/null 2>&1; then :
7640 ac_cv_header_stdc=no
7646 if test $ac_cv_header_stdc = yes; then
7647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7648 if test "$cross_compiling" = yes; then :
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7655 #if ((' ' & 0x0FF) == 0x020)
7656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7659 # define ISLOWER(c) \
7660 (('a' <= (c) && (c) <= 'i') \
7661 || ('j' <= (c) && (c) <= 'r') \
7662 || ('s' <= (c) && (c) <= 'z'))
7663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7671 for (i = 0; i < 256; i++)
7672 if (XOR (islower (i), ISLOWER (i))
7673 || toupper (i) != TOUPPER (i))
7678 if ac_fn_c_try_run "$LINENO"; then :
7681 ac_cv_header_stdc=no
7683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7684 conftest.$ac_objext conftest.beam conftest.$ac_ext
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7690 $as_echo "$ac_cv_header_stdc" >&6; }
7691 if test $ac_cv_header_stdc = yes; then
7693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7699 inttypes.h stdint.h unistd.h
7701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7705 cat >>confdefs.h <<_ACEOF
7706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7714 for ac_header in dlfcn.h
7716 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7718 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_DLFCN_H 1
7741 # Check whether --enable-shared was given.
7742 if test "${enable_shared+set}" = set; then :
7743 enableval=$enable_shared; p=${PACKAGE-default}
7745 yes) enable_shared=yes ;;
7746 no) enable_shared=no ;;
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7751 for pkg in $enableval; do
7753 if test "X$pkg" = "X$p"; then
7772 # Check whether --enable-static was given.
7773 if test "${enable_static+set}" = set; then :
7774 enableval=$enable_static; p=${PACKAGE-default}
7776 yes) enable_static=yes ;;
7777 no) enable_static=no ;;
7780 # Look at the argument we got. We use all the common list separators.
7781 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7782 for pkg in $enableval; do
7784 if test "X$pkg" = "X$p"; then
7804 # Check whether --with-pic was given.
7805 if test "${with_pic+set}" = set; then :
7806 withval=$with_pic; lt_p=${PACKAGE-default}
7808 yes|no) pic_mode=$withval ;;
7811 # Look at the argument we got. We use all the common list separators.
7812 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7813 for lt_pkg in $withval; do
7815 if test "X$lt_pkg" = "X$lt_p"; then
7833 # Check whether --enable-fast-install was given.
7834 if test "${enable_fast_install+set}" = set; then :
7835 enableval=$enable_fast_install; p=${PACKAGE-default}
7837 yes) enable_fast_install=yes ;;
7838 no) enable_fast_install=no ;;
7840 enable_fast_install=no
7841 # Look at the argument we got. We use all the common list separators.
7842 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7843 for pkg in $enableval; do
7845 if test "X$pkg" = "X$p"; then
7846 enable_fast_install=yes
7853 enable_fast_install=yes
7863 shared_archive_member_spec=
7864 case $host,$enable_shared in
7865 power*-*-aix[5-9]*,yes)
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7867 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7869 # Check whether --with-aix-soname was given.
7870 if test "${with_aix_soname+set}" = set; then :
7871 withval=$with_aix_soname; case $withval in
7875 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7878 lt_cv_with_aix_soname=$with_aix_soname
7880 if ${lt_cv_with_aix_soname+:} false; then :
7881 $as_echo_n "(cached) " >&6
7883 lt_cv_with_aix_soname=aix
7886 with_aix_soname=$lt_cv_with_aix_soname
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7890 $as_echo "$with_aix_soname" >&6; }
7891 if test aix != "$with_aix_soname"; then
7892 # For the AIX way of multilib, we name the shared archive member
7893 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7894 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7895 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7896 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7897 if test 64 = "${OBJECT_MODE-32}"; then
7898 shared_archive_member_spec=shr_64
7900 shared_archive_member_spec=shr
7918 # This can be used to rebuild libtool when needed
7919 LIBTOOL_DEPS=$ltmain
7921 # Always use our own libtool.
7922 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7953 test -z "$LN_S" && LN_S="ln -s"
7968 if test -n "${ZSH_VERSION+set}"; then
7969 setopt NO_GLOB_SUBST
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7973 $as_echo_n "checking for objdir... " >&6; }
7974 if ${lt_cv_objdir+:} false; then :
7975 $as_echo_n "(cached) " >&6
7977 rm -f .libs 2>/dev/null
7978 mkdir .libs 2>/dev/null
7979 if test -d .libs; then
7982 # MS-DOS does not allow filenames that begin with a dot.
7985 rmdir .libs 2>/dev/null
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7988 $as_echo "$lt_cv_objdir" >&6; }
7989 objdir=$lt_cv_objdir
7995 cat >>confdefs.h <<_ACEOF
7996 #define LT_OBJDIR "$lt_cv_objdir/"
8004 # AIX sometimes has problems with the GCC collect2 program. For some
8005 # reason, if we set the COLLECT_NAMES environment variable, the problems
8006 # vanish in a puff of smoke.
8007 if test set != "${COLLECT_NAMES+set}"; then
8009 export COLLECT_NAMES
8016 can_build_shared=yes
8018 # All known linkers require a '.a' archive for static linking (except MSVC,
8019 # which needs '.lib').
8022 with_gnu_ld=$lt_cv_prog_gnu_ld
8027 # Set sane defaults for various variables
8028 test -z "$CC" && CC=cc
8029 test -z "$LTCC" && LTCC=$CC
8030 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8031 test -z "$LD" && LD=ld
8032 test -z "$ac_objext" && ac_objext=o
8034 func_cc_basename $compiler
8035 cc_basename=$func_cc_basename_result
8038 # Only perform the check for file, if the check method requires it
8039 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8040 case $deplibs_check_method in
8042 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8044 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8045 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8046 $as_echo_n "(cached) " >&6
8050 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8053 lt_save_MAGIC_CMD=$MAGIC_CMD
8054 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8055 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8056 for ac_dir in $ac_dummy; do
8058 test -z "$ac_dir" && ac_dir=.
8059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8060 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8061 if test -n "$file_magic_test_file"; then
8062 case $deplibs_check_method in
8064 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8065 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8066 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8067 $EGREP "$file_magic_regex" > /dev/null; then
8072 *** Warning: the command libtool uses to detect shared libraries,
8073 *** $file_magic_cmd, produces output that libtool cannot recognize.
8074 *** The result is that libtool may fail to recognize shared libraries
8075 *** as such. This will affect the creation of libtool libraries that
8076 *** depend on shared libraries, but programs linked with such libtool
8077 *** libraries will work regardless of this problem. Nevertheless, you
8078 *** may want to report the problem to your system manager and/or to
8079 *** bug-libtool@gnu.org
8089 MAGIC_CMD=$lt_save_MAGIC_CMD
8094 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8095 if test -n "$MAGIC_CMD"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8097 $as_echo "$MAGIC_CMD" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100 $as_echo "no" >&6; }
8107 if test -z "$lt_cv_path_MAGIC_CMD"; then
8108 if test -n "$ac_tool_prefix"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8110 $as_echo_n "checking for file... " >&6; }
8111 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8112 $as_echo_n "(cached) " >&6
8116 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8119 lt_save_MAGIC_CMD=$MAGIC_CMD
8120 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8122 for ac_dir in $ac_dummy; do
8124 test -z "$ac_dir" && ac_dir=.
8125 if test -f "$ac_dir/file"; then
8126 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8127 if test -n "$file_magic_test_file"; then
8128 case $deplibs_check_method in
8130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8131 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8133 $EGREP "$file_magic_regex" > /dev/null; then
8138 *** Warning: the command libtool uses to detect shared libraries,
8139 *** $file_magic_cmd, produces output that libtool cannot recognize.
8140 *** The result is that libtool may fail to recognize shared libraries
8141 *** as such. This will affect the creation of libtool libraries that
8142 *** depend on shared libraries, but programs linked with such libtool
8143 *** libraries will work regardless of this problem. Nevertheless, you
8144 *** may want to report the problem to your system manager and/or to
8145 *** bug-libtool@gnu.org
8155 MAGIC_CMD=$lt_save_MAGIC_CMD
8160 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8161 if test -n "$MAGIC_CMD"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8163 $as_echo "$MAGIC_CMD" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8179 # Use C for the default configuration in the libtool script
8183 ac_cpp='$CPP $CPPFLAGS'
8184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8189 # Source file extension for C test sources.
8192 # Object file extension for compiled C test sources.
8196 # Code to be used in simple compile tests
8197 lt_simple_compile_test_code="int some_variable = 0;"
8199 # Code to be used in simple link tests
8200 lt_simple_link_test_code='int main(){return(0);}'
8208 # If no C compiler was specified, use CC.
8211 # If no C compiler flags were specified, use CFLAGS.
8212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8214 # Allow CC to be a program name with arguments.
8217 # Save the default compiler, since it gets overwritten when the other
8218 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8219 compiler_DEFAULT=$CC
8221 # save warnings/boilerplate of simple test code
8222 ac_outfile=conftest.$ac_objext
8223 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8224 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8225 _lt_compiler_boilerplate=`cat conftest.err`
8228 ac_outfile=conftest.$ac_objext
8229 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8230 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8231 _lt_linker_boilerplate=`cat conftest.err`
8236 ## There is no encapsulation within the following macros, do not change
8237 ## the running order or otherwise move them around unless you know exactly
8238 ## what you are doing...
8239 if test -n "$compiler"; then
8241 lt_prog_compiler_no_builtin_flag=
8243 if test yes = "$GCC"; then
8244 case $cc_basename in
8246 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8248 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8252 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8253 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8254 $as_echo_n "(cached) " >&6
8256 lt_cv_prog_compiler_rtti_exceptions=no
8257 ac_outfile=conftest.$ac_objext
8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8259 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8260 # Insert the option either (1) after the last *FLAGS variable, or
8261 # (2) before a word containing "conftest.", or (3) at the end.
8262 # Note that $ac_compile itself does not contain backslashes and begins
8263 # with a dollar sign (not a hyphen), so the echo should work correctly.
8264 # The option is referenced via a variable to avoid confusing sed.
8265 lt_compile=`echo "$ac_compile" | $SED \
8266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8268 -e 's:$: $lt_compiler_flag:'`
8269 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8270 (eval "$lt_compile" 2>conftest.err)
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 if (exit $ac_status) && test -s "$ac_outfile"; then
8275 # The compiler can only warn and ignore the option if not recognized
8276 # So say no if there are warnings other than the usual output.
8277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8280 lt_cv_prog_compiler_rtti_exceptions=yes
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8287 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8289 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8290 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8302 lt_prog_compiler_wl=
8303 lt_prog_compiler_pic=
8304 lt_prog_compiler_static=
8307 if test yes = "$GCC"; then
8308 lt_prog_compiler_wl='-Wl,'
8309 lt_prog_compiler_static='-static'
8313 # All AIX code is PIC.
8314 if test ia64 = "$host_cpu"; then
8315 # AIX 5 now supports IA64 processor
8316 lt_prog_compiler_static='-Bstatic'
8318 lt_prog_compiler_pic='-fPIC'
8324 # see comment about AmigaOS4 .so support
8325 lt_prog_compiler_pic='-fPIC'
8328 # FIXME: we need at least 68020 code to build shared libraries, but
8329 # adding the '-m68020' flag to GCC prevents building anything better,
8331 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8337 # PIC is the default for these OSes.
8340 mingw* | cygwin* | pw32* | os2* | cegcc*)
8341 # This hack is so that the source file can tell whether it is being
8342 # built for inclusion in a dll (and should export symbols for example).
8343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8344 # (--disable-auto-import) libraries
8345 lt_prog_compiler_pic='-DDLL_EXPORT'
8348 lt_prog_compiler_static='$wl-static'
8353 darwin* | rhapsody*)
8354 # PIC is the default on this platform
8355 # Common symbols not allowed in MH_DYLIB files
8356 lt_prog_compiler_pic='-fno-common'
8360 # PIC is the default for Haiku.
8361 # The "-static" flag exists, but is broken.
8362 lt_prog_compiler_static=
8366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8368 # sets the default TLS model and affects inlining.
8374 lt_prog_compiler_pic='-fPIC'
8380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8381 # Instead, we relocate shared libraries at runtime.
8385 # Just because we use GCC doesn't mean we suddenly get shared libraries
8386 # on systems that don't support them.
8387 lt_prog_compiler_can_build_shared=no
8392 # QNX uses GNU C++, but need to define -shared option too, otherwise
8394 lt_prog_compiler_pic='-fPIC -shared'
8398 if test -d /usr/nec; then
8399 lt_prog_compiler_pic=-Kconform_pic
8404 lt_prog_compiler_pic='-fPIC'
8408 case $cc_basename in
8409 nvcc*) # Cuda Compiler Driver 2.2
8410 lt_prog_compiler_wl='-Xlinker '
8411 if test -n "$lt_prog_compiler_pic"; then
8412 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8417 # PORTME Check for flag to pass linker flags through the system compiler.
8420 lt_prog_compiler_wl='-Wl,'
8421 if test ia64 = "$host_cpu"; then
8422 # AIX 5 now supports IA64 processor
8423 lt_prog_compiler_static='-Bstatic'
8425 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8429 darwin* | rhapsody*)
8430 # PIC is the default on this platform
8431 # Common symbols not allowed in MH_DYLIB files
8432 lt_prog_compiler_pic='-fno-common'
8433 case $cc_basename in
8435 # NAG Fortran compiler
8436 lt_prog_compiler_wl='-Wl,-Wl,,'
8437 lt_prog_compiler_pic='-PIC'
8438 lt_prog_compiler_static='-Bstatic'
8443 mingw* | cygwin* | pw32* | os2* | cegcc*)
8444 # This hack is so that the source file can tell whether it is being
8445 # built for inclusion in a dll (and should export symbols for example).
8446 lt_prog_compiler_pic='-DDLL_EXPORT'
8449 lt_prog_compiler_static='$wl-static'
8454 hpux9* | hpux10* | hpux11*)
8455 lt_prog_compiler_wl='-Wl,'
8456 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8463 lt_prog_compiler_pic='+Z'
8466 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8467 lt_prog_compiler_static='$wl-a ${wl}archive'
8470 irix5* | irix6* | nonstopux*)
8471 lt_prog_compiler_wl='-Wl,'
8472 # PIC (with -KPIC) is the default.
8473 lt_prog_compiler_static='-non_shared'
8476 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8477 case $cc_basename in
8478 # old Intel for x86_64, which still supported -KPIC.
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-static'
8484 # icc used to be incompatible with GCC.
8485 # ICC 10 doesn't accept -KPIC any more.
8487 lt_prog_compiler_wl='-Wl,'
8488 lt_prog_compiler_pic='-fPIC'
8489 lt_prog_compiler_static='-static'
8491 # Lahey Fortran 8.1.
8493 lt_prog_compiler_wl='-Wl,'
8494 lt_prog_compiler_pic='--shared'
8495 lt_prog_compiler_static='--static'
8498 # NAG Fortran compiler
8499 lt_prog_compiler_wl='-Wl,-Wl,,'
8500 lt_prog_compiler_pic='-PIC'
8501 lt_prog_compiler_static='-Bstatic'
8504 # Fabrice Bellard et al's Tiny C Compiler
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='-fPIC'
8507 lt_prog_compiler_static='-static'
8509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8510 # Portland Group compilers (*not* the Pentium gcc compiler,
8511 # which looks to be a dead project)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fpic'
8514 lt_prog_compiler_static='-Bstatic'
8517 lt_prog_compiler_wl='-Wl,'
8518 # All Alpha code is PIC.
8519 lt_prog_compiler_static='-non_shared'
8521 xl* | bgxl* | bgf* | mpixl*)
8522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8523 lt_prog_compiler_wl='-Wl,'
8524 lt_prog_compiler_pic='-qpic'
8525 lt_prog_compiler_static='-qstaticlink'
8528 case `$CC -V 2>&1 | sed 5q` in
8529 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8531 lt_prog_compiler_pic='-KPIC'
8532 lt_prog_compiler_static='-Bstatic'
8533 lt_prog_compiler_wl=''
8535 *Sun\ F* | *Sun*Fortran*)
8536 lt_prog_compiler_pic='-KPIC'
8537 lt_prog_compiler_static='-Bstatic'
8538 lt_prog_compiler_wl='-Qoption ld '
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 lt_prog_compiler_wl='-Wl,'
8546 *Intel*\ [CF]*Compiler*)
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-fPIC'
8549 lt_prog_compiler_static='-static'
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8562 lt_prog_compiler_pic='-KPIC'
8563 lt_prog_compiler_static='-Bstatic'
8567 # QNX uses GNU C++, but need to define -shared option too, otherwise
8569 lt_prog_compiler_pic='-fPIC -shared'
8572 osf3* | osf4* | osf5*)
8573 lt_prog_compiler_wl='-Wl,'
8574 # All OSF/1 code is PIC.
8575 lt_prog_compiler_static='-non_shared'
8579 lt_prog_compiler_static='-non_shared'
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-Bstatic'
8585 case $cc_basename in
8586 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8587 lt_prog_compiler_wl='-Qoption ld ';;
8589 lt_prog_compiler_wl='-Wl,';;
8594 lt_prog_compiler_wl='-Qoption ld '
8595 lt_prog_compiler_pic='-PIC'
8596 lt_prog_compiler_static='-Bstatic'
8599 sysv4 | sysv4.2uw2* | sysv4.3*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8606 if test -d /usr/nec; then
8607 lt_prog_compiler_pic='-Kconform_pic'
8608 lt_prog_compiler_static='-Bstatic'
8612 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-KPIC'
8615 lt_prog_compiler_static='-Bstatic'
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_can_build_shared=no
8624 lt_prog_compiler_pic='-pic'
8625 lt_prog_compiler_static='-Bstatic'
8629 lt_prog_compiler_can_build_shared=no
8635 # For platforms that do not support PIC, -DPIC is meaningless:
8637 lt_prog_compiler_pic=
8640 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8645 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8646 if ${lt_cv_prog_compiler_pic+:} false; then :
8647 $as_echo_n "(cached) " >&6
8649 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8652 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8653 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8656 # Check to make sure the PIC flag actually works.
8658 if test -n "$lt_prog_compiler_pic"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8661 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8662 $as_echo_n "(cached) " >&6
8664 lt_cv_prog_compiler_pic_works=no
8665 ac_outfile=conftest.$ac_objext
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8668 # Insert the option either (1) after the last *FLAGS variable, or
8669 # (2) before a word containing "conftest.", or (3) at the end.
8670 # Note that $ac_compile itself does not contain backslashes and begins
8671 # with a dollar sign (not a hyphen), so the echo should work correctly.
8672 # The option is referenced via a variable to avoid confusing sed.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>conftest.err)
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s "$ac_outfile"; then
8683 # The compiler can only warn and ignore the option if not recognized
8684 # So say no if there are warnings other than the usual output.
8685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8688 lt_cv_prog_compiler_pic_works=yes
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8695 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8697 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8698 case $lt_prog_compiler_pic in
8700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8703 lt_prog_compiler_pic=
8704 lt_prog_compiler_can_build_shared=no
8720 # Check to make sure the static flag actually works.
8722 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8724 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8725 if ${lt_cv_prog_compiler_static_works+:} false; then :
8726 $as_echo_n "(cached) " >&6
8728 lt_cv_prog_compiler_static_works=no
8729 save_LDFLAGS=$LDFLAGS
8730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8731 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8733 # The linker can only warn and ignore the option if not recognized
8734 # So say no if there are warnings
8735 if test -s conftest.err; then
8736 # Append any errors to the config.log.
8737 cat conftest.err 1>&5
8738 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8740 if diff conftest.exp conftest.er2 >/dev/null; then
8741 lt_cv_prog_compiler_static_works=yes
8744 lt_cv_prog_compiler_static_works=yes
8748 LDFLAGS=$save_LDFLAGS
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8752 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8754 if test yes = "$lt_cv_prog_compiler_static_works"; then
8757 lt_prog_compiler_static=
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8768 if ${lt_cv_prog_compiler_c_o+:} false; then :
8769 $as_echo_n "(cached) " >&6
8771 lt_cv_prog_compiler_c_o=no
8772 $RM -r conftest 2>/dev/null
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="-o out/conftest2.$ac_objext"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>out/conftest.err)
8790 cat out/conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings
8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8799 lt_cv_prog_compiler_c_o=yes
8804 # SGI C++ compiler will create directory out/ii_files/ for
8805 # template instantiation
8806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8807 $RM out/* && rmdir out
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8822 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8823 if ${lt_cv_prog_compiler_c_o+:} false; then :
8824 $as_echo_n "(cached) " >&6
8826 lt_cv_prog_compiler_c_o=no
8827 $RM -r conftest 2>/dev/null
8831 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8833 lt_compiler_flag="-o out/conftest2.$ac_objext"
8834 # Insert the option either (1) after the last *FLAGS variable, or
8835 # (2) before a word containing "conftest.", or (3) at the end.
8836 # Note that $ac_compile itself does not contain backslashes and begins
8837 # with a dollar sign (not a hyphen), so the echo should work correctly.
8838 lt_compile=`echo "$ac_compile" | $SED \
8839 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8840 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8841 -e 's:$: $lt_compiler_flag:'`
8842 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8843 (eval "$lt_compile" 2>out/conftest.err)
8845 cat out/conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8849 # The compiler can only warn and ignore the option if not recognized
8850 # So say no if there are warnings
8851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8852 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8853 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8854 lt_cv_prog_compiler_c_o=yes
8859 # SGI C++ compiler will create directory out/ii_files/ for
8860 # template instantiation
8861 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8862 $RM out/* && rmdir out
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8869 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8874 hard_links=nottested
8875 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8876 # do not overwrite the value of need_locks provided by the user
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8878 $as_echo_n "checking if we can lock with hard links... " >&6; }
8881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8883 ln conftest.a conftest.b 2>&5 || hard_links=no
8884 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8886 $as_echo "$hard_links" >&6; }
8887 if test no = "$hard_links"; then
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8889 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8902 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8905 allow_undefined_flag=
8906 always_export_symbols=no
8908 archive_expsym_cmds=
8909 compiler_needs_object=no
8910 enable_shared_with_static_runtimes=no
8911 export_dynamic_flag_spec=
8912 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8913 hardcode_automatic=no
8915 hardcode_direct_absolute=no
8916 hardcode_libdir_flag_spec=
8917 hardcode_libdir_separator=
8919 hardcode_shlibpath_var=unsupported
8921 link_all_deplibs=unknown
8924 old_archive_from_new_cmds=
8925 old_archive_from_expsyms_cmds=
8926 thread_safe_flag_spec=
8927 whole_archive_flag_spec=
8928 # include_expsyms should be a list of space-separated symbols to be *always*
8929 # included in the symbol list
8931 # exclude_expsyms can be an extended regexp of symbols to exclude
8932 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8933 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8934 # as well as any symbol that contains 'd'.
8935 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8936 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8937 # platforms (ab)use it in PIC code, but their linkers get confused if
8938 # the symbol is explicitly referenced. Since portable code cannot
8939 # rely on this symbol name, it's probably fine to never include it in
8940 # preloaded symbol tables.
8941 # Exclude shared library initialization/finalization symbols.
8942 extract_expsyms_cmds=
8945 cygwin* | mingw* | pw32* | cegcc*)
8946 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8947 # When not using gcc, we currently assume that we are using
8948 # Microsoft Visual C++.
8949 if test yes != "$GCC"; then
8954 # we just hope/assume this is gcc and not c89 (= MSVC++)
8960 linux* | k*bsd*-gnu | gnu*)
8967 # On some targets, GNU ld is compatible enough with the native linker
8968 # that we're better off using the native interface for both.
8969 lt_use_gnu_ld_interface=no
8970 if test yes = "$with_gnu_ld"; then
8973 # The AIX port of GNU ld has always aspired to compatibility
8974 # with the native linker. However, as the warning in the GNU ld
8975 # block says, versions before 2.19.5* couldn't really create working
8976 # shared libraries, regardless of the interface used.
8977 case `$LD -v 2>&1` in
8978 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8979 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8980 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8982 lt_use_gnu_ld_interface=yes
8987 lt_use_gnu_ld_interface=yes
8992 if test yes = "$lt_use_gnu_ld_interface"; then
8993 # If archive_cmds runs LD, not CC, wlarc should be empty
8996 # Set some defaults for GNU ld with shared library support. These
8997 # are reset later if shared libraries are not supported. Putting them
8998 # here allows them to be overridden if necessary.
8999 runpath_var=LD_RUN_PATH
9000 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9001 export_dynamic_flag_spec='$wl--export-dynamic'
9002 # ancient GNU ld didn't support --whole-archive et. al.
9003 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9004 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9006 whole_archive_flag_spec=
9008 supports_anon_versioning=no
9009 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9010 *GNU\ gold*) supports_anon_versioning=yes ;;
9011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9014 *\ 2.11.*) ;; # other 2.11 versions
9015 *) supports_anon_versioning=yes ;;
9018 # See if GNU ld supports shared libraries.
9021 # On AIX/PPC, the GNU linker is very broken
9022 if test ia64 != "$host_cpu"; then
9026 *** Warning: the GNU linker, at least up to release 2.19, is reported
9027 *** to be unable to reliably create shared libraries on AIX.
9028 *** Therefore, libtool is disabling shared libraries support. If you
9029 *** really care for shared libraries, you may want to install binutils
9030 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9031 *** You will then need to restart the configuration process.
9040 # see comment about AmigaOS4 .so support
9041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9042 archive_expsym_cmds=''
9045 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)'
9046 hardcode_libdir_flag_spec='-L$libdir'
9047 hardcode_minus_L=yes
9053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9054 allow_undefined_flag=unsupported
9055 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9056 # support --undefined. This deserves some investigation. FIXME
9057 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9063 cygwin* | mingw* | pw32* | cegcc*)
9064 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9065 # as there is no search path for DLLs.
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 export_dynamic_flag_spec='$wl--export-all-symbols'
9068 allow_undefined_flag=unsupported
9069 always_export_symbols=no
9070 enable_shared_with_static_runtimes=yes
9071 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'
9072 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9076 # If the export-symbols file already is a .def file, use it as
9077 # is; otherwise, prepend EXPORTS...
9078 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9079 cp $export_symbols $output_objdir/$soname.def;
9081 echo EXPORTS > $output_objdir/$soname.def;
9082 cat $export_symbols >> $output_objdir/$soname.def;
9084 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9092 link_all_deplibs=yes
9096 hardcode_libdir_flag_spec='-L$libdir'
9097 hardcode_minus_L=yes
9098 allow_undefined_flag=unsupported
9100 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9101 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9102 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9103 $ECHO EXPORTS >> $output_objdir/$libname.def~
9104 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9106 emximp -o $lib $output_objdir/$libname.def'
9107 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9108 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9109 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9110 $ECHO EXPORTS >> $output_objdir/$libname.def~
9112 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9113 prefix_cmds="$prefix_cmds -e 1d";
9115 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9116 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9118 emximp -o $lib $output_objdir/$libname.def'
9119 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9120 enable_shared_with_static_runtimes=yes
9125 hardcode_shlibpath_var=no
9126 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9127 export_dynamic_flag_spec='$wl-E'
9128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9129 # Instead, shared libraries are loaded at an image base (0x10000000 by
9130 # default) and relocated if they conflict, which is a slow very memory
9131 # consuming and fragmenting process. To avoid this, we pick a random,
9132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9135 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'
9138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9140 if test linux-dietlibc = "$host_os"; then
9141 case $cc_basename in
9142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9146 && test no = "$tmp_diet"
9148 tmp_addflag=' $pic_flag'
9149 tmp_sharedflag='-shared'
9150 case $cc_basename,$host_cpu in
9151 pgcc*) # Portland Group C compiler
9152 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'
9153 tmp_addflag=' $pic_flag'
9155 pgf77* | pgf90* | pgf95* | pgfortran*)
9156 # Portland Group f77 and f90 compilers
9157 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'
9158 tmp_addflag=' $pic_flag -Mnomain' ;;
9159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9160 tmp_addflag=' -i_dynamic' ;;
9161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9162 tmp_addflag=' -i_dynamic -nofor_main' ;;
9163 ifc* | ifort*) # Intel Fortran compiler
9164 tmp_addflag=' -nofor_main' ;;
9165 lf95*) # Lahey Fortran 8.1
9166 whole_archive_flag_spec=
9167 tmp_sharedflag='--shared' ;;
9168 nagfor*) # NAGFOR 5.3
9169 tmp_sharedflag='-Wl,-shared' ;;
9170 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9171 tmp_sharedflag='-qmkshrobj'
9173 nvcc*) # Cuda Compiler Driver 2.2
9174 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'
9175 compiler_needs_object=yes
9178 case `$CC -V 2>&1 | sed 5q` in
9179 *Sun\ C*) # Sun C 5.9
9180 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'
9181 compiler_needs_object=yes
9182 tmp_sharedflag='-G' ;;
9183 *Sun\ F*) # Sun Fortran 8.3
9184 tmp_sharedflag='-G' ;;
9186 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9188 if test yes = "$supports_anon_versioning"; then
9189 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9190 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9191 echo "local: *; };" >> $output_objdir/$libname.ver~
9192 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9195 case $cc_basename in
9197 export_dynamic_flag_spec='-rdynamic'
9199 xlf* | bgf* | bgxlf* | mpixlf*)
9200 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9201 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9202 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9203 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9204 if test yes = "$supports_anon_versioning"; then
9205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9207 echo "local: *; };" >> $output_objdir/$libname.ver~
9208 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9217 netbsd* | netbsdelf*-gnu)
9218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9219 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9228 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9232 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9233 *** create shared libraries on Solaris systems. Therefore, libtool
9234 *** is disabling shared libraries support. We urge you to upgrade GNU
9235 *** binutils to release 2.9.1 or newer. Another option is to modify
9236 *** your PATH or compiler configuration so that the native linker is
9237 *** used, and then restart.
9240 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9241 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9242 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9249 case `$LD -v 2>&1` in
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9254 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9255 *** reliably create shared libraries on SCO systems. Therefore, libtool
9256 *** is disabling shared libraries support. We urge you to upgrade GNU
9257 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9258 *** your PATH or compiler configuration so that the native linker is
9259 *** used, and then restart.
9264 # For security reasons, it is highly recommended that you always
9265 # use absolute paths for naming shared libraries, and exclude the
9266 # DT_RUNPATH tag from executables and libraries. But doing so
9267 # requires that you compile everything twice, which is a pain.
9268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9269 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9280 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9283 hardcode_shlibpath_var=no
9287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9288 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9296 if test no = "$ld_shlibs"; then
9298 hardcode_libdir_flag_spec=
9299 export_dynamic_flag_spec=
9300 whole_archive_flag_spec=
9303 # PORTME fill in a description of your system's linker (not GNU ld)
9306 allow_undefined_flag=unsupported
9307 always_export_symbols=yes
9308 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'
9309 # Note: this linker hardcodes the directories in LIBPATH if there
9310 # are no directories specified by -L.
9311 hardcode_minus_L=yes
9312 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9313 # Neither direct hardcoding nor static linking is supported with a
9315 hardcode_direct=unsupported
9320 if test ia64 = "$host_cpu"; then
9321 # On IA64, the linker does run time linking by default, so we don't
9322 # have to do anything special.
9323 aix_use_runtimelinking=no
9324 exp_sym_flag='-Bexport'
9327 # If we're using GNU nm, then we don't want the "-C" option.
9328 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9329 # Without the "-l" option, or with the "-B" option, AIX nm treats
9330 # weak defined symbols like other global defined symbols, whereas
9331 # GNU nm marks them as "W".
9332 # While the 'weak' keyword is ignored in the Export File, we need
9333 # it in the Import File for the 'aix-soname' feature, so we have
9334 # to replace the "-B" option with "-P" for AIX nm.
9335 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9336 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9338 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9340 aix_use_runtimelinking=no
9342 # Test if we are trying to use run time linking or normal
9343 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9344 # have runtime linking enabled, and use it for executables.
9345 # For shared libraries, we enable/disable runtime linking
9346 # depending on the kind of the shared library created -
9347 # when "with_aix_soname,aix_use_runtimelinking" is:
9348 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9349 # "aix,yes" lib.so shared, rtl:yes, for executables
9350 # lib.a static archive
9351 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9352 # lib.a(lib.so.V) shared, rtl:no, for executables
9353 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9354 # lib.a(lib.so.V) shared, rtl:no
9355 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9356 # lib.a static archive
9357 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9358 for ld_flag in $LDFLAGS; do
9359 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9360 aix_use_runtimelinking=yes
9364 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9365 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9366 # so we don't have lib.a shared libs to link our executables.
9367 # We have to force runtime linking in this case.
9368 aix_use_runtimelinking=yes
9369 LDFLAGS="$LDFLAGS -Wl,-brtl"
9374 exp_sym_flag='-bexport'
9375 no_entry_flag='-bnoentry'
9378 # When large executables or shared objects are built, AIX ld can
9379 # have problems creating the table of contents. If linking a library
9380 # or program results in "error TOC overflow" add -mminimal-toc to
9381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9386 hardcode_direct_absolute=yes
9387 hardcode_libdir_separator=':'
9388 link_all_deplibs=yes
9389 file_list_spec='$wl-f,'
9390 case $with_aix_soname,$aix_use_runtimelinking in
9391 aix,*) ;; # traditional, no import file
9392 svr4,* | *,yes) # use import file
9393 # The Import File defines what to hardcode.
9395 hardcode_direct_absolute=no
9399 if test yes = "$GCC"; then
9400 case $host_os in aix4.[012]|aix4.[012].*)
9401 # We only want to do this on AIX 4.2 and lower, the check
9402 # below for broken collect2 doesn't work under 4.3+
9403 collect2name=`$CC -print-prog-name=collect2`
9404 if test -f "$collect2name" &&
9405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9407 # We have reworked collect2
9410 # We have old collect2
9411 hardcode_direct=unsupported
9412 # It fails to find uninstalled libraries when the uninstalled
9413 # path is not listed in the libpath. Setting hardcode_minus_L
9414 # to unsupported forces relinking
9415 hardcode_minus_L=yes
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_libdir_separator=
9421 shared_flag='-shared'
9422 if test yes = "$aix_use_runtimelinking"; then
9423 shared_flag="$shared_flag "'$wl-G'
9425 # Need to ensure runtime linking is disabled for the traditional
9426 # shared library, or the linker may eventually find shared libraries
9427 # /with/ Import File - we do not want to mix them.
9428 shared_flag_aix='-shared'
9429 shared_flag_svr4='-shared $wl-G'
9432 if test ia64 = "$host_cpu"; then
9433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9434 # chokes on -Wl,-G. The following line is correct:
9437 if test yes = "$aix_use_runtimelinking"; then
9440 shared_flag='$wl-bM:SRE'
9442 shared_flag_aix='$wl-bM:SRE'
9443 shared_flag_svr4='$wl-G'
9447 export_dynamic_flag_spec='$wl-bexpall'
9448 # It seems that -bexpall does not export symbols beginning with
9449 # underscore (_), so it is better to generate a list of symbols to export.
9450 always_export_symbols=yes
9451 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9452 # Warning - without using the other runtime loading flags (-brtl),
9453 # -berok will link without error, but may produce a broken library.
9454 allow_undefined_flag='-berok'
9455 # Determine the default libpath from the value encoded in an
9457 if test set = "${lt_cv_aix_libpath+set}"; then
9458 aix_libpath=$lt_cv_aix_libpath
9460 if ${lt_cv_aix_libpath_+:} false; then :
9461 $as_echo_n "(cached) " >&6
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9474 if ac_fn_c_try_link "$LINENO"; then :
9476 lt_aix_libpath_sed='
9477 /Import File Strings/,/^$/ {
9479 s/^0 *\([^ ]*\) *$/\1/
9483 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484 # Check for a 64-bit object if we didn't find anything.
9485 if test -z "$lt_cv_aix_libpath_"; then
9486 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9489 rm -f core conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9491 if test -z "$lt_cv_aix_libpath_"; then
9492 lt_cv_aix_libpath_=/usr/lib:/lib
9497 aix_libpath=$lt_cv_aix_libpath_
9500 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9501 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9503 if test ia64 = "$host_cpu"; then
9504 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9505 allow_undefined_flag="-z nodefs"
9506 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"
9508 # Determine the default libpath from the value encoded in an
9510 if test set = "${lt_cv_aix_libpath+set}"; then
9511 aix_libpath=$lt_cv_aix_libpath
9513 if ${lt_cv_aix_libpath_+:} false; then :
9514 $as_echo_n "(cached) " >&6
9516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9527 if ac_fn_c_try_link "$LINENO"; then :
9529 lt_aix_libpath_sed='
9530 /Import File Strings/,/^$/ {
9532 s/^0 *\([^ ]*\) *$/\1/
9536 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9537 # Check for a 64-bit object if we didn't find anything.
9538 if test -z "$lt_cv_aix_libpath_"; then
9539 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9542 rm -f core conftest.err conftest.$ac_objext \
9543 conftest$ac_exeext conftest.$ac_ext
9544 if test -z "$lt_cv_aix_libpath_"; then
9545 lt_cv_aix_libpath_=/usr/lib:/lib
9550 aix_libpath=$lt_cv_aix_libpath_
9553 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9554 # Warning - without using the other run time loading flags,
9555 # -berok will link without error, but may produce a broken library.
9556 no_undefined_flag=' $wl-bernotok'
9557 allow_undefined_flag=' $wl-berok'
9558 if test yes = "$with_gnu_ld"; then
9559 # We only use this code for GNU lds that support --whole-archive.
9560 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9562 # Exported symbols can be pulled into shared objects from archives
9563 whole_archive_flag_spec='$convenience'
9565 archive_cmds_need_lc=yes
9566 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9567 # -brtl affects multiple linker settings, -berok does not and is overridden later
9568 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9569 if test svr4 != "$with_aix_soname"; then
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9573 if test aix != "$with_aix_soname"; then
9574 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9576 # used by -dlpreopen to get the symbols
9577 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9579 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9587 # see comment about AmigaOS4 .so support
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds=''
9592 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)'
9593 hardcode_libdir_flag_spec='-L$libdir'
9594 hardcode_minus_L=yes
9600 export_dynamic_flag_spec=-rdynamic
9603 cygwin* | mingw* | pw32* | cegcc*)
9604 # When not using gcc, we currently assume that we are using
9605 # Microsoft Visual C++.
9606 # hardcode_libdir_flag_spec is actually meaningless, as there is
9607 # no search path for DLLs.
9608 case $cc_basename in
9611 hardcode_libdir_flag_spec=' '
9612 allow_undefined_flag=unsupported
9613 always_export_symbols=yes
9615 # Tell ltmain to make .lib files, not .a files.
9617 # Tell ltmain to make .dll files, not .so files.
9619 # FIXME: Setting linknames here is a bad hack.
9620 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9621 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9622 cp "$export_symbols" "$output_objdir/$soname.def";
9623 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9625 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9627 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9629 # The linker will not automatically build a static lib if we build a DLL.
9630 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9631 enable_shared_with_static_runtimes=yes
9632 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9633 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9635 old_postinstall_cmds='chmod 644 $oldlib'
9636 postlink_cmds='lt_outputfile="@OUTPUT@"~
9637 lt_tool_outputfile="@TOOL_OUTPUT@"~
9638 case $lt_outputfile in
9641 lt_outputfile=$lt_outputfile.exe
9642 lt_tool_outputfile=$lt_tool_outputfile.exe
9645 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9646 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9647 $RM "$lt_outputfile.manifest";
9651 # Assume MSVC wrapper
9652 hardcode_libdir_flag_spec=' '
9653 allow_undefined_flag=unsupported
9654 # Tell ltmain to make .lib files, not .a files.
9656 # Tell ltmain to make .dll files, not .so files.
9658 # FIXME: Setting linknames here is a bad hack.
9659 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9660 # The linker will automatically build a .lib file if we build a DLL.
9661 old_archive_from_new_cmds='true'
9662 # FIXME: Should let the user specify the lib program.
9663 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9664 enable_shared_with_static_runtimes=yes
9669 darwin* | rhapsody*)
9672 archive_cmds_need_lc=no
9674 hardcode_automatic=yes
9675 hardcode_shlibpath_var=unsupported
9676 if test yes = "$lt_cv_ld_force_load"; then
9677 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\"`'
9680 whole_archive_flag_spec=''
9682 link_all_deplibs=yes
9683 allow_undefined_flag=$_lt_dar_allow_undefined
9684 case $cc_basename in
9685 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9686 *) _lt_dar_can_shared=$GCC ;;
9688 if test yes = "$_lt_dar_can_shared"; then
9689 output_verbose_link_cmd=func_echo_all
9690 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9691 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9692 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"
9693 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"
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_libdir_flag_spec='-L$libdir'
9704 hardcode_shlibpath_var=no
9707 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9708 # support. Future versions do this automatically, but an explicit c++rt0.o
9709 # does not break anything, and helps significantly (at the cost of a little
9712 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9713 hardcode_libdir_flag_spec='-R$libdir'
9715 hardcode_shlibpath_var=no
9718 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_minus_L=yes
9723 hardcode_shlibpath_var=no
9726 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9727 freebsd* | dragonfly*)
9728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729 hardcode_libdir_flag_spec='-R$libdir'
9731 hardcode_shlibpath_var=no
9735 if test yes = "$GCC"; then
9736 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9738 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9740 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9741 hardcode_libdir_separator=:
9744 # hardcode_minus_L: Not really in the search PATH,
9745 # but as the default location of the library.
9746 hardcode_minus_L=yes
9747 export_dynamic_flag_spec='$wl-E'
9751 if test yes,no = "$GCC,$with_gnu_ld"; then
9752 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9756 if test no = "$with_gnu_ld"; then
9757 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9758 hardcode_libdir_separator=:
9760 hardcode_direct_absolute=yes
9761 export_dynamic_flag_spec='$wl-E'
9762 # hardcode_minus_L: Not really in the search PATH,
9763 # but as the default location of the library.
9764 hardcode_minus_L=yes
9769 if test yes,no = "$GCC,$with_gnu_ld"; then
9772 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9775 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9784 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9791 # Older versions of the 11.00 compiler do not understand -b yet
9792 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9794 $as_echo_n "checking if $CC understands -b... " >&6; }
9795 if ${lt_cv_prog_compiler__b+:} false; then :
9796 $as_echo_n "(cached) " >&6
9798 lt_cv_prog_compiler__b=no
9799 save_LDFLAGS=$LDFLAGS
9800 LDFLAGS="$LDFLAGS -b"
9801 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803 # The linker can only warn and ignore the option if not recognized
9804 # So say no if there are warnings
9805 if test -s conftest.err; then
9806 # Append any errors to the config.log.
9807 cat conftest.err 1>&5
9808 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810 if diff conftest.exp conftest.er2 >/dev/null; then
9811 lt_cv_prog_compiler__b=yes
9814 lt_cv_prog_compiler__b=yes
9818 LDFLAGS=$save_LDFLAGS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9822 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9824 if test yes = "$lt_cv_prog_compiler__b"; then
9825 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833 if test no = "$with_gnu_ld"; then
9834 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9835 hardcode_libdir_separator=:
9840 hardcode_shlibpath_var=no
9844 hardcode_direct_absolute=yes
9845 export_dynamic_flag_spec='$wl-E'
9847 # hardcode_minus_L: Not really in the search PATH,
9848 # but as the default location of the library.
9849 hardcode_minus_L=yes
9855 irix5* | irix6* | nonstopux*)
9856 if test yes = "$GCC"; then
9857 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'
9858 # Try to use the -exported_symbol ld option, if it does not
9859 # work, assume that -exports_file does not work either and
9860 # implicitly export all symbols.
9861 # This should be the same for all languages, so no per-tag cache variable.
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9863 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9864 if ${lt_cv_irix_exported_symbol+:} false; then :
9865 $as_echo_n "(cached) " >&6
9867 save_LDFLAGS=$LDFLAGS
9868 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int foo (void) { return 0; }
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 lt_cv_irix_exported_symbol=yes
9876 lt_cv_irix_exported_symbol=no
9878 rm -f core conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LDFLAGS=$save_LDFLAGS
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9883 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9884 if test yes = "$lt_cv_irix_exported_symbol"; then
9885 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'
9889 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'
9890 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'
9892 archive_cmds_need_lc='no'
9893 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9894 hardcode_libdir_separator=:
9896 link_all_deplibs=yes
9900 case $cc_basename in
9902 # Fabrice Bellard et al's Tiny C Compiler
9904 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9909 netbsd* | netbsdelf*-gnu)
9910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9911 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9913 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9915 hardcode_libdir_flag_spec='-R$libdir'
9917 hardcode_shlibpath_var=no
9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9924 hardcode_libdir_separator=:
9925 hardcode_shlibpath_var=no
9932 if test -f /usr/libexec/ld.so; then
9934 hardcode_shlibpath_var=no
9935 hardcode_direct_absolute=yes
9936 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9939 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9940 export_dynamic_flag_spec='$wl-E'
9942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9951 hardcode_libdir_flag_spec='-L$libdir'
9952 hardcode_minus_L=yes
9953 allow_undefined_flag=unsupported
9955 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9956 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9957 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9958 $ECHO EXPORTS >> $output_objdir/$libname.def~
9959 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9960 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9961 emximp -o $lib $output_objdir/$libname.def'
9962 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9963 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9964 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9965 $ECHO EXPORTS >> $output_objdir/$libname.def~
9967 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9968 prefix_cmds="$prefix_cmds -e 1d";
9970 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9971 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9972 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9973 emximp -o $lib $output_objdir/$libname.def'
9974 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9975 enable_shared_with_static_runtimes=yes
9979 if test yes = "$GCC"; then
9980 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9981 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'
9983 allow_undefined_flag=' -expect_unresolved \*'
9984 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'
9986 archive_cmds_need_lc='no'
9987 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9988 hardcode_libdir_separator=:
9991 osf4* | osf5*) # as osf3* with the addition of -msym flag
9992 if test yes = "$GCC"; then
9993 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9994 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'
9995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9997 allow_undefined_flag=' -expect_unresolved \*'
9998 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'
9999 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~
10000 $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'
10002 # Both c and cxx compiler support -rpath directly
10003 hardcode_libdir_flag_spec='-rpath $libdir'
10005 archive_cmds_need_lc='no'
10006 hardcode_libdir_separator=:
10010 no_undefined_flag=' -z defs'
10011 if test yes = "$GCC"; then
10013 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10015 $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'
10017 case `$CC -V 2>&1` in
10020 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10022 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10026 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10028 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10032 hardcode_libdir_flag_spec='-R$libdir'
10033 hardcode_shlibpath_var=no
10035 solaris2.[0-5] | solaris2.[0-5].*) ;;
10037 # The compiler driver will combine and reorder linker options,
10038 # but understands '-z linker_flag'. GCC discards it without '$wl',
10039 # but is careful enough not to reorder.
10040 # Supported since Solaris 2.6 (maybe 2.5.1?)
10041 if test yes = "$GCC"; then
10042 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10044 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10048 link_all_deplibs=yes
10052 if test sequent = "$host_vendor"; then
10053 # Use $CC to link under sequent, because it throws in some extra .o
10054 # files that make .init and .fini sections work.
10055 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_direct=yes
10061 hardcode_minus_L=yes
10062 hardcode_shlibpath_var=no
10066 case $host_vendor in
10068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 hardcode_direct=yes # is this really true???
10072 ## LD is ld it makes a PLAMLIB
10073 ## CC just makes a GrossModule.
10074 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10075 reload_cmds='$CC -r -o $output$reload_objs'
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10083 runpath_var='LD_RUN_PATH'
10084 hardcode_shlibpath_var=no
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_shlibpath_var=no
10090 export_dynamic_flag_spec='-Bexport'
10094 if test -d /usr/nec; then
10095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10096 hardcode_shlibpath_var=no
10097 runpath_var=LD_RUN_PATH
10098 hardcode_runpath_var=yes
10103 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10104 no_undefined_flag='$wl-z,text'
10105 archive_cmds_need_lc=no
10106 hardcode_shlibpath_var=no
10107 runpath_var='LD_RUN_PATH'
10109 if test yes = "$GCC"; then
10110 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 sysv5* | sco3.2v5* | sco5v6*)
10119 # Note: We CANNOT use -z defs as we might desire, because we do not
10120 # link with -lc, and that would cause any symbols used from libc to
10121 # always be unresolved, which means just about no library would
10122 # ever link correctly. If we're not using GNU ld we use -z text
10123 # though, which does catch some bad symbols but isn't as heavy-handed
10125 no_undefined_flag='$wl-z,text'
10126 allow_undefined_flag='$wl-z,nodefs'
10127 archive_cmds_need_lc=no
10128 hardcode_shlibpath_var=no
10129 hardcode_libdir_flag_spec='$wl-R,$libdir'
10130 hardcode_libdir_separator=':'
10131 link_all_deplibs=yes
10132 export_dynamic_flag_spec='$wl-Bexport'
10133 runpath_var='LD_RUN_PATH'
10135 if test yes = "$GCC"; then
10136 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 hardcode_shlibpath_var=no
10155 if test sni = "$host_vendor"; then
10157 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10158 export_dynamic_flag_spec='$wl-Blargedynsym'
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10165 $as_echo "$ld_shlibs" >&6; }
10166 test no = "$ld_shlibs" && can_build_shared=no
10168 with_gnu_ld=$with_gnu_ld
10185 # Do we need to explicitly link libc?
10187 case "x$archive_cmds_need_lc" in
10189 # Assume -lc should be added
10190 archive_cmds_need_lc=yes
10192 if test yes,yes = "$GCC,$enable_shared"; then
10193 case $archive_cmds in
10195 # FIXME: we may have to deal with multi-command sequences.
10198 # Test whether the compiler implicitly links with -lc since on some
10199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10200 # to ld, don't add -lc before -lgcc.
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10202 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10203 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10204 $as_echo_n "(cached) " >&6
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10210 (eval $ac_compile) 2>&5
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; } 2>conftest.err; then
10216 libobjs=conftest.$ac_objext
10218 wl=$lt_prog_compiler_wl
10219 pic_flag=$lt_prog_compiler_pic
10225 lt_save_allow_undefined_flag=$allow_undefined_flag
10226 allow_undefined_flag=
10227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10228 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10231 test $ac_status = 0; }
10233 lt_cv_archive_cmds_need_lc=no
10235 lt_cv_archive_cmds_need_lc=yes
10237 allow_undefined_flag=$lt_save_allow_undefined_flag
10239 cat conftest.err 1>&5
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10245 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10246 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10405 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10407 if test yes = "$GCC"; then
10409 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10410 *) lt_awk_arg='/^libraries:/' ;;
10413 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10414 *) lt_sed_strip_eq='s|=/|/|g' ;;
10416 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10417 case $lt_search_path_spec in
10419 # if the path contains ";" then we assume it to be the separator
10420 # otherwise default to the standard path separator (i.e. ":") - it is
10421 # assumed that no part of a normal pathname contains ";" but that should
10422 # okay in the real world where ";" in dirpaths is itself problematic.
10423 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10426 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10429 # Ok, now we have the path, separated by spaces, we can step through it
10430 # and add multilib dir if necessary...
10431 lt_tmp_lt_search_path_spec=
10432 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10433 # ...but if some path component already ends with the multilib dir we assume
10434 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10435 case "$lt_multi_os_dir; $lt_search_path_spec " in
10436 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10440 for lt_sys_path in $lt_search_path_spec; do
10441 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10443 elif test -n "$lt_multi_os_dir"; then
10444 test -d "$lt_sys_path" && \
10445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10448 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10449 BEGIN {RS = " "; FS = "/|\n";} {
10452 for (lt_i = NF; lt_i > 0; lt_i--) {
10453 if ($lt_i != "" && $lt_i != ".") {
10454 if ($lt_i == "..") {
10457 if (lt_count == 0) {
10458 lt_foo = "/" $lt_i lt_foo;
10465 if (lt_foo != "") { lt_freq[lt_foo]++; }
10466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10468 # AWK program above erroneously prepends '/' to C:/dos/paths
10471 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10472 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10474 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10476 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10478 library_names_spec=
10479 libname_spec='lib$name'
10483 postuninstall_cmds=
10487 shlibpath_overrides_runpath=unknown
10489 dynamic_linker="$host_os ld.so"
10490 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10491 need_lib_prefix=unknown
10492 hardcode_into_libs=no
10494 # when you set need_version to no, make sure it does not cause -set_version
10495 # flags to be left without arguments
10496 need_version=unknown
10502 version_type=linux # correct to gnu/linux during the next big refactor
10503 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10504 shlibpath_var=LIBPATH
10506 # AIX 3 has no versioning support, so we append a major version to the name.
10507 soname_spec='$libname$release$shared_ext$major'
10511 version_type=linux # correct to gnu/linux during the next big refactor
10514 hardcode_into_libs=yes
10515 if test ia64 = "$host_cpu"; then
10516 # AIX 5 supports IA64
10517 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10518 shlibpath_var=LD_LIBRARY_PATH
10520 # With GCC up to 2.95.x, collect2 would create an import file
10521 # for dependence libraries. The import file would start with
10522 # the line '#! .'. This would cause the generated library to
10523 # depend on '.', always an invalid library. This was fixed in
10524 # development snapshots of GCC prior to 3.0.
10526 aix4 | aix4.[01] | aix4.[01].*)
10527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10529 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10532 can_build_shared=no
10536 # Using Import Files as archive members, it is possible to support
10537 # filename-based versioning of shared library archives on AIX. While
10538 # this would work for both with and without runtime linking, it will
10539 # prevent static linking of such archives. So we do filename-based
10540 # shared library versioning with .so extension only, which is used
10541 # when both runtime linking and shared linking is enabled.
10542 # Unfortunately, runtime linking may impact performance, so we do
10543 # not want this to be the default eventually. Also, we use the
10544 # versioned .so libs for executables only if there is the -brtl
10545 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10546 # To allow for filename-based versioning support, we need to create
10547 # libNAME.so.V as an archive file, containing:
10548 # *) an Import File, referring to the versioned filename of the
10549 # archive as well as the shared archive member, telling the
10550 # bitwidth (32 or 64) of that shared object, and providing the
10551 # list of exported symbols of that shared object, eventually
10552 # decorated with the 'weak' keyword
10553 # *) the shared object with the F_LOADONLY flag set, to really avoid
10554 # it being seen by the linker.
10555 # At run time we better use the real file rather than another symlink,
10556 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10558 case $with_aix_soname,$aix_use_runtimelinking in
10559 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10560 # soname into executable. Probably we can add versioning support to
10561 # collect2, so additional links can be useful in future.
10562 aix,yes) # traditional libtool
10563 dynamic_linker='AIX unversionable lib.so'
10564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10565 # instead of lib<name>.a to let people know that these are not
10566 # typical AIX shared libraries.
10567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10569 aix,no) # traditional AIX only
10570 dynamic_linker='AIX lib.a(lib.so.V)'
10571 # We preserve .a as extension for shared libraries through AIX4.2
10572 # and later when we are not doing run time linking.
10573 library_names_spec='$libname$release.a $libname.a'
10574 soname_spec='$libname$release$shared_ext$major'
10576 svr4,*) # full svr4 only
10577 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10578 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10579 # We do not specify a path in Import Files, so LIBPATH fires.
10580 shlibpath_overrides_runpath=yes
10582 *,yes) # both, prefer svr4
10583 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10584 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10585 # unpreferred sharedlib libNAME.a needs extra handling
10586 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10587 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10588 # We do not specify a path in Import Files, so LIBPATH fires.
10589 shlibpath_overrides_runpath=yes
10591 *,no) # both, prefer aix
10592 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10593 library_names_spec='$libname$release.a $libname.a'
10594 soname_spec='$libname$release$shared_ext$major'
10595 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10596 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10597 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10600 shlibpath_var=LIBPATH
10607 # Since July 2007 AmigaOS4 officially supports .so libraries.
10608 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10612 library_names_spec='$libname.ixlibrary $libname.a'
10613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10614 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10620 library_names_spec='$libname$shared_ext'
10621 dynamic_linker="$host_os ld.so"
10622 shlibpath_var=LIBRARY_PATH
10626 version_type=linux # correct to gnu/linux during the next big refactor
10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629 soname_spec='$libname$release$shared_ext$major'
10630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10634 # the default ld.so.conf also contains /usr/contrib/lib and
10635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10636 # libtool to hard-code these into programs
10639 cygwin* | mingw* | pw32* | cegcc*)
10640 version_type=windows
10645 case $GCC,$cc_basename in
10648 library_names_spec='$libname.dll.a'
10649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10650 postinstall_cmds='base_file=`basename \$file`~
10651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10652 dldir=$destdir/`dirname \$dlpath`~
10653 test -d \$dldir || mkdir -p \$dldir~
10654 $install_prog $dir/$dlname \$dldir/$dlname~
10655 chmod a+x \$dldir/$dlname~
10656 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10657 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10659 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10660 dlpath=$dir/\$dldll~
10662 shlibpath_overrides_runpath=yes
10666 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10667 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10669 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10672 # MinGW DLLs use traditional 'lib' prefix
10673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10676 # pw32 DLLs use 'pw' prefix rather than 'lib'
10677 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10680 dynamic_linker='Win32 ld.exe'
10685 libname_spec='$name'
10686 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10687 library_names_spec='$libname.dll.lib'
10691 sys_lib_search_path_spec=
10694 for lt_path in $LIB
10697 # Let DOS variable expansion print the short 8.3 style file name.
10698 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10699 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10702 # Convert to MSYS style.
10703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10706 # Convert to unix form, then to dos form, then back to unix form
10707 # but this time dos style (no spaces!) so that the unix form looks
10708 # like /cygdrive/c/PROGRA~1:/cygdr...
10709 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10710 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10711 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10714 sys_lib_search_path_spec=$LIB
10715 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10716 # It is most probably a Windows format PATH.
10717 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10719 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10721 # FIXME: find the short name or the path components, as spaces are
10722 # common. (e.g. "Program Files" -> "PROGRA~1")
10726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727 postinstall_cmds='base_file=`basename \$file`~
10728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10729 dldir=$destdir/`dirname \$dlpath`~
10730 test -d \$dldir || mkdir -p \$dldir~
10731 $install_prog $dir/$dlname \$dldir/$dlname'
10732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10733 dlpath=$dir/\$dldll~
10735 shlibpath_overrides_runpath=yes
10736 dynamic_linker='Win32 link.exe'
10740 # Assume MSVC wrapper
10741 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10742 dynamic_linker='Win32 ld.exe'
10745 # FIXME: first we should search . and the directory the executable is in
10749 darwin* | rhapsody*)
10750 dynamic_linker="$host_os dyld"
10751 version_type=darwin
10754 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10755 soname_spec='$libname$release$major$shared_ext'
10756 shlibpath_overrides_runpath=yes
10757 shlibpath_var=DYLD_LIBRARY_PATH
10758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10761 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10765 version_type=linux # correct to gnu/linux during the next big refactor
10768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10769 soname_spec='$libname$release$shared_ext$major'
10770 shlibpath_var=LD_LIBRARY_PATH
10773 freebsd* | dragonfly*)
10774 # DragonFly does not have aout. When/if they implement a new
10775 # versioning mechanism, adjust this.
10776 if test -x /usr/bin/objformat; then
10777 objformat=`/usr/bin/objformat`
10780 freebsd[23].*) objformat=aout ;;
10781 *) objformat=elf ;;
10784 version_type=freebsd-$objformat
10785 case $version_type in
10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10788 soname_spec='$libname$release$shared_ext$major'
10793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10797 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=yes
10802 freebsd3.[01]* | freebsdelf3.[01]*)
10803 shlibpath_overrides_runpath=yes
10804 hardcode_into_libs=yes
10806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10811 *) # from 4.6 on, and DragonFly
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10819 version_type=linux # correct to gnu/linux during the next big refactor
10822 dynamic_linker="$host_os runtime_loader"
10823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10824 soname_spec='$libname$release$shared_ext$major'
10825 shlibpath_var=LIBRARY_PATH
10826 shlibpath_overrides_runpath=no
10827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10828 hardcode_into_libs=yes
10831 hpux9* | hpux10* | hpux11*)
10832 # Give a soname corresponding to the major version so that dld.sl refuses to
10833 # link against other versions.
10840 hardcode_into_libs=yes
10841 dynamic_linker="$host_os dld.so"
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10845 soname_spec='$libname$release$shared_ext$major'
10846 if test 32 = "$HPUX_IA64_MODE"; then
10847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10851 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10856 hardcode_into_libs=yes
10857 dynamic_linker="$host_os dld.sl"
10858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10861 soname_spec='$libname$release$shared_ext$major'
10862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867 dynamic_linker="$host_os dld.sl"
10868 shlibpath_var=SHLIB_PATH
10869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871 soname_spec='$libname$release$shared_ext$major'
10874 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10875 postinstall_cmds='chmod 555 $lib'
10876 # or fails outright, so override atomically:
10877 install_override_mode=555
10881 version_type=linux # correct to gnu/linux during the next big refactor
10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885 soname_spec='$libname$release$shared_ext$major'
10886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=no
10889 hardcode_into_libs=yes
10892 irix5* | irix6* | nonstopux*)
10894 nonstopux*) version_type=nonstopux ;;
10896 if test yes = "$lt_cv_prog_gnu_ld"; then
10897 version_type=linux # correct to gnu/linux during the next big refactor
10904 soname_spec='$libname$release$shared_ext$major'
10905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10907 irix5* | nonstopux*)
10908 libsuff= shlibsuff=
10911 case $LD in # libtool.m4 will add one of these switches to LD
10912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10913 libsuff= shlibsuff= libmagic=32-bit;;
10914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10915 libsuff=32 shlibsuff=N32 libmagic=N32;;
10916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10917 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10918 *) libsuff= shlibsuff= libmagic=never-match;;
10922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10923 shlibpath_overrides_runpath=no
10924 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10925 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10926 hardcode_into_libs=yes
10929 # No shared lib support for Linux oldld, aout, or coff.
10930 linux*oldld* | linux*aout* | linux*coff*)
10935 version_type=none # Android doesn't support versioned libraries.
10938 library_names_spec='$libname$release$shared_ext'
10939 soname_spec='$libname$release$shared_ext'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=yes
10944 # This implies no fast_install, which is unacceptable.
10945 # Some rework will be needed to allow for fast_install
10946 # before this can be enabled.
10947 hardcode_into_libs=yes
10949 dynamic_linker='Android linker'
10950 # Don't embed -rpath directories since the linker doesn't support them.
10951 hardcode_libdir_flag_spec='-L$libdir'
10954 # This must be glibc/ELF.
10955 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10956 version_type=linux # correct to gnu/linux during the next big refactor
10959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10960 soname_spec='$libname$release$shared_ext$major'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10965 # Some binutils ld are patched to set DT_RUNPATH
10966 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10967 $as_echo_n "(cached) " >&6
10969 lt_cv_shlibpath_overrides_runpath=no
10970 save_LDFLAGS=$LDFLAGS
10971 save_libdir=$libdir
10972 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10973 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975 /* end confdefs.h. */
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10987 lt_cv_shlibpath_overrides_runpath=yes
10990 rm -f core conftest.err conftest.$ac_objext \
10991 conftest$ac_exeext conftest.$ac_ext
10992 LDFLAGS=$save_LDFLAGS
10993 libdir=$save_libdir
10997 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10999 # This implies no fast_install, which is unacceptable.
11000 # Some rework will be needed to allow for fast_install
11001 # before this can be enabled.
11002 hardcode_into_libs=yes
11004 # Ideally, we could use ldconfig to report *all* directores which are
11005 # searched for libraries, however this is still not possible. Aside from not
11006 # being certain /sbin/ldconfig is available, command
11007 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11008 # even though it is searched at run-time. Try to do the best guess by
11009 # appending ld.so.conf contents (and includes) to the search path.
11010 if test -f /etc/ld.so.conf; then
11011 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' ' '`
11012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11015 # We used to test for /lib/ld.so.1 and disable shared libraries on
11016 # powerpc, because MkLinux only supported shared libraries with the
11017 # GNU dynamic linker. Since this was broken with cross compilers,
11018 # most powerpc-linux boxes support dynamic linking these days and
11019 # people can always --disable-shared, the test was removed, and we
11020 # assume the GNU/Linux dynamic linker is in use.
11021 dynamic_linker='GNU/Linux ld.so'
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11033 dynamic_linker='NetBSD ld.elf_so'
11040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11043 dynamic_linker='NetBSD (a.out) ld.so'
11045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 soname_spec='$libname$release$shared_ext$major'
11047 dynamic_linker='NetBSD ld.elf_so'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 hardcode_into_libs=yes
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11066 soname_spec='$libname$release$shared_ext$major'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=no
11069 hardcode_into_libs=yes
11070 dynamic_linker='ldqnx.so'
11073 openbsd* | bitrig*)
11075 sys_lib_dlsearch_path_spec=/usr/lib
11077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=yes
11089 libname_spec='$name'
11090 version_type=windows
11094 # OS/2 can only load a DLL with a base name of 8 characters or less.
11095 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11096 v=$($ECHO $release$versuffix | tr -d .-);
11097 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11098 $ECHO $n$v`$shared_ext'
11099 library_names_spec='${libname}_dll.$libext'
11100 dynamic_linker='OS/2 ld.exe'
11101 shlibpath_var=BEGINLIBPATH
11102 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11104 postinstall_cmds='base_file=`basename \$file`~
11105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11106 dldir=$destdir/`dirname \$dlpath`~
11107 test -d \$dldir || mkdir -p \$dldir~
11108 $install_prog $dir/$dlname \$dldir/$dlname~
11109 chmod a+x \$dldir/$dlname~
11110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11114 dlpath=$dir/\$dldll~
11118 osf3* | osf4* | osf5*)
11122 soname_spec='$libname$release$shared_ext$major'
11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11134 version_type=linux # correct to gnu/linux during the next big refactor
11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11138 soname_spec='$libname$release$shared_ext$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 # ldd complains unless libraries are executable
11143 postinstall_cmds='chmod +x $lib'
11148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 if test yes = "$with_gnu_ld"; then
11159 version_type=linux # correct to gnu/linux during the next big refactor
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 soname_spec='$libname$release$shared_ext$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 case $host_vendor in
11165 shlibpath_overrides_runpath=no
11167 runpath_var=LD_RUN_PATH
11175 shlibpath_overrides_runpath=no
11176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11182 if test -d /usr/nec; then
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11185 soname_spec='$libname$shared_ext.$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $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 if test yes = "$with_gnu_ld"; then
11200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11209 sys_lib_dlsearch_path_spec='/usr/lib'
11213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11214 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 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11226 soname_spec='$libname$release$shared_ext$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11235 $as_echo "$dynamic_linker" >&6; }
11236 test no = "$dynamic_linker" && can_build_shared=no
11238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11239 if test yes = "$GCC"; then
11240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11243 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11244 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11247 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11248 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11251 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11252 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11254 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11255 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11257 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11258 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11357 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11359 if test -n "$hardcode_libdir_flag_spec" ||
11360 test -n "$runpath_var" ||
11361 test yes = "$hardcode_automatic"; then
11363 # We can hardcode non-existent directories.
11364 if test no != "$hardcode_direct" &&
11365 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11366 # have to relink, otherwise we might link with an installed library
11367 # when we should be linking with a yet-to-be-installed one
11368 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11369 test no != "$hardcode_minus_L"; then
11370 # Linking always hardcodes the temporary library directory.
11371 hardcode_action=relink
11373 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11374 hardcode_action=immediate
11377 # We cannot hardcode anything, or else we can only hardcode existing
11379 hardcode_action=unsupported
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11382 $as_echo "$hardcode_action" >&6; }
11384 if test relink = "$hardcode_action" ||
11385 test yes = "$inherit_rpath"; then
11386 # Fast installation is not supported
11387 enable_fast_install=no
11388 elif test yes = "$shlibpath_overrides_runpath" ||
11389 test no = "$enable_shared"; then
11390 # Fast installation is not necessary
11391 enable_fast_install=needless
11399 if test yes != "$enable_dlopen"; then
11400 enable_dlopen=unknown
11401 enable_dlopen_self=unknown
11402 enable_dlopen_self_static=unknown
11409 lt_cv_dlopen=load_add_on
11411 lt_cv_dlopen_self=yes
11414 mingw* | pw32* | cegcc*)
11415 lt_cv_dlopen=LoadLibrary
11420 lt_cv_dlopen=dlopen
11425 # if libdl is installed we need to link against it
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11427 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11428 if ${ac_cv_lib_dl_dlopen+:} false; then :
11429 $as_echo_n "(cached) " >&6
11431 ac_check_lib_save_LIBS=$LIBS
11433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434 /* end confdefs.h. */
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11451 if ac_fn_c_try_link "$LINENO"; then :
11452 ac_cv_lib_dl_dlopen=yes
11454 ac_cv_lib_dl_dlopen=no
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_lib_save_LIBS
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11461 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11462 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11463 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11468 lt_cv_dlopen_self=yes
11475 # Don't try to run any link tests for TPF. We know it's impossible
11476 # because TPF is a cross-compiler, and we know how we open DSOs.
11477 lt_cv_dlopen=dlopen
11479 lt_cv_dlopen_self=no
11483 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11484 if test "x$ac_cv_func_shl_load" = xyes; then :
11485 lt_cv_dlopen=shl_load
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11488 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11489 if ${ac_cv_lib_dld_shl_load+:} false; then :
11490 $as_echo_n "(cached) " >&6
11492 ac_check_lib_save_LIBS=$LIBS
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11507 return shl_load ();
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 ac_cv_lib_dld_shl_load=yes
11515 ac_cv_lib_dld_shl_load=no
11517 rm -f core conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11522 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11523 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11524 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11526 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11527 if test "x$ac_cv_func_dlopen" = xyes; then :
11528 lt_cv_dlopen=dlopen
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11532 if ${ac_cv_lib_dl_dlopen+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 ac_check_lib_save_LIBS=$LIBS
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_dl_dlopen=yes
11558 ac_cv_lib_dl_dlopen=no
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11566 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11567 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11570 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11571 if ${ac_cv_lib_svld_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lsvld $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_svld_dlopen=yes
11597 ac_cv_lib_svld_dlopen=no
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11604 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11605 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11606 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11609 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11610 if ${ac_cv_lib_dld_dld_link+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 ac_check_lib_save_LIBS=$LIBS
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 /* Override any GCC internal prototype to avoid an error.
11619 Use char because int might match the return type of a GCC
11620 builtin and then its argument prototype would still apply. */
11628 return dld_link ();
11633 if ac_fn_c_try_link "$LINENO"; then :
11634 ac_cv_lib_dld_dld_link=yes
11636 ac_cv_lib_dld_dld_link=no
11638 rm -f core conftest.err conftest.$ac_objext \
11639 conftest$ac_exeext conftest.$ac_ext
11640 LIBS=$ac_check_lib_save_LIBS
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11643 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11644 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11645 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11666 if test no = "$lt_cv_dlopen"; then
11672 case $lt_cv_dlopen in
11674 save_CPPFLAGS=$CPPFLAGS
11675 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11677 save_LDFLAGS=$LDFLAGS
11678 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11681 LIBS="$lt_cv_dlopen_libs $LIBS"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11684 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11685 if ${lt_cv_dlopen_self+:} false; then :
11686 $as_echo_n "(cached) " >&6
11688 if test yes = "$cross_compiling"; then :
11689 lt_cv_dlopen_self=cross
11691 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11692 lt_status=$lt_dlunknown
11693 cat > conftest.$ac_ext <<_LT_EOF
11694 #line $LINENO "configure"
11695 #include "confdefs.h"
11704 # define LT_DLGLOBAL RTLD_GLOBAL
11707 # define LT_DLGLOBAL DL_GLOBAL
11709 # define LT_DLGLOBAL 0
11713 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11714 find out it does not work in some platform. */
11715 #ifndef LT_DLLAZY_OR_NOW
11717 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11720 # define LT_DLLAZY_OR_NOW DL_LAZY
11723 # define LT_DLLAZY_OR_NOW RTLD_NOW
11726 # define LT_DLLAZY_OR_NOW DL_NOW
11728 # define LT_DLLAZY_OR_NOW 0
11735 /* When -fvisibility=hidden is used, assume the code has been annotated
11736 correspondingly for the symbols needed. */
11737 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11738 int fnord () __attribute__((visibility("default")));
11741 int fnord () { return 42; }
11744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11745 int status = $lt_dlunknown;
11749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11752 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11753 else puts (dlerror ());
11755 /* dlclose (self); */
11763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11764 (eval $ac_link) 2>&5
11766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11767 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11768 (./conftest; exit; ) >&5 2>/dev/null
11770 case x$lt_status in
11771 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11772 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11773 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11776 # compilation failed
11777 lt_cv_dlopen_self=no
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11785 $as_echo "$lt_cv_dlopen_self" >&6; }
11787 if test yes = "$lt_cv_dlopen_self"; then
11788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11790 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11791 if ${lt_cv_dlopen_self_static+:} false; then :
11792 $as_echo_n "(cached) " >&6
11794 if test yes = "$cross_compiling"; then :
11795 lt_cv_dlopen_self_static=cross
11797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11798 lt_status=$lt_dlunknown
11799 cat > conftest.$ac_ext <<_LT_EOF
11800 #line $LINENO "configure"
11801 #include "confdefs.h"
11810 # define LT_DLGLOBAL RTLD_GLOBAL
11813 # define LT_DLGLOBAL DL_GLOBAL
11815 # define LT_DLGLOBAL 0
11819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11820 find out it does not work in some platform. */
11821 #ifndef LT_DLLAZY_OR_NOW
11823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11826 # define LT_DLLAZY_OR_NOW DL_LAZY
11829 # define LT_DLLAZY_OR_NOW RTLD_NOW
11832 # define LT_DLLAZY_OR_NOW DL_NOW
11834 # define LT_DLLAZY_OR_NOW 0
11841 /* When -fvisibility=hidden is used, assume the code has been annotated
11842 correspondingly for the symbols needed. */
11843 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11844 int fnord () __attribute__((visibility("default")));
11847 int fnord () { return 42; }
11850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11851 int status = $lt_dlunknown;
11855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11859 else puts (dlerror ());
11861 /* dlclose (self); */
11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11870 (eval $ac_link) 2>&5
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11874 (./conftest; exit; ) >&5 2>/dev/null
11876 case x$lt_status in
11877 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11878 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11879 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11882 # compilation failed
11883 lt_cv_dlopen_self_static=no
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11891 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11894 CPPFLAGS=$save_CPPFLAGS
11895 LDFLAGS=$save_LDFLAGS
11900 case $lt_cv_dlopen_self in
11901 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11902 *) enable_dlopen_self=unknown ;;
11905 case $lt_cv_dlopen_self_static in
11906 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11907 *) enable_dlopen_self_static=unknown ;;
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11930 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11931 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11932 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11933 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11935 $as_echo "yes" >&6; }
11937 # FIXME - insert some real tests, host_os isn't really good enough
11940 if test -n "$STRIP"; then
11941 striplib="$STRIP -x"
11942 old_striplib="$STRIP -S"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11944 $as_echo "yes" >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11947 $as_echo "no" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11952 $as_echo "no" >&6; }
11968 # Report what library types will actually be built
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11970 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11972 $as_echo "$can_build_shared" >&6; }
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11975 $as_echo_n "checking whether to build shared libraries... " >&6; }
11976 test no = "$can_build_shared" && enable_shared=no
11978 # On AIX, shared libraries and static libraries use the same namespace, and
11979 # are all built from PIC.
11982 test yes = "$enable_shared" && enable_static=no
11983 if test -n "$RANLIB"; then
11984 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11985 postinstall_cmds='$RANLIB $lib'
11990 if test ia64 != "$host_cpu"; then
11991 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11992 yes,aix,yes) ;; # shared object as lib.so file only
11993 yes,svr4,*) ;; # shared object as lib.so archive member only
11994 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12000 $as_echo "$enable_shared" >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12003 $as_echo_n "checking whether to build static libraries... " >&6; }
12004 # Make sure either enable_shared or enable_static is yes.
12005 test yes = "$enable_shared" || enable_static=yes
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12007 $as_echo "$enable_static" >&6; }
12014 ac_cpp='$CPP $CPPFLAGS'
12015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035 ac_config_commands="$ac_config_commands libtool"
12040 # Only expand once:
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
12048 if test -n "$ac_tool_prefix"; then
12049 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12050 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052 $as_echo_n "checking for $ac_word... " >&6; }
12053 if ${ac_cv_prog_CC+:} false; then :
12054 $as_echo_n "(cached) " >&6
12056 if test -n "$CC"; then
12057 ac_cv_prog_CC="$CC" # Let the user override the test.
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12063 test -z "$as_dir" && as_dir=.
12064 for ac_exec_ext in '' $ac_executable_extensions; do
12065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12066 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 if test -n "$CC"; then
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12079 $as_echo "$CC" >&6; }
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12087 if test -z "$ac_cv_prog_CC"; then
12089 # Extract the first word of "gcc", so it can be a program name with args.
12090 set dummy gcc; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 $as_echo_n "checking for $ac_word... " >&6; }
12093 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12094 $as_echo_n "(cached) " >&6
12096 if test -n "$ac_ct_CC"; then
12097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_ac_ct_CC="gcc"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12117 if test -n "$ac_ct_CC"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12119 $as_echo "$ac_ct_CC" >&6; }
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122 $as_echo "no" >&6; }
12125 if test "x$ac_ct_CC" = x; then
12128 case $cross_compiling:$ac_tool_warned in
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12132 ac_tool_warned=yes ;;
12137 CC="$ac_cv_prog_CC"
12140 if test -z "$CC"; then
12141 if test -n "$ac_tool_prefix"; then
12142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12143 set dummy ${ac_tool_prefix}cc; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_prog_CC+:} false; then :
12147 $as_echo_n "(cached) " >&6
12149 if test -n "$CC"; then
12150 ac_cv_prog_CC="$CC" # Let the user override the test.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_prog_CC="${ac_tool_prefix}cc"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 if test -n "$CC"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12172 $as_echo "$CC" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12181 if test -z "$CC"; then
12182 # Extract the first word of "cc", so it can be a program name with args.
12183 set dummy cc; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_prog_CC+:} false; then :
12187 $as_echo_n "(cached) " >&6
12189 if test -n "$CC"; then
12190 ac_cv_prog_CC="$CC" # Let the user override the test.
12192 ac_prog_rejected=no
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12201 ac_prog_rejected=yes
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 if test $ac_prog_rejected = yes; then
12213 # We found a bogon in the path, so make sure we never use it.
12214 set dummy $ac_cv_prog_CC
12216 if test $# != 0; then
12217 # We chose a different compiler from the bogus one.
12218 # However, it has the same basename, so the bogon will be chosen
12219 # first if we set CC to just the basename; use the full file name.
12221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12227 if test -n "$CC"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12229 $as_echo "$CC" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12237 if test -z "$CC"; then
12238 if test -n "$ac_tool_prefix"; then
12239 for ac_prog in cl.exe
12241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_CC+:} false; then :
12246 $as_echo_n "(cached) " >&6
12248 if test -n "$CC"; then
12249 ac_cv_prog_CC="$CC" # Let the user override the test.
12251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252 for as_dir in $PATH
12255 test -z "$as_dir" && as_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12269 if test -n "$CC"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12271 $as_echo "$CC" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12278 test -n "$CC" && break
12281 if test -z "$CC"; then
12283 for ac_prog in cl.exe
12285 # Extract the first word of "$ac_prog", so it can be a program name with args.
12286 set dummy $ac_prog; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 if test -n "$ac_ct_CC"; then
12293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_ac_ct_CC="$ac_prog"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12313 if test -n "$ac_ct_CC"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12315 $as_echo "$ac_ct_CC" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12322 test -n "$ac_ct_CC" && break
12325 if test "x$ac_ct_CC" = x; then
12328 case $cross_compiling:$ac_tool_warned in
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12332 ac_tool_warned=yes ;;
12341 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12343 as_fn_error $? "no acceptable C compiler found in \$PATH
12344 See \`config.log' for more details" "$LINENO" 5; }
12346 # Provide some information about the compiler.
12347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12350 for ac_option in --version -v -V -qversion; do
12351 { { ac_try="$ac_compiler $ac_option >&5"
12352 case "(($ac_try" in
12353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12357 $as_echo "$ac_try_echo"; } >&5
12358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12360 if test -s conftest.err; then
12362 ... rest of stderr output deleted ...
12363 10q' conftest.err >conftest.er1
12364 cat conftest.er1 >&5
12366 rm -f conftest.er1 conftest.err
12367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12368 test $ac_status = 0; }
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12373 if ${ac_cv_c_compiler_gnu+:} false; then :
12374 $as_echo_n "(cached) " >&6
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12390 if ac_fn_c_try_compile "$LINENO"; then :
12391 ac_compiler_gnu=yes
12395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12401 if test $ac_compiler_gnu = yes; then
12406 ac_test_CFLAGS=${CFLAGS+set}
12407 ac_save_CFLAGS=$CFLAGS
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12410 if ${ac_cv_prog_cc_g+:} false; then :
12411 $as_echo_n "(cached) " >&6
12413 ac_save_c_werror_flag=$ac_c_werror_flag
12414 ac_c_werror_flag=yes
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429 ac_cv_prog_cc_g=yes
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12443 if ac_fn_c_try_compile "$LINENO"; then :
12446 ac_c_werror_flag=$ac_save_c_werror_flag
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h. */
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460 ac_cv_prog_cc_g=yes
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 ac_c_werror_flag=$ac_save_c_werror_flag
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12470 $as_echo "$ac_cv_prog_cc_g" >&6; }
12471 if test "$ac_test_CFLAGS" = set; then
12472 CFLAGS=$ac_save_CFLAGS
12473 elif test $ac_cv_prog_cc_g = yes; then
12474 if test "$GCC" = yes; then
12480 if test "$GCC" = yes; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12488 if ${ac_cv_prog_cc_c89+:} false; then :
12489 $as_echo_n "(cached) " >&6
12491 ac_cv_prog_cc_c89=no
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <stdarg.h>
12498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12499 struct buf { int x; };
12500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12501 static char *e (p, i)
12507 static char *f (char * (*g) (char **, int), char **p, ...)
12512 s = g (p, va_arg (v,int));
12517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12518 function prototypes and stuff, but not '\xHH' hex character constants.
12519 These don't provoke an error unfortunately, instead are silently treated
12520 as 'x'. The following induces an error, until -std is added to get
12521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12522 array size at least. It's necessary to write '\x00'==0 to get something
12523 that's true only with -std. */
12524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12526 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12527 inside strings and character constants. */
12529 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12531 int test (int i, double x);
12532 struct s1 {int (*f) (int a);};
12533 struct s2 {int (*f) (double a);};
12534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12540 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12545 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12546 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12548 CC="$ac_save_CC $ac_arg"
12549 if ac_fn_c_try_compile "$LINENO"; then :
12550 ac_cv_prog_cc_c89=$ac_arg
12552 rm -f core conftest.err conftest.$ac_objext
12553 test "x$ac_cv_prog_cc_c89" != "xno" && break
12555 rm -f conftest.$ac_ext
12560 case "x$ac_cv_prog_cc_c89" in
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12563 $as_echo "none needed" >&6; } ;;
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12566 $as_echo "unsupported" >&6; } ;;
12568 CC="$CC $ac_cv_prog_cc_c89"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12570 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12572 if test "x$ac_cv_prog_cc_c89" != xno; then :
12577 ac_cpp='$CPP $CPPFLAGS'
12578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583 ac_cpp='$CPP $CPPFLAGS'
12584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12588 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12589 if ${am_cv_prog_cc_c_o+:} false; then :
12590 $as_echo_n "(cached) " >&6
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12603 # Make sure it works both with $CC and with simple cc.
12604 # Following AC_PROG_CC_C_O, we do the test twice because some
12605 # compilers refuse to overwrite an existing .o file with -o,
12606 # though they will create one.
12607 am_cv_prog_cc_c_o=yes
12608 for am_i in 1 2; do
12609 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12610 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } \
12614 && test -f conftest2.$ac_objext; then
12617 am_cv_prog_cc_c_o=no
12621 rm -f core conftest*
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12625 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12626 if test "$am_cv_prog_cc_c_o" != yes; then
12627 # Losing compiler, so override with the script.
12628 # FIXME: It is wrong to rewrite CC.
12629 # But if we don't then we get into trouble of one sort or another.
12630 # A longer-term fix would be to have automake use am__CC in this case,
12631 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12632 CC="$am_aux_dir/compile $CC"
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12641 depcc="$CC" am_compiler_list=
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12644 $as_echo_n "checking dependency style of $depcc... " >&6; }
12645 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12646 $as_echo_n "(cached) " >&6
12648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12649 # We make a subdir and do the tests there. Otherwise we can end up
12650 # making bogus files that we don't know about and never remove. For
12651 # instance it was reported that on HP-UX the gcc test will end up
12652 # making a dummy file named 'D' -- because '-MD' means "put the output
12654 rm -rf conftest.dir
12656 # Copy depcomp to subdir because otherwise we won't find it if we're
12657 # using a relative directory.
12658 cp "$am_depcomp" conftest.dir
12660 # We will build objects and dependencies in a subdirectory because
12661 # it helps to detect inapplicable dependency modes. For instance
12662 # both Tru64's cc and ICC support -MD to output dependencies as a
12663 # side effect of compilation, but ICC will put the dependencies in
12664 # the current directory while Tru64 will put them in the object
12668 am_cv_CC_dependencies_compiler_type=none
12669 if test "$am_compiler_list" = ""; then
12670 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12672 am__universal=false
12673 case " $depcc " in #(
12674 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12677 for depmode in $am_compiler_list; do
12678 # Setup a source with many dependencies, because some compilers
12679 # like to wrap large dependency lists on column 80 (with \), and
12680 # we should not choose a depcomp mode which is confused by this.
12682 # We need to recreate these files for each test, as the compiler may
12683 # overwrite some of them when testing with obscure command lines.
12684 # This happens at least with the AIX C compiler.
12686 for i in 1 2 3 4 5 6; do
12687 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12688 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12689 # Solaris 10 /bin/sh.
12690 echo '/* dummy */' > sub/conftst$i.h
12692 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12694 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12695 # mode. It turns out that the SunPro C++ compiler does not properly
12696 # handle '-M -o', and we need to detect this. Also, some Intel
12697 # versions had trouble with output in subdirs.
12698 am__obj=sub/conftest.${OBJEXT-o}
12699 am__minus_obj="-o $am__obj"
12702 # This depmode causes a compiler race in universal mode.
12703 test "$am__universal" = false || continue
12706 # After this tag, mechanisms are not by side-effect, so they'll
12707 # only be used when explicitly requested.
12708 if test "x$enable_dependency_tracking" = xyes; then
12714 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12715 # This compiler won't grok '-c -o', but also, the minuso test has
12716 # not run yet. These depmodes are late enough in the game, and
12717 # so weak that their functioning should not be impacted.
12718 am__obj=conftest.${OBJEXT-o}
12723 if depmode=$depmode \
12724 source=sub/conftest.c object=$am__obj \
12725 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12726 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12727 >/dev/null 2>conftest.err &&
12728 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12729 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12730 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12731 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12732 # icc doesn't choke on unknown options, it will just issue warnings
12733 # or remarks (even with -Werror). So we grep stderr for any message
12734 # that says an option was ignored or not supported.
12735 # When given -MP, icc 7.0 and 7.1 complain thusly:
12736 # icc: Command line warning: ignoring option '-M'; no argument required
12737 # The diagnosis changed in icc 8.0:
12738 # icc: Command line remark: option '-MP' not supported
12739 if (grep 'ignoring option' conftest.err ||
12740 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12741 am_cv_CC_dependencies_compiler_type=$depmode
12748 rm -rf conftest.dir
12750 am_cv_CC_dependencies_compiler_type=none
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12755 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12756 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12759 test "x$enable_dependency_tracking" != xno \
12760 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12761 am__fastdepCC_TRUE=
12762 am__fastdepCC_FALSE='#'
12764 am__fastdepCC_TRUE='#'
12765 am__fastdepCC_FALSE=
12773 *linux*) arch=linux;;
12774 *netbsd*) arch=netbsd;;
12779 if test "$ac_env_CFLAGS_set" != set; then
12780 CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
12783 # Check whether --enable-lib was given.
12784 if test "${enable_lib+set}" = set; then :
12785 enableval=$enable_lib;
12788 # Check whether --enable-util was given.
12789 if test "${enable_util+set}" = set; then :
12790 enableval=$enable_util;
12793 # Check whether --enable-example was given.
12794 if test "${enable_example+set}" = set; then :
12795 enableval=$enable_example;
12798 # Check whether --enable-mtab was given.
12799 if test "${enable_mtab+set}" = set; then :
12800 enableval=$enable_mtab;
12805 # Check whether --with-pkgconfigdir was given.
12806 if test "${with_pkgconfigdir+set}" = set; then :
12807 withval=$with_pkgconfigdir; pkgconfigdir=$withval
12809 pkgconfigdir='${libdir}/pkgconfig'
12816 if test "$enable_lib" != "no"; then
12817 subdirs2="$subdirs2 lib";
12819 if test "$arch" = linux -a "$enable_util" != "no"; then
12820 subdirs2="$subdirs2 util";
12822 if test "$enable_example" != "no"; then
12823 subdirs2="$subdirs2 example";
12825 if test "$enable_mtab" = "no"; then
12827 $as_echo "#define IGNORE_MTAB 1" >>confdefs.h
12831 for ac_func in fork setxattr fdatasync splice vmsplice utimensat
12833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12836 cat >>confdefs.h <<_ACEOF
12837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12843 for ac_func in posix_fallocate
12845 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12846 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12847 cat >>confdefs.h <<_ACEOF
12848 #define HAVE_POSIX_FALLOCATE 1
12854 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12855 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12857 cat >>confdefs.h <<_ACEOF
12858 #define HAVE_STRUCT_STAT_ST_ATIM 1
12864 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
12865 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
12867 cat >>confdefs.h <<_ACEOF
12868 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12877 $as_echo_n "checking for library containing dlopen... " >&6; }
12878 if ${ac_cv_search_dlopen+:} false; then :
12879 $as_echo_n "(cached) " >&6
12881 ac_func_search_save_LIBS=$LIBS
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12885 /* Override any GCC internal prototype to avoid an error.
12886 Use char because int might match the return type of a GCC
12887 builtin and then its argument prototype would still apply. */
12900 for ac_lib in '' dl; do
12901 if test -z "$ac_lib"; then
12902 ac_res="none required"
12905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12907 if ac_fn_c_try_link "$LINENO"; then :
12908 ac_cv_search_dlopen=$ac_res
12910 rm -f core conftest.err conftest.$ac_objext \
12912 if ${ac_cv_search_dlopen+:} false; then :
12916 if ${ac_cv_search_dlopen+:} false; then :
12919 ac_cv_search_dlopen=no
12921 rm conftest.$ac_ext
12922 LIBS=$ac_func_search_save_LIBS
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12925 $as_echo "$ac_cv_search_dlopen" >&6; }
12926 ac_res=$ac_cv_search_dlopen
12927 if test "$ac_res" != no; then :
12928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12933 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12934 if ${ac_cv_search_clock_gettime+:} false; then :
12935 $as_echo_n "(cached) " >&6
12937 ac_func_search_save_LIBS=$LIBS
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12947 char clock_gettime ();
12951 return clock_gettime ();
12956 for ac_lib in '' rt; do
12957 if test -z "$ac_lib"; then
12958 ac_res="none required"
12961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 ac_cv_search_clock_gettime=$ac_res
12966 rm -f core conftest.err conftest.$ac_objext \
12968 if ${ac_cv_search_clock_gettime+:} false; then :
12972 if ${ac_cv_search_clock_gettime+:} false; then :
12975 ac_cv_search_clock_gettime=no
12977 rm conftest.$ac_ext
12978 LIBS=$ac_func_search_save_LIBS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12981 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12982 ac_res=$ac_cv_search_clock_gettime
12983 if test "$ac_res" != no; then :
12984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12991 # Check whether --with-libiconv-prefix was given.
12992 if test "${with_libiconv_prefix+set}" = set; then :
12993 withval=$with_libiconv_prefix;
12994 for dir in `echo "$withval" | tr : ' '`; do
12995 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12996 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
13002 if test "X$prefix" = "XNONE"; then
13003 acl_final_prefix="$ac_default_prefix"
13005 acl_final_prefix="$prefix"
13007 if test "X$exec_prefix" = "XNONE"; then
13008 acl_final_exec_prefix='${prefix}'
13010 acl_final_exec_prefix="$exec_prefix"
13012 acl_save_prefix="$prefix"
13013 prefix="$acl_final_prefix"
13014 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13015 prefix="$acl_save_prefix"
13019 # Check whether --with-gnu-ld was given.
13020 if test "${with_gnu_ld+set}" = set; then :
13021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13026 # Prepare PATH_SEPARATOR.
13027 # The user is always right.
13028 if test "${PATH_SEPARATOR+set}" != set; then
13029 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13030 # contains only /bin. Note that ksh looks also at the FPATH variable,
13031 # so we have to set that as well for the test.
13033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13034 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13035 || PATH_SEPARATOR=';'
13040 if test "$GCC" = yes; then
13041 # Check if gcc -print-prog-name=ld gives a path.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13043 $as_echo_n "checking for ld used by $CC... " >&6; }
13046 # gcc leaves a trailing carriage return which upsets mingw
13047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13052 # Accept absolute paths.
13054 re_direlt='/[^/][^/]*/\.\./'
13055 # Canonicalize the pathname of ld
13056 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
13057 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
13058 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13060 test -z "$LD" && LD="$ac_prog"
13063 # If it fails, then pretend we aren't using GCC.
13067 # If it is relative, then search for the first ld in PATH.
13068 with_gnu_ld=unknown
13071 elif test "$with_gnu_ld" = yes; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13073 $as_echo_n "checking for GNU ld... " >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13076 $as_echo_n "checking for non-GNU ld... " >&6; }
13078 if ${acl_cv_path_LD+:} false; then :
13079 $as_echo_n "(cached) " >&6
13081 if test -z "$LD"; then
13082 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13083 for ac_dir in $PATH; do
13084 IFS="$acl_save_ifs"
13085 test -z "$ac_dir" && ac_dir=.
13086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13087 acl_cv_path_LD="$ac_dir/$ac_prog"
13088 # Check to see if the program is GNU ld. I'd rather use --version,
13089 # but apparently some variants of GNU ld only accept -v.
13090 # Break only if it was the GNU/non-GNU ld that we prefer.
13091 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
13092 *GNU* | *'with BFD'*)
13093 test "$with_gnu_ld" != no && break
13096 test "$with_gnu_ld" != yes && break
13101 IFS="$acl_save_ifs"
13103 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13107 LD="$acl_cv_path_LD"
13108 if test -n "$LD"; then
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13110 $as_echo "$LD" >&6; }
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13115 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13118 if ${acl_cv_prog_gnu_ld+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13122 case `$LD -v 2>&1 </dev/null` in
13123 *GNU* | *'with BFD'*)
13124 acl_cv_prog_gnu_ld=yes
13127 acl_cv_prog_gnu_ld=no
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13132 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13133 with_gnu_ld=$acl_cv_prog_gnu_ld
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13139 $as_echo_n "checking for shared library run path origin... " >&6; }
13140 if ${acl_cv_rpath+:} false; then :
13141 $as_echo_n "(cached) " >&6
13144 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13145 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13147 rm -f ./conftest.sh
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13152 $as_echo "$acl_cv_rpath" >&6; }
13154 acl_libext="$acl_cv_libext"
13155 acl_shlibext="$acl_cv_shlibext"
13156 acl_libname_spec="$acl_cv_libname_spec"
13157 acl_library_names_spec="$acl_cv_library_names_spec"
13158 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13159 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13160 acl_hardcode_direct="$acl_cv_hardcode_direct"
13161 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13162 # Check whether --enable-rpath was given.
13163 if test "${enable_rpath+set}" = set; then :
13164 enableval=$enable_rpath; :
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13177 $as_echo_n "checking for 64-bit host... " >&6; }
13178 if ${gl_cv_solaris_64bit+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13190 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13191 gl_cv_solaris_64bit=yes
13193 gl_cv_solaris_64bit=no
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13200 $as_echo "$gl_cv_solaris_64bit" >&6; }
13201 if test $gl_cv_solaris_64bit = yes; then
13202 acl_libdirstem=lib/64
13203 case "$host_cpu" in
13204 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13205 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13210 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13211 if test -n "$searchpath"; then
13212 acl_save_IFS="${IFS= }"; IFS=":"
13213 for searchdir in $searchpath; do
13214 if test -d "$searchdir"; then
13215 case "$searchdir" in
13216 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13218 # Better ignore directories of this form. They are misleading.
13220 *) searchdir=`cd "$searchdir" && pwd`
13221 case "$searchdir" in
13222 */lib64 ) acl_libdirstem=lib64 ;;
13227 IFS="$acl_save_IFS"
13231 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13246 acl_save_prefix="$prefix"
13247 prefix="$acl_final_prefix"
13248 acl_save_exec_prefix="$exec_prefix"
13249 exec_prefix="$acl_final_exec_prefix"
13251 eval additional_includedir=\"$includedir\"
13252 eval additional_libdir=\"$libdir\"
13254 exec_prefix="$acl_save_exec_prefix"
13255 prefix="$acl_save_prefix"
13258 # Check whether --with-libiconv-prefix was given.
13259 if test "${with_libiconv_prefix+set}" = set; then :
13260 withval=$with_libiconv_prefix;
13261 if test "X$withval" = "Xno"; then
13264 if test "X$withval" = "X"; then
13266 acl_save_prefix="$prefix"
13267 prefix="$acl_final_prefix"
13268 acl_save_exec_prefix="$exec_prefix"
13269 exec_prefix="$acl_final_exec_prefix"
13271 eval additional_includedir=\"$includedir\"
13272 eval additional_libdir=\"$libdir\"
13274 exec_prefix="$acl_save_exec_prefix"
13275 prefix="$acl_save_prefix"
13278 additional_includedir="$withval/include"
13279 additional_libdir="$withval/$acl_libdirstem"
13280 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13281 && ! test -d "$withval/$acl_libdirstem"; then
13282 additional_libdir="$withval/$acl_libdirstem2"
13296 names_already_handled=
13297 names_next_round='iconv '
13298 while test -n "$names_next_round"; do
13299 names_this_round="$names_next_round"
13301 for name in $names_this_round; do
13303 for n in $names_already_handled; do
13304 if test "$n" = "$name"; then
13305 already_handled=yes
13309 if test -z "$already_handled"; then
13310 names_already_handled="$names_already_handled $name"
13311 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13312 eval value=\"\$HAVE_LIB$uppername\"
13313 if test -n "$value"; then
13314 if test "$value" = yes; then
13315 eval value=\"\$LIB$uppername\"
13316 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13317 eval value=\"\$LTLIB$uppername\"
13318 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13327 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13328 if test -n "$acl_shlibext"; then
13329 shrext=".$acl_shlibext" # typically: shrext=.so
13333 if test $use_additional = yes; then
13334 dir="$additional_libdir"
13335 if test -n "$acl_shlibext"; then
13336 if test -f "$dir/$libname$shrext"; then
13338 found_so="$dir/$libname$shrext"
13340 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13341 ver=`(cd "$dir" && \
13342 for f in "$libname$shrext".*; do echo "$f"; done \
13343 | sed -e "s,^$libname$shrext\\\\.,," \
13344 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13345 | sed 1q ) 2>/dev/null`
13346 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13348 found_so="$dir/$libname$shrext.$ver"
13351 eval library_names=\"$acl_library_names_spec\"
13352 for f in $library_names; do
13353 if test -f "$dir/$f"; then
13362 if test "X$found_dir" = "X"; then
13363 if test -f "$dir/$libname.$acl_libext"; then
13365 found_a="$dir/$libname.$acl_libext"
13368 if test "X$found_dir" != "X"; then
13369 if test -f "$dir/$libname.la"; then
13370 found_la="$dir/$libname.la"
13374 if test "X$found_dir" = "X"; then
13375 for x in $LDFLAGS $LTLIBICONV; do
13377 acl_save_prefix="$prefix"
13378 prefix="$acl_final_prefix"
13379 acl_save_exec_prefix="$exec_prefix"
13380 exec_prefix="$acl_final_exec_prefix"
13382 exec_prefix="$acl_save_exec_prefix"
13383 prefix="$acl_save_prefix"
13387 dir=`echo "X$x" | sed -e 's/^X-L//'`
13388 if test -n "$acl_shlibext"; then
13389 if test -f "$dir/$libname$shrext"; then
13391 found_so="$dir/$libname$shrext"
13393 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13394 ver=`(cd "$dir" && \
13395 for f in "$libname$shrext".*; do echo "$f"; done \
13396 | sed -e "s,^$libname$shrext\\\\.,," \
13397 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13398 | sed 1q ) 2>/dev/null`
13399 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13401 found_so="$dir/$libname$shrext.$ver"
13404 eval library_names=\"$acl_library_names_spec\"
13405 for f in $library_names; do
13406 if test -f "$dir/$f"; then
13415 if test "X$found_dir" = "X"; then
13416 if test -f "$dir/$libname.$acl_libext"; then
13418 found_a="$dir/$libname.$acl_libext"
13421 if test "X$found_dir" != "X"; then
13422 if test -f "$dir/$libname.la"; then
13423 found_la="$dir/$libname.la"
13428 if test "X$found_dir" != "X"; then
13433 if test "X$found_dir" != "X"; then
13434 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13435 if test "X$found_so" != "X"; then
13436 if test "$enable_rpath" = no \
13437 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13438 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13442 for x in $ltrpathdirs; do
13443 if test "X$x" = "X$found_dir"; then
13448 if test -z "$haveit"; then
13449 ltrpathdirs="$ltrpathdirs $found_dir"
13451 if test "$acl_hardcode_direct" = yes; then
13452 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13454 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13455 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13457 for x in $rpathdirs; do
13458 if test "X$x" = "X$found_dir"; then
13463 if test -z "$haveit"; then
13464 rpathdirs="$rpathdirs $found_dir"
13468 for x in $LDFLAGS $LIBICONV; do
13470 acl_save_prefix="$prefix"
13471 prefix="$acl_final_prefix"
13472 acl_save_exec_prefix="$exec_prefix"
13473 exec_prefix="$acl_final_exec_prefix"
13475 exec_prefix="$acl_save_exec_prefix"
13476 prefix="$acl_save_prefix"
13478 if test "X$x" = "X-L$found_dir"; then
13483 if test -z "$haveit"; then
13484 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13486 if test "$acl_hardcode_minus_L" != no; then
13487 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13489 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13495 if test "X$found_a" != "X"; then
13496 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13498 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13501 additional_includedir=
13502 case "$found_dir" in
13503 */$acl_libdirstem | */$acl_libdirstem/)
13504 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13505 if test "$name" = 'iconv'; then
13506 LIBICONV_PREFIX="$basedir"
13508 additional_includedir="$basedir/include"
13510 */$acl_libdirstem2 | */$acl_libdirstem2/)
13511 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13512 if test "$name" = 'iconv'; then
13513 LIBICONV_PREFIX="$basedir"
13515 additional_includedir="$basedir/include"
13518 if test "X$additional_includedir" != "X"; then
13519 if test "X$additional_includedir" != "X/usr/include"; then
13521 if test "X$additional_includedir" = "X/usr/local/include"; then
13522 if test -n "$GCC"; then
13524 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13528 if test -z "$haveit"; then
13529 for x in $CPPFLAGS $INCICONV; do
13531 acl_save_prefix="$prefix"
13532 prefix="$acl_final_prefix"
13533 acl_save_exec_prefix="$exec_prefix"
13534 exec_prefix="$acl_final_exec_prefix"
13536 exec_prefix="$acl_save_exec_prefix"
13537 prefix="$acl_save_prefix"
13539 if test "X$x" = "X-I$additional_includedir"; then
13544 if test -z "$haveit"; then
13545 if test -d "$additional_includedir"; then
13546 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13552 if test -n "$found_la"; then
13553 save_libdir="$libdir"
13554 case "$found_la" in
13555 */* | *\\*) . "$found_la" ;;
13556 *) . "./$found_la" ;;
13558 libdir="$save_libdir"
13559 for dep in $dependency_libs; do
13562 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13563 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13564 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13566 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13567 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13568 if test -n "$GCC"; then
13570 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13574 if test -z "$haveit"; then
13576 for x in $LDFLAGS $LIBICONV; do
13578 acl_save_prefix="$prefix"
13579 prefix="$acl_final_prefix"
13580 acl_save_exec_prefix="$exec_prefix"
13581 exec_prefix="$acl_final_exec_prefix"
13583 exec_prefix="$acl_save_exec_prefix"
13584 prefix="$acl_save_prefix"
13586 if test "X$x" = "X-L$additional_libdir"; then
13591 if test -z "$haveit"; then
13592 if test -d "$additional_libdir"; then
13593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13597 for x in $LDFLAGS $LTLIBICONV; do
13599 acl_save_prefix="$prefix"
13600 prefix="$acl_final_prefix"
13601 acl_save_exec_prefix="$exec_prefix"
13602 exec_prefix="$acl_final_exec_prefix"
13604 exec_prefix="$acl_save_exec_prefix"
13605 prefix="$acl_save_prefix"
13607 if test "X$x" = "X-L$additional_libdir"; then
13612 if test -z "$haveit"; then
13613 if test -d "$additional_libdir"; then
13614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13621 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13622 if test "$enable_rpath" != no; then
13624 for x in $rpathdirs; do
13625 if test "X$x" = "X$dir"; then
13630 if test -z "$haveit"; then
13631 rpathdirs="$rpathdirs $dir"
13634 for x in $ltrpathdirs; do
13635 if test "X$x" = "X$dir"; then
13640 if test -z "$haveit"; then
13641 ltrpathdirs="$ltrpathdirs $dir"
13646 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13649 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13652 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13653 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13659 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13660 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13666 if test "X$rpathdirs" != "X"; then
13667 if test -n "$acl_hardcode_libdir_separator"; then
13669 for found_dir in $rpathdirs; do
13670 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13672 acl_save_libdir="$libdir"
13674 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13675 libdir="$acl_save_libdir"
13676 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13678 for found_dir in $rpathdirs; do
13679 acl_save_libdir="$libdir"
13680 libdir="$found_dir"
13681 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13682 libdir="$acl_save_libdir"
13683 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13687 if test "X$ltrpathdirs" != "X"; then
13688 for found_dir in $ltrpathdirs; do
13689 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13704 am_save_CPPFLAGS="$CPPFLAGS"
13706 for element in $INCICONV; do
13708 for x in $CPPFLAGS; do
13710 acl_save_prefix="$prefix"
13711 prefix="$acl_final_prefix"
13712 acl_save_exec_prefix="$exec_prefix"
13713 exec_prefix="$acl_final_exec_prefix"
13715 exec_prefix="$acl_save_exec_prefix"
13716 prefix="$acl_save_prefix"
13718 if test "X$x" = "X$element"; then
13723 if test -z "$haveit"; then
13724 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13730 $as_echo_n "checking for iconv... " >&6; }
13731 if ${am_cv_func_iconv+:} false; then :
13732 $as_echo_n "(cached) " >&6
13735 am_cv_func_iconv="no, consider installing GNU libiconv"
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13740 #include <stdlib.h>
13746 iconv_t cd = iconv_open("","");
13747 iconv(cd,NULL,NULL,NULL,NULL);
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 am_cv_func_iconv=yes
13756 rm -f core conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
13758 if test "$am_cv_func_iconv" != yes; then
13759 am_save_LIBS="$LIBS"
13760 LIBS="$LIBS $LIBICONV"
13761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13764 #include <stdlib.h>
13770 iconv_t cd = iconv_open("","");
13771 iconv(cd,NULL,NULL,NULL,NULL);
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 am_cv_lib_iconv=yes
13779 am_cv_func_iconv=yes
13781 rm -f core conftest.err conftest.$ac_objext \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS="$am_save_LIBS"
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13788 $as_echo "$am_cv_func_iconv" >&6; }
13789 if test "$am_cv_func_iconv" = yes; then
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13791 $as_echo_n "checking for working iconv... " >&6; }
13792 if ${am_cv_func_iconv_works+:} false; then :
13793 $as_echo_n "(cached) " >&6
13796 am_save_LIBS="$LIBS"
13797 if test $am_cv_lib_iconv = yes; then
13798 LIBS="$LIBS $LIBICONV"
13800 am_cv_func_iconv_works=no
13801 for ac_iconv_const in '' 'const'; do
13802 if test "$cross_compiling" = yes; then :
13804 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13805 *) am_cv_func_iconv_works="guessing yes" ;;
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13812 #include <string.h>
13814 #ifndef ICONV_CONST
13815 # define ICONV_CONST $ac_iconv_const
13822 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13825 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13826 if (cd_utf8_to_88591 != (iconv_t)(-1))
13828 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
13830 ICONV_CONST char *inptr = input;
13831 size_t inbytesleft = strlen (input);
13832 char *outptr = buf;
13833 size_t outbytesleft = sizeof (buf);
13834 size_t res = iconv (cd_utf8_to_88591,
13835 &inptr, &inbytesleft,
13836 &outptr, &outbytesleft);
13839 iconv_close (cd_utf8_to_88591);
13842 /* Test against Solaris 10 bug: Failures are not distinguishable from
13843 successful returns. */
13845 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13846 if (cd_ascii_to_88591 != (iconv_t)(-1))
13848 static ICONV_CONST char input[] = "\263";
13850 ICONV_CONST char *inptr = input;
13851 size_t inbytesleft = strlen (input);
13852 char *outptr = buf;
13853 size_t outbytesleft = sizeof (buf);
13854 size_t res = iconv (cd_ascii_to_88591,
13855 &inptr, &inbytesleft,
13856 &outptr, &outbytesleft);
13859 iconv_close (cd_ascii_to_88591);
13862 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13864 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13865 if (cd_88591_to_utf8 != (iconv_t)(-1))
13867 static ICONV_CONST char input[] = "\304";
13868 static char buf[2] = { (char)0xDE, (char)0xAD };
13869 ICONV_CONST char *inptr = input;
13870 size_t inbytesleft = 1;
13871 char *outptr = buf;
13872 size_t outbytesleft = 1;
13873 size_t res = iconv (cd_88591_to_utf8,
13874 &inptr, &inbytesleft,
13875 &outptr, &outbytesleft);
13876 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13878 iconv_close (cd_88591_to_utf8);
13881 #if 0 /* This bug could be worked around by the caller. */
13882 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13884 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13885 if (cd_88591_to_utf8 != (iconv_t)(-1))
13887 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13889 ICONV_CONST char *inptr = input;
13890 size_t inbytesleft = strlen (input);
13891 char *outptr = buf;
13892 size_t outbytesleft = sizeof (buf);
13893 size_t res = iconv (cd_88591_to_utf8,
13894 &inptr, &inbytesleft,
13895 &outptr, &outbytesleft);
13898 iconv_close (cd_88591_to_utf8);
13902 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13904 if (/* Try standardized names. */
13905 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13906 /* Try IRIX, OSF/1 names. */
13907 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13908 /* Try AIX names. */
13909 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13910 /* Try HP-UX names. */
13911 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13919 if ac_fn_c_try_run "$LINENO"; then :
13920 am_cv_func_iconv_works=yes
13922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13923 conftest.$ac_objext conftest.beam conftest.$ac_ext
13926 test "$am_cv_func_iconv_works" = no || break
13928 LIBS="$am_save_LIBS"
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13932 $as_echo "$am_cv_func_iconv_works" >&6; }
13933 case "$am_cv_func_iconv_works" in
13934 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13935 *) am_func_iconv=yes ;;
13938 am_func_iconv=no am_cv_lib_iconv=no
13940 if test "$am_func_iconv" = yes; then
13942 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13945 if test "$am_cv_lib_iconv" = yes; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13947 $as_echo_n "checking how to link with libiconv... " >&6; }
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13949 $as_echo "$LIBICONV" >&6; }
13951 CPPFLAGS="$am_save_CPPFLAGS"
13958 if test "$am_cv_func_iconv" = yes; then
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13960 $as_echo_n "checking for iconv declaration... " >&6; }
13961 if ${am_cv_proto_iconv+:} false; then :
13962 $as_echo_n "(cached) " >&6
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13968 #include <stdlib.h>
13974 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
13975 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989 am_cv_proto_iconv_arg1=""
13991 am_cv_proto_iconv_arg1="const"
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13997 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13999 $am_cv_proto_iconv" >&5
14001 $am_cv_proto_iconv" >&6; }
14003 cat >>confdefs.h <<_ACEOF
14004 #define ICONV_CONST $am_cv_proto_iconv_arg1
14010 libfuse_libs="$libfuse_libs $LTLIBICONV"
14011 if test "$am_cv_func_iconv" = yes; then
14021 if test -z "$MOUNT_FUSE_PATH"; then
14022 MOUNT_FUSE_PATH=/sbin
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&5
14024 $as_echo "$as_me: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&6;}
14027 if test -z "$UDEV_RULES_PATH"; then
14028 UDEV_RULES_PATH=/etc/udev/rules.d
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&5
14030 $as_echo "$as_me: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&6;}
14033 if test -z "$INIT_D_PATH"; then
14034 INIT_D_PATH=/etc/init.d
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&5
14036 $as_echo "$as_me: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&6;}
14042 if test "$arch" = linux; then
14050 if test "$arch" = netbsd; then
14058 if test "$arch" = bsd; then
14068 if test "$arch" = linux -a "$cross_compiling" != "yes"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umount supports --fake --no-canonicalize" >&5
14070 $as_echo_n "checking if umount supports --fake --no-canonicalize... " >&6; }
14071 # exit code of umount is 1 if option is unrecognised, 2 otherwise
14072 umount --fake --no-canonicalize > /dev/null 2>&1
14073 if test $? != 1; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075 $as_echo "yes" >&6; }
14077 firstline=`umount --fake --no-canonicalize 2>&1 | head -1`
14078 if test "$firstline" = 'umount: only root can use "--fake" option'; then
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 $as_echo "yes" >&6; }
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $firstline" >&5
14083 $as_echo "$firstline" >&6; }
14089 ac_config_files="$ac_config_files fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile"
14091 cat >confcache <<\_ACEOF
14092 # This file is a shell script that caches the results of configure
14093 # tests run on this system so they can be shared between configure
14094 # scripts and configure runs, see configure's option --config-cache.
14095 # It is not useful on other systems. If it contains results you don't
14096 # want to keep, you may remove or edit it.
14098 # config.status only pays attention to the cache file if you give it
14099 # the --recheck option to rerun configure.
14101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14103 # following values.
14107 # The following way of writing the cache mishandles newlines in values,
14108 # but we know of no workaround that is simple, portable, and efficient.
14109 # So, we kill variables containing newlines.
14110 # Ultrix sh set writes to stderr and can't be redirected directly,
14111 # and sets the high bit in the cache file unless we assign to the vars.
14113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14114 eval ac_val=\$$ac_var
14118 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14122 _ | IFS | as_nl) ;; #(
14123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14124 *) { eval $ac_var=; unset $ac_var;} ;;
14130 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14131 *${as_nl}ac_space=\ *)
14132 # `set' does not quote correctly, so add quotes: double-quote
14133 # substitution turns \\\\ into \\, and sed turns \\ into \.
14136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14139 # `set' quotes correctly as required by POSIX, so do not add quotes.
14140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14154 if test -w "$cache_file"; then
14155 if test "x$cache_file" != "x/dev/null"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14157 $as_echo "$as_me: updating cache $cache_file" >&6;}
14158 if test ! -f "$cache_file" || test -h "$cache_file"; then
14159 cat confcache >"$cache_file"
14161 case $cache_file in #(
14163 mv -f confcache "$cache_file"$$ &&
14164 mv -f "$cache_file"$$ "$cache_file" ;; #(
14166 mv -f confcache "$cache_file" ;;
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14172 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14177 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14178 # Let make expand exec_prefix.
14179 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14181 DEFS=-DHAVE_CONFIG_H
14186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14187 # 1. Remove the extension, and $U if already installed.
14188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14191 # will be set to the directory where LIBOBJS objects are built.
14192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14195 LIBOBJS=$ac_libobjs
14197 LTLIBOBJS=$ac_ltlibobjs
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14201 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14202 if test -n "$am_sleep_pid"; then
14203 # Hide warnings about reused PIDs.
14204 wait $am_sleep_pid 2>/dev/null
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14207 $as_echo "done" >&6; }
14208 if test -n "$EXEEXT"; then
14210 am__EXEEXT_FALSE='#'
14212 am__EXEEXT_TRUE='#'
14216 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14217 as_fn_error $? "conditional \"AMDEP\" was never defined.
14218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14220 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14221 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14224 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14225 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14228 if test -z "${ICONV_TRUE}" && test -z "${ICONV_FALSE}"; then
14229 as_fn_error $? "conditional \"ICONV\" was never defined.
14230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14232 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
14233 as_fn_error $? "conditional \"LINUX\" was never defined.
14234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14236 if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
14237 as_fn_error $? "conditional \"NETBSD\" was never defined.
14238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14240 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
14241 as_fn_error $? "conditional \"BSD\" was never defined.
14242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14245 : "${CONFIG_STATUS=./config.status}"
14247 ac_clean_files_save=$ac_clean_files
14248 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14250 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14254 # Generated by $as_me.
14255 # Run this file to recreate the current configuration.
14256 # Compiler output produced by configure, useful for debugging
14257 # configure, is in config.log if it exists.
14260 ac_cs_recheck=false
14263 SHELL=\${CONFIG_SHELL-$SHELL}
14266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14267 ## -------------------- ##
14268 ## M4sh Initialization. ##
14269 ## -------------------- ##
14271 # Be more Bourne compatible
14272 DUALCASE=1; export DUALCASE # for MKS sh
14273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14276 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14277 # is contrary to our usage. Disable this feature.
14278 alias -g '${1+"$@"}'='"$@"'
14279 setopt NO_GLOB_SUBST
14281 case `(set -o) 2>/dev/null` in #(
14293 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14294 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14297 # Prefer a ksh shell builtin over an external printf program on Solaris,
14298 # but without wasting forks for bash or zsh.
14299 if test -z "$BASH_VERSION$ZSH_VERSION" \
14300 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14301 as_echo='print -r --'
14302 as_echo_n='print -rn --'
14303 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14304 as_echo='printf %s\n'
14305 as_echo_n='printf %s'
14307 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14308 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14309 as_echo_n='/usr/ucb/echo -n'
14311 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14312 as_echo_n_body='eval
14316 expr "X$arg" : "X\\(.*\\)$as_nl";
14317 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14319 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14321 export as_echo_n_body
14322 as_echo_n='sh -c $as_echo_n_body as_echo'
14324 export as_echo_body
14325 as_echo='sh -c $as_echo_body as_echo'
14328 # The user is always right.
14329 if test "${PATH_SEPARATOR+set}" != set; then
14331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14332 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14339 # We need space, tab and new line, in precisely that order. Quoting is
14340 # there to prevent editors from complaining about space-tab.
14341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14342 # splitting by setting IFS to empty value.)
14345 # Find who we are. Look in the path if we contain no directory separator.
14348 *[\\/]* ) as_myself=$0 ;;
14349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14350 for as_dir in $PATH
14353 test -z "$as_dir" && as_dir=.
14354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14360 # We did not find ourselves, most probably we were run as `sh COMMAND'
14361 # in which case we are not to be found in the path.
14362 if test "x$as_myself" = x; then
14365 if test ! -f "$as_myself"; then
14366 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14370 # Unset variables that we do not need and which cause bugs (e.g. in
14371 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14372 # suppresses any "Segmentation fault" message there. '((' could
14373 # trigger a bug in pdksh 5.2.14.
14374 for as_var in BASH_ENV ENV MAIL MAILPATH
14375 do eval test x\${$as_var+set} = xset \
14376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14389 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14392 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14393 # ----------------------------------------
14394 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14395 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14396 # script with STATUS, using 1 if that was 0.
14399 as_status=$1; test $as_status -eq 0 && as_status=1
14401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14402 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14404 $as_echo "$as_me: error: $2" >&2
14405 as_fn_exit $as_status
14409 # as_fn_set_status STATUS
14410 # -----------------------
14411 # Set $? to STATUS, without forking.
14412 as_fn_set_status ()
14415 } # as_fn_set_status
14417 # as_fn_exit STATUS
14418 # -----------------
14419 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14423 as_fn_set_status $1
14429 # Portably unset VAR.
14432 { eval $1=; unset $1;}
14434 as_unset=as_fn_unset
14435 # as_fn_append VAR VALUE
14436 # ----------------------
14437 # Append the text in VALUE to the end of the definition contained in VAR. Take
14438 # advantage of any shell optimizations that allow amortized linear growth over
14439 # repeated appends, instead of the typical quadratic growth present in naive
14441 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14442 eval 'as_fn_append ()
14453 # as_fn_arith ARG...
14454 # ------------------
14455 # Perform arithmetic evaluation on the ARGs, and store the result in the
14456 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14457 # must be portable across $(()) and expr.
14458 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14459 eval 'as_fn_arith ()
14466 as_val=`expr "$@" || test $? -eq 1`
14471 if expr a : '\(a\)' >/dev/null 2>&1 &&
14472 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14478 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14479 as_basename=basename
14484 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14490 as_me=`$as_basename -- "$0" ||
14491 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14492 X"$0" : 'X\(//\)$' \| \
14493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14495 sed '/^.*\/\([^/][^/]*\)\/*$/{
14509 # Avoid depending upon Character Ranges.
14510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14513 as_cr_digits='0123456789'
14514 as_cr_alnum=$as_cr_Letters$as_cr_digits
14516 ECHO_C= ECHO_N= ECHO_T=
14517 case `echo -n x` in #(((((
14519 case `echo 'xy\c'` in
14520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14529 rm -f conf$$ conf$$.exe conf$$.file
14530 if test -d conf$$.dir; then
14531 rm -f conf$$.dir/conf$$.file
14534 mkdir conf$$.dir 2>/dev/null
14536 if (echo >conf$$.file) 2>/dev/null; then
14537 if ln -s conf$$.file conf$$ 2>/dev/null; then
14539 # ... but there are two gotchas:
14540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14542 # In both cases, we have to default to `cp -pR'.
14543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14545 elif ln conf$$.file conf$$ 2>/dev/null; then
14553 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14554 rmdir conf$$.dir 2>/dev/null
14559 # Create "$as_dir" as a directory, including parents if necessary.
14564 -*) as_dir=./$as_dir;;
14566 test -d "$as_dir" || eval $as_mkdir_p || {
14570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14571 *) as_qdir=$as_dir;;
14573 as_dirs="'$as_qdir' $as_dirs"
14574 as_dir=`$as_dirname -- "$as_dir" ||
14575 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14576 X"$as_dir" : 'X\(//\)[^/]' \| \
14577 X"$as_dir" : 'X\(//\)$' \| \
14578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14579 $as_echo X"$as_dir" |
14580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14584 /^X\(\/\/\)[^/].*/{
14597 test -d "$as_dir" && break
14599 test -z "$as_dirs" || eval "mkdir $as_dirs"
14600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14604 if mkdir -p . 2>/dev/null; then
14605 as_mkdir_p='mkdir -p "$as_dir"'
14607 test -d ./-p && rmdir ./-p
14612 # as_fn_executable_p FILE
14613 # -----------------------
14614 # Test if FILE is an executable regular file.
14615 as_fn_executable_p ()
14617 test -f "$1" && test -x "$1"
14618 } # as_fn_executable_p
14619 as_test_x='test -x'
14620 as_executable_p=as_fn_executable_p
14622 # Sed expression to map a string onto a valid CPP name.
14623 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14625 # Sed expression to map a string onto a valid variable name.
14626 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14630 ## ----------------------------------- ##
14631 ## Main body of $CONFIG_STATUS script. ##
14632 ## ----------------------------------- ##
14634 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14637 # Save the log message, to keep $0 and so on meaningful, and to
14638 # report actual input values of CONFIG_FILES etc. instead of their
14639 # values after options handling.
14641 This file was extended by fuse $as_me 2.9.9, which was
14642 generated by GNU Autoconf 2.69. Invocation command line was
14644 CONFIG_FILES = $CONFIG_FILES
14645 CONFIG_HEADERS = $CONFIG_HEADERS
14646 CONFIG_LINKS = $CONFIG_LINKS
14647 CONFIG_COMMANDS = $CONFIG_COMMANDS
14650 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14655 case $ac_config_files in *"
14656 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14659 case $ac_config_headers in *"
14660 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14665 # Files that config.status was made for.
14666 config_files="$ac_config_files"
14667 config_headers="$ac_config_headers"
14668 config_commands="$ac_config_commands"
14672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14674 \`$as_me' instantiates files and other configuration actions
14675 from templates according to the current configuration. Unless the files
14676 and actions are specified as TAGs, all are instantiated by default.
14678 Usage: $0 [OPTION]... [TAG]...
14680 -h, --help print this help, then exit
14681 -V, --version print version number and configuration settings, then exit
14682 --config print configuration, then exit
14683 -q, --quiet, --silent
14684 do not print progress messages
14685 -d, --debug don't remove temporary files
14686 --recheck update $as_me by reconfiguring in the same conditions
14687 --file=FILE[:TEMPLATE]
14688 instantiate the configuration file FILE
14689 --header=FILE[:TEMPLATE]
14690 instantiate the configuration header FILE
14692 Configuration files:
14695 Configuration headers:
14698 Configuration commands:
14701 Report bugs to the package provider."
14704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14705 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14707 fuse config.status 2.9.9
14708 configured by $0, generated by GNU Autoconf 2.69,
14709 with options \\"\$ac_cs_config\\"
14711 Copyright (C) 2012 Free Software Foundation, Inc.
14712 This config.status script is free software; the Free Software Foundation
14713 gives unlimited permission to copy, distribute and modify it."
14720 test -n "\$AWK" || AWK=awk
14723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724 # The default lists apply if the user does not specify any file.
14730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14731 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14735 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14747 # Handling of the options.
14748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14751 $as_echo "$ac_cs_version"; exit ;;
14752 --config | --confi | --conf | --con | --co | --c )
14753 $as_echo "$ac_cs_config"; exit ;;
14754 --debug | --debu | --deb | --de | --d | -d )
14756 --file | --fil | --fi | --f )
14759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14760 '') as_fn_error $? "missing file argument" ;;
14762 as_fn_append CONFIG_FILES " '$ac_optarg'"
14763 ac_need_defaults=false;;
14764 --header | --heade | --head | --hea )
14767 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14769 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14770 ac_need_defaults=false;;
14772 # Conflict between --help and --header
14773 as_fn_error $? "ambiguous option: \`$1'
14774 Try \`$0 --help' for more information.";;
14775 --help | --hel | -h )
14776 $as_echo "$ac_cs_usage"; exit ;;
14777 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14778 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14781 # This is an error.
14782 -*) as_fn_error $? "unrecognized option: \`$1'
14783 Try \`$0 --help' for more information." ;;
14785 *) as_fn_append ac_config_targets " $1"
14786 ac_need_defaults=false ;;
14792 ac_configure_extra_args=
14794 if $ac_cs_silent; then
14796 ac_configure_extra_args="$ac_configure_extra_args --silent"
14800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14801 if \$ac_cs_recheck; then
14802 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14804 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14805 CONFIG_SHELL='$SHELL'
14806 export CONFIG_SHELL
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14816 ## Running $as_me. ##
14822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14826 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14829 # The HP-UX ksh and POSIX shell print the target directory to stdout
14830 # if CDPATH is set.
14831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14833 sed_quote_subst='$sed_quote_subst'
14834 double_quote_subst='$double_quote_subst'
14835 delay_variable_subst='$delay_variable_subst'
14836 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14837 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14838 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14839 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14840 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14841 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14842 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14843 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14844 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14845 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14846 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14847 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14848 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14849 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14850 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14851 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14852 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14853 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14854 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14855 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14856 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14857 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14858 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14859 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14860 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14861 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14862 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14863 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14864 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14865 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14866 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14867 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14868 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14869 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14870 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14871 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14872 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14873 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14874 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14875 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14876 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14877 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14878 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14879 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14880 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14881 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14882 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14883 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14884 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14885 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14886 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14887 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14888 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14889 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14890 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14891 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14892 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14893 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14894 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"`'
14895 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14896 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14897 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14898 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14899 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14900 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14901 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14902 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14903 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14904 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14905 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14906 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14907 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14908 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14909 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14910 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14911 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14912 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14913 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14914 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14915 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14916 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14917 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14918 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14919 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14920 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14921 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14922 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14923 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14924 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14925 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14926 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14927 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14928 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14929 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14930 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14931 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14932 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14933 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14934 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14935 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14936 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14937 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14938 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14939 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14940 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14941 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14942 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14943 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14944 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14945 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14946 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14947 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14948 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14949 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14950 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14951 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14952 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14953 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14954 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14955 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14956 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14957 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14958 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14959 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14960 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14961 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14962 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14963 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14964 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14965 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14966 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14967 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14968 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14969 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14970 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14973 LTCFLAGS='$LTCFLAGS'
14974 compiler='$compiler_DEFAULT'
14976 # A function that is used when there is no print builtin or printf.
14977 func_fallback_echo ()
14979 eval 'cat <<_LTECHO_EOF
14984 # Quote evaled strings.
14999 deplibs_check_method \
15004 sharedlib_from_linklib_cmd \
15007 archiver_list_spec \
15013 lt_cv_sys_global_symbol_pipe \
15014 lt_cv_sys_global_symbol_to_cdecl \
15015 lt_cv_sys_global_symbol_to_import \
15016 lt_cv_sys_global_symbol_to_c_name_address \
15017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15018 lt_cv_nm_interface \
15019 nm_file_list_spec \
15020 lt_cv_truncate_bin \
15021 lt_prog_compiler_no_builtin_flag \
15022 lt_prog_compiler_pic \
15023 lt_prog_compiler_wl \
15024 lt_prog_compiler_static \
15025 lt_cv_prog_compiler_c_o \
15034 export_dynamic_flag_spec \
15035 whole_archive_flag_spec \
15036 compiler_needs_object \
15038 allow_undefined_flag \
15039 no_undefined_flag \
15040 hardcode_libdir_flag_spec \
15041 hardcode_libdir_separator \
15045 variables_saved_for_relink \
15047 library_names_spec \
15049 install_override_mode \
15053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15054 *[\\\\\\\`\\"\\\$]*)
15055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15063 # Double-quote double-evaled strings.
15064 for var in reload_cmds \
15065 old_postinstall_cmds \
15066 old_postuninstall_cmds \
15068 extract_expsyms_cmds \
15069 old_archive_from_new_cmds \
15070 old_archive_from_expsyms_cmds \
15072 archive_expsym_cmds \
15074 module_expsym_cmds \
15075 export_symbols_cmds \
15079 postuninstall_cmds \
15081 sys_lib_search_path_spec \
15082 configure_time_dlsearch_path \
15083 configure_time_lt_sys_library_path; do
15084 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15085 *[\\\\\\\`\\"\\\$]*)
15086 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15089 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15094 ac_aux_dir='$ac_aux_dir'
15096 # See if we are running on zsh, and set the options that allow our
15097 # commands through without removal of \ escapes INIT.
15098 if test -n "\${ZSH_VERSION+set}"; then
15099 setopt NO_GLOB_SUBST
15113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15115 # Handling of arguments.
15116 for ac_config_target in $ac_config_targets
15118 case $ac_config_target in
15119 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15122 "fuse.pc") CONFIG_FILES="$CONFIG_FILES fuse.pc" ;;
15123 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15124 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15125 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
15126 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
15127 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15128 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15130 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15135 # If the user did not use the arguments to specify the items to instantiate,
15136 # then the envvar interface is used. Set only those that are not.
15137 # We use the long form for the default assignment because of an extremely
15138 # bizarre bug on SunOS 4.1.3.
15139 if $ac_need_defaults; then
15140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15145 # Have a temporary directory for convenience. Make it in the build tree
15146 # simply because there is no reason against having it here, and in addition,
15147 # creating and moving files from /tmp can sometimes cause problems.
15148 # Hook for its removal unless debugging.
15149 # Note that there is a small window in which the directory will not be cleaned:
15150 # after its creation but before its name has been assigned to `$tmp'.
15154 trap 'exit_status=$?
15155 : "${ac_tmp:=$tmp}"
15156 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15158 trap 'as_fn_exit 1' 1 2 13 15
15160 # Create a (secure) tmp directory for tmp files.
15163 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15167 tmp=./conf$$-$RANDOM
15168 (umask 077 && mkdir "$tmp")
15169 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15172 # Set up the scripts for CONFIG_FILES section.
15173 # No need to generate them if there are no CONFIG_FILES.
15174 # This happens for instance with `./config.status config.h'.
15175 if test -n "$CONFIG_FILES"; then
15178 ac_cr=`echo X | tr X '\015'`
15179 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15180 # But we know of no other shell where ac_cr would be empty at this
15181 # point, so we can use a bashism as a fallback.
15182 if test "x$ac_cr" = x; then
15183 eval ac_cr=\$\'\\r\'
15185 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15186 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15189 ac_cs_awk_cr=$ac_cr
15192 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15197 echo "cat >conf$$subs.awk <<_ACEOF" &&
15198 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15200 } >conf$$subs.sh ||
15201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15202 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15204 for ac_last_try in false false false false false :; do
15205 . ./conf$$subs.sh ||
15206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15208 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15209 if test $ac_delim_n = $ac_delim_num; then
15211 elif $ac_last_try; then
15212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15217 rm -f conf$$subs.sh
15219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15220 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15224 s/^/S["/; s/!.*/"]=/
15234 s/\(.\{148\}\)..*/\1/
15236 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15248 s/\(.\{148\}\)..*/\1/
15250 s/["\\]/\\&/g; s/^/"/; s/$/"/
15254 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15259 ' <conf$$subs.awk | sed '
15264 ' >>$CONFIG_STATUS || ac_write_fail=1
15265 rm -f conf$$subs.awk
15266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15268 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15269 for (key in S) S_is_set[key] = 1
15275 nfields = split(line, field, "@")
15277 len = length(field[1])
15278 for (i = 2; i < nfields; i++) {
15280 keylen = length(key)
15281 if (S_is_set[key]) {
15283 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15284 len += length(value) + length(field[++i])
15295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15296 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15297 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15300 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15301 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15304 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15305 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15306 # trailing colons and then remove the whole line if VPATH becomes empty
15307 # (actually we leave an empty line to preserve line numbers).
15308 if test "x$srcdir" = x.; then
15309 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15328 fi # test -n "$CONFIG_FILES"
15330 # Set up the scripts for CONFIG_HEADERS section.
15331 # No need to generate them if there are no CONFIG_HEADERS.
15332 # This happens for instance with `./config.status Makefile'.
15333 if test -n "$CONFIG_HEADERS"; then
15334 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15338 # Transform confdefs.h into an awk script `defines.awk', embedded as
15339 # here-document in config.status, that substitutes the proper values into
15340 # config.h.in to produce config.h.
15342 # Create a delimiter string that does not exist in confdefs.h, to ease
15343 # handling of long lines.
15345 for ac_last_try in false false :; do
15346 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15347 if test -z "$ac_tt"; then
15349 elif $ac_last_try; then
15350 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15356 # For the awk script, D is an array of macro values keyed by name,
15357 # likewise P contains macro parameters if any. Preserve backslash
15358 # newline sequences.
15360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15362 s/.\{148\}/&'"$ac_delim"'/g
15365 s/^[ ]*#[ ]*define[ ][ ]*/ /
15372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15379 D["\1"]=" \3\\\\\\n"\\/p
15381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15386 s/.\{148\}/&'"$ac_delim"'/g
15391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15396 ' <confdefs.h | sed '
15397 s/'"$ac_delim"'/"\\\
15398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 for (key in D) D_is_set[key] = 1
15404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15406 split(line, arg, " ")
15407 if (arg[1] == "#") {
15411 defundef = substr(arg[1], 2)
15414 split(mac1, mac2, "(") #)
15416 prefix = substr(line, 1, index(line, defundef) - 1)
15417 if (D_is_set[macro]) {
15418 # Preserve the white space surrounding the "#".
15419 print prefix "define", macro P[macro] D[macro]
15422 # Replace #undef with comments. This is necessary, for example,
15423 # in the case of _POSIX_SOURCE, which is predefined and required
15424 # on some systems where configure will not decide to define it.
15425 if (defundef == "undef") {
15426 print "/*", prefix defundef, macro, "*/"
15434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15435 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15436 fi # test -n "$CONFIG_HEADERS"
15439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15444 :[FHLC]) ac_mode=$ac_tag; continue;;
15446 case $ac_mode$ac_tag in
15448 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15449 :[FH]-) ac_tag=-:-;;
15450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15467 -) ac_f="$ac_tmp/stdin";;
15468 *) # Look for the file first in the build tree, then in the source tree
15469 # (if the path is not absolute). The absolute path cannot be DOS-style,
15470 # because $ac_f cannot contain `:'.
15474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15476 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15479 as_fn_append ac_file_inputs " '$ac_f'"
15482 # Let's still pretend it is `configure' which instantiates (i.e., don't
15483 # use $as_me), people would be surprised to read:
15484 # /* config.h. Generated by config.status. */
15485 configure_input='Generated from '`
15486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15488 if test x"$ac_file" != x-; then
15489 configure_input="$ac_file. $configure_input"
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15491 $as_echo "$as_me: creating $ac_file" >&6;}
15493 # Neutralize special characters interpreted by sed in replacement strings.
15494 case $configure_input in #(
15495 *\&* | *\|* | *\\* )
15496 ac_sed_conf_input=`$as_echo "$configure_input" |
15497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15498 *) ac_sed_conf_input=$configure_input;;
15502 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15508 ac_dir=`$as_dirname -- "$ac_file" ||
15509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15510 X"$ac_file" : 'X\(//\)[^/]' \| \
15511 X"$ac_file" : 'X\(//\)$' \| \
15512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15513 $as_echo X"$ac_file" |
15514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15518 /^X\(\/\/\)[^/].*/{
15531 as_dir="$ac_dir"; as_fn_mkdir_p
15535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15538 # A ".." for each directory in $ac_dir_suffix.
15539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15540 case $ac_top_builddir_sub in
15541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15545 ac_abs_top_builddir=$ac_pwd
15546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15547 # for backward compatibility:
15548 ac_top_builddir=$ac_top_build_prefix
15551 .) # We are building in place.
15553 ac_top_srcdir=$ac_top_builddir_sub
15554 ac_abs_top_srcdir=$ac_pwd ;;
15555 [\\/]* | ?:[\\/]* ) # Absolute name.
15556 ac_srcdir=$srcdir$ac_dir_suffix;
15557 ac_top_srcdir=$srcdir
15558 ac_abs_top_srcdir=$srcdir ;;
15559 *) # Relative name.
15560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15561 ac_top_srcdir=$ac_top_build_prefix$srcdir
15562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15577 ac_MKDIR_P=$MKDIR_P
15579 [\\/$]* | ?:[\\/]* ) ;;
15580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 # If the template does not know about datarootdir, expand it.
15586 # FIXME: This hack should be removed a few years after 2.60.
15587 ac_datarootdir_hack=; ac_datarootdir_seen=
15598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15599 *datarootdir*) ac_datarootdir_seen=yes;;
15600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15605 ac_datarootdir_hack='
15606 s&@datadir@&$datadir&g
15607 s&@docdir@&$docdir&g
15608 s&@infodir@&$infodir&g
15609 s&@localedir@&$localedir&g
15610 s&@mandir@&$mandir&g
15611 s&\\\${datarootdir}&$datarootdir&g' ;;
15615 # Neutralize VPATH when `$srcdir' = `.'.
15616 # Shell code in configure.ac might set extrasub.
15617 # FIXME: do we really want to maintain this feature?
15618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15619 ac_sed_extra="$ac_vpsub
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15625 s|@configure_input@|$ac_sed_conf_input|;t t
15626 s&@top_builddir@&$ac_top_builddir_sub&;t t
15627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15628 s&@srcdir@&$ac_srcdir&;t t
15629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15630 s&@top_srcdir@&$ac_top_srcdir&;t t
15631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15632 s&@builddir@&$ac_builddir&;t t
15633 s&@abs_builddir@&$ac_abs_builddir&;t t
15634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15635 s&@INSTALL@&$ac_INSTALL&;t t
15636 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15637 $ac_datarootdir_hack
15639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15647 which seems to be undefined. Please make sure it is defined" >&5
15648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15649 which seems to be undefined. Please make sure it is defined" >&2;}
15651 rm -f "$ac_tmp/stdin"
15653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15662 if test x"$ac_file" != x-; then
15664 $as_echo "/* $configure_input */" \
15665 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15666 } >"$ac_tmp/config.h" \
15667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15668 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15670 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15673 mv "$ac_tmp/config.h" "$ac_file" \
15674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15677 $as_echo "/* $configure_input */" \
15678 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15679 || as_fn_error $? "could not create -" "$LINENO" 5
15681 # Compute "$ac_file"'s index in $config_headers.
15684 for _am_header in $config_headers :; do
15685 case $_am_header in
15686 $_am_arg | $_am_arg:* )
15689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15694 X"$_am_arg" : 'X\(//\)[^/]' \| \
15695 X"$_am_arg" : 'X\(//\)$' \| \
15696 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15697 $as_echo X"$_am_arg" |
15698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15702 /^X\(\/\/\)[^/].*/{
15714 s/.*/./; q'`/stamp-h$_am_stamp_count
15717 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15718 $as_echo "$as_me: executing $ac_file commands" >&6;}
15723 case $ac_file$ac_mode in
15724 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15725 # Older Autoconf quotes --file arguments for eval, but not when files
15726 # are listed without --file. Let's play safe and only enable the eval
15727 # if we detect the quoting.
15728 case $CONFIG_FILES in
15729 *\'*) eval set x "$CONFIG_FILES" ;;
15730 *) set x $CONFIG_FILES ;;
15735 # Strip MF so we end up with the name of the file.
15736 mf=`echo "$mf" | sed -e 's/:.*$//'`
15737 # Check whether this is an Automake generated Makefile or not.
15738 # We used to match only the files named 'Makefile.in', but
15739 # some people rename them; so instead we look at the file content.
15740 # Grep'ing the first line is not enough: some people post-process
15741 # each Makefile.in and add a new line on top of each file to say so.
15742 # Grep'ing the whole file is not good either: AIX grep has a line
15743 # limit of 2048, but all sed's we know have understand at least 4000.
15744 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15745 dirpart=`$as_dirname -- "$mf" ||
15746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15747 X"$mf" : 'X\(//\)[^/]' \| \
15748 X"$mf" : 'X\(//\)$' \| \
15749 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15755 /^X\(\/\/\)[^/].*/{
15771 # Extract the definition of DEPDIR, am__include, and am__quote
15772 # from the Makefile without running 'make'.
15773 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15774 test -z "$DEPDIR" && continue
15775 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15776 test -z "$am__include" && continue
15777 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15778 # Find all dependency output files, they are included files with
15779 # $(DEPDIR) in their names. We invoke sed twice because it is the
15780 # simplest approach to changing $(DEPDIR) to its actual value in the
15782 for file in `sed -n "
15783 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15784 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15785 # Make sure the directory exists.
15786 test -f "$dirpart/$file" && continue
15787 fdir=`$as_dirname -- "$file" ||
15788 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15789 X"$file" : 'X\(//\)[^/]' \| \
15790 X"$file" : 'X\(//\)$' \| \
15791 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15792 $as_echo X"$file" |
15793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15797 /^X\(\/\/\)[^/].*/{
15810 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15811 # echo "creating $dirpart/$file"
15812 echo '# dummy' > "$dirpart/$file"
15819 # See if we are running on zsh, and set the options that allow our
15820 # commands through without removal of \ escapes.
15821 if test -n "${ZSH_VERSION+set}"; then
15822 setopt NO_GLOB_SUBST
15826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15829 cat <<_LT_EOF >> "$cfgfile"
15831 # Generated automatically by $as_me ($PACKAGE) $VERSION
15832 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15834 # Provide generalized library-building support services.
15835 # Written by Gordon Matzigkeit, 1996
15837 # Copyright (C) 2014 Free Software Foundation, Inc.
15838 # This is free software; see the source for copying conditions. There is NO
15839 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15841 # GNU Libtool is free software; you can redistribute it and/or modify
15842 # it under the terms of the GNU General Public License as published by
15843 # the Free Software Foundation; either version 2 of of the License, or
15844 # (at your option) any later version.
15846 # As a special exception to the GNU General Public License, if you
15847 # distribute this file as part of a program or library that is built
15848 # using GNU Libtool, you may include this file under the same
15849 # distribution terms that you use for the rest of that program.
15851 # GNU Libtool is distributed in the hope that it will be useful, but
15852 # WITHOUT ANY WARRANTY; without even the implied warranty of
15853 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15854 # GNU General Public License for more details.
15856 # You should have received a copy of the GNU General Public License
15857 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15860 # The names of the tagged configurations supported by this script.
15863 # Configured defaults for sys_lib_dlsearch_path munging.
15864 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15866 # ### BEGIN LIBTOOL CONFIG
15868 # Which release of libtool.m4 was used?
15869 macro_version=$macro_version
15870 macro_revision=$macro_revision
15872 # Whether or not to build shared libraries.
15873 build_libtool_libs=$enable_shared
15875 # Whether or not to build static libraries.
15876 build_old_libs=$enable_static
15878 # What type of objects to build.
15881 # Whether or not to optimize for fast installation.
15882 fast_install=$enable_fast_install
15884 # Shared archive member basename,for filename based shared library versioning on AIX.
15885 shared_archive_member_spec=$shared_archive_member_spec
15887 # Shell to use when invoking shell scripts.
15890 # An echo program that protects backslashes.
15893 # The PATH separator for the build system.
15894 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15897 host_alias=$host_alias
15901 # The build system.
15902 build_alias=$build_alias
15906 # A sed program that does not truncate output.
15909 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15910 Xsed="\$SED -e 1s/^X//"
15912 # A grep program that handles long lines.
15918 # A literal string matcher.
15921 # A BSD- or MS-compatible name lister.
15924 # Whether we need soft or hard links.
15927 # What is the maximum length of a command?
15928 max_cmd_len=$max_cmd_len
15930 # Object file suffix (normally "o").
15933 # Executable file suffix (normally "").
15936 # whether the shell understands "unset".
15939 # turn spaces into newlines.
15942 # turn newlines into spaces.
15945 # convert \$build file names to \$host format.
15946 to_host_file_cmd=$lt_cv_to_host_file_cmd
15948 # convert \$build files to toolchain format.
15949 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15951 # An object symbol dumper.
15952 OBJDUMP=$lt_OBJDUMP
15954 # Method to check whether dependent libraries are shared objects.
15955 deplibs_check_method=$lt_deplibs_check_method
15957 # Command to use when deplibs_check_method = "file_magic".
15958 file_magic_cmd=$lt_file_magic_cmd
15960 # How to find potential files when deplibs_check_method = "file_magic".
15961 file_magic_glob=$lt_file_magic_glob
15963 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15964 want_nocaseglob=$lt_want_nocaseglob
15966 # DLL creation program.
15967 DLLTOOL=$lt_DLLTOOL
15969 # Command to associate shared and link libraries.
15970 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15975 # Flags to create an archive.
15976 AR_FLAGS=$lt_AR_FLAGS
15978 # How to feed a file listing to the archiver.
15979 archiver_list_spec=$lt_archiver_list_spec
15981 # A symbol stripping program.
15984 # Commands used to install an old-style archive.
15986 old_postinstall_cmds=$lt_old_postinstall_cmds
15987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15989 # Whether to use a lock for old archive extraction.
15990 lock_old_archive_extraction=$lock_old_archive_extraction
15995 # LTCC compiler flags.
15996 LTCFLAGS=$lt_CFLAGS
15998 # Take the output of nm and produce a listing of raw symbols and C names.
15999 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16001 # Transform the output of nm in a proper C declaration.
16002 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16004 # Transform the output of nm into a list of symbols to manually relocate.
16005 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16007 # Transform the output of nm in a C name address pair.
16008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16010 # Transform the output of nm in a C name address pair when lib prefix is needed.
16011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16013 # The name lister interface.
16014 nm_interface=$lt_lt_cv_nm_interface
16016 # Specify filename containing input files for \$NM.
16017 nm_file_list_spec=$lt_nm_file_list_spec
16019 # The root where to search for dependent libraries,and where our libraries should be installed.
16020 lt_sysroot=$lt_sysroot
16022 # Command to truncate a binary pipe.
16023 lt_truncate_bin=$lt_lt_cv_truncate_bin
16025 # The name of the directory that contains temporary libtool files.
16028 # Used to examine libraries when file_magic_cmd begins with "file".
16029 MAGIC_CMD=$MAGIC_CMD
16031 # Must we lock files when doing compilation?
16032 need_locks=$lt_need_locks
16035 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16037 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16038 DSYMUTIL=$lt_DSYMUTIL
16040 # Tool to change global to local symbols on Mac OS X.
16043 # Tool to manipulate fat objects and archives on Mac OS X.
16046 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16049 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16050 OTOOL64=$lt_OTOOL64
16052 # Old archive suffix (normally "a").
16055 # Shared library suffix (normally ".so").
16056 shrext_cmds=$lt_shrext_cmds
16058 # The commands to extract the exported symbol list from a shared archive.
16059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16061 # Variables whose values should be saved in libtool wrapper scripts and
16062 # restored at link time.
16063 variables_saved_for_relink=$lt_variables_saved_for_relink
16065 # Do we need the "lib" prefix for modules?
16066 need_lib_prefix=$need_lib_prefix
16068 # Do we need a version for libraries?
16069 need_version=$need_version
16071 # Library versioning type.
16072 version_type=$version_type
16074 # Shared library runtime path variable.
16075 runpath_var=$runpath_var
16077 # Shared library path variable.
16078 shlibpath_var=$shlibpath_var
16080 # Is shlibpath searched before the hard-coded library search path?
16081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16083 # Format of library name prefix.
16084 libname_spec=$lt_libname_spec
16086 # List of archive names. First name is the real one, the rest are links.
16087 # The last name is the one that the linker finds with -lNAME
16088 library_names_spec=$lt_library_names_spec
16090 # The coded name of the library, if different from the real name.
16091 soname_spec=$lt_soname_spec
16093 # Permission mode override for installation of shared libraries.
16094 install_override_mode=$lt_install_override_mode
16096 # Command to use after installation of a shared archive.
16097 postinstall_cmds=$lt_postinstall_cmds
16099 # Command to use after uninstallation of a shared archive.
16100 postuninstall_cmds=$lt_postuninstall_cmds
16102 # Commands used to finish a libtool library installation in a directory.
16103 finish_cmds=$lt_finish_cmds
16105 # As "finish_cmds", except a single script fragment to be evaled but
16107 finish_eval=$lt_finish_eval
16109 # Whether we should hardcode library paths into libraries.
16110 hardcode_into_libs=$hardcode_into_libs
16112 # Compile-time system search path for libraries.
16113 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16115 # Detected run-time system search path for libraries.
16116 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16118 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16119 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16121 # Whether dlopen is supported.
16122 dlopen_support=$enable_dlopen
16124 # Whether dlopen of programs is supported.
16125 dlopen_self=$enable_dlopen_self
16127 # Whether dlopen of statically linked programs is supported.
16128 dlopen_self_static=$enable_dlopen_self_static
16130 # Commands to strip libraries.
16131 old_striplib=$lt_old_striplib
16132 striplib=$lt_striplib
16135 # The linker used to build libraries.
16138 # How to create reloadable object files.
16139 reload_flag=$lt_reload_flag
16140 reload_cmds=$lt_reload_cmds
16142 # Commands used to build an old-style archive.
16143 old_archive_cmds=$lt_old_archive_cmds
16145 # A language specific compiler.
16148 # Is the compiler the GNU compiler?
16151 # Compiler flag to turn off builtin functions.
16152 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16154 # Additional compiler flags for building library objects.
16155 pic_flag=$lt_lt_prog_compiler_pic
16157 # How to pass a linker flag through the compiler.
16158 wl=$lt_lt_prog_compiler_wl
16160 # Compiler flag to prevent dynamic linking.
16161 link_static_flag=$lt_lt_prog_compiler_static
16163 # Does compiler simultaneously support -c and -o options?
16164 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16166 # Whether or not to add -lc for building shared libraries.
16167 build_libtool_need_lc=$archive_cmds_need_lc
16169 # Whether or not to disallow shared libs when runtime libs are static.
16170 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16172 # Compiler flag to allow reflexive dlopens.
16173 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16175 # Compiler flag to generate shared objects directly from archives.
16176 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16178 # Whether the compiler copes with passing no objects directly.
16179 compiler_needs_object=$lt_compiler_needs_object
16181 # Create an old-style archive from a shared archive.
16182 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16184 # Create a temporary old-style archive to link instead of a shared archive.
16185 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16187 # Commands used to build a shared archive.
16188 archive_cmds=$lt_archive_cmds
16189 archive_expsym_cmds=$lt_archive_expsym_cmds
16191 # Commands used to build a loadable module if different from building
16192 # a shared archive.
16193 module_cmds=$lt_module_cmds
16194 module_expsym_cmds=$lt_module_expsym_cmds
16196 # Whether we are building with GNU ld or not.
16197 with_gnu_ld=$lt_with_gnu_ld
16199 # Flag that allows shared libraries with undefined symbols to be built.
16200 allow_undefined_flag=$lt_allow_undefined_flag
16202 # Flag that enforces no undefined symbols.
16203 no_undefined_flag=$lt_no_undefined_flag
16205 # Flag to hardcode \$libdir into a binary during linking.
16206 # This must work even if \$libdir does not exist
16207 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16209 # Whether we need a single "-rpath" flag with a separated argument.
16210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16212 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16213 # DIR into the resulting binary.
16214 hardcode_direct=$hardcode_direct
16216 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16217 # DIR into the resulting binary and the resulting library dependency is
16218 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16219 # library is relocated.
16220 hardcode_direct_absolute=$hardcode_direct_absolute
16222 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16223 # into the resulting binary.
16224 hardcode_minus_L=$hardcode_minus_L
16226 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16227 # into the resulting binary.
16228 hardcode_shlibpath_var=$hardcode_shlibpath_var
16230 # Set to "yes" if building a shared library automatically hardcodes DIR
16231 # into the library and all subsequent libraries and executables linked
16233 hardcode_automatic=$hardcode_automatic
16235 # Set to yes if linker adds runtime paths of dependent libraries
16236 # to runtime path list.
16237 inherit_rpath=$inherit_rpath
16239 # Whether libtool must link a program against all its dependency libraries.
16240 link_all_deplibs=$link_all_deplibs
16242 # Set to "yes" if exported symbols are required.
16243 always_export_symbols=$always_export_symbols
16245 # The commands to list exported symbols.
16246 export_symbols_cmds=$lt_export_symbols_cmds
16248 # Symbols that should not be listed in the preloaded symbols.
16249 exclude_expsyms=$lt_exclude_expsyms
16251 # Symbols that must always be exported.
16252 include_expsyms=$lt_include_expsyms
16254 # Commands necessary for linking programs (against libraries) with templates.
16255 prelink_cmds=$lt_prelink_cmds
16257 # Commands necessary for finishing linking programs.
16258 postlink_cmds=$lt_postlink_cmds
16260 # Specify filename containing input files.
16261 file_list_spec=$lt_file_list_spec
16263 # How to hardcode a shared library path into an executable.
16264 hardcode_action=$hardcode_action
16266 # ### END LIBTOOL CONFIG
16270 cat <<'_LT_EOF' >> "$cfgfile"
16272 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16274 # func_munge_path_list VARIABLE PATH
16275 # -----------------------------------
16276 # VARIABLE is name of variable containing _space_ separated list of
16277 # directories to be munged by the contents of PATH, which is string
16280 # string "DIR[ DIR]" will be prepended to VARIABLE
16282 # string "DIR[ DIR]" will be appended to VARIABLE
16283 # "DIRP[:DIRP]::[DIRA:]DIRA"
16284 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16285 # "DIRA[ DIRA]" will be appended to VARIABLE
16287 # VARIABLE will be replaced by "DIR[ DIR]"
16288 func_munge_path_list ()
16294 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16297 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16300 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16301 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16304 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16310 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16311 func_cc_basename ()
16313 for cc_temp in $*""; do
16315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16321 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16325 # ### END FUNCTIONS SHARED WITH CONFIGURE
16331 cat <<\_LT_EOF >> "$cfgfile"
16332 # AIX sometimes has problems with the GCC collect2 program. For some
16333 # reason, if we set the COLLECT_NAMES environment variable, the problems
16334 # vanish in a puff of smoke.
16335 if test set != "${COLLECT_NAMES+set}"; then
16337 export COLLECT_NAMES
16344 ltmain=$ac_aux_dir/ltmain.sh
16347 # We use sed instead of cat because bash on DJGPP gets confused if
16348 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16349 # text mode, it properly converts lines to CR/LF. This bash problem
16350 # is reportedly fixed, but why not run on old versions too?
16351 sed '$q' "$ltmain" >> "$cfgfile" \
16352 || (rm -f "$cfgfile"; exit 1)
16354 mv -f "$cfgfile" "$ofile" ||
16355 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16366 ac_clean_files=$ac_clean_files_save
16368 test $ac_write_fail = 0 ||
16369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16372 # configure is writing to config.log, and then calls config.status.
16373 # config.status does its own redirection, appending to config.log.
16374 # Unfortunately, on DOS this fails, as config.log is still kept open
16375 # by configure, so config.status won't be able to write to it; its
16376 # output is simply discarded. So we exec the FD to /dev/null,
16377 # effectively closing config.log, so it can be properly (re)opened and
16378 # appended to by config.status. When coming back to configure, we
16379 # need to make the FD available again.
16380 if test "$no_create" != yes; then
16382 ac_config_status_args=
16383 test "$silent" = yes &&
16384 ac_config_status_args="$ac_config_status_args --quiet"
16386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16389 # would make configure fail if this is the last instruction.
16390 $ac_cs_success || as_fn_exit 1
16392 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16394 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16398 if test "$util_linux_ok" = no; then
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16400 ******************************************************************
16401 * Please install util-linux version 2.18 or later which supports *
16402 * --fake and --no-canonicalize options in mount and umount *
16403 ******************************************************************" >&5
16404 $as_echo "$as_me: WARNING:
16405 ******************************************************************
16406 * Please install util-linux version 2.18 or later which supports *
16407 * --fake and --no-canonicalize options in mount and umount *
16408 ******************************************************************" >&2;}