2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fuse 2.9.6.
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.6'
591 PACKAGE_STRING='fuse 2.9.6'
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
702 INSTALL_STRIP_PROGRAM
756 program_transform_name
769 enable_option_checking
775 enable_dependency_tracking
787 ac_precious_vars='build_alias
798 # Initialize some variables set by options.
800 ac_init_version=false
801 ac_unrecognized_opts=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
812 program_transform_name=s,x,x,
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=no ;;
917 -docdir | --docdir | --docdi | --doc | --do)
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
941 eval enable_$ac_useropt=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1105 -site=* | --site=* | --sit=*)
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1232 # Be sure to have absolute directory names.
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1245 target=$target_alias
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1336 \`configure' configures fuse 2.9.6 to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/fuse]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 --target=TARGET configure for building compilers for TARGET [HOST]
1405 if test -n "$ac_init_help"; then
1406 case $ac_init_help in
1407 short | recursive ) echo "Configuration of fuse 2.9.6:";;
1412 --disable-option-checking ignore unrecognized --enable/--with options
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --enable-silent-rules less verbose build output (undo: "make V=1")
1416 --disable-silent-rules verbose build output (undo: "make V=0")
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --enable-dependency-tracking
1422 do not reject slow dependency extractors
1423 --disable-dependency-tracking
1424 speeds up one-time build
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-lib Compile with library
1427 --enable-util Compile with util
1428 --enable-example Compile with examples
1429 --disable-mtab Disable and ignore usage of /etc/mtab
1430 --disable-rpath do not hardcode runtime library paths
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1440 --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
1441 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1459 Report bugs to the package provider.
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1489 .) # We are building in place.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1522 fuse configure 2.9.6
1523 generated by GNU Autoconf 2.69
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1572 } # ac_fn_c_try_compile
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 test -x conftest$ac_exeext
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1618 } # ac_fn_c_try_link
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1637 if ac_fn_c_try_compile "$LINENO"; then :
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 } # ac_fn_c_check_header_compile
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=$ac_status
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1753 # include <limits.h>
1755 # include <assert.h>
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1782 if ac_fn_c_try_link "$LINENO"; then :
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_func
1797 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1798 # ----------------------------------------------------
1799 # Tries to find if the field MEMBER exists in type AGGR, after including
1800 # INCLUDES, setting cache variable VAR accordingly.
1801 ac_fn_c_check_member ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1805 $as_echo_n "checking for $2.$3... " >&6; }
1806 if eval \${$4+:} false; then :
1807 $as_echo_n "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1822 if ac_fn_c_try_compile "$LINENO"; then :
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1832 if (sizeof ac_aggr.$3)
1838 if ac_fn_c_try_compile "$LINENO"; then :
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_member
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1857 It was created by fuse $as_me 2.9.6, which was
1858 generated by GNU Autoconf 2.69. Invocation command line was
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1879 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1880 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1883 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1884 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1885 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 $as_echo "PATH: $as_dir"
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_must_keep_next=false
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 -* ) ac_must_keep_next=true ;;
1950 as_fn_append ac_configure_args " '$ac_arg'"
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Save into config.log some information that might help in debugging.
1968 $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1972 # The following way of writing the cache mishandles newlines in values,
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2008 for ac_var in $ac_subst_vars
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -n "$ac_subst_files"; then
2019 $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2023 for ac_var in $ac_subst_files
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 $as_echo "$ac_var='\''$ac_val'\''"
2034 if test -s confdefs.h; then
2035 $as_echo "## ----------- ##
2042 test "$ac_signal" != 0 &&
2043 $as_echo "$as_me: caught signal $ac_signal"
2044 $as_echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 $as_echo "/* confdefs.h */" > confdefs.h
2060 # Predefined preprocessor variables.
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092 # We do not want a PATH search for config.site.
2093 case $CONFIG_SITE in #((
2094 -*) ac_site_file1=./$CONFIG_SITE;;
2095 */*) ac_site_file1=$CONFIG_SITE;;
2096 *) ac_site_file1=./$CONFIG_SITE;;
2098 elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 test "x$ac_site_file" = xNONE && continue
2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 if test -f "$ac_dir/install-sh"; then
2212 ac_install_sh="$ac_aux_dir/install-sh -c"
2214 elif test -f "$ac_dir/install.sh"; then
2216 ac_install_sh="$ac_aux_dir/install.sh -c"
2218 elif test -f "$ac_dir/shtool"; then
2220 ac_install_sh="$ac_aux_dir/shtool install -c"
2224 if test -z "$ac_aux_dir"; then
2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2228 # These three variables are undocumented and unsupported,
2229 # and are intended to be withdrawn in a future Autoconf release.
2230 # They can cause serious problems if a builder's source tree is in a directory
2231 # whose full name contains unusual characters.
2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2237 # Make sure we can run config.sub.
2238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2239 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2242 $as_echo_n "checking build system type... " >&6; }
2243 if ${ac_cv_build+:} false; then :
2244 $as_echo_n "(cached) " >&6
2246 ac_build_alias=$build_alias
2247 test "x$ac_build_alias" = x &&
2248 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2249 test "x$ac_build_alias" = x &&
2250 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2251 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2252 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2256 $as_echo "$ac_cv_build" >&6; }
2257 case $ac_cv_build in
2259 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2262 ac_save_IFS=$IFS; IFS='-'
2268 # Remember, the first character of IFS is used to create $*,
2269 # except with old shells:
2272 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2276 $as_echo_n "checking host system type... " >&6; }
2277 if ${ac_cv_host+:} false; then :
2278 $as_echo_n "(cached) " >&6
2280 if test "x$host_alias" = x; then
2281 ac_cv_host=$ac_cv_build
2283 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2289 $as_echo "$ac_cv_host" >&6; }
2292 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2295 ac_save_IFS=$IFS; IFS='-'
2301 # Remember, the first character of IFS is used to create $*,
2302 # except with old shells:
2305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2309 $as_echo_n "checking target system type... " >&6; }
2310 if ${ac_cv_target+:} false; then :
2311 $as_echo_n "(cached) " >&6
2313 if test "x$target_alias" = x; then
2314 ac_cv_target=$ac_cv_host
2316 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2322 $as_echo "$ac_cv_target" >&6; }
2323 case $ac_cv_target in
2325 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2327 target=$ac_cv_target
2328 ac_save_IFS=$IFS; IFS='-'
2334 # Remember, the first character of IFS is used to create $*,
2335 # except with old shells:
2338 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2341 # The aliases save the names the user supplied, while $host etc.
2342 # will get canonicalized.
2343 test -n "$target_alias" &&
2344 test "$program_prefix$program_suffix$program_transform_name" = \
2346 program_prefix=${target_alias}-
2347 am__api_version='1.14'
2349 # Find a good install program. We prefer a C program (faster),
2350 # so one script is as good as another. But avoid the broken or
2351 # incompatible versions:
2352 # SysV /etc/install, /usr/sbin/install
2353 # SunOS /usr/etc/install
2354 # IRIX /sbin/install
2356 # AmigaOS /C/install, which installs bootblocks on floppy discs
2357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2360 # OS/2's system install, which has a completely different semantic
2361 # ./install, which can be erroneously created by make from ./install.sh.
2362 # Reject install programs that cannot install multiple files.
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2364 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2365 if test -z "$INSTALL"; then
2366 if ${ac_cv_path_install+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 # Account for people who put trailing slashes in PATH elements.
2375 case $as_dir/ in #((
2376 ./ | .// | /[cC]/* | \
2377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2381 # OSF1 and SCO ODT 3.0 have their own names for install.
2382 # Don't use installbsd from OSF since it installs stuff as root
2384 for ac_prog in ginstall scoinst install; do
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2387 if test $ac_prog = install &&
2388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2389 # AIX install. It has an incompatible calling convention.
2391 elif test $ac_prog = install &&
2392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2393 # program-specific install script used by HP pwplus--don't use.
2396 rm -rf conftest.one conftest.two conftest.dir
2397 echo one > conftest.one
2398 echo two > conftest.two
2400 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2401 test -s conftest.one && test -s conftest.two &&
2402 test -s conftest.dir/conftest.one &&
2403 test -s conftest.dir/conftest.two
2405 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2418 rm -rf conftest.one conftest.two conftest.dir
2421 if test "${ac_cv_path_install+set}" = set; then
2422 INSTALL=$ac_cv_path_install
2424 # As a last resort, use the slow shell script. Don't cache a
2425 # value for INSTALL within a source directory, because that will
2426 # break other packages using the cache if that directory is
2427 # removed, or if the value is a relative name.
2428 INSTALL=$ac_install_sh
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2432 $as_echo "$INSTALL" >&6; }
2434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2435 # It thinks the first close brace ends the variable substitution.
2436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2443 $as_echo_n "checking whether build environment is sane... " >&6; }
2444 # Reject unsafe characters in $srcdir or the absolute working directory
2445 # name. Accept space and tab only in the latter.
2449 *[\\\"\#\$\&\'\`$am_lf]*)
2450 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2453 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2454 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2457 # Do 'set' in a subshell so we don't clobber the current shell's
2458 # arguments. Must try -L first in case configure is actually a
2459 # symlink; some systems play weird games with the mod time of symlinks
2460 # (eg FreeBSD returns the mod time of the symlink's containing
2464 for am_try in 1 2; do
2465 echo "timestamp, slept: $am_has_slept" > conftest.file
2466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2467 if test "$*" = "X"; then
2469 set X `ls -t "$srcdir/configure" conftest.file`
2471 if test "$*" != "X $srcdir/configure conftest.file" \
2472 && test "$*" != "X conftest.file $srcdir/configure"; then
2474 # If neither matched, then we have a broken ls. This can happen
2475 # if, for instance, CONFIG_SHELL is bash and it inherits a
2476 # broken ls alias from the environment. This has actually
2477 # happened. Such a system could not be considered "sane".
2478 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2479 alias in your environment" "$LINENO" 5
2481 if test "$2" = conftest.file || test $am_try -eq 2; then
2488 test "$2" = conftest.file
2494 as_fn_error $? "newly created file is older than distributed files!
2495 Check your system clock" "$LINENO" 5
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2498 $as_echo "yes" >&6; }
2499 # If we didn't sleep, we still need to ensure time stamps of config.status and
2500 # generated files are strictly newer.
2502 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2509 test "$program_prefix" != NONE &&
2510 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2519 # Expand $ac_aux_dir to an absolute path.
2520 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2522 if test x"${MISSING+set}" != xset; then
2525 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2527 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --is-lightweight"; then
2532 am_missing_run="$MISSING "
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2536 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2539 if test x"${install_sh}" != xset; then
2542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2544 install_sh="\${SHELL} $am_aux_dir/install-sh"
2548 # Installed binaries are usually stripped using 'strip' when the user
2549 # run "make install-strip". However 'strip' might not be the right
2550 # tool to use in cross-compilation environments, therefore Automake
2551 # will honor the 'STRIP' environment variable to overrule this program.
2552 if test "$cross_compiling" != no; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_STRIP+:} false; then :
2559 $as_echo_n "(cached) " >&6
2561 if test -n "$STRIP"; then
2562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 STRIP=$ac_cv_prog_STRIP
2582 if test -n "$STRIP"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584 $as_echo "$STRIP" >&6; }
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2592 if test -z "$ac_cv_prog_STRIP"; then
2594 # Extract the first word of "strip", so it can be a program name with args.
2595 set dummy strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2599 $as_echo_n "(cached) " >&6
2601 if test -n "$ac_ct_STRIP"; then
2602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_ac_ct_STRIP="strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622 if test -n "$ac_ct_STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624 $as_echo "$ac_ct_STRIP" >&6; }
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2630 if test "x$ac_ct_STRIP" = x; then
2633 case $cross_compiling:$ac_tool_warned in
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2642 STRIP="$ac_cv_prog_STRIP"
2646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651 if ${ac_cv_path_mkdir+:} false; then :
2652 $as_echo_n "(cached) " >&6
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2658 test -z "$as_dir" && as_dir=.
2659 for ac_prog in mkdir gmkdir; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2662 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663 'mkdir (GNU coreutils) '* | \
2664 'mkdir (coreutils) '* | \
2665 'mkdir (fileutils) '4.1*)
2666 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2676 test -d ./--version && rmdir ./--version
2677 if test "${ac_cv_path_mkdir+set}" = set; then
2678 MKDIR_P="$ac_cv_path_mkdir -p"
2680 # As a last resort, use the slow shell script. Don't cache a
2681 # value for MKDIR_P within a source directory, because that will
2682 # break other packages using the cache if that directory is
2683 # removed, or if the value is a relative name.
2684 MKDIR_P="$ac_install_sh -d"
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2690 for ac_prog in gawk mawk nawk awk
2692 # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_AWK+:} false; then :
2697 $as_echo_n "(cached) " >&6
2699 if test -n "$AWK"; then
2700 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_AWK="$ac_prog"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test -n "$AWK"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2722 $as_echo "$AWK" >&6; }
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2729 test -n "$AWK" && break
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2736 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2737 $as_echo_n "(cached) " >&6
2739 cat >conftest.make <<\_ACEOF
2742 @echo '@@@%%%=$(MAKE)=@@@%%%'
2744 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2747 eval ac_cv_prog_make_${ac_make}_set=yes;;
2749 eval ac_cv_prog_make_${ac_make}_set=no;;
2753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 SET_MAKE="MAKE=${MAKE-make}"
2763 rm -rf .tst 2>/dev/null
2764 mkdir .tst 2>/dev/null
2765 if test -d .tst; then
2770 rmdir .tst 2>/dev/null
2772 # Check whether --enable-silent-rules was given.
2773 if test "${enable_silent_rules+set}" = set; then :
2774 enableval=$enable_silent_rules;
2777 case $enable_silent_rules in # (((
2778 yes) AM_DEFAULT_VERBOSITY=0;;
2779 no) AM_DEFAULT_VERBOSITY=1;;
2780 *) AM_DEFAULT_VERBOSITY=1;;
2782 am_make=${MAKE-make}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2784 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2785 if ${am_cv_make_support_nested_variables+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 if $as_echo 'TRUE=$(BAR$(V))
2794 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2795 am_cv_make_support_nested_variables=yes
2797 am_cv_make_support_nested_variables=no
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2801 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2802 if test $am_cv_make_support_nested_variables = yes; then
2804 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2806 AM_V=$AM_DEFAULT_VERBOSITY
2807 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2812 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2813 # is not polluted with repeated "-I."
2814 am__isrc=' -I$(srcdir)'
2815 # test to see if srcdir already configured
2816 if test -f $srcdir/config.status; then
2817 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2821 # test whether we have cygpath
2822 if test -z "$CYGPATH_W"; then
2823 if (cygpath --version) >/dev/null 2>/dev/null; then
2824 CYGPATH_W='cygpath -w'
2831 # Define the identity of the package.
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE "$PACKAGE"
2841 cat >>confdefs.h <<_ACEOF
2842 #define VERSION "$VERSION"
2845 # Some tools Automake needs.
2847 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861 # For better backward compatibility. To be removed once Automake 1.9.x
2862 # dies out for good. For more background, see:
2863 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2864 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2865 mkdir_p='$(MKDIR_P)'
2867 # We need awk for the "check" target. The system "awk" is bad on
2869 # Always define AMTAR for backward compatibility. Yes, it's still used
2870 # in the wild :-( We should find a proper way to deprecate it ...
2874 # We'll loop over all known methods to create a tar archive until one works.
2875 _am_tools='gnutar pax cpio none'
2877 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2884 # POSIX will say in a future version that running "rm -f" with no argument
2885 # is OK; and we want to be able to make that assumption in our Makefile
2886 # recipes. So use an aggressive probe to check that the usage we want is
2887 # actually supported "in the wild" to an acceptable degree.
2888 # See automake bug#10828.
2889 # To make any issue more visible, cause the running configure to be aborted
2890 # by default if the 'rm' program in use doesn't match our expectations; the
2891 # user can still override this though.
2892 if rm -f && rm -fr && rm -rf; then : OK; else
2896 Your 'rm' program seems unable to run without file operands specified
2897 on the command line, even when the '-f' option is present. This is contrary
2898 to the behaviour of most rm programs out there, and not conforming with
2899 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2901 Please tell bug-automake@gnu.org about your system, including the value
2902 of your $PATH and any error possibly output before this message. This
2903 can help us improve future automake versions.
2906 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2907 echo 'Configuration will proceed anyway, since you have set the' >&2
2908 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2912 Aborting the configuration process, to ensure you take notice of the issue.
2914 You can download and install GNU coreutils to get an 'rm' implementation
2915 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2917 If you want to complete the configuration process using your problematic
2918 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2919 to "yes", and re-run configure.
2922 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2926 # Check whether --enable-silent-rules was given.
2927 if test "${enable_silent_rules+set}" = set; then :
2928 enableval=$enable_silent_rules;
2931 case $enable_silent_rules in # (((
2932 yes) AM_DEFAULT_VERBOSITY=0;;
2933 no) AM_DEFAULT_VERBOSITY=1;;
2934 *) AM_DEFAULT_VERBOSITY=0;;
2936 am_make=${MAKE-make}
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2938 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2939 if ${am_cv_make_support_nested_variables+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 if $as_echo 'TRUE=$(BAR$(V))
2948 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2949 am_cv_make_support_nested_variables=yes
2951 am_cv_make_support_nested_variables=no
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2955 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2956 if test $am_cv_make_support_nested_variables = yes; then
2958 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2960 AM_V=$AM_DEFAULT_VERBOSITY
2961 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2965 ac_config_headers="$ac_config_headers include/config.h"
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2971 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2976 macro_version='2.4.2'
2977 macro_revision='1.3337'
2991 ltmain="$ac_aux_dir/ltmain.sh"
2993 # Backslashify metacharacters that are still active within
2994 # double-quoted strings.
2995 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2997 # Same as above, but do not quote variable references.
2998 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3000 # Sed substitution to delay expansion of an escaped shell variable in a
3001 # double_quote_subst'ed string.
3002 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3004 # Sed substitution to delay expansion of an escaped single quote.
3005 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3007 # Sed substitution to avoid accidental globbing in evaled expressions
3008 no_glob_subst='s/\*/\\\*/g'
3010 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3011 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3012 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3015 $as_echo_n "checking how to print strings... " >&6; }
3016 # Test print first, because it will be a builtin if present.
3017 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3018 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3020 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3023 # Use this function as a fallback that always works.
3024 func_fallback_echo ()
3026 eval 'cat <<_LTECHO_EOF
3030 ECHO='func_fallback_echo'
3033 # func_echo_all arg...
3034 # Invoke $ECHO with all args, space-separated.
3041 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3042 $as_echo "printf" >&6; } ;;
3043 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3044 $as_echo "print -r" >&6; } ;;
3045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3046 $as_echo "cat" >&6; } ;;
3062 DEPDIR="${am__leading_dot}deps"
3064 ac_config_commands="$ac_config_commands depfiles"
3067 am_make=${MAKE-make}
3068 cat > confinc << 'END'
3070 @echo this is the am__doit target
3073 # If we don't find an include directive, just comment out the code.
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3075 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3079 # First try GNU make style include.
3080 echo "include confinc" > confmf
3081 # Ignore all kinds of additional output from 'make'.
3082 case `$am_make -s -f confmf 2> /dev/null` in #(
3083 *the\ am__doit\ target*)
3089 # Now try BSD make style include.
3090 if test "$am__include" = "#"; then
3091 echo '.include "confinc"' > confmf
3092 case `$am_make -s -f confmf 2> /dev/null` in #(
3093 *the\ am__doit\ target*)
3094 am__include=.include
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3103 $as_echo "$_am_result" >&6; }
3104 rm -f confinc confmf
3106 # Check whether --enable-dependency-tracking was given.
3107 if test "${enable_dependency_tracking+set}" = set; then :
3108 enableval=$enable_dependency_tracking;
3111 if test "x$enable_dependency_tracking" != xno; then
3112 am_depcomp="$ac_aux_dir/depcomp"
3116 if test "x$enable_dependency_tracking" != xno; then
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$ac_cv_prog_CC"; then
3171 # Extract the first word of "gcc", so it can be a program name with args.
3172 set dummy gcc; ac_word=$2
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$ac_ct_CC"; then
3179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_CC="gcc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199 if test -n "$ac_ct_CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201 $as_echo "$ac_ct_CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3207 if test "x$ac_ct_CC" = x; then
3210 case $cross_compiling:$ac_tool_warned in
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3222 if test -z "$CC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}cc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="${ac_tool_prefix}cc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3263 if test -z "$CC"; then
3264 # Extract the first word of "cc", so it can be a program name with args.
3265 set dummy cc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3283 ac_prog_rejected=yes
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test $ac_prog_rejected = yes; then
3295 # We found a bogon in the path, so make sure we never use it.
3296 set dummy $ac_cv_prog_CC
3298 if test $# != 0; then
3299 # We chose a different compiler from the bogus one.
3300 # However, it has the same basename, so the bogon will be chosen
3301 # first if we set CC to just the basename; use the full file name.
3303 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 for ac_prog in cl.exe
3323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if ${ac_cv_prog_CC+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 if test -n "$CC"; then
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3360 test -n "$CC" && break
3363 if test -z "$CC"; then
3365 for ac_prog in cl.exe
3367 # Extract the first word of "$ac_prog", so it can be a program name with args.
3368 set dummy $ac_prog; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_ac_ct_CC="$ac_prog"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3404 test -n "$ac_ct_CC" && break
3407 if test "x$ac_ct_CC" = x; then
3410 case $cross_compiling:$ac_tool_warned in
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414 ac_tool_warned=yes ;;
3423 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "no acceptable C compiler found in \$PATH
3426 See \`config.log' for more details" "$LINENO" 5; }
3428 # Provide some information about the compiler.
3429 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3432 for ac_option in --version -v -V -qversion; do
3433 { { ac_try="$ac_compiler $ac_option >&5"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3442 if test -s conftest.err; then
3444 ... rest of stderr output deleted ...
3445 10q' conftest.err >conftest.er1
3446 cat conftest.er1 >&5
3448 rm -f conftest.er1 conftest.err
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 ac_clean_files_save=$ac_clean_files
3465 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3466 # Try to create an executable without -o first, disregard a.out.
3467 # It will help us diagnose broken compilers, and finding out an intuition
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3470 $as_echo_n "checking whether the C compiler works... " >&6; }
3471 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3473 # The possible output files:
3474 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3477 for ac_file in $ac_files
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3486 if { { ac_try="$ac_link_default"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492 $as_echo "$ac_try_echo"; } >&5
3493 (eval "$ac_link_default") 2>&5
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }; then :
3497 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3499 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3500 # so that the user can short-circuit this test for compilers unknown to
3502 for ac_file in $ac_files ''
3504 test -f "$ac_file" || continue
3506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3509 # We found the default executable, but exeext='' is most
3513 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3515 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517 # We set ac_cv_exeext here because the later test for it is not
3518 # safe: cross compilers may not add the suffix if given an `-o'
3519 # argument, so we may need to know it at that point already.
3520 # Even if this section looks crufty: it has the advantage of
3527 test "$ac_cv_exeext" = no && ac_cv_exeext=
3532 if test -z "$ac_file"; then :
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error 77 "C compiler cannot create executables
3541 See \`config.log' for more details" "$LINENO" 5; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 $as_echo "yes" >&6; }
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547 $as_echo_n "checking for C compiler default output file name... " >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549 $as_echo "$ac_file" >&6; }
3550 ac_exeext=$ac_cv_exeext
3552 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555 $as_echo_n "checking for suffix of executables... " >&6; }
3556 if { { ac_try="$ac_link"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_link") 2>&5
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }; then :
3567 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3568 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3569 # work properly (i.e., refer to `conftest.exe'), while it won't with
3571 for ac_file in conftest.exe conftest conftest.*; do
3572 test -f "$ac_file" || continue
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3584 See \`config.log' for more details" "$LINENO" 5; }
3586 rm -f conftest conftest$ac_cv_exeext
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588 $as_echo "$ac_cv_exeext" >&6; }
3590 rm -f conftest.$ac_ext
3591 EXEEXT=$ac_cv_exeext
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3599 FILE *f = fopen ("conftest.out", "w");
3600 return ferror (f) || fclose (f) != 0;
3606 ac_clean_files="$ac_clean_files conftest.out"
3607 # Check that the compiler produces executables we can run. If not, either
3608 # the compiler is broken, or we cross compile.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3610 $as_echo_n "checking whether we are cross compiling... " >&6; }
3611 if test "$cross_compiling" != yes; then
3612 { { ac_try="$ac_link"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623 if { ac_try='./conftest$ac_cv_exeext'
3624 { { case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629 $as_echo "$ac_try_echo"; } >&5
3630 (eval "$ac_try") 2>&5
3632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633 test $ac_status = 0; }; }; then
3636 if test "$cross_compiling" = maybe; then
3639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641 as_fn_error $? "cannot run C compiled programs.
3642 If you meant to cross compile, use \`--host'.
3643 See \`config.log' for more details" "$LINENO" 5; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3648 $as_echo "$cross_compiling" >&6; }
3650 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3651 ac_clean_files=$ac_clean_files_save
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653 $as_echo_n "checking for suffix of object files... " >&6; }
3654 if ${ac_cv_objext+:} false; then :
3655 $as_echo_n "(cached) " >&6
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 rm -f conftest.o conftest.obj
3669 if { { ac_try="$ac_compile"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675 $as_echo "$ac_try_echo"; } >&5
3676 (eval "$ac_compile") 2>&5
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }; then :
3680 for ac_file in conftest.o conftest.obj conftest.*; do
3681 test -f "$ac_file" || continue;
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3689 $as_echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "cannot compute suffix of object files: cannot compile
3695 See \`config.log' for more details" "$LINENO" 5; }
3697 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700 $as_echo "$ac_cv_objext" >&6; }
3701 OBJEXT=$ac_cv_objext
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705 if ${ac_cv_c_compiler_gnu+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3722 if ac_fn_c_try_compile "$LINENO"; then :
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733 if test $ac_compiler_gnu = yes; then
3738 ac_test_CFLAGS=${CFLAGS+set}
3739 ac_save_CFLAGS=$CFLAGS
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742 if ${ac_cv_prog_cc_g+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 ac_save_c_werror_flag=$ac_c_werror_flag
3746 ac_c_werror_flag=yes
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_c_try_compile "$LINENO"; then :
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 if ac_fn_c_try_compile "$LINENO"; then :
3778 ac_c_werror_flag=$ac_save_c_werror_flag
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 if ac_fn_c_try_compile "$LINENO"; then :
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799 ac_c_werror_flag=$ac_save_c_werror_flag
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802 $as_echo "$ac_cv_prog_cc_g" >&6; }
3803 if test "$ac_test_CFLAGS" = set; then
3804 CFLAGS=$ac_save_CFLAGS
3805 elif test $ac_cv_prog_cc_g = yes; then
3806 if test "$GCC" = yes; then
3812 if test "$GCC" = yes; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820 if ${ac_cv_prog_cc_c89+:} false; then :
3821 $as_echo_n "(cached) " >&6
3823 ac_cv_prog_cc_c89=no
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3830 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3831 struct buf { int x; };
3832 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3833 static char *e (p, i)
3839 static char *f (char * (*g) (char **, int), char **p, ...)
3844 s = g (p, va_arg (v,int));
3849 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3850 function prototypes and stuff, but not '\xHH' hex character constants.
3851 These don't provoke an error unfortunately, instead are silently treated
3852 as 'x'. The following induces an error, until -std is added to get
3853 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3854 array size at least. It's necessary to write '\x00'==0 to get something
3855 that's true only with -std. */
3856 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3859 inside strings and character constants. */
3861 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863 int test (int i, double x);
3864 struct s1 {int (*f) (int a);};
3865 struct s2 {int (*f) (double a);};
3866 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3872 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3877 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3878 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880 CC="$ac_save_CC $ac_arg"
3881 if ac_fn_c_try_compile "$LINENO"; then :
3882 ac_cv_prog_cc_c89=$ac_arg
3884 rm -f core conftest.err conftest.$ac_objext
3885 test "x$ac_cv_prog_cc_c89" != "xno" && break
3887 rm -f conftest.$ac_ext
3892 case "x$ac_cv_prog_cc_c89" in
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3895 $as_echo "none needed" >&6; } ;;
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3898 $as_echo "unsupported" >&6; } ;;
3900 CC="$CC $ac_cv_prog_cc_c89"
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3902 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904 if test "x$ac_cv_prog_cc_c89" != xno; then :
3909 ac_cpp='$CPP $CPPFLAGS'
3910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3920 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3921 if ${am_cv_prog_cc_c_o+:} false; then :
3922 $as_echo_n "(cached) " >&6
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 # Make sure it works both with $CC and with simple cc.
3936 # Following AC_PROG_CC_C_O, we do the test twice because some
3937 # compilers refuse to overwrite an existing .o file with -o,
3938 # though they will create one.
3939 am_cv_prog_cc_c_o=yes
3941 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3942 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } \
3946 && test -f conftest2.$ac_objext; then
3949 am_cv_prog_cc_c_o=no
3953 rm -f core conftest*
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3957 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3958 if test "$am_cv_prog_cc_c_o" != yes; then
3959 # Losing compiler, so override with the script.
3960 # FIXME: It is wrong to rewrite CC.
3961 # But if we don't then we get into trouble of one sort or another.
3962 # A longer-term fix would be to have automake use am__CC in this case,
3963 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3964 CC="$am_aux_dir/compile $CC"
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 depcc="$CC" am_compiler_list=
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976 $as_echo_n "checking dependency style of $depcc... " >&6; }
3977 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3978 $as_echo_n "(cached) " >&6
3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981 # We make a subdir and do the tests there. Otherwise we can end up
3982 # making bogus files that we don't know about and never remove. For
3983 # instance it was reported that on HP-UX the gcc test will end up
3984 # making a dummy file named 'D' -- because '-MD' means "put the output
3988 # Copy depcomp to subdir because otherwise we won't find it if we're
3989 # using a relative directory.
3990 cp "$am_depcomp" conftest.dir
3992 # We will build objects and dependencies in a subdirectory because
3993 # it helps to detect inapplicable dependency modes. For instance
3994 # both Tru64's cc and ICC support -MD to output dependencies as a
3995 # side effect of compilation, but ICC will put the dependencies in
3996 # the current directory while Tru64 will put them in the object
4000 am_cv_CC_dependencies_compiler_type=none
4001 if test "$am_compiler_list" = ""; then
4002 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4005 case " $depcc " in #(
4006 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4009 for depmode in $am_compiler_list; do
4010 # Setup a source with many dependencies, because some compilers
4011 # like to wrap large dependency lists on column 80 (with \), and
4012 # we should not choose a depcomp mode which is confused by this.
4014 # We need to recreate these files for each test, as the compiler may
4015 # overwrite some of them when testing with obscure command lines.
4016 # This happens at least with the AIX C compiler.
4018 for i in 1 2 3 4 5 6; do
4019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4020 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4021 # Solaris 10 /bin/sh.
4022 echo '/* dummy */' > sub/conftst$i.h
4024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4026 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4027 # mode. It turns out that the SunPro C++ compiler does not properly
4028 # handle '-M -o', and we need to detect this. Also, some Intel
4029 # versions had trouble with output in subdirs.
4030 am__obj=sub/conftest.${OBJEXT-o}
4031 am__minus_obj="-o $am__obj"
4034 # This depmode causes a compiler race in universal mode.
4035 test "$am__universal" = false || continue
4038 # After this tag, mechanisms are not by side-effect, so they'll
4039 # only be used when explicitly requested.
4040 if test "x$enable_dependency_tracking" = xyes; then
4046 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4047 # This compiler won't grok '-c -o', but also, the minuso test has
4048 # not run yet. These depmodes are late enough in the game, and
4049 # so weak that their functioning should not be impacted.
4050 am__obj=conftest.${OBJEXT-o}
4055 if depmode=$depmode \
4056 source=sub/conftest.c object=$am__obj \
4057 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4058 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4059 >/dev/null 2>conftest.err &&
4060 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4062 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4063 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4064 # icc doesn't choke on unknown options, it will just issue warnings
4065 # or remarks (even with -Werror). So we grep stderr for any message
4066 # that says an option was ignored or not supported.
4067 # When given -MP, icc 7.0 and 7.1 complain thusly:
4068 # icc: Command line warning: ignoring option '-M'; no argument required
4069 # The diagnosis changed in icc 8.0:
4070 # icc: Command line remark: option '-MP' not supported
4071 if (grep 'ignoring option' conftest.err ||
4072 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4073 am_cv_CC_dependencies_compiler_type=$depmode
4082 am_cv_CC_dependencies_compiler_type=none
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4087 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4088 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4091 test "x$enable_dependency_tracking" != xno \
4092 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4094 am__fastdepCC_FALSE='#'
4096 am__fastdepCC_TRUE='#'
4097 am__fastdepCC_FALSE=
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4102 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4103 if ${ac_cv_path_SED+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4107 for ac_i in 1 2 3 4 5 6 7; do
4108 ac_script="$ac_script$as_nl$ac_script"
4110 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4111 { ac_script=; unset ac_script;}
4112 if test -z "$SED"; then
4113 ac_path_SED_found=false
4114 # Loop through the user's path and test for each of PROGNAME-LIST
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 test -z "$as_dir" && as_dir=.
4120 for ac_prog in sed gsed; do
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4123 as_fn_executable_p "$ac_path_SED" || continue
4124 # Check for GNU ac_path_SED and select it if it is found.
4125 # Check for GNU $ac_path_SED
4126 case `"$ac_path_SED" --version 2>&1` in
4128 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4131 $as_echo_n 0123456789 >"conftest.in"
4134 cat "conftest.in" "conftest.in" >"conftest.tmp"
4135 mv "conftest.tmp" "conftest.in"
4136 cp "conftest.in" "conftest.nl"
4137 $as_echo '' >> "conftest.nl"
4138 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4140 as_fn_arith $ac_count + 1 && ac_count=$as_val
4141 if test $ac_count -gt ${ac_path_SED_max-0}; then
4142 # Best one so far, save it but keep looking for a better one
4143 ac_cv_path_SED="$ac_path_SED"
4144 ac_path_SED_max=$ac_count
4146 # 10*(2^10) chars as input seems more than enough
4147 test $ac_count -gt 10 && break
4149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 $ac_path_SED_found && break 3
4157 if test -z "$ac_cv_path_SED"; then
4158 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4166 $as_echo "$ac_cv_path_SED" >&6; }
4167 SED="$ac_cv_path_SED"
4170 test -z "$SED" && SED=sed
4171 Xsed="$SED -e 1s/^X//"
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4184 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4185 if ${ac_cv_path_GREP+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -z "$GREP"; then
4189 ac_path_GREP_found=false
4190 # Loop through the user's path and test for each of PROGNAME-LIST
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4195 test -z "$as_dir" && as_dir=.
4196 for ac_prog in grep ggrep; do
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4199 as_fn_executable_p "$ac_path_GREP" || continue
4200 # Check for GNU ac_path_GREP and select it if it is found.
4201 # Check for GNU $ac_path_GREP
4202 case `"$ac_path_GREP" --version 2>&1` in
4204 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4207 $as_echo_n 0123456789 >"conftest.in"
4210 cat "conftest.in" "conftest.in" >"conftest.tmp"
4211 mv "conftest.tmp" "conftest.in"
4212 cp "conftest.in" "conftest.nl"
4213 $as_echo 'GREP' >> "conftest.nl"
4214 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4216 as_fn_arith $ac_count + 1 && ac_count=$as_val
4217 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4218 # Best one so far, save it but keep looking for a better one
4219 ac_cv_path_GREP="$ac_path_GREP"
4220 ac_path_GREP_max=$ac_count
4222 # 10*(2^10) chars as input seems more than enough
4223 test $ac_count -gt 10 && break
4225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4228 $ac_path_GREP_found && break 3
4233 if test -z "$ac_cv_path_GREP"; then
4234 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4237 ac_cv_path_GREP=$GREP
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4242 $as_echo "$ac_cv_path_GREP" >&6; }
4243 GREP="$ac_cv_path_GREP"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4247 $as_echo_n "checking for egrep... " >&6; }
4248 if ${ac_cv_path_EGREP+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4252 then ac_cv_path_EGREP="$GREP -E"
4254 if test -z "$EGREP"; then
4255 ac_path_EGREP_found=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4261 test -z "$as_dir" && as_dir=.
4262 for ac_prog in egrep; do
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4265 as_fn_executable_p "$ac_path_EGREP" || continue
4266 # Check for GNU ac_path_EGREP and select it if it is found.
4267 # Check for GNU $ac_path_EGREP
4268 case `"$ac_path_EGREP" --version 2>&1` in
4270 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4273 $as_echo_n 0123456789 >"conftest.in"
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 $as_echo 'EGREP' >> "conftest.nl"
4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 as_fn_arith $ac_count + 1 && ac_count=$as_val
4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_EGREP="$ac_path_EGREP"
4286 ac_path_EGREP_max=$ac_count
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 $ac_path_EGREP_found && break 3
4299 if test -z "$ac_cv_path_EGREP"; then
4300 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4303 ac_cv_path_EGREP=$EGREP
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4309 $as_echo "$ac_cv_path_EGREP" >&6; }
4310 EGREP="$ac_cv_path_EGREP"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4314 $as_echo_n "checking for fgrep... " >&6; }
4315 if ${ac_cv_path_FGREP+:} false; then :
4316 $as_echo_n "(cached) " >&6
4318 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4319 then ac_cv_path_FGREP="$GREP -F"
4321 if test -z "$FGREP"; then
4322 ac_path_FGREP_found=false
4323 # Loop through the user's path and test for each of PROGNAME-LIST
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4328 test -z "$as_dir" && as_dir=.
4329 for ac_prog in fgrep; do
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4332 as_fn_executable_p "$ac_path_FGREP" || continue
4333 # Check for GNU ac_path_FGREP and select it if it is found.
4334 # Check for GNU $ac_path_FGREP
4335 case `"$ac_path_FGREP" --version 2>&1` in
4337 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4340 $as_echo_n 0123456789 >"conftest.in"
4343 cat "conftest.in" "conftest.in" >"conftest.tmp"
4344 mv "conftest.tmp" "conftest.in"
4345 cp "conftest.in" "conftest.nl"
4346 $as_echo 'FGREP' >> "conftest.nl"
4347 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4349 as_fn_arith $ac_count + 1 && ac_count=$as_val
4350 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4351 # Best one so far, save it but keep looking for a better one
4352 ac_cv_path_FGREP="$ac_path_FGREP"
4353 ac_path_FGREP_max=$ac_count
4355 # 10*(2^10) chars as input seems more than enough
4356 test $ac_count -gt 10 && break
4358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 $ac_path_FGREP_found && break 3
4366 if test -z "$ac_cv_path_FGREP"; then
4367 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4370 ac_cv_path_FGREP=$FGREP
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4376 $as_echo "$ac_cv_path_FGREP" >&6; }
4377 FGREP="$ac_cv_path_FGREP"
4380 test -z "$GREP" && GREP=grep
4400 # Check whether --with-gnu-ld was given.
4401 if test "${with_gnu_ld+set}" = set; then :
4402 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4408 if test "$GCC" = yes; then
4409 # Check if gcc -print-prog-name=ld gives a path.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4411 $as_echo_n "checking for ld used by $CC... " >&6; }
4414 # gcc leaves a trailing carriage return which upsets mingw
4415 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4417 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4420 # Accept absolute paths.
4422 re_direlt='/[^/][^/]*/\.\./'
4423 # Canonicalize the pathname of ld
4424 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4425 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4426 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4428 test -z "$LD" && LD="$ac_prog"
4431 # If it fails, then pretend we aren't using GCC.
4435 # If it is relative, then search for the first ld in PATH.
4439 elif test "$with_gnu_ld" = yes; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4441 $as_echo_n "checking for GNU ld... " >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4444 $as_echo_n "checking for non-GNU ld... " >&6; }
4446 if ${lt_cv_path_LD+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 if test -z "$LD"; then
4450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4451 for ac_dir in $PATH; do
4453 test -z "$ac_dir" && ac_dir=.
4454 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4455 lt_cv_path_LD="$ac_dir/$ac_prog"
4456 # Check to see if the program is GNU ld. I'd rather use --version,
4457 # but apparently some variants of GNU ld only accept -v.
4458 # Break only if it was the GNU/non-GNU ld that we prefer.
4459 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4460 *GNU* | *'with BFD'*)
4461 test "$with_gnu_ld" != no && break
4464 test "$with_gnu_ld" != yes && break
4471 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4476 if test -n "$LD"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4478 $as_echo "$LD" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4483 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4485 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4486 if ${lt_cv_prog_gnu_ld+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4490 case `$LD -v 2>&1 </dev/null` in
4491 *GNU* | *'with BFD'*)
4492 lt_cv_prog_gnu_ld=yes
4495 lt_cv_prog_gnu_ld=no
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4500 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4501 with_gnu_ld=$lt_cv_prog_gnu_ld
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4512 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4513 if ${lt_cv_path_NM+:} false; then :
4514 $as_echo_n "(cached) " >&6
4516 if test -n "$NM"; then
4517 # Let the user override the test.
4520 lt_nm_to_check="${ac_tool_prefix}nm"
4521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4522 lt_nm_to_check="$lt_nm_to_check nm"
4524 for lt_tmp_nm in $lt_nm_to_check; do
4525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4528 test -z "$ac_dir" && ac_dir=.
4529 tmp_nm="$ac_dir/$lt_tmp_nm"
4530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4531 # Check to see if the nm accepts a BSD-compat flag.
4532 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4533 # nm: unknown option "B" ignored
4534 # Tru64's nm complains that /dev/null is an invalid object file
4535 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4536 */dev/null* | *'Invalid file or object type'*)
4537 lt_cv_path_NM="$tmp_nm -B"
4541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4543 lt_cv_path_NM="$tmp_nm -p"
4547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4548 continue # so that we can try to find one that supports BSD flags
4557 : ${lt_cv_path_NM=no}
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4561 $as_echo "$lt_cv_path_NM" >&6; }
4562 if test "$lt_cv_path_NM" != "no"; then
4565 # Didn't find any BSD compatible name lister, look for dumpbin.
4566 if test -n "$DUMPBIN"; then :
4567 # Let the user override the test.
4569 if test -n "$ac_tool_prefix"; then
4570 for ac_prog in dumpbin "link -dump"
4572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_DUMPBIN+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 if test -n "$DUMPBIN"; then
4580 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 DUMPBIN=$ac_cv_prog_DUMPBIN
4600 if test -n "$DUMPBIN"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4602 $as_echo "$DUMPBIN" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4609 test -n "$DUMPBIN" && break
4612 if test -z "$DUMPBIN"; then
4613 ac_ct_DUMPBIN=$DUMPBIN
4614 for ac_prog in dumpbin "link -dump"
4616 # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -n "$ac_ct_DUMPBIN"; then
4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4644 if test -n "$ac_ct_DUMPBIN"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4646 $as_echo "$ac_ct_DUMPBIN" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 test -n "$ac_ct_DUMPBIN" && break
4656 if test "x$ac_ct_DUMPBIN" = x; then
4659 case $cross_compiling:$ac_tool_warned in
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663 ac_tool_warned=yes ;;
4665 DUMPBIN=$ac_ct_DUMPBIN
4669 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4671 DUMPBIN="$DUMPBIN -symbols"
4679 if test "$DUMPBIN" != ":"; then
4683 test -z "$NM" && NM=nm
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4691 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4692 if ${lt_cv_nm_interface+:} false; then :
4693 $as_echo_n "(cached) " >&6
4695 lt_cv_nm_interface="BSD nm"
4696 echo "int some_variable = 0;" > conftest.$ac_ext
4697 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4698 (eval "$ac_compile" 2>conftest.err)
4699 cat conftest.err >&5
4700 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4701 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4702 cat conftest.err >&5
4703 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4704 cat conftest.out >&5
4705 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4706 lt_cv_nm_interface="MS dumpbin"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4711 $as_echo "$lt_cv_nm_interface" >&6; }
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4714 $as_echo_n "checking whether ln -s works... " >&6; }
4716 if test "$LN_S" = "ln -s"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718 $as_echo "yes" >&6; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4721 $as_echo "no, using $LN_S" >&6; }
4724 # find the maximum length of command line arguments
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4726 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4727 if ${lt_cv_sys_max_cmd_len+:} false; then :
4728 $as_echo_n "(cached) " >&6
4735 # On DJGPP, this test can blow up pretty badly due to problems in libc
4736 # (any single argument exceeding 2000 bytes causes a buffer overrun
4737 # during glob expansion). Even if it were fixed, the result of this
4738 # check would be larger than it should be.
4739 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4743 # Under GNU Hurd, this test is not required because there is
4744 # no limit to the length of command line arguments.
4745 # Libtool will interpret -1 as no limit whatsoever
4746 lt_cv_sys_max_cmd_len=-1;
4749 cygwin* | mingw* | cegcc*)
4750 # On Win9x/ME, this test blows up -- it succeeds, but takes
4751 # about 5 minutes as the teststring grows exponentially.
4752 # Worse, since 9x/ME are not pre-emptively multitasking,
4753 # you end up with a "frozen" computer, even though with patience
4754 # the test eventually succeeds (with a max line length of 256k).
4755 # Instead, let's just punt: use the minimum linelength reported by
4756 # all of the supported platforms: 8192 (on NT/2K/XP).
4757 lt_cv_sys_max_cmd_len=8192;
4761 # On MiNT this can take a long time and run out of memory.
4762 lt_cv_sys_max_cmd_len=8192;
4766 # On AmigaOS with pdksh, this test takes hours, literally.
4767 # So we just punt and use a minimum line length of 8192.
4768 lt_cv_sys_max_cmd_len=8192;
4771 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4772 # This has been around since 386BSD, at least. Likely further.
4773 if test -x /sbin/sysctl; then
4774 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4775 elif test -x /usr/sbin/sysctl; then
4776 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4778 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4780 # And add a safety zone
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4786 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4787 lt_cv_sys_max_cmd_len=196608
4791 # The test takes a long time on OS/2.
4792 lt_cv_sys_max_cmd_len=8192
4796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4798 # nice to cause kernel panics so lets avoid the loop below.
4799 # First set a reasonable default.
4800 lt_cv_sys_max_cmd_len=16384
4802 if test -x /sbin/sysconfig; then
4803 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4809 lt_cv_sys_max_cmd_len=102400
4811 sysv5* | sco5v6* | sysv4.2uw2*)
4812 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4813 if test -n "$kargmax"; then
4814 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4816 lt_cv_sys_max_cmd_len=32768
4820 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4821 if test -n "$lt_cv_sys_max_cmd_len" && \
4822 test undefined != "$lt_cv_sys_max_cmd_len"; then
4823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4824 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4826 # Make teststring a little bigger before we do anything with it.
4827 # a 1K string should be a reasonable start.
4828 for i in 1 2 3 4 5 6 7 8 ; do
4829 teststring=$teststring$teststring
4831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4832 # If test is not a shell built-in, we'll probably end up computing a
4833 # maximum length that is only half of the actual maximum length, but
4835 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4836 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4837 test $i != 17 # 1/2 MB should be enough
4840 teststring=$teststring$teststring
4842 # Only check the string length outside the loop.
4843 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4845 # Add a significant safety factor because C++ compilers can tack on
4846 # massive amounts of additional arguments before passing them to the
4847 # linker. It appears as though 1/2 is a usable value.
4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4855 if test -n $lt_cv_sys_max_cmd_len ; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4857 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4860 $as_echo "none" >&6; }
4862 max_cmd_len=$lt_cv_sys_max_cmd_len
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4874 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4875 # Try some XSI features
4878 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4880 && eval 'test $(( 1 + 1 )) -eq 2 \
4881 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4884 $as_echo "$xsi_shell" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4888 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4890 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4892 && lt_shell_append=yes
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4894 $as_echo "$lt_shell_append" >&6; }
4897 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4907 # test EBCDIC or ASCII
4908 case `echo X|tr X '\101'` in
4909 A) # ASCII based system
4910 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4911 lt_SP2NL='tr \040 \012'
4912 lt_NL2SP='tr \015\012 \040\040'
4914 *) # EBCDIC based system
4915 lt_SP2NL='tr \100 \n'
4916 lt_NL2SP='tr \r\n \100\100'
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4929 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4930 if ${lt_cv_to_host_file_cmd+:} false; then :
4931 $as_echo_n "(cached) " >&6
4936 *-*-mingw* ) # actually msys
4937 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4940 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4942 * ) # otherwise, assume *nix
4943 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4949 *-*-mingw* ) # actually msys
4950 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4953 lt_cv_to_host_file_cmd=func_convert_file_noop
4955 * ) # otherwise, assume *nix
4956 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4960 * ) # unhandled hosts (and "normal" native builds)
4961 lt_cv_to_host_file_cmd=func_convert_file_noop
4967 to_host_file_cmd=$lt_cv_to_host_file_cmd
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4969 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4976 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4977 if ${lt_cv_to_tool_file_cmd+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 #assume ordinary cross tools, or native build.
4981 lt_cv_to_tool_file_cmd=func_convert_file_noop
4985 *-*-mingw* ) # actually msys
4986 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4994 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4996 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5003 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5004 if ${lt_cv_ld_reload_flag+:} false; then :
5005 $as_echo_n "(cached) " >&6
5007 lt_cv_ld_reload_flag='-r'
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5010 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5011 reload_flag=$lt_cv_ld_reload_flag
5012 case $reload_flag in
5014 *) reload_flag=" $reload_flag" ;;
5016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5018 cygwin* | mingw* | pw32* | cegcc*)
5019 if test "$GCC" != yes; then
5024 if test "$GCC" = yes; then
5025 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5040 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5042 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if ${ac_cv_prog_OBJDUMP+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -n "$OBJDUMP"; then
5049 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 OBJDUMP=$ac_cv_prog_OBJDUMP
5069 if test -n "$OBJDUMP"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5071 $as_echo "$OBJDUMP" >&6; }
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5079 if test -z "$ac_cv_prog_OBJDUMP"; then
5080 ac_ct_OBJDUMP=$OBJDUMP
5081 # Extract the first word of "objdump", so it can be a program name with args.
5082 set dummy objdump; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 if test -n "$ac_ct_OBJDUMP"; then
5089 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5109 if test -n "$ac_ct_OBJDUMP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5111 $as_echo "$ac_ct_OBJDUMP" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5117 if test "x$ac_ct_OBJDUMP" = x; then
5120 case $cross_compiling:$ac_tool_warned in
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5124 ac_tool_warned=yes ;;
5126 OBJDUMP=$ac_ct_OBJDUMP
5129 OBJDUMP="$ac_cv_prog_OBJDUMP"
5132 test -z "$OBJDUMP" && OBJDUMP=objdump
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5143 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5144 if ${lt_cv_deplibs_check_method+:} false; then :
5145 $as_echo_n "(cached) " >&6
5147 lt_cv_file_magic_cmd='$MAGIC_CMD'
5148 lt_cv_file_magic_test_file=
5149 lt_cv_deplibs_check_method='unknown'
5150 # Need to set the preceding variable on all platforms that support
5151 # interlibrary dependencies.
5152 # 'none' -- dependencies not supported.
5153 # `unknown' -- same as none, but documents that we really don't know.
5154 # 'pass_all' -- all dependencies passed with no checks.
5155 # 'test_compile' -- check by making test program.
5156 # 'file_magic [[regex]]' -- check by looking for files in library path
5157 # which responds to the $file_magic_cmd with a given extended regex.
5158 # If you have `file' or equivalent on your system and you're not sure
5159 # whether `pass_all' will *always* work, you probably want this one.
5163 lt_cv_deplibs_check_method=pass_all
5167 lt_cv_deplibs_check_method=pass_all
5171 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5172 lt_cv_file_magic_cmd='/usr/bin/file -L'
5173 lt_cv_file_magic_test_file=/shlib/libc.so
5177 # func_win32_libid is a shell function defined in ltmain.sh
5178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5179 lt_cv_file_magic_cmd='func_win32_libid'
5183 # Base MSYS/MinGW do not provide the 'file' command needed by
5184 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5185 # unless we find 'file', for example because we are cross-compiling.
5186 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5187 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5191 # Keep this pattern in sync with the one in func_win32_libid.
5192 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5193 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 # use the weaker test based on 'objdump'. See mingw*.
5199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5200 lt_cv_file_magic_cmd='$OBJDUMP -f'
5203 darwin* | rhapsody*)
5204 lt_cv_deplibs_check_method=pass_all
5207 freebsd* | dragonfly*)
5208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5211 # Not sure whether the presence of OpenBSD here was a mistake.
5212 # Let's accept both of them until this is cleared up.
5213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5214 lt_cv_file_magic_cmd=/usr/bin/file
5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5219 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_deplibs_check_method=pass_all
5227 hpux10.20* | hpux11*)
5228 lt_cv_file_magic_cmd=/usr/bin/file
5231 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5232 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5235 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]'
5236 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5240 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5246 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5250 irix5* | irix6* | nonstopux*)
5252 *-32|*"-32 ") libmagic=32-bit;;
5253 *-n32|*"-n32 ") libmagic=N32;;
5254 *-64|*"-64 ") libmagic=64-bit;;
5255 *) libmagic=never-match;;
5257 lt_cv_deplibs_check_method=pass_all
5260 # This must be glibc/ELF.
5261 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5262 lt_cv_deplibs_check_method=pass_all
5265 netbsd* | netbsdelf*-gnu)
5266 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5275 lt_cv_file_magic_cmd=/usr/bin/file
5276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 lt_cv_deplibs_check_method=pass_all
5284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 osf3* | osf4* | osf5*)
5292 lt_cv_deplibs_check_method=pass_all
5296 lt_cv_deplibs_check_method=pass_all
5300 lt_cv_deplibs_check_method=pass_all
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5304 lt_cv_deplibs_check_method=pass_all
5308 case $host_vendor in
5310 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]'
5311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5314 lt_cv_deplibs_check_method=pass_all
5317 lt_cv_file_magic_cmd='/bin/file'
5318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5321 lt_cv_file_magic_cmd='/bin/file'
5322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5323 lt_cv_file_magic_test_file=/lib/libc.so
5326 lt_cv_deplibs_check_method=pass_all
5329 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5341 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5345 if test "$build" = "$host"; then
5348 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5351 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5357 file_magic_cmd=$lt_cv_file_magic_cmd
5358 deplibs_check_method=$lt_cv_deplibs_check_method
5359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5382 if test -n "$ac_tool_prefix"; then
5383 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5384 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_DLLTOOL+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$DLLTOOL"; then
5391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 DLLTOOL=$ac_cv_prog_DLLTOOL
5411 if test -n "$DLLTOOL"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5413 $as_echo "$DLLTOOL" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5421 if test -z "$ac_cv_prog_DLLTOOL"; then
5422 ac_ct_DLLTOOL=$DLLTOOL
5423 # Extract the first word of "dlltool", so it can be a program name with args.
5424 set dummy dlltool; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 if test -n "$ac_ct_DLLTOOL"; then
5431 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5451 if test -n "$ac_ct_DLLTOOL"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5453 $as_echo "$ac_ct_DLLTOOL" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5459 if test "x$ac_ct_DLLTOOL" = x; then
5462 case $cross_compiling:$ac_tool_warned in
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5468 DLLTOOL=$ac_ct_DLLTOOL
5471 DLLTOOL="$ac_cv_prog_DLLTOOL"
5474 test -z "$DLLTOOL" && DLLTOOL=dlltool
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5486 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5487 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 lt_cv_sharedlib_from_linklib_cmd='unknown'
5493 cygwin* | mingw* | pw32* | cegcc*)
5494 # two different shell functions defined in ltmain.sh
5495 # decide which to use based on capabilities of $DLLTOOL
5496 case `$DLLTOOL --help 2>&1` in
5497 *--identify-strict*)
5498 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5501 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5506 # fallback: assume linklib IS sharedlib
5507 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5513 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5514 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5515 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5524 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_AR+:} false; then :
5532 $as_echo_n "(cached) " >&6
5534 if test -n "$AR"; then
5535 ac_cv_prog_AR="$AR" # Let the user override the test.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 if test -n "$AR"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5557 $as_echo "$AR" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5564 test -n "$AR" && break
5567 if test -z "$AR"; then
5571 # Extract the first word of "$ac_prog", so it can be a program name with args.
5572 set dummy $ac_prog; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5576 $as_echo_n "(cached) " >&6
5578 if test -n "$ac_ct_AR"; then
5579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_AR="$ac_prog"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5599 if test -n "$ac_ct_AR"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5601 $as_echo "$ac_ct_AR" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5608 test -n "$ac_ct_AR" && break
5611 if test "x$ac_ct_AR" = x; then
5614 case $cross_compiling:$ac_tool_warned in
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5638 $as_echo_n "checking for archiver @FILE support... " >&6; }
5639 if ${lt_cv_ar_at_file+:} false; then :
5640 $as_echo_n "(cached) " >&6
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 echo conftest.$ac_objext > conftest.lst
5656 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5658 (eval $lt_ar_try) 2>&5
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662 if test "$ac_status" -eq 0; then
5663 # Ensure the archiver fails upon bogus file names.
5664 rm -f conftest.$ac_objext libconftest.a
5665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5666 (eval $lt_ar_try) 2>&5
5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669 test $ac_status = 0; }
5670 if test "$ac_status" -ne 0; then
5674 rm -f conftest.* libconftest.a
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5681 $as_echo "$lt_cv_ar_at_file" >&6; }
5683 if test "x$lt_cv_ar_at_file" = xno; then
5686 archiver_list_spec=$lt_cv_ar_at_file
5695 if test -n "$ac_tool_prefix"; then
5696 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5697 set dummy ${ac_tool_prefix}strip; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_STRIP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -n "$STRIP"; then
5704 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 STRIP=$ac_cv_prog_STRIP
5724 if test -n "$STRIP"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5726 $as_echo "$STRIP" >&6; }
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5734 if test -z "$ac_cv_prog_STRIP"; then
5736 # Extract the first word of "strip", so it can be a program name with args.
5737 set dummy strip; ac_word=$2
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 $as_echo_n "checking for $ac_word... " >&6; }
5740 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5741 $as_echo_n "(cached) " >&6
5743 if test -n "$ac_ct_STRIP"; then
5744 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_ac_ct_STRIP="strip"
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5764 if test -n "$ac_ct_STRIP"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5766 $as_echo "$ac_ct_STRIP" >&6; }
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 $as_echo "no" >&6; }
5772 if test "x$ac_ct_STRIP" = x; then
5775 case $cross_compiling:$ac_tool_warned in
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5784 STRIP="$ac_cv_prog_STRIP"
5787 test -z "$STRIP" && STRIP=:
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if ${ac_cv_prog_RANLIB+:} false; then :
5800 $as_echo_n "(cached) " >&6
5802 if test -n "$RANLIB"; then
5803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 RANLIB=$ac_cv_prog_RANLIB
5823 if test -n "$RANLIB"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5825 $as_echo "$RANLIB" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 if test -z "$ac_cv_prog_RANLIB"; then
5834 ac_ct_RANLIB=$RANLIB
5835 # Extract the first word of "ranlib", so it can be a program name with args.
5836 set dummy ranlib; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5840 $as_echo_n "(cached) " >&6
5842 if test -n "$ac_ct_RANLIB"; then
5843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_ac_ct_RANLIB="ranlib"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5863 if test -n "$ac_ct_RANLIB"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5865 $as_echo "$ac_ct_RANLIB" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5871 if test "x$ac_ct_RANLIB" = x; then
5874 case $cross_compiling:$ac_tool_warned in
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5880 RANLIB=$ac_ct_RANLIB
5883 RANLIB="$ac_cv_prog_RANLIB"
5886 test -z "$RANLIB" && RANLIB=:
5893 # Determine commands to create old-style static archives.
5894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5895 old_postinstall_cmds='chmod 644 $oldlib'
5896 old_postuninstall_cmds=
5898 if test -n "$RANLIB"; then
5901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5907 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5912 lock_old_archive_extraction=yes ;;
5914 lock_old_archive_extraction=no ;;
5955 # If no C compiler was specified, use CC.
5958 # If no C compiler flags were specified, use CFLAGS.
5959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961 # Allow CC to be a program name with arguments.
5965 # Check for command to grab the raw symbol name followed by C symbol from nm.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5967 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5968 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5969 $as_echo_n "(cached) " >&6
5972 # These are sane defaults that work on at least a few old systems.
5973 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5975 # Character class describing NM global symbol codes.
5976 symcode='[BCDEGRST]'
5978 # Regexp to match symbols that can be accessed directly from C.
5979 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5981 # Define system-specific variables.
5986 cygwin* | mingw* | pw32* | cegcc*)
5987 symcode='[ABCDGISTW]'
5990 if test "$host_cpu" = ia64; then
5991 symcode='[ABCDEGRST]'
5995 symcode='[BCDEGRST]'
5998 symcode='[BCDEGQRST]'
6009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6017 # If we're using GNU nm, then use its standard symbol codes.
6018 case `$NM -V 2>&1` in
6019 *GNU* | *'with BFD'*)
6020 symcode='[ABCDGIRSTW]' ;;
6023 # Transform an extracted symbol line into a proper C declaration.
6024 # Some systems (esp. on ia64) link data and code symbols differently,
6025 # so use this general approach.
6026 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6028 # Transform an extracted symbol line into symbol name and symbol address
6029 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6030 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6032 # Handle CRLF in mingw tool chain
6036 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6040 # Try without a prefix underscore, then with it.
6041 for ac_symprfx in "" "_"; do
6043 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6044 symxfrm="\\1 $ac_symprfx\\2 \\2"
6046 # Write the raw and C identifiers.
6047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6048 # Fake it for dumpbin and say T for any non-static function
6049 # and D for any global variable.
6050 # Also find C++ and __fastcall symbols from MSVC++,
6051 # which start with @ or ?.
6052 lt_cv_sys_global_symbol_pipe="$AWK '"\
6053 " {last_section=section; section=\$ 3};"\
6054 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6055 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6056 " \$ 0!~/External *\|/{next};"\
6057 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6058 " {if(hide[section]) next};"\
6059 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6060 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6061 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6062 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6063 " ' prfx=^$ac_symprfx"
6065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6067 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6069 # Check to see that the pipe works correctly.
6073 cat > conftest.$ac_ext <<_LT_EOF
6078 void nm_test_func(void);
6079 void nm_test_func(void){}
6083 int main(){nm_test_var='a';nm_test_func();return(0);}
6086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6087 (eval $ac_compile) 2>&5
6089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090 test $ac_status = 0; }; then
6091 # Now try to grab the symbols.
6093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6094 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6097 test $ac_status = 0; } && test -s "$nlist"; then
6098 # Try sorting and uniquifying the output.
6099 if sort "$nlist" | uniq > "$nlist"T; then
6100 mv -f "$nlist"T "$nlist"
6105 # Make sure that we snagged all the symbols we need.
6106 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6107 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6108 cat <<_LT_EOF > conftest.$ac_ext
6109 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6110 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6111 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6112 relocations are performed -- see ld's documentation on pseudo-relocs. */
6113 # define LT_DLSYM_CONST
6114 #elif defined(__osf__)
6115 /* This system does not cope well with relocations in const data. */
6116 # define LT_DLSYM_CONST
6118 # define LT_DLSYM_CONST const
6126 # Now generate the symbol file.
6127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6129 cat <<_LT_EOF >> conftest.$ac_ext
6131 /* The mapping between symbol names and symbols. */
6132 LT_DLSYM_CONST struct {
6136 lt__PROGRAM__LTX_preloaded_symbols[] =
6138 { "@PROGRAM@", (void *) 0 },
6140 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6141 cat <<\_LT_EOF >> conftest.$ac_ext
6145 /* This works around a problem in FreeBSD linker */
6146 #ifdef FREEBSD_WORKAROUND
6147 static const void *lt_preloaded_setup() {
6148 return lt__PROGRAM__LTX_preloaded_symbols;
6156 # Now try linking the two files.
6157 mv conftest.$ac_objext conftstm.$ac_objext
6158 lt_globsym_save_LIBS=$LIBS
6159 lt_globsym_save_CFLAGS=$CFLAGS
6160 LIBS="conftstm.$ac_objext"
6161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6163 (eval $ac_link) 2>&5
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 LIBS=$lt_globsym_save_LIBS
6170 CFLAGS=$lt_globsym_save_CFLAGS
6172 echo "cannot find nm_test_func in $nlist" >&5
6175 echo "cannot find nm_test_var in $nlist" >&5
6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181 echo "$progname: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 rm -rf conftest* conftst*
6186 # Do not use the global_symbol_pipe unless it works.
6187 if test "$pipe_works" = yes; then
6190 lt_cv_sys_global_symbol_pipe=
6196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6197 lt_cv_sys_global_symbol_to_cdecl=
6199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6201 $as_echo "failed" >&6; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6204 $as_echo "ok" >&6; }
6207 # Response file support.
6208 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6209 nm_file_list_spec='@'
6210 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6211 nm_file_list_spec='@'
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6241 $as_echo_n "checking for sysroot... " >&6; }
6243 # Check whether --with-sysroot was given.
6244 if test "${with_sysroot+set}" = set; then :
6245 withval=$with_sysroot;
6252 case ${with_sysroot} in #(
6254 if test "$GCC" = yes; then
6255 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6259 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6265 $as_echo "${with_sysroot}" >&6; }
6266 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6271 $as_echo "${lt_sysroot:-no}" >&6; }
6277 # Check whether --enable-libtool-lock was given.
6278 if test "${enable_libtool_lock+set}" = set; then :
6279 enableval=$enable_libtool_lock;
6282 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6284 # Some flags need to be propagated to the compiler or linker for good
6288 # Find out which ABI we are using.
6289 echo 'int i;' > conftest.$ac_ext
6290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291 (eval $ac_compile) 2>&5
6293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294 test $ac_status = 0; }; then
6295 case `/usr/bin/file conftest.$ac_objext` in
6307 # Find out which ABI we are using.
6308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6310 (eval $ac_compile) 2>&5
6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313 test $ac_status = 0; }; then
6314 if test "$lt_cv_prog_gnu_ld" = yes; then
6315 case `/usr/bin/file conftest.$ac_objext` in
6317 LD="${LD-ld} -melf32bsmip"
6320 LD="${LD-ld} -melf32bmipn32"
6323 LD="${LD-ld} -melf64bmip"
6327 case `/usr/bin/file conftest.$ac_objext` in
6343 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6344 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6345 # Find out which ABI we are using.
6346 echo 'int i;' > conftest.$ac_ext
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6348 (eval $ac_compile) 2>&5
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; then
6352 case `/usr/bin/file conftest.o` in
6355 x86_64-*kfreebsd*-gnu)
6356 LD="${LD-ld} -m elf_i386_fbsd"
6359 case `/usr/bin/file conftest.o` in
6361 LD="${LD-ld} -m elf32_x86_64"
6364 LD="${LD-ld} -m elf_i386"
6369 LD="${LD-ld} -m elf32lppclinux"
6372 LD="${LD-ld} -m elf32ppclinux"
6375 LD="${LD-ld} -m elf_s390"
6378 LD="${LD-ld} -m elf32_sparc"
6384 x86_64-*kfreebsd*-gnu)
6385 LD="${LD-ld} -m elf_x86_64_fbsd"
6388 LD="${LD-ld} -m elf_x86_64"
6391 LD="${LD-ld} -m elf64lppc"
6394 LD="${LD-ld} -m elf64ppc"
6396 s390*-*linux*|s390*-*tpf*)
6397 LD="${LD-ld} -m elf64_s390"
6400 LD="${LD-ld} -m elf64_sparc"
6410 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6411 SAVE_CFLAGS="$CFLAGS"
6412 CFLAGS="$CFLAGS -belf"
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6414 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6415 if ${lt_cv_cc_needs_belf+:} false; then :
6416 $as_echo_n "(cached) " >&6
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6435 if ac_fn_c_try_link "$LINENO"; then :
6436 lt_cv_cc_needs_belf=yes
6438 lt_cv_cc_needs_belf=no
6440 rm -f core conftest.err conftest.$ac_objext \
6441 conftest$ac_exeext conftest.$ac_ext
6443 ac_cpp='$CPP $CPPFLAGS'
6444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6450 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6451 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6452 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6453 CFLAGS="$SAVE_CFLAGS"
6457 # Find out which ABI we are using.
6458 echo 'int i;' > conftest.$ac_ext
6459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6460 (eval $ac_compile) 2>&5
6462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6463 test $ac_status = 0; }; then
6464 case `/usr/bin/file conftest.o` in
6466 case $lt_cv_prog_gnu_ld in
6470 LD="${LD-ld} -m elf_x86_64"
6473 LD="${LD-ld} -m elf64_sparc"
6476 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6477 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6482 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6494 need_locks="$enable_libtool_lock"
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6498 set dummy ${ac_tool_prefix}mt; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$MANIFEST_TOOL"; then
6505 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6525 if test -n "$MANIFEST_TOOL"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6527 $as_echo "$MANIFEST_TOOL" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6535 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6536 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6537 # Extract the first word of "mt", so it can be a program name with args.
6538 set dummy mt; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6542 $as_echo_n "(cached) " >&6
6544 if test -n "$ac_ct_MANIFEST_TOOL"; then
6545 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6565 if test -n "$ac_ct_MANIFEST_TOOL"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6567 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6576 case $cross_compiling:$ac_tool_warned in
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned=yes ;;
6582 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6585 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6588 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6590 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6591 if ${lt_cv_path_mainfest_tool+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 lt_cv_path_mainfest_tool=no
6595 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6596 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6597 cat conftest.err >&5
6598 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6599 lt_cv_path_mainfest_tool=yes
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6604 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6605 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6615 rhapsody* | darwin*)
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6618 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6622 $as_echo_n "(cached) " >&6
6624 if test -n "$DSYMUTIL"; then
6625 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6645 if test -n "$DSYMUTIL"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6647 $as_echo "$DSYMUTIL" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6655 if test -z "$ac_cv_prog_DSYMUTIL"; then
6656 ac_ct_DSYMUTIL=$DSYMUTIL
6657 # Extract the first word of "dsymutil", so it can be a program name with args.
6658 set dummy dsymutil; ac_word=$2
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6660 $as_echo_n "checking for $ac_word... " >&6; }
6661 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6662 $as_echo_n "(cached) " >&6
6664 if test -n "$ac_ct_DSYMUTIL"; then
6665 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6685 if test -n "$ac_ct_DSYMUTIL"; then
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6687 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6690 $as_echo "no" >&6; }
6693 if test "x$ac_ct_DSYMUTIL" = x; then
6696 case $cross_compiling:$ac_tool_warned in
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700 ac_tool_warned=yes ;;
6702 DSYMUTIL=$ac_ct_DSYMUTIL
6705 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$NMEDIT"; then
6717 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 NMEDIT=$ac_cv_prog_NMEDIT
6737 if test -n "$NMEDIT"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6739 $as_echo "$NMEDIT" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6747 if test -z "$ac_cv_prog_NMEDIT"; then
6748 ac_ct_NMEDIT=$NMEDIT
6749 # Extract the first word of "nmedit", so it can be a program name with args.
6750 set dummy nmedit; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if test -n "$ac_ct_NMEDIT"; then
6757 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6777 if test -n "$ac_ct_NMEDIT"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6779 $as_echo "$ac_ct_NMEDIT" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6785 if test "x$ac_ct_NMEDIT" = x; then
6788 case $cross_compiling:$ac_tool_warned in
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6794 NMEDIT=$ac_ct_NMEDIT
6797 NMEDIT="$ac_cv_prog_NMEDIT"
6800 if test -n "$ac_tool_prefix"; then
6801 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6802 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_LIPO+:} false; then :
6806 $as_echo_n "(cached) " >&6
6808 if test -n "$LIPO"; then
6809 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 LIPO=$ac_cv_prog_LIPO
6829 if test -n "$LIPO"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6831 $as_echo "$LIPO" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6839 if test -z "$ac_cv_prog_LIPO"; then
6841 # Extract the first word of "lipo", so it can be a program name with args.
6842 set dummy lipo; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$ac_ct_LIPO"; then
6849 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_ac_ct_LIPO="lipo"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6869 if test -n "$ac_ct_LIPO"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6871 $as_echo "$ac_ct_LIPO" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6877 if test "x$ac_ct_LIPO" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6889 LIPO="$ac_cv_prog_LIPO"
6892 if test -n "$ac_tool_prefix"; then
6893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}otool; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_OTOOL+:} false; then :
6898 $as_echo_n "(cached) " >&6
6900 if test -n "$OTOOL"; then
6901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 OTOOL=$ac_cv_prog_OTOOL
6921 if test -n "$OTOOL"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6923 $as_echo "$OTOOL" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6931 if test -z "$ac_cv_prog_OTOOL"; then
6933 # Extract the first word of "otool", so it can be a program name with args.
6934 set dummy otool; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6938 $as_echo_n "(cached) " >&6
6940 if test -n "$ac_ct_OTOOL"; then
6941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 test -z "$as_dir" && as_dir=.
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950 ac_cv_prog_ac_ct_OTOOL="otool"
6951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6961 if test -n "$ac_ct_OTOOL"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6963 $as_echo "$ac_ct_OTOOL" >&6; }
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6969 if test "x$ac_ct_OTOOL" = x; then
6972 case $cross_compiling:$ac_tool_warned in
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6981 OTOOL="$ac_cv_prog_OTOOL"
6984 if test -n "$ac_tool_prefix"; then
6985 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6986 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_OTOOL64+:} false; then :
6990 $as_echo_n "(cached) " >&6
6992 if test -n "$OTOOL64"; then
6993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 OTOOL64=$ac_cv_prog_OTOOL64
7013 if test -n "$OTOOL64"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7015 $as_echo "$OTOOL64" >&6; }
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7023 if test -z "$ac_cv_prog_OTOOL64"; then
7024 ac_ct_OTOOL64=$OTOOL64
7025 # Extract the first word of "otool64", so it can be a program name with args.
7026 set dummy otool64; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7030 $as_echo_n "(cached) " >&6
7032 if test -n "$ac_ct_OTOOL64"; then
7033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 test -z "$as_dir" && as_dir=.
7040 for ac_exec_ext in '' $ac_executable_extensions; do
7041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042 ac_cv_prog_ac_ct_OTOOL64="otool64"
7043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7053 if test -n "$ac_ct_OTOOL64"; then
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7055 $as_echo "$ac_ct_OTOOL64" >&6; }
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7061 if test "x$ac_ct_OTOOL64" = x; then
7064 case $cross_compiling:$ac_tool_warned in
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7068 ac_tool_warned=yes ;;
7070 OTOOL64=$ac_ct_OTOOL64
7073 OTOOL64="$ac_cv_prog_OTOOL64"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7103 $as_echo_n "checking for -single_module linker flag... " >&6; }
7104 if ${lt_cv_apple_cc_single_mod+:} false; then :
7105 $as_echo_n "(cached) " >&6
7107 lt_cv_apple_cc_single_mod=no
7108 if test -z "${LT_MULTI_MODULE}"; then
7109 # By default we will add the -single_module flag. You can override
7110 # by either setting the environment variable LT_MULTI_MODULE
7111 # non-empty at configure time, or by adding -multi_module to the
7113 rm -rf libconftest.dylib*
7114 echo "int foo(void){return 1;}" > conftest.c
7115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7116 -dynamiclib -Wl,-single_module conftest.c" >&5
7117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7120 # If there is a non-empty error log, and "single_module"
7121 # appears in it, assume the flag caused a linker warning
7122 if test -s conftest.err && $GREP single_module conftest.err; then
7123 cat conftest.err >&5
7124 # Otherwise, if the output was created with a 0 exit code from
7125 # the compiler, it worked.
7126 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7127 lt_cv_apple_cc_single_mod=yes
7129 cat conftest.err >&5
7131 rm -rf libconftest.dylib*
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7136 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7139 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7140 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 lt_cv_ld_exported_symbols_list=no
7144 save_LDFLAGS=$LDFLAGS
7145 echo "_main" > conftest.sym
7146 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7158 if ac_fn_c_try_link "$LINENO"; then :
7159 lt_cv_ld_exported_symbols_list=yes
7161 lt_cv_ld_exported_symbols_list=no
7163 rm -f core conftest.err conftest.$ac_objext \
7164 conftest$ac_exeext conftest.$ac_ext
7165 LDFLAGS="$save_LDFLAGS"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7169 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7172 $as_echo_n "checking for -force_load linker flag... " >&6; }
7173 if ${lt_cv_ld_force_load+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 lt_cv_ld_force_load=no
7177 cat > conftest.c << _LT_EOF
7178 int forced_loaded() { return 2;}
7180 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7181 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7182 echo "$AR cru libconftest.a conftest.o" >&5
7183 $AR cru libconftest.a conftest.o 2>&5
7184 echo "$RANLIB libconftest.a" >&5
7185 $RANLIB libconftest.a 2>&5
7186 cat > conftest.c << _LT_EOF
7187 int main() { return 0;}
7189 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7190 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7192 if test -s conftest.err && $GREP force_load conftest.err; then
7193 cat conftest.err >&5
7194 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7195 lt_cv_ld_force_load=yes
7197 cat conftest.err >&5
7199 rm -f conftest.err libconftest.a conftest conftest.c
7200 rm -rf conftest.dSYM
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7204 $as_echo "$lt_cv_ld_force_load" >&6; }
7206 rhapsody* | darwin1.[012])
7207 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7210 darwin*) # darwin 5.x on
7211 # if running on 10.5 or later, the deployment target defaults
7212 # to the OS version, if on x86, and 10.4, the deployment
7213 # target defaults to 10.4. Don't you love it?
7214 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7215 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7216 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7218 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7220 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7224 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7225 _lt_dar_single_mod='$single_module'
7227 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7228 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7230 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7232 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7233 _lt_dsymutil='~$DSYMUTIL $lib || :'
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7247 # On Suns, sometimes $CPP names a directory.
7248 if test -n "$CPP" && test -d "$CPP"; then
7251 if test -z "$CPP"; then
7252 if ${ac_cv_prog_CPP+:} false; then :
7253 $as_echo_n "(cached) " >&6
7255 # Double quotes because CPP needs to be expanded
7256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7259 for ac_c_preproc_warn_flag in '' yes
7261 # Use a header file that comes with gcc, so configuring glibc
7262 # with a fresh cross-compiler works.
7263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 # <limits.h> exists even on freestanding compilers.
7265 # On the NeXT, cc -E runs the code through the compiler's parser,
7266 # not just through cpp. "Syntax error" is here to catch this case.
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7270 # include <limits.h>
7272 # include <assert.h>
7276 if ac_fn_c_try_cpp "$LINENO"; then :
7279 # Broken: fails on valid input.
7282 rm -f conftest.err conftest.i conftest.$ac_ext
7284 # OK, works on sane cases. Now check whether nonexistent headers
7285 # can be detected and how.
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <ac_nonexistent.h>
7290 if ac_fn_c_try_cpp "$LINENO"; then :
7291 # Broken: success on invalid input.
7294 # Passes both tests.
7298 rm -f conftest.err conftest.i conftest.$ac_ext
7301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7302 rm -f conftest.i conftest.err conftest.$ac_ext
7303 if $ac_preproc_ok; then :
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7316 $as_echo "$CPP" >&6; }
7318 for ac_c_preproc_warn_flag in '' yes
7320 # Use a header file that comes with gcc, so configuring glibc
7321 # with a fresh cross-compiler works.
7322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323 # <limits.h> exists even on freestanding compilers.
7324 # On the NeXT, cc -E runs the code through the compiler's parser,
7325 # not just through cpp. "Syntax error" is here to catch this case.
7326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7327 /* end confdefs.h. */
7329 # include <limits.h>
7331 # include <assert.h>
7335 if ac_fn_c_try_cpp "$LINENO"; then :
7338 # Broken: fails on valid input.
7341 rm -f conftest.err conftest.i conftest.$ac_ext
7343 # OK, works on sane cases. Now check whether nonexistent headers
7344 # can be detected and how.
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7347 #include <ac_nonexistent.h>
7349 if ac_fn_c_try_cpp "$LINENO"; then :
7350 # Broken: success on invalid input.
7353 # Passes both tests.
7357 rm -f conftest.err conftest.i conftest.$ac_ext
7360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7361 rm -f conftest.i conftest.err conftest.$ac_ext
7362 if $ac_preproc_ok; then :
7365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7368 See \`config.log' for more details" "$LINENO" 5; }
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7379 $as_echo_n "checking for ANSI C header files... " >&6; }
7380 if ${ac_cv_header_stdc+:} false; then :
7381 $as_echo_n "(cached) " >&6
7383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h. */
7398 if ac_fn_c_try_compile "$LINENO"; then :
7399 ac_cv_header_stdc=yes
7401 ac_cv_header_stdc=no
7403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 if test $ac_cv_header_stdc = yes; then
7406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7413 $EGREP "memchr" >/dev/null 2>&1; then :
7416 ac_cv_header_stdc=no
7422 if test $ac_cv_header_stdc = yes; then
7423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7430 $EGREP "free" >/dev/null 2>&1; then :
7433 ac_cv_header_stdc=no
7439 if test $ac_cv_header_stdc = yes; then
7440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7441 if test "$cross_compiling" = yes; then :
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7448 #if ((' ' & 0x0FF) == 0x020)
7449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7452 # define ISLOWER(c) \
7453 (('a' <= (c) && (c) <= 'i') \
7454 || ('j' <= (c) && (c) <= 'r') \
7455 || ('s' <= (c) && (c) <= 'z'))
7456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7464 for (i = 0; i < 256; i++)
7465 if (XOR (islower (i), ISLOWER (i))
7466 || toupper (i) != TOUPPER (i))
7471 if ac_fn_c_try_run "$LINENO"; then :
7474 ac_cv_header_stdc=no
7476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7477 conftest.$ac_objext conftest.beam conftest.$ac_ext
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7483 $as_echo "$ac_cv_header_stdc" >&6; }
7484 if test $ac_cv_header_stdc = yes; then
7486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7492 inttypes.h stdint.h unistd.h
7494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7498 cat >>confdefs.h <<_ACEOF
7499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 for ac_header in dlfcn.h
7509 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7511 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DLFCN_H 1
7534 # Check whether --enable-shared was given.
7535 if test "${enable_shared+set}" = set; then :
7536 enableval=$enable_shared; p=${PACKAGE-default}
7538 yes) enable_shared=yes ;;
7539 no) enable_shared=no ;;
7542 # Look at the argument we got. We use all the common list separators.
7543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7544 for pkg in $enableval; do
7546 if test "X$pkg" = "X$p"; then
7565 # Check whether --enable-static was given.
7566 if test "${enable_static+set}" = set; then :
7567 enableval=$enable_static; p=${PACKAGE-default}
7569 yes) enable_static=yes ;;
7570 no) enable_static=no ;;
7573 # Look at the argument we got. We use all the common list separators.
7574 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7575 for pkg in $enableval; do
7577 if test "X$pkg" = "X$p"; then
7597 # Check whether --with-pic was given.
7598 if test "${with_pic+set}" = set; then :
7599 withval=$with_pic; lt_p=${PACKAGE-default}
7601 yes|no) pic_mode=$withval ;;
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for lt_pkg in $withval; do
7608 if test "X$lt_pkg" = "X$lt_p"; then
7620 test -z "$pic_mode" && pic_mode=default
7628 # Check whether --enable-fast-install was given.
7629 if test "${enable_fast_install+set}" = set; then :
7630 enableval=$enable_fast_install; p=${PACKAGE-default}
7632 yes) enable_fast_install=yes ;;
7633 no) enable_fast_install=no ;;
7635 enable_fast_install=no
7636 # Look at the argument we got. We use all the common list separators.
7637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638 for pkg in $enableval; do
7640 if test "X$pkg" = "X$p"; then
7641 enable_fast_install=yes
7648 enable_fast_install=yes
7661 # This can be used to rebuild libtool when needed
7662 LIBTOOL_DEPS="$ltmain"
7664 # Always use our own libtool.
7665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7696 test -z "$LN_S" && LN_S="ln -s"
7711 if test -n "${ZSH_VERSION+set}" ; then
7712 setopt NO_GLOB_SUBST
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7716 $as_echo_n "checking for objdir... " >&6; }
7717 if ${lt_cv_objdir+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 rm -f .libs 2>/dev/null
7721 mkdir .libs 2>/dev/null
7722 if test -d .libs; then
7725 # MS-DOS does not allow filenames that begin with a dot.
7728 rmdir .libs 2>/dev/null
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7731 $as_echo "$lt_cv_objdir" >&6; }
7732 objdir=$lt_cv_objdir
7738 cat >>confdefs.h <<_ACEOF
7739 #define LT_OBJDIR "$lt_cv_objdir/"
7747 # AIX sometimes has problems with the GCC collect2 program. For some
7748 # reason, if we set the COLLECT_NAMES environment variable, the problems
7749 # vanish in a puff of smoke.
7750 if test "X${COLLECT_NAMES+set}" != Xset; then
7752 export COLLECT_NAMES
7759 can_build_shared=yes
7761 # All known linkers require a `.a' archive for static linking (except MSVC,
7762 # which needs '.lib').
7765 with_gnu_ld="$lt_cv_prog_gnu_ld"
7768 old_CFLAGS="$CFLAGS"
7770 # Set sane defaults for various variables
7771 test -z "$CC" && CC=cc
7772 test -z "$LTCC" && LTCC=$CC
7773 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7774 test -z "$LD" && LD=ld
7775 test -z "$ac_objext" && ac_objext=o
7777 for cc_temp in $compiler""; do
7779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7785 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7788 # Only perform the check for file, if the check method requires it
7789 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7790 case $deplibs_check_method in
7792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7794 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7795 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7796 $as_echo_n "(cached) " >&6
7800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7803 lt_save_MAGIC_CMD="$MAGIC_CMD"
7804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7805 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7806 for ac_dir in $ac_dummy; do
7808 test -z "$ac_dir" && ac_dir=.
7809 if test -f $ac_dir/${ac_tool_prefix}file; then
7810 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7811 if test -n "$file_magic_test_file"; then
7812 case $deplibs_check_method in
7814 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7817 $EGREP "$file_magic_regex" > /dev/null; then
7822 *** Warning: the command libtool uses to detect shared libraries,
7823 *** $file_magic_cmd, produces output that libtool cannot recognize.
7824 *** The result is that libtool may fail to recognize shared libraries
7825 *** as such. This will affect the creation of libtool libraries that
7826 *** depend on shared libraries, but programs linked with such libtool
7827 *** libraries will work regardless of this problem. Nevertheless, you
7828 *** may want to report the problem to your system manager and/or to
7829 *** bug-libtool@gnu.org
7839 MAGIC_CMD="$lt_save_MAGIC_CMD"
7844 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7845 if test -n "$MAGIC_CMD"; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7847 $as_echo "$MAGIC_CMD" >&6; }
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850 $as_echo "no" >&6; }
7857 if test -z "$lt_cv_path_MAGIC_CMD"; then
7858 if test -n "$ac_tool_prefix"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7860 $as_echo_n "checking for file... " >&6; }
7861 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7862 $as_echo_n "(cached) " >&6
7866 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7869 lt_save_MAGIC_CMD="$MAGIC_CMD"
7870 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7871 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7872 for ac_dir in $ac_dummy; do
7874 test -z "$ac_dir" && ac_dir=.
7875 if test -f $ac_dir/file; then
7876 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7877 if test -n "$file_magic_test_file"; then
7878 case $deplibs_check_method in
7880 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7881 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7882 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7883 $EGREP "$file_magic_regex" > /dev/null; then
7888 *** Warning: the command libtool uses to detect shared libraries,
7889 *** $file_magic_cmd, produces output that libtool cannot recognize.
7890 *** The result is that libtool may fail to recognize shared libraries
7891 *** as such. This will affect the creation of libtool libraries that
7892 *** depend on shared libraries, but programs linked with such libtool
7893 *** libraries will work regardless of this problem. Nevertheless, you
7894 *** may want to report the problem to your system manager and/or to
7895 *** bug-libtool@gnu.org
7905 MAGIC_CMD="$lt_save_MAGIC_CMD"
7910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7911 if test -n "$MAGIC_CMD"; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7913 $as_echo "$MAGIC_CMD" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7929 # Use C for the default configuration in the libtool script
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 # Source file extension for C test sources.
7942 # Object file extension for compiled C test sources.
7946 # Code to be used in simple compile tests
7947 lt_simple_compile_test_code="int some_variable = 0;"
7949 # Code to be used in simple link tests
7950 lt_simple_link_test_code='int main(){return(0);}'
7958 # If no C compiler was specified, use CC.
7961 # If no C compiler flags were specified, use CFLAGS.
7962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7964 # Allow CC to be a program name with arguments.
7967 # Save the default compiler, since it gets overwritten when the other
7968 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7969 compiler_DEFAULT=$CC
7971 # save warnings/boilerplate of simple test code
7972 ac_outfile=conftest.$ac_objext
7973 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7974 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975 _lt_compiler_boilerplate=`cat conftest.err`
7978 ac_outfile=conftest.$ac_objext
7979 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7980 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7981 _lt_linker_boilerplate=`cat conftest.err`
7986 ## There is no encapsulation within the following macros, do not change
7987 ## the running order or otherwise move them around unless you know exactly
7988 ## what you are doing...
7989 if test -n "$compiler"; then
7991 lt_prog_compiler_no_builtin_flag=
7993 if test "$GCC" = yes; then
7994 case $cc_basename in
7996 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7998 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8002 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8003 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8004 $as_echo_n "(cached) " >&6
8006 lt_cv_prog_compiler_rtti_exceptions=no
8007 ac_outfile=conftest.$ac_objext
8008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8009 lt_compiler_flag="-fno-rtti -fno-exceptions"
8010 # Insert the option either (1) after the last *FLAGS variable, or
8011 # (2) before a word containing "conftest.", or (3) at the end.
8012 # Note that $ac_compile itself does not contain backslashes and begins
8013 # with a dollar sign (not a hyphen), so the echo should work correctly.
8014 # The option is referenced via a variable to avoid confusing sed.
8015 lt_compile=`echo "$ac_compile" | $SED \
8016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8018 -e 's:$: $lt_compiler_flag:'`
8019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8020 (eval "$lt_compile" 2>conftest.err)
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 if (exit $ac_status) && test -s "$ac_outfile"; then
8025 # The compiler can only warn and ignore the option if not recognized
8026 # So say no if there are warnings other than the usual output.
8027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8030 lt_cv_prog_compiler_rtti_exceptions=yes
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8037 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8039 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8040 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8052 lt_prog_compiler_wl=
8053 lt_prog_compiler_pic=
8054 lt_prog_compiler_static=
8057 if test "$GCC" = yes; then
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_static='-static'
8063 # All AIX code is PIC.
8064 if test "$host_cpu" = ia64; then
8065 # AIX 5 now supports IA64 processor
8066 lt_prog_compiler_static='-Bstatic'
8073 # see comment about AmigaOS4 .so support
8074 lt_prog_compiler_pic='-fPIC'
8077 # FIXME: we need at least 68020 code to build shared libraries, but
8078 # adding the `-m68020' flag to GCC prevents building anything better,
8080 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8086 # PIC is the default for these OSes.
8089 mingw* | cygwin* | pw32* | os2* | cegcc*)
8090 # This hack is so that the source file can tell whether it is being
8091 # built for inclusion in a dll (and should export symbols for example).
8092 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8093 # (--disable-auto-import) libraries
8094 lt_prog_compiler_pic='-DDLL_EXPORT'
8097 darwin* | rhapsody*)
8098 # PIC is the default on this platform
8099 # Common symbols not allowed in MH_DYLIB files
8100 lt_prog_compiler_pic='-fno-common'
8104 # PIC is the default for Haiku.
8105 # The "-static" flag exists, but is broken.
8106 lt_prog_compiler_static=
8110 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8111 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8112 # sets the default TLS model and affects inlining.
8118 lt_prog_compiler_pic='-fPIC'
8124 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8125 # Instead, we relocate shared libraries at runtime.
8129 # Just because we use GCC doesn't mean we suddenly get shared libraries
8130 # on systems that don't support them.
8131 lt_prog_compiler_can_build_shared=no
8136 # QNX uses GNU C++, but need to define -shared option too, otherwise
8138 lt_prog_compiler_pic='-fPIC -shared'
8142 if test -d /usr/nec; then
8143 lt_prog_compiler_pic=-Kconform_pic
8148 lt_prog_compiler_pic='-fPIC'
8152 case $cc_basename in
8153 nvcc*) # Cuda Compiler Driver 2.2
8154 lt_prog_compiler_wl='-Xlinker '
8155 if test -n "$lt_prog_compiler_pic"; then
8156 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8161 # PORTME Check for flag to pass linker flags through the system compiler.
8164 lt_prog_compiler_wl='-Wl,'
8165 if test "$host_cpu" = ia64; then
8166 # AIX 5 now supports IA64 processor
8167 lt_prog_compiler_static='-Bstatic'
8169 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8173 mingw* | cygwin* | pw32* | os2* | cegcc*)
8174 # This hack is so that the source file can tell whether it is being
8175 # built for inclusion in a dll (and should export symbols for example).
8176 lt_prog_compiler_pic='-DDLL_EXPORT'
8179 hpux9* | hpux10* | hpux11*)
8180 lt_prog_compiler_wl='-Wl,'
8181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8188 lt_prog_compiler_pic='+Z'
8191 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8192 lt_prog_compiler_static='${wl}-a ${wl}archive'
8195 irix5* | irix6* | nonstopux*)
8196 lt_prog_compiler_wl='-Wl,'
8197 # PIC (with -KPIC) is the default.
8198 lt_prog_compiler_static='-non_shared'
8201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8202 case $cc_basename in
8203 # old Intel for x86_64 which still supported -KPIC.
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-static'
8209 # icc used to be incompatible with GCC.
8210 # ICC 10 doesn't accept -KPIC any more.
8212 lt_prog_compiler_wl='-Wl,'
8213 lt_prog_compiler_pic='-fPIC'
8214 lt_prog_compiler_static='-static'
8216 # Lahey Fortran 8.1.
8218 lt_prog_compiler_wl='-Wl,'
8219 lt_prog_compiler_pic='--shared'
8220 lt_prog_compiler_static='--static'
8223 # NAG Fortran compiler
8224 lt_prog_compiler_wl='-Wl,-Wl,,'
8225 lt_prog_compiler_pic='-PIC'
8226 lt_prog_compiler_static='-Bstatic'
8228 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8229 # Portland Group compilers (*not* the Pentium gcc compiler,
8230 # which looks to be a dead project)
8231 lt_prog_compiler_wl='-Wl,'
8232 lt_prog_compiler_pic='-fpic'
8233 lt_prog_compiler_static='-Bstatic'
8236 lt_prog_compiler_wl='-Wl,'
8237 # All Alpha code is PIC.
8238 lt_prog_compiler_static='-non_shared'
8240 xl* | bgxl* | bgf* | mpixl*)
8241 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8242 lt_prog_compiler_wl='-Wl,'
8243 lt_prog_compiler_pic='-qpic'
8244 lt_prog_compiler_static='-qstaticlink'
8247 case `$CC -V 2>&1 | sed 5q` in
8248 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8249 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8250 lt_prog_compiler_pic='-KPIC'
8251 lt_prog_compiler_static='-Bstatic'
8252 lt_prog_compiler_wl=''
8254 *Sun\ F* | *Sun*Fortran*)
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 lt_prog_compiler_wl='-Qoption ld '
8261 lt_prog_compiler_pic='-KPIC'
8262 lt_prog_compiler_static='-Bstatic'
8263 lt_prog_compiler_wl='-Wl,'
8265 *Intel*\ [CF]*Compiler*)
8266 lt_prog_compiler_wl='-Wl,'
8267 lt_prog_compiler_pic='-fPIC'
8268 lt_prog_compiler_static='-static'
8271 lt_prog_compiler_wl='-Wl,'
8272 lt_prog_compiler_pic='-fpic'
8273 lt_prog_compiler_static='-Bstatic'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-Bstatic'
8286 # QNX uses GNU C++, but need to define -shared option too, otherwise
8288 lt_prog_compiler_pic='-fPIC -shared'
8291 osf3* | osf4* | osf5*)
8292 lt_prog_compiler_wl='-Wl,'
8293 # All OSF/1 code is PIC.
8294 lt_prog_compiler_static='-non_shared'
8298 lt_prog_compiler_static='-non_shared'
8302 lt_prog_compiler_pic='-KPIC'
8303 lt_prog_compiler_static='-Bstatic'
8304 case $cc_basename in
8305 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8306 lt_prog_compiler_wl='-Qoption ld ';;
8308 lt_prog_compiler_wl='-Wl,';;
8313 lt_prog_compiler_wl='-Qoption ld '
8314 lt_prog_compiler_pic='-PIC'
8315 lt_prog_compiler_static='-Bstatic'
8318 sysv4 | sysv4.2uw2* | sysv4.3*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-KPIC'
8321 lt_prog_compiler_static='-Bstatic'
8325 if test -d /usr/nec ;then
8326 lt_prog_compiler_pic='-Kconform_pic'
8327 lt_prog_compiler_static='-Bstatic'
8331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8332 lt_prog_compiler_wl='-Wl,'
8333 lt_prog_compiler_pic='-KPIC'
8334 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_wl='-Wl,'
8339 lt_prog_compiler_can_build_shared=no
8343 lt_prog_compiler_pic='-pic'
8344 lt_prog_compiler_static='-Bstatic'
8348 lt_prog_compiler_can_build_shared=no
8354 # For platforms which do not support PIC, -DPIC is meaningless:
8356 lt_prog_compiler_pic=
8359 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8364 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8365 if ${lt_cv_prog_compiler_pic+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8371 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8372 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8375 # Check to make sure the PIC flag actually works.
8377 if test -n "$lt_prog_compiler_pic"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8379 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8380 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 lt_cv_prog_compiler_pic_works=no
8384 ac_outfile=conftest.$ac_objext
8385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8387 # Insert the option either (1) after the last *FLAGS variable, or
8388 # (2) before a word containing "conftest.", or (3) at the end.
8389 # Note that $ac_compile itself does not contain backslashes and begins
8390 # with a dollar sign (not a hyphen), so the echo should work correctly.
8391 # The option is referenced via a variable to avoid confusing sed.
8392 lt_compile=`echo "$ac_compile" | $SED \
8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395 -e 's:$: $lt_compiler_flag:'`
8396 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8397 (eval "$lt_compile" 2>conftest.err)
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 if (exit $ac_status) && test -s "$ac_outfile"; then
8402 # The compiler can only warn and ignore the option if not recognized
8403 # So say no if there are warnings other than the usual output.
8404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8407 lt_cv_prog_compiler_pic_works=yes
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8414 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8416 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8417 case $lt_prog_compiler_pic in
8419 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8422 lt_prog_compiler_pic=
8423 lt_prog_compiler_can_build_shared=no
8439 # Check to make sure the static flag actually works.
8441 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8443 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8444 if ${lt_cv_prog_compiler_static_works+:} false; then :
8445 $as_echo_n "(cached) " >&6
8447 lt_cv_prog_compiler_static_works=no
8448 save_LDFLAGS="$LDFLAGS"
8449 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8450 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8451 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8452 # The linker can only warn and ignore the option if not recognized
8453 # So say no if there are warnings
8454 if test -s conftest.err; then
8455 # Append any errors to the config.log.
8456 cat conftest.err 1>&5
8457 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459 if diff conftest.exp conftest.er2 >/dev/null; then
8460 lt_cv_prog_compiler_static_works=yes
8463 lt_cv_prog_compiler_static_works=yes
8467 LDFLAGS="$save_LDFLAGS"
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8471 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8473 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8476 lt_prog_compiler_static=
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8487 if ${lt_cv_prog_compiler_c_o+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 lt_cv_prog_compiler_c_o=no
8491 $RM -r conftest 2>/dev/null
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8497 lt_compiler_flag="-o out/conftest2.$ac_objext"
8498 # Insert the option either (1) after the last *FLAGS variable, or
8499 # (2) before a word containing "conftest.", or (3) at the end.
8500 # Note that $ac_compile itself does not contain backslashes and begins
8501 # with a dollar sign (not a hyphen), so the echo should work correctly.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>out/conftest.err)
8509 cat out/conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8513 # The compiler can only warn and ignore the option if not recognized
8514 # So say no if there are warnings
8515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8516 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8517 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_c_o=yes
8523 # SGI C++ compiler will create directory out/ii_files/ for
8524 # template instantiation
8525 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8526 $RM out/* && rmdir out
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8533 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8542 if ${lt_cv_prog_compiler_c_o+:} false; then :
8543 $as_echo_n "(cached) " >&6
8545 lt_cv_prog_compiler_c_o=no
8546 $RM -r conftest 2>/dev/null
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552 lt_compiler_flag="-o out/conftest2.$ac_objext"
8553 # Insert the option either (1) after the last *FLAGS variable, or
8554 # (2) before a word containing "conftest.", or (3) at the end.
8555 # Note that $ac_compile itself does not contain backslashes and begins
8556 # with a dollar sign (not a hyphen), so the echo should work correctly.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>out/conftest.err)
8564 cat out/conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8568 # The compiler can only warn and ignore the option if not recognized
8569 # So say no if there are warnings
8570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8573 lt_cv_prog_compiler_c_o=yes
8578 # SGI C++ compiler will create directory out/ii_files/ for
8579 # template instantiation
8580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8581 $RM out/* && rmdir out
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8588 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8593 hard_links="nottested"
8594 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8595 # do not overwrite the value of need_locks provided by the user
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8597 $as_echo_n "checking if we can lock with hard links... " >&6; }
8600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8602 ln conftest.a conftest.b 2>&5 || hard_links=no
8603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8605 $as_echo "$hard_links" >&6; }
8606 if test "$hard_links" = no; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8608 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8621 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8624 allow_undefined_flag=
8625 always_export_symbols=no
8627 archive_expsym_cmds=
8628 compiler_needs_object=no
8629 enable_shared_with_static_runtimes=no
8630 export_dynamic_flag_spec=
8631 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8632 hardcode_automatic=no
8634 hardcode_direct_absolute=no
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_separator=
8638 hardcode_shlibpath_var=unsupported
8640 link_all_deplibs=unknown
8643 old_archive_from_new_cmds=
8644 old_archive_from_expsyms_cmds=
8645 thread_safe_flag_spec=
8646 whole_archive_flag_spec=
8647 # include_expsyms should be a list of space-separated symbols to be *always*
8648 # included in the symbol list
8650 # exclude_expsyms can be an extended regexp of symbols to exclude
8651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8653 # as well as any symbol that contains `d'.
8654 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8656 # platforms (ab)use it in PIC code, but their linkers get confused if
8657 # the symbol is explicitly referenced. Since portable code cannot
8658 # rely on this symbol name, it's probably fine to never include it in
8659 # preloaded symbol tables.
8660 # Exclude shared library initialization/finalization symbols.
8661 extract_expsyms_cmds=
8664 cygwin* | mingw* | pw32* | cegcc*)
8665 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8666 # When not using gcc, we currently assume that we are using
8667 # Microsoft Visual C++.
8668 if test "$GCC" != yes; then
8673 # we just hope/assume this is gcc and not c89 (= MSVC++)
8679 linux* | k*bsd*-gnu | gnu*)
8686 # On some targets, GNU ld is compatible enough with the native linker
8687 # that we're better off using the native interface for both.
8688 lt_use_gnu_ld_interface=no
8689 if test "$with_gnu_ld" = yes; then
8692 # The AIX port of GNU ld has always aspired to compatibility
8693 # with the native linker. However, as the warning in the GNU ld
8694 # block says, versions before 2.19.5* couldn't really create working
8695 # shared libraries, regardless of the interface used.
8696 case `$LD -v 2>&1` in
8697 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8698 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8699 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8701 lt_use_gnu_ld_interface=yes
8706 lt_use_gnu_ld_interface=yes
8711 if test "$lt_use_gnu_ld_interface" = yes; then
8712 # If archive_cmds runs LD, not CC, wlarc should be empty
8715 # Set some defaults for GNU ld with shared library support. These
8716 # are reset later if shared libraries are not supported. Putting them
8717 # here allows them to be overridden if necessary.
8718 runpath_var=LD_RUN_PATH
8719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720 export_dynamic_flag_spec='${wl}--export-dynamic'
8721 # ancient GNU ld didn't support --whole-archive et. al.
8722 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8723 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8725 whole_archive_flag_spec=
8727 supports_anon_versioning=no
8728 case `$LD -v 2>&1` in
8729 *GNU\ gold*) supports_anon_versioning=yes ;;
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8731 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8732 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8733 *\ 2.11.*) ;; # other 2.11 versions
8734 *) supports_anon_versioning=yes ;;
8737 # See if GNU ld supports shared libraries.
8740 # On AIX/PPC, the GNU linker is very broken
8741 if test "$host_cpu" != ia64; then
8745 *** Warning: the GNU linker, at least up to release 2.19, is reported
8746 *** to be unable to reliably create shared libraries on AIX.
8747 *** Therefore, libtool is disabling shared libraries support. If you
8748 *** really care for shared libraries, you may want to install binutils
8749 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8750 *** You will then need to restart the configuration process.
8759 # see comment about AmigaOS4 .so support
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds=''
8764 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)'
8765 hardcode_libdir_flag_spec='-L$libdir'
8766 hardcode_minus_L=yes
8772 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773 allow_undefined_flag=unsupported
8774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8775 # support --undefined. This deserves some investigation. FIXME
8776 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782 cygwin* | mingw* | pw32* | cegcc*)
8783 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8784 # as there is no search path for DLLs.
8785 hardcode_libdir_flag_spec='-L$libdir'
8786 export_dynamic_flag_spec='${wl}--export-all-symbols'
8787 allow_undefined_flag=unsupported
8788 always_export_symbols=no
8789 enable_shared_with_static_runtimes=yes
8790 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'
8791 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8793 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8795 # If the export-symbols file already is a .def file (1st line
8796 # is EXPORTS), use it as is; otherwise, prepend...
8797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8798 cp $export_symbols $output_objdir/$soname.def;
8800 echo EXPORTS > $output_objdir/$soname.def;
8801 cat $export_symbols >> $output_objdir/$soname.def;
8803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811 link_all_deplibs=yes
8816 hardcode_shlibpath_var=no
8817 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8818 export_dynamic_flag_spec='${wl}-E'
8819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8820 # Instead, shared libraries are loaded at an image base (0x10000000 by
8821 # default) and relocated if they conflict, which is a slow very memory
8822 # consuming and fragmenting process. To avoid this, we pick a random,
8823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8826 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'
8829 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8831 if test "$host_os" = linux-dietlibc; then
8832 case $cc_basename in
8833 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8836 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8837 && test "$tmp_diet" = no
8839 tmp_addflag=' $pic_flag'
8840 tmp_sharedflag='-shared'
8841 case $cc_basename,$host_cpu in
8842 pgcc*) # Portland Group C compiler
8843 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'
8844 tmp_addflag=' $pic_flag'
8846 pgf77* | pgf90* | pgf95* | pgfortran*)
8847 # Portland Group f77 and f90 compilers
8848 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'
8849 tmp_addflag=' $pic_flag -Mnomain' ;;
8850 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8851 tmp_addflag=' -i_dynamic' ;;
8852 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8853 tmp_addflag=' -i_dynamic -nofor_main' ;;
8854 ifc* | ifort*) # Intel Fortran compiler
8855 tmp_addflag=' -nofor_main' ;;
8856 lf95*) # Lahey Fortran 8.1
8857 whole_archive_flag_spec=
8858 tmp_sharedflag='--shared' ;;
8859 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8860 tmp_sharedflag='-qmkshrobj'
8862 nvcc*) # Cuda Compiler Driver 2.2
8863 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'
8864 compiler_needs_object=yes
8867 case `$CC -V 2>&1 | sed 5q` in
8868 *Sun\ C*) # Sun C 5.9
8869 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'
8870 compiler_needs_object=yes
8871 tmp_sharedflag='-G' ;;
8872 *Sun\ F*) # Sun Fortran 8.3
8873 tmp_sharedflag='-G' ;;
8875 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 if test "x$supports_anon_versioning" = xyes; then
8878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8880 echo "local: *; };" >> $output_objdir/$libname.ver~
8881 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8884 case $cc_basename in
8885 xlf* | bgf* | bgxlf* | mpixlf*)
8886 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8887 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8890 if test "x$supports_anon_versioning" = xyes; then
8891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8893 echo "local: *; };" >> $output_objdir/$libname.ver~
8894 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8903 netbsd* | netbsdelf*-gnu)
8904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8905 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8909 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8914 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8918 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8919 *** create shared libraries on Solaris systems. Therefore, libtool
8920 *** is disabling shared libraries support. We urge you to upgrade GNU
8921 *** binutils to release 2.9.1 or newer. Another option is to modify
8922 *** your PATH or compiler configuration so that the native linker is
8923 *** used, and then restart.
8926 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8927 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8935 case `$LD -v 2>&1` in
8936 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8940 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8941 *** reliably create shared libraries on SCO systems. Therefore, libtool
8942 *** is disabling shared libraries support. We urge you to upgrade GNU
8943 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8944 *** your PATH or compiler configuration so that the native linker is
8945 *** used, and then restart.
8950 # For security reasons, it is highly recommended that you always
8951 # use absolute paths for naming shared libraries, and exclude the
8952 # DT_RUNPATH tag from executables and libraries. But doing so
8953 # requires that you compile everything twice, which is a pain.
8954 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8969 hardcode_shlibpath_var=no
8973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 if test "$ld_shlibs" = no; then
8984 hardcode_libdir_flag_spec=
8985 export_dynamic_flag_spec=
8986 whole_archive_flag_spec=
8989 # PORTME fill in a description of your system's linker (not GNU ld)
8992 allow_undefined_flag=unsupported
8993 always_export_symbols=yes
8994 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'
8995 # Note: this linker hardcodes the directories in LIBPATH if there
8996 # are no directories specified by -L.
8997 hardcode_minus_L=yes
8998 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8999 # Neither direct hardcoding nor static linking is supported with a
9001 hardcode_direct=unsupported
9006 if test "$host_cpu" = ia64; then
9007 # On IA64, the linker does run time linking by default, so we don't
9008 # have to do anything special.
9009 aix_use_runtimelinking=no
9010 exp_sym_flag='-Bexport'
9013 # If we're using GNU nm, then we don't want the "-C" option.
9014 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9015 # Also, AIX nm treats weak defined symbols like other global
9016 # defined symbols, whereas GNU nm marks them as "W".
9017 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9018 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9020 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9022 aix_use_runtimelinking=no
9024 # Test if we are trying to use run time linking or normal
9025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9026 # need to do runtime linking.
9027 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9028 for ld_flag in $LDFLAGS; do
9029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9030 aix_use_runtimelinking=yes
9037 exp_sym_flag='-bexport'
9038 no_entry_flag='-bnoentry'
9041 # When large executables or shared objects are built, AIX ld can
9042 # have problems creating the table of contents. If linking a library
9043 # or program results in "error TOC overflow" add -mminimal-toc to
9044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9049 hardcode_direct_absolute=yes
9050 hardcode_libdir_separator=':'
9051 link_all_deplibs=yes
9052 file_list_spec='${wl}-f,'
9054 if test "$GCC" = yes; then
9055 case $host_os in aix4.[012]|aix4.[012].*)
9056 # We only want to do this on AIX 4.2 and lower, the check
9057 # below for broken collect2 doesn't work under 4.3+
9058 collect2name=`${CC} -print-prog-name=collect2`
9059 if test -f "$collect2name" &&
9060 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9062 # We have reworked collect2
9065 # We have old collect2
9066 hardcode_direct=unsupported
9067 # It fails to find uninstalled libraries when the uninstalled
9068 # path is not listed in the libpath. Setting hardcode_minus_L
9069 # to unsupported forces relinking
9070 hardcode_minus_L=yes
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 hardcode_libdir_separator=
9076 shared_flag='-shared'
9077 if test "$aix_use_runtimelinking" = yes; then
9078 shared_flag="$shared_flag "'${wl}-G'
9083 if test "$host_cpu" = ia64; then
9084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9085 # chokes on -Wl,-G. The following line is correct:
9088 if test "$aix_use_runtimelinking" = yes; then
9089 shared_flag='${wl}-G'
9091 shared_flag='${wl}-bM:SRE'
9096 export_dynamic_flag_spec='${wl}-bexpall'
9097 # It seems that -bexpall does not export symbols beginning with
9098 # underscore (_), so it is better to generate a list of symbols to export.
9099 always_export_symbols=yes
9100 if test "$aix_use_runtimelinking" = yes; then
9101 # Warning - without using the other runtime loading flags (-brtl),
9102 # -berok will link without error, but may produce a broken library.
9103 allow_undefined_flag='-berok'
9104 # Determine the default libpath from the value encoded in an
9106 if test "${lt_cv_aix_libpath+set}" = set; then
9107 aix_libpath=$lt_cv_aix_libpath
9109 if ${lt_cv_aix_libpath_+:} false; then :
9110 $as_echo_n "(cached) " >&6
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9123 if ac_fn_c_try_link "$LINENO"; then :
9125 lt_aix_libpath_sed='
9126 /Import File Strings/,/^$/ {
9128 s/^0 *\([^ ]*\) *$/\1/
9132 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9133 # Check for a 64-bit object if we didn't find anything.
9134 if test -z "$lt_cv_aix_libpath_"; then
9135 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9138 rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9140 if test -z "$lt_cv_aix_libpath_"; then
9141 lt_cv_aix_libpath_="/usr/lib:/lib"
9146 aix_libpath=$lt_cv_aix_libpath_
9149 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9150 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9152 if test "$host_cpu" = ia64; then
9153 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9154 allow_undefined_flag="-z nodefs"
9155 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"
9157 # Determine the default libpath from the value encoded in an
9159 if test "${lt_cv_aix_libpath+set}" = set; then
9160 aix_libpath=$lt_cv_aix_libpath
9162 if ${lt_cv_aix_libpath_+:} false; then :
9163 $as_echo_n "(cached) " >&6
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9176 if ac_fn_c_try_link "$LINENO"; then :
9178 lt_aix_libpath_sed='
9179 /Import File Strings/,/^$/ {
9181 s/^0 *\([^ ]*\) *$/\1/
9185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 # Check for a 64-bit object if we didn't find anything.
9187 if test -z "$lt_cv_aix_libpath_"; then
9188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193 if test -z "$lt_cv_aix_libpath_"; then
9194 lt_cv_aix_libpath_="/usr/lib:/lib"
9199 aix_libpath=$lt_cv_aix_libpath_
9202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9203 # Warning - without using the other run time loading flags,
9204 # -berok will link without error, but may produce a broken library.
9205 no_undefined_flag=' ${wl}-bernotok'
9206 allow_undefined_flag=' ${wl}-berok'
9207 if test "$with_gnu_ld" = yes; then
9208 # We only use this code for GNU lds that support --whole-archive.
9209 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9211 # Exported symbols can be pulled into shared objects from archives
9212 whole_archive_flag_spec='$convenience'
9214 archive_cmds_need_lc=yes
9215 # This is similar to how AIX traditionally builds its shared libraries.
9216 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9224 # see comment about AmigaOS4 .so support
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 archive_expsym_cmds=''
9229 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)'
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 hardcode_minus_L=yes
9237 export_dynamic_flag_spec=-rdynamic
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # When not using gcc, we currently assume that we are using
9242 # Microsoft Visual C++.
9243 # hardcode_libdir_flag_spec is actually meaningless, as there is
9244 # no search path for DLLs.
9245 case $cc_basename in
9248 hardcode_libdir_flag_spec=' '
9249 allow_undefined_flag=unsupported
9250 always_export_symbols=yes
9252 # Tell ltmain to make .lib files, not .a files.
9254 # Tell ltmain to make .dll files, not .so files.
9256 # FIXME: Setting linknames here is a bad hack.
9257 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9258 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9259 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9261 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9263 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9265 # The linker will not automatically build a static lib if we build a DLL.
9266 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9267 enable_shared_with_static_runtimes=yes
9268 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9269 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9271 old_postinstall_cmds='chmod 644 $oldlib'
9272 postlink_cmds='lt_outputfile="@OUTPUT@"~
9273 lt_tool_outputfile="@TOOL_OUTPUT@"~
9274 case $lt_outputfile in
9277 lt_outputfile="$lt_outputfile.exe"
9278 lt_tool_outputfile="$lt_tool_outputfile.exe"
9281 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9282 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9283 $RM "$lt_outputfile.manifest";
9287 # Assume MSVC wrapper
9288 hardcode_libdir_flag_spec=' '
9289 allow_undefined_flag=unsupported
9290 # Tell ltmain to make .lib files, not .a files.
9292 # Tell ltmain to make .dll files, not .so files.
9294 # FIXME: Setting linknames here is a bad hack.
9295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9296 # The linker will automatically build a .lib file if we build a DLL.
9297 old_archive_from_new_cmds='true'
9298 # FIXME: Should let the user specify the lib program.
9299 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9300 enable_shared_with_static_runtimes=yes
9305 darwin* | rhapsody*)
9308 archive_cmds_need_lc=no
9310 hardcode_automatic=yes
9311 hardcode_shlibpath_var=unsupported
9312 if test "$lt_cv_ld_force_load" = "yes"; then
9313 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\"`'
9316 whole_archive_flag_spec=''
9318 link_all_deplibs=yes
9319 allow_undefined_flag="$_lt_dar_allow_undefined"
9320 case $cc_basename in
9321 ifort*) _lt_dar_can_shared=yes ;;
9322 *) _lt_dar_can_shared=$GCC ;;
9324 if test "$_lt_dar_can_shared" = "yes"; then
9325 output_verbose_link_cmd=func_echo_all
9326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9328 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}"
9329 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}"
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-L$libdir'
9340 hardcode_shlibpath_var=no
9343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9344 # support. Future versions do this automatically, but an explicit c++rt0.o
9345 # does not break anything, and helps significantly (at the cost of a little
9348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9349 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_shlibpath_var=no
9354 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_minus_L=yes
9359 hardcode_shlibpath_var=no
9362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9363 freebsd* | dragonfly*)
9364 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9365 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_shlibpath_var=no
9371 if test "$GCC" = yes; then
9372 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9374 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377 hardcode_libdir_separator=:
9380 # hardcode_minus_L: Not really in the search PATH,
9381 # but as the default location of the library.
9382 hardcode_minus_L=yes
9383 export_dynamic_flag_spec='${wl}-E'
9387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9388 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9392 if test "$with_gnu_ld" = no; then
9393 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9394 hardcode_libdir_separator=:
9396 hardcode_direct_absolute=yes
9397 export_dynamic_flag_spec='${wl}-E'
9398 # hardcode_minus_L: Not really in the search PATH,
9399 # but as the default location of the library.
9400 hardcode_minus_L=yes
9405 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9408 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9427 # Older versions of the 11.00 compiler do not understand -b yet
9428 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9430 $as_echo_n "checking if $CC understands -b... " >&6; }
9431 if ${lt_cv_prog_compiler__b+:} false; then :
9432 $as_echo_n "(cached) " >&6
9434 lt_cv_prog_compiler__b=no
9435 save_LDFLAGS="$LDFLAGS"
9436 LDFLAGS="$LDFLAGS -b"
9437 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9438 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9439 # The linker can only warn and ignore the option if not recognized
9440 # So say no if there are warnings
9441 if test -s conftest.err; then
9442 # Append any errors to the config.log.
9443 cat conftest.err 1>&5
9444 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446 if diff conftest.exp conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler__b=yes
9450 lt_cv_prog_compiler__b=yes
9454 LDFLAGS="$save_LDFLAGS"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9458 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9460 if test x"$lt_cv_prog_compiler__b" = xyes; then
9461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9469 if test "$with_gnu_ld" = no; then
9470 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9471 hardcode_libdir_separator=:
9476 hardcode_shlibpath_var=no
9480 hardcode_direct_absolute=yes
9481 export_dynamic_flag_spec='${wl}-E'
9483 # hardcode_minus_L: Not really in the search PATH,
9484 # but as the default location of the library.
9485 hardcode_minus_L=yes
9491 irix5* | irix6* | nonstopux*)
9492 if test "$GCC" = yes; then
9493 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'
9494 # Try to use the -exported_symbol ld option, if it does not
9495 # work, assume that -exports_file does not work either and
9496 # implicitly export all symbols.
9497 # This should be the same for all languages, so no per-tag cache variable.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9499 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9500 if ${lt_cv_irix_exported_symbol+:} false; then :
9501 $as_echo_n "(cached) " >&6
9503 save_LDFLAGS="$LDFLAGS"
9504 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507 int foo (void) { return 0; }
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 lt_cv_irix_exported_symbol=yes
9512 lt_cv_irix_exported_symbol=no
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LDFLAGS="$save_LDFLAGS"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9519 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9520 if test "$lt_cv_irix_exported_symbol" = yes; then
9521 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'
9524 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'
9525 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'
9527 archive_cmds_need_lc='no'
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 hardcode_libdir_separator=:
9531 link_all_deplibs=yes
9534 netbsd* | netbsdelf*-gnu)
9535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9538 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9540 hardcode_libdir_flag_spec='-R$libdir'
9542 hardcode_shlibpath_var=no
9546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9549 hardcode_libdir_separator=:
9550 hardcode_shlibpath_var=no
9557 if test -f /usr/libexec/ld.so; then
9559 hardcode_shlibpath_var=no
9560 hardcode_direct_absolute=yes
9561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 export_dynamic_flag_spec='${wl}-E'
9568 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570 hardcode_libdir_flag_spec='-R$libdir'
9573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9574 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_minus_L=yes
9586 allow_undefined_flag=unsupported
9587 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9588 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 if test "$GCC" = yes; then
9593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594 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'
9596 allow_undefined_flag=' -expect_unresolved \*'
9597 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'
9599 archive_cmds_need_lc='no'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9604 osf4* | osf5*) # as osf3* with the addition of -msym flag
9605 if test "$GCC" = yes; then
9606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9607 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'
9608 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9610 allow_undefined_flag=' -expect_unresolved \*'
9611 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'
9612 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~
9613 $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'
9615 # Both c and cxx compiler support -rpath directly
9616 hardcode_libdir_flag_spec='-rpath $libdir'
9618 archive_cmds_need_lc='no'
9619 hardcode_libdir_separator=:
9623 no_undefined_flag=' -z defs'
9624 if test "$GCC" = yes; then
9626 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9628 $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'
9630 case `$CC -V 2>&1` in
9633 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9641 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_shlibpath_var=no
9648 solaris2.[0-5] | solaris2.[0-5].*) ;;
9650 # The compiler driver will combine and reorder linker options,
9651 # but understands `-z linker_flag'. GCC discards it without `$wl',
9652 # but is careful enough not to reorder.
9653 # Supported since Solaris 2.6 (maybe 2.5.1?)
9654 if test "$GCC" = yes; then
9655 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9657 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 link_all_deplibs=yes
9665 if test "x$host_vendor" = xsequent; then
9666 # Use $CC to link under sequent, because it throws in some extra .o
9667 # files that make .init and .fini sections work.
9668 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9672 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_minus_L=yes
9675 hardcode_shlibpath_var=no
9679 case $host_vendor in
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=yes # is this really true???
9685 ## LD is ld it makes a PLAMLIB
9686 ## CC just makes a GrossModule.
9687 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9688 reload_cmds='$CC -r -o $output$reload_objs'
9692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9693 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9696 runpath_var='LD_RUN_PATH'
9697 hardcode_shlibpath_var=no
9701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9702 hardcode_shlibpath_var=no
9703 export_dynamic_flag_spec='-Bexport'
9707 if test -d /usr/nec; then
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_shlibpath_var=no
9710 runpath_var=LD_RUN_PATH
9711 hardcode_runpath_var=yes
9716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9717 no_undefined_flag='${wl}-z,text'
9718 archive_cmds_need_lc=no
9719 hardcode_shlibpath_var=no
9720 runpath_var='LD_RUN_PATH'
9722 if test "$GCC" = yes; then
9723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 sysv5* | sco3.2v5* | sco5v6*)
9732 # Note: We can NOT use -z defs as we might desire, because we do not
9733 # link with -lc, and that would cause any symbols used from libc to
9734 # always be unresolved, which means just about no library would
9735 # ever link correctly. If we're not using GNU ld we use -z text
9736 # though, which does catch some bad symbols but isn't as heavy-handed
9738 no_undefined_flag='${wl}-z,text'
9739 allow_undefined_flag='${wl}-z,nodefs'
9740 archive_cmds_need_lc=no
9741 hardcode_shlibpath_var=no
9742 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9743 hardcode_libdir_separator=':'
9744 link_all_deplibs=yes
9745 export_dynamic_flag_spec='${wl}-Bexport'
9746 runpath_var='LD_RUN_PATH'
9748 if test "$GCC" = yes; then
9749 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9750 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9752 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_shlibpath_var=no
9768 if test x$host_vendor = xsni; then
9770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9771 export_dynamic_flag_spec='${wl}-Blargedynsym'
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9778 $as_echo "$ld_shlibs" >&6; }
9779 test "$ld_shlibs" = no && can_build_shared=no
9781 with_gnu_ld=$with_gnu_ld
9798 # Do we need to explicitly link libc?
9800 case "x$archive_cmds_need_lc" in
9802 # Assume -lc should be added
9803 archive_cmds_need_lc=yes
9805 if test "$enable_shared" = yes && test "$GCC" = yes; then
9806 case $archive_cmds in
9808 # FIXME: we may have to deal with multi-command sequences.
9811 # Test whether the compiler implicitly links with -lc since on some
9812 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9813 # to ld, don't add -lc before -lgcc.
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9815 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9816 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9817 $as_echo_n "(cached) " >&6
9820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9823 (eval $ac_compile) 2>&5
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; } 2>conftest.err; then
9829 libobjs=conftest.$ac_objext
9831 wl=$lt_prog_compiler_wl
9832 pic_flag=$lt_prog_compiler_pic
9838 lt_save_allow_undefined_flag=$allow_undefined_flag
9839 allow_undefined_flag=
9840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9841 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; }
9846 lt_cv_archive_cmds_need_lc=no
9848 lt_cv_archive_cmds_need_lc=yes
9850 allow_undefined_flag=$lt_save_allow_undefined_flag
9852 cat conftest.err 1>&5
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9858 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9859 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10020 if test "$GCC" = yes; then
10022 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10023 *) lt_awk_arg="/^libraries:/" ;;
10026 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10027 *) lt_sed_strip_eq="s,=/,/,g" ;;
10029 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10030 case $lt_search_path_spec in
10032 # if the path contains ";" then we assume it to be the separator
10033 # otherwise default to the standard path separator (i.e. ":") - it is
10034 # assumed that no part of a normal pathname contains ";" but that should
10035 # okay in the real world where ";" in dirpaths is itself problematic.
10036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10042 # Ok, now we have the path, separated by spaces, we can step through it
10043 # and add multilib dir if necessary.
10044 lt_tmp_lt_search_path_spec=
10045 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10046 for lt_sys_path in $lt_search_path_spec; do
10047 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10050 test -d "$lt_sys_path" && \
10051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10054 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10055 BEGIN {RS=" "; FS="/|\n";} {
10058 for (lt_i = NF; lt_i > 0; lt_i--) {
10059 if ($lt_i != "" && $lt_i != ".") {
10060 if ($lt_i == "..") {
10063 if (lt_count == 0) {
10064 lt_foo="/" $lt_i lt_foo;
10071 if (lt_foo != "") { lt_freq[lt_foo]++; }
10072 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10074 # AWK program above erroneously prepends '/' to C:/dos/paths
10077 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10078 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10080 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10084 library_names_spec=
10085 libname_spec='lib$name'
10089 postuninstall_cmds=
10093 shlibpath_overrides_runpath=unknown
10095 dynamic_linker="$host_os ld.so"
10096 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10097 need_lib_prefix=unknown
10098 hardcode_into_libs=no
10100 # when you set need_version to no, make sure it does not cause -set_version
10101 # flags to be left without arguments
10102 need_version=unknown
10106 version_type=linux # correct to gnu/linux during the next big refactor
10107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10108 shlibpath_var=LIBPATH
10110 # AIX 3 has no versioning support, so we append a major version to the name.
10111 soname_spec='${libname}${release}${shared_ext}$major'
10115 version_type=linux # correct to gnu/linux during the next big refactor
10118 hardcode_into_libs=yes
10119 if test "$host_cpu" = ia64; then
10120 # AIX 5 supports IA64
10121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10122 shlibpath_var=LD_LIBRARY_PATH
10124 # With GCC up to 2.95.x, collect2 would create an import file
10125 # for dependence libraries. The import file would start with
10126 # the line `#! .'. This would cause the generated library to
10127 # depend on `.', always an invalid library. This was fixed in
10128 # development snapshots of GCC prior to 3.0.
10130 aix4 | aix4.[01] | aix4.[01].*)
10131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10133 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10136 can_build_shared=no
10140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10141 # soname into executable. Probably we can add versioning support to
10142 # collect2, so additional links can be useful in future.
10143 if test "$aix_use_runtimelinking" = yes; then
10144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10145 # instead of lib<name>.a to let people know that these are not
10146 # typical AIX shared libraries.
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 # We preserve .a as extension for shared libraries through AIX4.2
10150 # and later when we are not doing run time linking.
10151 library_names_spec='${libname}${release}.a $libname.a'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10154 shlibpath_var=LIBPATH
10161 # Since July 2007 AmigaOS4 officially supports .so libraries.
10162 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166 library_names_spec='$libname.ixlibrary $libname.a'
10167 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10168 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10174 library_names_spec='${libname}${shared_ext}'
10175 dynamic_linker="$host_os ld.so"
10176 shlibpath_var=LIBRARY_PATH
10180 version_type=linux # correct to gnu/linux during the next big refactor
10182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10188 # the default ld.so.conf also contains /usr/contrib/lib and
10189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10190 # libtool to hard-code these into programs
10193 cygwin* | mingw* | pw32* | cegcc*)
10194 version_type=windows
10199 case $GCC,$cc_basename in
10202 library_names_spec='$libname.dll.a'
10203 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10204 postinstall_cmds='base_file=`basename \${file}`~
10205 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10206 dldir=$destdir/`dirname \$dlpath`~
10207 test -d \$dldir || mkdir -p \$dldir~
10208 $install_prog $dir/$dlname \$dldir/$dlname~
10209 chmod a+x \$dldir/$dlname~
10210 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10211 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10214 dlpath=$dir/\$dldll~
10216 shlibpath_overrides_runpath=yes
10220 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10226 # MinGW DLLs use traditional 'lib' prefix
10227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 # pw32 DLLs use 'pw' prefix rather than 'lib'
10231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 dynamic_linker='Win32 ld.exe'
10239 libname_spec='$name'
10240 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10241 library_names_spec='${libname}.dll.lib'
10245 sys_lib_search_path_spec=
10248 for lt_path in $LIB
10251 # Let DOS variable expansion print the short 8.3 style file name.
10252 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10253 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10256 # Convert to MSYS style.
10257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10260 # Convert to unix form, then to dos form, then back to unix form
10261 # but this time dos style (no spaces!) so that the unix form looks
10262 # like /cygdrive/c/PROGRA~1:/cygdr...
10263 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10264 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10265 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10268 sys_lib_search_path_spec="$LIB"
10269 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10270 # It is most probably a Windows format PATH.
10271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10275 # FIXME: find the short name or the path components, as spaces are
10276 # common. (e.g. "Program Files" -> "PROGRA~1")
10280 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10281 postinstall_cmds='base_file=`basename \${file}`~
10282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10283 dldir=$destdir/`dirname \$dlpath`~
10284 test -d \$dldir || mkdir -p \$dldir~
10285 $install_prog $dir/$dlname \$dldir/$dlname'
10286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10287 dlpath=$dir/\$dldll~
10289 shlibpath_overrides_runpath=yes
10290 dynamic_linker='Win32 link.exe'
10294 # Assume MSVC wrapper
10295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10296 dynamic_linker='Win32 ld.exe'
10299 # FIXME: first we should search . and the directory the executable is in
10303 darwin* | rhapsody*)
10304 dynamic_linker="$host_os dyld"
10305 version_type=darwin
10308 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10309 soname_spec='${libname}${release}${major}$shared_ext'
10310 shlibpath_overrides_runpath=yes
10311 shlibpath_var=DYLD_LIBRARY_PATH
10312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10319 version_type=linux # correct to gnu/linux during the next big refactor
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10327 freebsd* | dragonfly*)
10328 # DragonFly does not have aout. When/if they implement a new
10329 # versioning mechanism, adjust this.
10330 if test -x /usr/bin/objformat; then
10331 objformat=`/usr/bin/objformat`
10334 freebsd[23].*) objformat=aout ;;
10335 *) objformat=elf ;;
10338 version_type=freebsd-$objformat
10339 case $version_type in
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10350 shlibpath_var=LD_LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10355 freebsd3.[01]* | freebsdelf3.[01]*)
10356 shlibpath_overrides_runpath=yes
10357 hardcode_into_libs=yes
10359 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10360 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10361 shlibpath_overrides_runpath=no
10362 hardcode_into_libs=yes
10364 *) # from 4.6 on, and DragonFly
10365 shlibpath_overrides_runpath=yes
10366 hardcode_into_libs=yes
10372 version_type=linux # correct to gnu/linux during the next big refactor
10375 dynamic_linker="$host_os runtime_loader"
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10381 hardcode_into_libs=yes
10384 hpux9* | hpux10* | hpux11*)
10385 # Give a soname corresponding to the major version so that dld.sl refuses to
10386 # link against other versions.
10393 hardcode_into_libs=yes
10394 dynamic_linker="$host_os dld.so"
10395 shlibpath_var=LD_LIBRARY_PATH
10396 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 if test "X$HPUX_IA64_MODE" = X32; then
10400 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10402 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10404 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10408 hardcode_into_libs=yes
10409 dynamic_linker="$host_os dld.sl"
10410 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10411 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 soname_spec='${libname}${release}${shared_ext}$major'
10414 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10415 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10419 dynamic_linker="$host_os dld.sl"
10420 shlibpath_var=SHLIB_PATH
10421 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10426 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10427 postinstall_cmds='chmod 555 $lib'
10428 # or fails outright, so override atomically:
10429 install_override_mode=555
10433 version_type=linux # correct to gnu/linux during the next big refactor
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10441 hardcode_into_libs=yes
10444 irix5* | irix6* | nonstopux*)
10446 nonstopux*) version_type=nonstopux ;;
10448 if test "$lt_cv_prog_gnu_ld" = yes; then
10449 version_type=linux # correct to gnu/linux during the next big refactor
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10459 irix5* | nonstopux*)
10460 libsuff= shlibsuff=
10463 case $LD in # libtool.m4 will add one of these switches to LD
10464 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10465 libsuff= shlibsuff= libmagic=32-bit;;
10466 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10467 libsuff=32 shlibsuff=N32 libmagic=N32;;
10468 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10469 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10470 *) libsuff= shlibsuff= libmagic=never-match;;
10474 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10475 shlibpath_overrides_runpath=no
10476 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10477 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10478 hardcode_into_libs=yes
10481 # No shared lib support for Linux oldld, aout, or coff.
10482 linux*oldld* | linux*aout* | linux*coff*)
10486 # This must be glibc/ELF.
10487 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10488 version_type=linux # correct to gnu/linux during the next big refactor
10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10494 shlibpath_var=LD_LIBRARY_PATH
10495 shlibpath_overrides_runpath=no
10497 # Some binutils ld are patched to set DT_RUNPATH
10498 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10499 $as_echo_n "(cached) " >&6
10501 lt_cv_shlibpath_overrides_runpath=no
10502 save_LDFLAGS=$LDFLAGS
10503 save_libdir=$libdir
10504 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10505 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h. */
10517 if ac_fn_c_try_link "$LINENO"; then :
10518 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10519 lt_cv_shlibpath_overrides_runpath=yes
10522 rm -f core conftest.err conftest.$ac_objext \
10523 conftest$ac_exeext conftest.$ac_ext
10524 LDFLAGS=$save_LDFLAGS
10525 libdir=$save_libdir
10529 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10531 # This implies no fast_install, which is unacceptable.
10532 # Some rework will be needed to allow for fast_install
10533 # before this can be enabled.
10534 hardcode_into_libs=yes
10536 # Append ld.so.conf contents to the search path
10537 if test -f /etc/ld.so.conf; then
10538 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' ' '`
10539 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10542 # We used to test for /lib/ld.so.1 and disable shared libraries on
10543 # powerpc, because MkLinux only supported shared libraries with the
10544 # GNU dynamic linker. Since this was broken with cross compilers,
10545 # most powerpc-linux boxes support dynamic linking these days and
10546 # people can always --disable-shared, the test was removed, and we
10547 # assume the GNU/Linux dynamic linker is in use.
10548 dynamic_linker='GNU/Linux ld.so'
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10556 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath=no
10559 hardcode_into_libs=yes
10560 dynamic_linker='NetBSD ld.elf_so'
10567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10569 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10570 dynamic_linker='NetBSD (a.out) ld.so'
10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10573 soname_spec='${libname}${release}${shared_ext}$major'
10574 dynamic_linker='NetBSD ld.elf_so'
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes
10578 hardcode_into_libs=yes
10582 version_type=linux # correct to gnu/linux during the next big refactor
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 shlibpath_overrides_runpath=yes
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=no
10596 hardcode_into_libs=yes
10597 dynamic_linker='ldqnx.so'
10602 sys_lib_dlsearch_path_spec="/usr/lib"
10604 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10606 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10607 *) need_version=no ;;
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10611 shlibpath_var=LD_LIBRARY_PATH
10612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10614 openbsd2.[89] | openbsd2.[89].*)
10615 shlibpath_overrides_runpath=no
10618 shlibpath_overrides_runpath=yes
10622 shlibpath_overrides_runpath=yes
10627 libname_spec='$name'
10630 library_names_spec='$libname${shared_ext} $libname.a'
10631 dynamic_linker='OS/2 ld.exe'
10632 shlibpath_var=LIBPATH
10635 osf3* | osf4* | osf5*)
10639 soname_spec='${libname}${release}${shared_ext}$major'
10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10651 version_type=linux # correct to gnu/linux during the next big refactor
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=yes
10658 hardcode_into_libs=yes
10659 # ldd complains unless libraries are executable
10660 postinstall_cmds='chmod +x $lib'
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10666 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 shlibpath_overrides_runpath=yes
10669 if test "$with_gnu_ld" = yes; then
10676 version_type=linux # correct to gnu/linux during the next big refactor
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 shlibpath_var=LD_LIBRARY_PATH
10680 case $host_vendor in
10682 shlibpath_overrides_runpath=no
10684 runpath_var=LD_RUN_PATH
10692 shlibpath_overrides_runpath=no
10693 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10699 if test -d /usr/nec ;then
10700 version_type=linux # correct to gnu/linux during the next big refactor
10701 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10702 soname_spec='$libname${shared_ext}.$major'
10703 shlibpath_var=LD_LIBRARY_PATH
10707 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10708 version_type=freebsd-elf
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715 hardcode_into_libs=yes
10716 if test "$with_gnu_ld" = yes; then
10717 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10719 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10722 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10726 sys_lib_dlsearch_path_spec='/usr/lib'
10730 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10731 version_type=linux # correct to gnu/linux during the next big refactor
10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10741 version_type=linux # correct to gnu/linux during the next big refactor
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10752 $as_echo "$dynamic_linker" >&6; }
10753 test "$dynamic_linker" = no && can_build_shared=no
10755 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10756 if test "$GCC" = yes; then
10757 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10760 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10761 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10763 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10764 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10859 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10861 if test -n "$hardcode_libdir_flag_spec" ||
10862 test -n "$runpath_var" ||
10863 test "X$hardcode_automatic" = "Xyes" ; then
10865 # We can hardcode non-existent directories.
10866 if test "$hardcode_direct" != no &&
10867 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10868 # have to relink, otherwise we might link with an installed library
10869 # when we should be linking with a yet-to-be-installed one
10870 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10871 test "$hardcode_minus_L" != no; then
10872 # Linking always hardcodes the temporary library directory.
10873 hardcode_action=relink
10875 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10876 hardcode_action=immediate
10879 # We cannot hardcode anything, or else we can only hardcode existing
10881 hardcode_action=unsupported
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10884 $as_echo "$hardcode_action" >&6; }
10886 if test "$hardcode_action" = relink ||
10887 test "$inherit_rpath" = yes; then
10888 # Fast installation is not supported
10889 enable_fast_install=no
10890 elif test "$shlibpath_overrides_runpath" = yes ||
10891 test "$enable_shared" = no; then
10892 # Fast installation is not necessary
10893 enable_fast_install=needless
10901 if test "x$enable_dlopen" != xyes; then
10902 enable_dlopen=unknown
10903 enable_dlopen_self=unknown
10904 enable_dlopen_self_static=unknown
10911 lt_cv_dlopen="load_add_on"
10913 lt_cv_dlopen_self=yes
10916 mingw* | pw32* | cegcc*)
10917 lt_cv_dlopen="LoadLibrary"
10922 lt_cv_dlopen="dlopen"
10927 # if libdl is installed we need to link against it
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10929 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10930 if ${ac_cv_lib_dl_dlopen+:} false; then :
10931 $as_echo_n "(cached) " >&6
10933 ac_check_lib_save_LIBS=$LIBS
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10938 /* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
10953 if ac_fn_c_try_link "$LINENO"; then :
10954 ac_cv_lib_dl_dlopen=yes
10956 ac_cv_lib_dl_dlopen=no
10958 rm -f core conftest.err conftest.$ac_objext \
10959 conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10964 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10968 lt_cv_dlopen="dyld"
10970 lt_cv_dlopen_self=yes
10977 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10978 if test "x$ac_cv_func_shl_load" = xyes; then :
10979 lt_cv_dlopen="shl_load"
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10982 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10983 if ${ac_cv_lib_dld_shl_load+:} false; then :
10984 $as_echo_n "(cached) " >&6
10986 ac_check_lib_save_LIBS=$LIBS
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
11001 return shl_load ();
11006 if ac_fn_c_try_link "$LINENO"; then :
11007 ac_cv_lib_dld_shl_load=yes
11009 ac_cv_lib_dld_shl_load=no
11011 rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11016 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11017 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11018 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11020 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11021 if test "x$ac_cv_func_dlopen" = xyes; then :
11022 lt_cv_dlopen="dlopen"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11025 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11026 if ${ac_cv_lib_dl_dlopen+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 ac_check_lib_save_LIBS=$LIBS
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_dl_dlopen=yes
11052 ac_cv_lib_dl_dlopen=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11059 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11060 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11064 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11065 if ${ac_cv_lib_svld_dlopen+:} false; then :
11066 $as_echo_n "(cached) " >&6
11068 ac_check_lib_save_LIBS=$LIBS
11069 LIBS="-lsvld $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 ac_cv_lib_svld_dlopen=yes
11091 ac_cv_lib_svld_dlopen=no
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11098 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11099 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11103 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11104 if ${ac_cv_lib_dld_dld_link+:} false; then :
11105 $as_echo_n "(cached) " >&6
11107 ac_check_lib_save_LIBS=$LIBS
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11112 /* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11122 return dld_link ();
11127 if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_dld_dld_link=yes
11130 ac_cv_lib_dld_dld_link=no
11132 rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11137 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11138 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11139 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11160 if test "x$lt_cv_dlopen" != xno; then
11166 case $lt_cv_dlopen in
11168 save_CPPFLAGS="$CPPFLAGS"
11169 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11171 save_LDFLAGS="$LDFLAGS"
11172 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11175 LIBS="$lt_cv_dlopen_libs $LIBS"
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11178 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11179 if ${lt_cv_dlopen_self+:} false; then :
11180 $as_echo_n "(cached) " >&6
11182 if test "$cross_compiling" = yes; then :
11183 lt_cv_dlopen_self=cross
11185 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11186 lt_status=$lt_dlunknown
11187 cat > conftest.$ac_ext <<_LT_EOF
11188 #line $LINENO "configure"
11189 #include "confdefs.h"
11198 # define LT_DLGLOBAL RTLD_GLOBAL
11201 # define LT_DLGLOBAL DL_GLOBAL
11203 # define LT_DLGLOBAL 0
11207 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11208 find out it does not work in some platform. */
11209 #ifndef LT_DLLAZY_OR_NOW
11211 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11214 # define LT_DLLAZY_OR_NOW DL_LAZY
11217 # define LT_DLLAZY_OR_NOW RTLD_NOW
11220 # define LT_DLLAZY_OR_NOW DL_NOW
11222 # define LT_DLLAZY_OR_NOW 0
11229 /* When -fvisbility=hidden is used, assume the code has been annotated
11230 correspondingly for the symbols needed. */
11231 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11232 int fnord () __attribute__((visibility("default")));
11235 int fnord () { return 42; }
11238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11239 int status = $lt_dlunknown;
11243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11246 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11247 else puts (dlerror ());
11249 /* dlclose (self); */
11257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11258 (eval $ac_link) 2>&5
11260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11262 (./conftest; exit; ) >&5 2>/dev/null
11264 case x$lt_status in
11265 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11266 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11267 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11270 # compilation failed
11271 lt_cv_dlopen_self=no
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11279 $as_echo "$lt_cv_dlopen_self" >&6; }
11281 if test "x$lt_cv_dlopen_self" = xyes; then
11282 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11284 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11285 if ${lt_cv_dlopen_self_static+:} false; then :
11286 $as_echo_n "(cached) " >&6
11288 if test "$cross_compiling" = yes; then :
11289 lt_cv_dlopen_self_static=cross
11291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11292 lt_status=$lt_dlunknown
11293 cat > conftest.$ac_ext <<_LT_EOF
11294 #line $LINENO "configure"
11295 #include "confdefs.h"
11304 # define LT_DLGLOBAL RTLD_GLOBAL
11307 # define LT_DLGLOBAL DL_GLOBAL
11309 # define LT_DLGLOBAL 0
11313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11314 find out it does not work in some platform. */
11315 #ifndef LT_DLLAZY_OR_NOW
11317 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11320 # define LT_DLLAZY_OR_NOW DL_LAZY
11323 # define LT_DLLAZY_OR_NOW RTLD_NOW
11326 # define LT_DLLAZY_OR_NOW DL_NOW
11328 # define LT_DLLAZY_OR_NOW 0
11335 /* When -fvisbility=hidden is used, assume the code has been annotated
11336 correspondingly for the symbols needed. */
11337 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11338 int fnord () __attribute__((visibility("default")));
11341 int fnord () { return 42; }
11344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11345 int status = $lt_dlunknown;
11349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11352 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11353 else puts (dlerror ());
11355 /* dlclose (self); */
11363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11364 (eval $ac_link) 2>&5
11366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11368 (./conftest; exit; ) >&5 2>/dev/null
11370 case x$lt_status in
11371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11373 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11376 # compilation failed
11377 lt_cv_dlopen_self_static=no
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11385 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11388 CPPFLAGS="$save_CPPFLAGS"
11389 LDFLAGS="$save_LDFLAGS"
11394 case $lt_cv_dlopen_self in
11395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11396 *) enable_dlopen_self=unknown ;;
11399 case $lt_cv_dlopen_self_static in
11400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11401 *) enable_dlopen_self_static=unknown ;;
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11424 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11425 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11426 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11427 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429 $as_echo "yes" >&6; }
11431 # FIXME - insert some real tests, host_os isn't really good enough
11434 if test -n "$STRIP" ; then
11435 striplib="$STRIP -x"
11436 old_striplib="$STRIP -S"
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438 $as_echo "yes" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441 $as_echo "no" >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11446 $as_echo "no" >&6; }
11462 # Report which library types will actually be built
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11464 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11466 $as_echo "$can_build_shared" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11469 $as_echo_n "checking whether to build shared libraries... " >&6; }
11470 test "$can_build_shared" = "no" && enable_shared=no
11472 # On AIX, shared libraries and static libraries use the same namespace, and
11473 # are all built from PIC.
11476 test "$enable_shared" = yes && enable_static=no
11477 if test -n "$RANLIB"; then
11478 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11479 postinstall_cmds='$RANLIB $lib'
11484 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11485 test "$enable_shared" = yes && enable_static=no
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11490 $as_echo "$enable_shared" >&6; }
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11493 $as_echo_n "checking whether to build static libraries... " >&6; }
11494 # Make sure either enable_shared or enable_static is yes.
11495 test "$enable_shared" = yes || enable_static=yes
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11497 $as_echo "$enable_static" >&6; }
11504 ac_cpp='$CPP $CPPFLAGS'
11505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11525 ac_config_commands="$ac_config_commands libtool"
11530 # Only expand once:
11534 ac_cpp='$CPP $CPPFLAGS'
11535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538 if test -n "$ac_tool_prefix"; then
11539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if ${ac_cv_prog_CC+:} false; then :
11544 $as_echo_n "(cached) " >&6
11546 if test -n "$CC"; then
11547 ac_cv_prog_CC="$CC" # Let the user override the test.
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 if test -n "$CC"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11569 $as_echo "$CC" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 $as_echo "no" >&6; }
11577 if test -z "$ac_cv_prog_CC"; then
11579 # Extract the first word of "gcc", so it can be a program name with args.
11580 set dummy gcc; ac_word=$2
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 $as_echo_n "checking for $ac_word... " >&6; }
11583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11584 $as_echo_n "(cached) " >&6
11586 if test -n "$ac_ct_CC"; then
11587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH
11593 test -z "$as_dir" && as_dir=.
11594 for ac_exec_ext in '' $ac_executable_extensions; do
11595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596 ac_cv_prog_ac_ct_CC="gcc"
11597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11607 if test -n "$ac_ct_CC"; then
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11609 $as_echo "$ac_ct_CC" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11615 if test "x$ac_ct_CC" = x; then
11618 case $cross_compiling:$ac_tool_warned in
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622 ac_tool_warned=yes ;;
11627 CC="$ac_cv_prog_CC"
11630 if test -z "$CC"; then
11631 if test -n "$ac_tool_prefix"; then
11632 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11633 set dummy ${ac_tool_prefix}cc; ac_word=$2
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if ${ac_cv_prog_CC+:} false; then :
11637 $as_echo_n "(cached) " >&6
11639 if test -n "$CC"; then
11640 ac_cv_prog_CC="$CC" # Let the user override the test.
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643 for as_dir in $PATH
11646 test -z "$as_dir" && as_dir=.
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11649 ac_cv_prog_CC="${ac_tool_prefix}cc"
11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 if test -n "$CC"; then
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11662 $as_echo "$CC" >&6; }
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665 $as_echo "no" >&6; }
11671 if test -z "$CC"; then
11672 # Extract the first word of "cc", so it can be a program name with args.
11673 set dummy cc; ac_word=$2
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11675 $as_echo_n "checking for $ac_word... " >&6; }
11676 if ${ac_cv_prog_CC+:} false; then :
11677 $as_echo_n "(cached) " >&6
11679 if test -n "$CC"; then
11680 ac_cv_prog_CC="$CC" # Let the user override the test.
11682 ac_prog_rejected=no
11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684 for as_dir in $PATH
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11691 ac_prog_rejected=yes
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 if test $ac_prog_rejected = yes; then
11703 # We found a bogon in the path, so make sure we never use it.
11704 set dummy $ac_cv_prog_CC
11706 if test $# != 0; then
11707 # We chose a different compiler from the bogus one.
11708 # However, it has the same basename, so the bogon will be chosen
11709 # first if we set CC to just the basename; use the full file name.
11711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11717 if test -n "$CC"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11719 $as_echo "$CC" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11727 if test -z "$CC"; then
11728 if test -n "$ac_tool_prefix"; then
11729 for ac_prog in cl.exe
11731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 $as_echo_n "checking for $ac_word... " >&6; }
11735 if ${ac_cv_prog_CC+:} false; then :
11736 $as_echo_n "(cached) " >&6
11738 if test -n "$CC"; then
11739 ac_cv_prog_CC="$CC" # Let the user override the test.
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742 for as_dir in $PATH
11745 test -z "$as_dir" && as_dir=.
11746 for ac_exec_ext in '' $ac_executable_extensions; do
11747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11759 if test -n "$CC"; then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11761 $as_echo "$CC" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11768 test -n "$CC" && break
11771 if test -z "$CC"; then
11773 for ac_prog in cl.exe
11775 # Extract the first word of "$ac_prog", so it can be a program name with args.
11776 set dummy $ac_prog; ac_word=$2
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778 $as_echo_n "checking for $ac_word... " >&6; }
11779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11780 $as_echo_n "(cached) " >&6
11782 if test -n "$ac_ct_CC"; then
11783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786 for as_dir in $PATH
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11792 ac_cv_prog_ac_ct_CC="$ac_prog"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11803 if test -n "$ac_ct_CC"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11805 $as_echo "$ac_ct_CC" >&6; }
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11812 test -n "$ac_ct_CC" && break
11815 if test "x$ac_ct_CC" = x; then
11818 case $cross_compiling:$ac_tool_warned in
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11822 ac_tool_warned=yes ;;
11831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11833 as_fn_error $? "no acceptable C compiler found in \$PATH
11834 See \`config.log' for more details" "$LINENO" 5; }
11836 # Provide some information about the compiler.
11837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11840 for ac_option in --version -v -V -qversion; do
11841 { { ac_try="$ac_compiler $ac_option >&5"
11842 case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11847 $as_echo "$ac_try_echo"; } >&5
11848 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11850 if test -s conftest.err; then
11852 ... rest of stderr output deleted ...
11853 10q' conftest.err >conftest.er1
11854 cat conftest.er1 >&5
11856 rm -f conftest.er1 conftest.err
11857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858 test $ac_status = 0; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11862 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11863 if ${ac_cv_c_compiler_gnu+:} false; then :
11864 $as_echo_n "(cached) " >&6
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11880 if ac_fn_c_try_compile "$LINENO"; then :
11881 ac_compiler_gnu=yes
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11891 if test $ac_compiler_gnu = yes; then
11896 ac_test_CFLAGS=${CFLAGS+set}
11897 ac_save_CFLAGS=$CFLAGS
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11900 if ${ac_cv_prog_cc_g+:} false; then :
11901 $as_echo_n "(cached) " >&6
11903 ac_save_c_werror_flag=$ac_c_werror_flag
11904 ac_c_werror_flag=yes
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11918 if ac_fn_c_try_compile "$LINENO"; then :
11919 ac_cv_prog_cc_g=yes
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11933 if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_c_werror_flag=$ac_save_c_werror_flag
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11949 if ac_fn_c_try_compile "$LINENO"; then :
11950 ac_cv_prog_cc_g=yes
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 ac_c_werror_flag=$ac_save_c_werror_flag
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11960 $as_echo "$ac_cv_prog_cc_g" >&6; }
11961 if test "$ac_test_CFLAGS" = set; then
11962 CFLAGS=$ac_save_CFLAGS
11963 elif test $ac_cv_prog_cc_g = yes; then
11964 if test "$GCC" = yes; then
11970 if test "$GCC" = yes; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11977 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11978 if ${ac_cv_prog_cc_c89+:} false; then :
11979 $as_echo_n "(cached) " >&6
11981 ac_cv_prog_cc_c89=no
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <stdarg.h>
11988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11989 struct buf { int x; };
11990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11991 static char *e (p, i)
11997 static char *f (char * (*g) (char **, int), char **p, ...)
12002 s = g (p, va_arg (v,int));
12007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12008 function prototypes and stuff, but not '\xHH' hex character constants.
12009 These don't provoke an error unfortunately, instead are silently treated
12010 as 'x'. The following induces an error, until -std is added to get
12011 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12012 array size at least. It's necessary to write '\x00'==0 to get something
12013 that's true only with -std. */
12014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12017 inside strings and character constants. */
12019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12021 int test (int i, double x);
12022 struct s1 {int (*f) (int a);};
12023 struct s2 {int (*f) (double a);};
12024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12036 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12038 CC="$ac_save_CC $ac_arg"
12039 if ac_fn_c_try_compile "$LINENO"; then :
12040 ac_cv_prog_cc_c89=$ac_arg
12042 rm -f core conftest.err conftest.$ac_objext
12043 test "x$ac_cv_prog_cc_c89" != "xno" && break
12045 rm -f conftest.$ac_ext
12050 case "x$ac_cv_prog_cc_c89" in
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12053 $as_echo "none needed" >&6; } ;;
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12056 $as_echo "unsupported" >&6; } ;;
12058 CC="$CC $ac_cv_prog_cc_c89"
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12062 if test "x$ac_cv_prog_cc_c89" != xno; then :
12067 ac_cpp='$CPP $CPPFLAGS'
12068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073 ac_cpp='$CPP $CPPFLAGS'
12074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12079 if ${am_cv_prog_cc_c_o+:} false; then :
12080 $as_echo_n "(cached) " >&6
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12093 # Make sure it works both with $CC and with simple cc.
12094 # Following AC_PROG_CC_C_O, we do the test twice because some
12095 # compilers refuse to overwrite an existing .o file with -o,
12096 # though they will create one.
12097 am_cv_prog_cc_c_o=yes
12098 for am_i in 1 2; do
12099 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12100 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } \
12104 && test -f conftest2.$ac_objext; then
12107 am_cv_prog_cc_c_o=no
12111 rm -f core conftest*
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12116 if test "$am_cv_prog_cc_c_o" != yes; then
12117 # Losing compiler, so override with the script.
12118 # FIXME: It is wrong to rewrite CC.
12119 # But if we don't then we get into trouble of one sort or another.
12120 # A longer-term fix would be to have automake use am__CC in this case,
12121 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12122 CC="$am_aux_dir/compile $CC"
12125 ac_cpp='$CPP $CPPFLAGS'
12126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12131 depcc="$CC" am_compiler_list=
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12134 $as_echo_n "checking dependency style of $depcc... " >&6; }
12135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12136 $as_echo_n "(cached) " >&6
12138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12139 # We make a subdir and do the tests there. Otherwise we can end up
12140 # making bogus files that we don't know about and never remove. For
12141 # instance it was reported that on HP-UX the gcc test will end up
12142 # making a dummy file named 'D' -- because '-MD' means "put the output
12144 rm -rf conftest.dir
12146 # Copy depcomp to subdir because otherwise we won't find it if we're
12147 # using a relative directory.
12148 cp "$am_depcomp" conftest.dir
12150 # We will build objects and dependencies in a subdirectory because
12151 # it helps to detect inapplicable dependency modes. For instance
12152 # both Tru64's cc and ICC support -MD to output dependencies as a
12153 # side effect of compilation, but ICC will put the dependencies in
12154 # the current directory while Tru64 will put them in the object
12158 am_cv_CC_dependencies_compiler_type=none
12159 if test "$am_compiler_list" = ""; then
12160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12162 am__universal=false
12163 case " $depcc " in #(
12164 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12167 for depmode in $am_compiler_list; do
12168 # Setup a source with many dependencies, because some compilers
12169 # like to wrap large dependency lists on column 80 (with \), and
12170 # we should not choose a depcomp mode which is confused by this.
12172 # We need to recreate these files for each test, as the compiler may
12173 # overwrite some of them when testing with obscure command lines.
12174 # This happens at least with the AIX C compiler.
12176 for i in 1 2 3 4 5 6; do
12177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12179 # Solaris 10 /bin/sh.
12180 echo '/* dummy */' > sub/conftst$i.h
12182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12185 # mode. It turns out that the SunPro C++ compiler does not properly
12186 # handle '-M -o', and we need to detect this. Also, some Intel
12187 # versions had trouble with output in subdirs.
12188 am__obj=sub/conftest.${OBJEXT-o}
12189 am__minus_obj="-o $am__obj"
12192 # This depmode causes a compiler race in universal mode.
12193 test "$am__universal" = false || continue
12196 # After this tag, mechanisms are not by side-effect, so they'll
12197 # only be used when explicitly requested.
12198 if test "x$enable_dependency_tracking" = xyes; then
12204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12205 # This compiler won't grok '-c -o', but also, the minuso test has
12206 # not run yet. These depmodes are late enough in the game, and
12207 # so weak that their functioning should not be impacted.
12208 am__obj=conftest.${OBJEXT-o}
12213 if depmode=$depmode \
12214 source=sub/conftest.c object=$am__obj \
12215 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12216 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12217 >/dev/null 2>conftest.err &&
12218 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12219 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12220 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12221 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12222 # icc doesn't choke on unknown options, it will just issue warnings
12223 # or remarks (even with -Werror). So we grep stderr for any message
12224 # that says an option was ignored or not supported.
12225 # When given -MP, icc 7.0 and 7.1 complain thusly:
12226 # icc: Command line warning: ignoring option '-M'; no argument required
12227 # The diagnosis changed in icc 8.0:
12228 # icc: Command line remark: option '-MP' not supported
12229 if (grep 'ignoring option' conftest.err ||
12230 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12231 am_cv_CC_dependencies_compiler_type=$depmode
12238 rm -rf conftest.dir
12240 am_cv_CC_dependencies_compiler_type=none
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12245 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12249 test "x$enable_dependency_tracking" != xno \
12250 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12251 am__fastdepCC_TRUE=
12252 am__fastdepCC_FALSE='#'
12254 am__fastdepCC_TRUE='#'
12255 am__fastdepCC_FALSE=
12263 *linux*) arch=linux;;
12264 *netbsd*) arch=netbsd;;
12269 if test "$ac_env_CFLAGS_set" != set; then
12270 CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
12273 # Check whether --enable-lib was given.
12274 if test "${enable_lib+set}" = set; then :
12275 enableval=$enable_lib;
12278 # Check whether --enable-util was given.
12279 if test "${enable_util+set}" = set; then :
12280 enableval=$enable_util;
12283 # Check whether --enable-example was given.
12284 if test "${enable_example+set}" = set; then :
12285 enableval=$enable_example;
12288 # Check whether --enable-mtab was given.
12289 if test "${enable_mtab+set}" = set; then :
12290 enableval=$enable_mtab;
12295 # Check whether --with-pkgconfigdir was given.
12296 if test "${with_pkgconfigdir+set}" = set; then :
12297 withval=$with_pkgconfigdir; pkgconfigdir=$withval
12299 pkgconfigdir='${libdir}/pkgconfig'
12306 if test "$enable_lib" != "no"; then
12307 subdirs2="$subdirs2 lib";
12309 if test "$arch" = linux -a "$enable_util" != "no"; then
12310 subdirs2="$subdirs2 util";
12312 if test "$enable_example" != "no"; then
12313 subdirs2="$subdirs2 example";
12315 if test "$enable_mtab" = "no"; then
12317 $as_echo "#define IGNORE_MTAB 1" >>confdefs.h
12321 for ac_func in fork setxattr fdatasync splice vmsplice utimensat
12323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12325 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12333 for ac_func in posix_fallocate
12335 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12336 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12337 cat >>confdefs.h <<_ACEOF
12338 #define HAVE_POSIX_FALLOCATE 1
12344 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12345 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12347 cat >>confdefs.h <<_ACEOF
12348 #define HAVE_STRUCT_STAT_ST_ATIM 1
12354 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
12355 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12367 $as_echo_n "checking for library containing dlopen... " >&6; }
12368 if ${ac_cv_search_dlopen+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 ac_func_search_save_LIBS=$LIBS
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12390 for ac_lib in '' dl; do
12391 if test -z "$ac_lib"; then
12392 ac_res="none required"
12395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12397 if ac_fn_c_try_link "$LINENO"; then :
12398 ac_cv_search_dlopen=$ac_res
12400 rm -f core conftest.err conftest.$ac_objext \
12402 if ${ac_cv_search_dlopen+:} false; then :
12406 if ${ac_cv_search_dlopen+:} false; then :
12409 ac_cv_search_dlopen=no
12411 rm conftest.$ac_ext
12412 LIBS=$ac_func_search_save_LIBS
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12415 $as_echo "$ac_cv_search_dlopen" >&6; }
12416 ac_res=$ac_cv_search_dlopen
12417 if test "$ac_res" != no; then :
12418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12423 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12424 if ${ac_cv_search_clock_gettime+:} false; then :
12425 $as_echo_n "(cached) " >&6
12427 ac_func_search_save_LIBS=$LIBS
12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h. */
12431 /* Override any GCC internal prototype to avoid an error.
12432 Use char because int might match the return type of a GCC
12433 builtin and then its argument prototype would still apply. */
12437 char clock_gettime ();
12441 return clock_gettime ();
12446 for ac_lib in '' rt; do
12447 if test -z "$ac_lib"; then
12448 ac_res="none required"
12451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12453 if ac_fn_c_try_link "$LINENO"; then :
12454 ac_cv_search_clock_gettime=$ac_res
12456 rm -f core conftest.err conftest.$ac_objext \
12458 if ${ac_cv_search_clock_gettime+:} false; then :
12462 if ${ac_cv_search_clock_gettime+:} false; then :
12465 ac_cv_search_clock_gettime=no
12467 rm conftest.$ac_ext
12468 LIBS=$ac_func_search_save_LIBS
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12471 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12472 ac_res=$ac_cv_search_clock_gettime
12473 if test "$ac_res" != no; then :
12474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12481 # Check whether --with-libiconv-prefix was given.
12482 if test "${with_libiconv_prefix+set}" = set; then :
12483 withval=$with_libiconv_prefix;
12484 for dir in `echo "$withval" | tr : ' '`; do
12485 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12486 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12492 if test "X$prefix" = "XNONE"; then
12493 acl_final_prefix="$ac_default_prefix"
12495 acl_final_prefix="$prefix"
12497 if test "X$exec_prefix" = "XNONE"; then
12498 acl_final_exec_prefix='${prefix}'
12500 acl_final_exec_prefix="$exec_prefix"
12502 acl_save_prefix="$prefix"
12503 prefix="$acl_final_prefix"
12504 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12505 prefix="$acl_save_prefix"
12509 # Check whether --with-gnu-ld was given.
12510 if test "${with_gnu_ld+set}" = set; then :
12511 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12516 # Prepare PATH_SEPARATOR.
12517 # The user is always right.
12518 if test "${PATH_SEPARATOR+set}" != set; then
12519 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
12520 # contains only /bin. Note that ksh looks also at the FPATH variable,
12521 # so we have to set that as well for the test.
12523 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12524 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
12525 || PATH_SEPARATOR=';'
12530 if test "$GCC" = yes; then
12531 # Check if gcc -print-prog-name=ld gives a path.
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12533 $as_echo_n "checking for ld used by $CC... " >&6; }
12536 # gcc leaves a trailing carriage return which upsets mingw
12537 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12539 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12542 # Accept absolute paths.
12544 re_direlt='/[^/][^/]*/\.\./'
12545 # Canonicalize the pathname of ld
12546 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
12547 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
12548 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12550 test -z "$LD" && LD="$ac_prog"
12553 # If it fails, then pretend we aren't using GCC.
12557 # If it is relative, then search for the first ld in PATH.
12558 with_gnu_ld=unknown
12561 elif test "$with_gnu_ld" = yes; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12563 $as_echo_n "checking for GNU ld... " >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12566 $as_echo_n "checking for non-GNU ld... " >&6; }
12568 if ${acl_cv_path_LD+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 if test -z "$LD"; then
12572 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12573 for ac_dir in $PATH; do
12574 IFS="$acl_save_ifs"
12575 test -z "$ac_dir" && ac_dir=.
12576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12577 acl_cv_path_LD="$ac_dir/$ac_prog"
12578 # Check to see if the program is GNU ld. I'd rather use --version,
12579 # but apparently some variants of GNU ld only accept -v.
12580 # Break only if it was the GNU/non-GNU ld that we prefer.
12581 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
12582 *GNU* | *'with BFD'*)
12583 test "$with_gnu_ld" != no && break
12586 test "$with_gnu_ld" != yes && break
12591 IFS="$acl_save_ifs"
12593 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12597 LD="$acl_cv_path_LD"
12598 if test -n "$LD"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12600 $as_echo "$LD" >&6; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12605 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12607 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12608 if ${acl_cv_prog_gnu_ld+:} false; then :
12609 $as_echo_n "(cached) " >&6
12611 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12612 case `$LD -v 2>&1 </dev/null` in
12613 *GNU* | *'with BFD'*)
12614 acl_cv_prog_gnu_ld=yes
12617 acl_cv_prog_gnu_ld=no
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12622 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12623 with_gnu_ld=$acl_cv_prog_gnu_ld
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12629 $as_echo_n "checking for shared library run path origin... " >&6; }
12630 if ${acl_cv_rpath+:} false; then :
12631 $as_echo_n "(cached) " >&6
12634 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12635 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12637 rm -f ./conftest.sh
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12642 $as_echo "$acl_cv_rpath" >&6; }
12644 acl_libext="$acl_cv_libext"
12645 acl_shlibext="$acl_cv_shlibext"
12646 acl_libname_spec="$acl_cv_libname_spec"
12647 acl_library_names_spec="$acl_cv_library_names_spec"
12648 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12649 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12650 acl_hardcode_direct="$acl_cv_hardcode_direct"
12651 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12652 # Check whether --enable-rpath was given.
12653 if test "${enable_rpath+set}" = set; then :
12654 enableval=$enable_rpath; :
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12667 $as_echo_n "checking for 64-bit host... " >&6; }
12668 if ${gl_cv_solaris_64bit+:} false; then :
12669 $as_echo_n "(cached) " >&6
12671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h. */
12679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12680 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12681 gl_cv_solaris_64bit=yes
12683 gl_cv_solaris_64bit=no
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12690 $as_echo "$gl_cv_solaris_64bit" >&6; }
12691 if test $gl_cv_solaris_64bit = yes; then
12692 acl_libdirstem=lib/64
12693 case "$host_cpu" in
12694 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12695 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12700 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12701 if test -n "$searchpath"; then
12702 acl_save_IFS="${IFS= }"; IFS=":"
12703 for searchdir in $searchpath; do
12704 if test -d "$searchdir"; then
12705 case "$searchdir" in
12706 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12708 # Better ignore directories of this form. They are misleading.
12710 *) searchdir=`cd "$searchdir" && pwd`
12711 case "$searchdir" in
12712 */lib64 ) acl_libdirstem=lib64 ;;
12717 IFS="$acl_save_IFS"
12721 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12736 acl_save_prefix="$prefix"
12737 prefix="$acl_final_prefix"
12738 acl_save_exec_prefix="$exec_prefix"
12739 exec_prefix="$acl_final_exec_prefix"
12741 eval additional_includedir=\"$includedir\"
12742 eval additional_libdir=\"$libdir\"
12744 exec_prefix="$acl_save_exec_prefix"
12745 prefix="$acl_save_prefix"
12748 # Check whether --with-libiconv-prefix was given.
12749 if test "${with_libiconv_prefix+set}" = set; then :
12750 withval=$with_libiconv_prefix;
12751 if test "X$withval" = "Xno"; then
12754 if test "X$withval" = "X"; then
12756 acl_save_prefix="$prefix"
12757 prefix="$acl_final_prefix"
12758 acl_save_exec_prefix="$exec_prefix"
12759 exec_prefix="$acl_final_exec_prefix"
12761 eval additional_includedir=\"$includedir\"
12762 eval additional_libdir=\"$libdir\"
12764 exec_prefix="$acl_save_exec_prefix"
12765 prefix="$acl_save_prefix"
12768 additional_includedir="$withval/include"
12769 additional_libdir="$withval/$acl_libdirstem"
12770 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12771 && ! test -d "$withval/$acl_libdirstem"; then
12772 additional_libdir="$withval/$acl_libdirstem2"
12786 names_already_handled=
12787 names_next_round='iconv '
12788 while test -n "$names_next_round"; do
12789 names_this_round="$names_next_round"
12791 for name in $names_this_round; do
12793 for n in $names_already_handled; do
12794 if test "$n" = "$name"; then
12795 already_handled=yes
12799 if test -z "$already_handled"; then
12800 names_already_handled="$names_already_handled $name"
12801 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
12802 eval value=\"\$HAVE_LIB$uppername\"
12803 if test -n "$value"; then
12804 if test "$value" = yes; then
12805 eval value=\"\$LIB$uppername\"
12806 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12807 eval value=\"\$LTLIB$uppername\"
12808 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12817 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12818 if test -n "$acl_shlibext"; then
12819 shrext=".$acl_shlibext" # typically: shrext=.so
12823 if test $use_additional = yes; then
12824 dir="$additional_libdir"
12825 if test -n "$acl_shlibext"; then
12826 if test -f "$dir/$libname$shrext"; then
12828 found_so="$dir/$libname$shrext"
12830 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12831 ver=`(cd "$dir" && \
12832 for f in "$libname$shrext".*; do echo "$f"; done \
12833 | sed -e "s,^$libname$shrext\\\\.,," \
12834 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12835 | sed 1q ) 2>/dev/null`
12836 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12838 found_so="$dir/$libname$shrext.$ver"
12841 eval library_names=\"$acl_library_names_spec\"
12842 for f in $library_names; do
12843 if test -f "$dir/$f"; then
12852 if test "X$found_dir" = "X"; then
12853 if test -f "$dir/$libname.$acl_libext"; then
12855 found_a="$dir/$libname.$acl_libext"
12858 if test "X$found_dir" != "X"; then
12859 if test -f "$dir/$libname.la"; then
12860 found_la="$dir/$libname.la"
12864 if test "X$found_dir" = "X"; then
12865 for x in $LDFLAGS $LTLIBICONV; do
12867 acl_save_prefix="$prefix"
12868 prefix="$acl_final_prefix"
12869 acl_save_exec_prefix="$exec_prefix"
12870 exec_prefix="$acl_final_exec_prefix"
12872 exec_prefix="$acl_save_exec_prefix"
12873 prefix="$acl_save_prefix"
12877 dir=`echo "X$x" | sed -e 's/^X-L//'`
12878 if test -n "$acl_shlibext"; then
12879 if test -f "$dir/$libname$shrext"; then
12881 found_so="$dir/$libname$shrext"
12883 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12884 ver=`(cd "$dir" && \
12885 for f in "$libname$shrext".*; do echo "$f"; done \
12886 | sed -e "s,^$libname$shrext\\\\.,," \
12887 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12888 | sed 1q ) 2>/dev/null`
12889 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12891 found_so="$dir/$libname$shrext.$ver"
12894 eval library_names=\"$acl_library_names_spec\"
12895 for f in $library_names; do
12896 if test -f "$dir/$f"; then
12905 if test "X$found_dir" = "X"; then
12906 if test -f "$dir/$libname.$acl_libext"; then
12908 found_a="$dir/$libname.$acl_libext"
12911 if test "X$found_dir" != "X"; then
12912 if test -f "$dir/$libname.la"; then
12913 found_la="$dir/$libname.la"
12918 if test "X$found_dir" != "X"; then
12923 if test "X$found_dir" != "X"; then
12924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12925 if test "X$found_so" != "X"; then
12926 if test "$enable_rpath" = no \
12927 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12928 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12932 for x in $ltrpathdirs; do
12933 if test "X$x" = "X$found_dir"; then
12938 if test -z "$haveit"; then
12939 ltrpathdirs="$ltrpathdirs $found_dir"
12941 if test "$acl_hardcode_direct" = yes; then
12942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12944 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12947 for x in $rpathdirs; do
12948 if test "X$x" = "X$found_dir"; then
12953 if test -z "$haveit"; then
12954 rpathdirs="$rpathdirs $found_dir"
12958 for x in $LDFLAGS $LIBICONV; do
12960 acl_save_prefix="$prefix"
12961 prefix="$acl_final_prefix"
12962 acl_save_exec_prefix="$exec_prefix"
12963 exec_prefix="$acl_final_exec_prefix"
12965 exec_prefix="$acl_save_exec_prefix"
12966 prefix="$acl_save_prefix"
12968 if test "X$x" = "X-L$found_dir"; then
12973 if test -z "$haveit"; then
12974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12976 if test "$acl_hardcode_minus_L" != no; then
12977 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12979 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12985 if test "X$found_a" != "X"; then
12986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12991 additional_includedir=
12992 case "$found_dir" in
12993 */$acl_libdirstem | */$acl_libdirstem/)
12994 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12995 if test "$name" = 'iconv'; then
12996 LIBICONV_PREFIX="$basedir"
12998 additional_includedir="$basedir/include"
13000 */$acl_libdirstem2 | */$acl_libdirstem2/)
13001 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13002 if test "$name" = 'iconv'; then
13003 LIBICONV_PREFIX="$basedir"
13005 additional_includedir="$basedir/include"
13008 if test "X$additional_includedir" != "X"; then
13009 if test "X$additional_includedir" != "X/usr/include"; then
13011 if test "X$additional_includedir" = "X/usr/local/include"; then
13012 if test -n "$GCC"; then
13014 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13018 if test -z "$haveit"; then
13019 for x in $CPPFLAGS $INCICONV; do
13021 acl_save_prefix="$prefix"
13022 prefix="$acl_final_prefix"
13023 acl_save_exec_prefix="$exec_prefix"
13024 exec_prefix="$acl_final_exec_prefix"
13026 exec_prefix="$acl_save_exec_prefix"
13027 prefix="$acl_save_prefix"
13029 if test "X$x" = "X-I$additional_includedir"; then
13034 if test -z "$haveit"; then
13035 if test -d "$additional_includedir"; then
13036 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13042 if test -n "$found_la"; then
13043 save_libdir="$libdir"
13044 case "$found_la" in
13045 */* | *\\*) . "$found_la" ;;
13046 *) . "./$found_la" ;;
13048 libdir="$save_libdir"
13049 for dep in $dependency_libs; do
13052 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13053 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13054 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13056 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13057 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13058 if test -n "$GCC"; then
13060 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13064 if test -z "$haveit"; then
13066 for x in $LDFLAGS $LIBICONV; do
13068 acl_save_prefix="$prefix"
13069 prefix="$acl_final_prefix"
13070 acl_save_exec_prefix="$exec_prefix"
13071 exec_prefix="$acl_final_exec_prefix"
13073 exec_prefix="$acl_save_exec_prefix"
13074 prefix="$acl_save_prefix"
13076 if test "X$x" = "X-L$additional_libdir"; then
13081 if test -z "$haveit"; then
13082 if test -d "$additional_libdir"; then
13083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13087 for x in $LDFLAGS $LTLIBICONV; do
13089 acl_save_prefix="$prefix"
13090 prefix="$acl_final_prefix"
13091 acl_save_exec_prefix="$exec_prefix"
13092 exec_prefix="$acl_final_exec_prefix"
13094 exec_prefix="$acl_save_exec_prefix"
13095 prefix="$acl_save_prefix"
13097 if test "X$x" = "X-L$additional_libdir"; then
13102 if test -z "$haveit"; then
13103 if test -d "$additional_libdir"; then
13104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13111 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13112 if test "$enable_rpath" != no; then
13114 for x in $rpathdirs; do
13115 if test "X$x" = "X$dir"; then
13120 if test -z "$haveit"; then
13121 rpathdirs="$rpathdirs $dir"
13124 for x in $ltrpathdirs; do
13125 if test "X$x" = "X$dir"; then
13130 if test -z "$haveit"; then
13131 ltrpathdirs="$ltrpathdirs $dir"
13136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13142 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13149 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13156 if test "X$rpathdirs" != "X"; then
13157 if test -n "$acl_hardcode_libdir_separator"; then
13159 for found_dir in $rpathdirs; do
13160 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13162 acl_save_libdir="$libdir"
13164 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13165 libdir="$acl_save_libdir"
13166 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13168 for found_dir in $rpathdirs; do
13169 acl_save_libdir="$libdir"
13170 libdir="$found_dir"
13171 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13172 libdir="$acl_save_libdir"
13173 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13177 if test "X$ltrpathdirs" != "X"; then
13178 for found_dir in $ltrpathdirs; do
13179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13194 am_save_CPPFLAGS="$CPPFLAGS"
13196 for element in $INCICONV; do
13198 for x in $CPPFLAGS; do
13200 acl_save_prefix="$prefix"
13201 prefix="$acl_final_prefix"
13202 acl_save_exec_prefix="$exec_prefix"
13203 exec_prefix="$acl_final_exec_prefix"
13205 exec_prefix="$acl_save_exec_prefix"
13206 prefix="$acl_save_prefix"
13208 if test "X$x" = "X$element"; then
13213 if test -z "$haveit"; then
13214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13220 $as_echo_n "checking for iconv... " >&6; }
13221 if ${am_cv_func_iconv+:} false; then :
13222 $as_echo_n "(cached) " >&6
13225 am_cv_func_iconv="no, consider installing GNU libiconv"
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 #include <stdlib.h>
13236 iconv_t cd = iconv_open("","");
13237 iconv(cd,NULL,NULL,NULL,NULL);
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 am_cv_func_iconv=yes
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 if test "$am_cv_func_iconv" != yes; then
13249 am_save_LIBS="$LIBS"
13250 LIBS="$LIBS $LIBICONV"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 #include <stdlib.h>
13260 iconv_t cd = iconv_open("","");
13261 iconv(cd,NULL,NULL,NULL,NULL);
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 am_cv_lib_iconv=yes
13269 am_cv_func_iconv=yes
13271 rm -f core conftest.err conftest.$ac_objext \
13272 conftest$ac_exeext conftest.$ac_ext
13273 LIBS="$am_save_LIBS"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13278 $as_echo "$am_cv_func_iconv" >&6; }
13279 if test "$am_cv_func_iconv" = yes; then
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13281 $as_echo_n "checking for working iconv... " >&6; }
13282 if ${am_cv_func_iconv_works+:} false; then :
13283 $as_echo_n "(cached) " >&6
13286 am_save_LIBS="$LIBS"
13287 if test $am_cv_lib_iconv = yes; then
13288 LIBS="$LIBS $LIBICONV"
13290 if test "$cross_compiling" = yes; then :
13293 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13294 *) am_cv_func_iconv_works="guessing yes" ;;
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13302 #include <string.h>
13306 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13309 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13310 if (cd_utf8_to_88591 != (iconv_t)(-1))
13312 static const char input[] = "\342\202\254"; /* EURO SIGN */
13314 const char *inptr = input;
13315 size_t inbytesleft = strlen (input);
13316 char *outptr = buf;
13317 size_t outbytesleft = sizeof (buf);
13318 size_t res = iconv (cd_utf8_to_88591,
13319 (char **) &inptr, &inbytesleft,
13320 &outptr, &outbytesleft);
13323 iconv_close (cd_utf8_to_88591);
13326 /* Test against Solaris 10 bug: Failures are not distinguishable from
13327 successful returns. */
13329 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13330 if (cd_ascii_to_88591 != (iconv_t)(-1))
13332 static const char input[] = "\263";
13334 const char *inptr = input;
13335 size_t inbytesleft = strlen (input);
13336 char *outptr = buf;
13337 size_t outbytesleft = sizeof (buf);
13338 size_t res = iconv (cd_ascii_to_88591,
13339 (char **) &inptr, &inbytesleft,
13340 &outptr, &outbytesleft);
13343 iconv_close (cd_ascii_to_88591);
13346 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
13348 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
13349 if (cd_88591_to_utf8 != (iconv_t)(-1))
13351 static const char input[] = "\304";
13352 static char buf[2] = { (char)0xDE, (char)0xAD };
13353 const char *inptr = input;
13354 size_t inbytesleft = 1;
13355 char *outptr = buf;
13356 size_t outbytesleft = 1;
13357 size_t res = iconv (cd_88591_to_utf8,
13358 (char **) &inptr, &inbytesleft,
13359 &outptr, &outbytesleft);
13360 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
13362 iconv_close (cd_88591_to_utf8);
13365 #if 0 /* This bug could be worked around by the caller. */
13366 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13368 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13369 if (cd_88591_to_utf8 != (iconv_t)(-1))
13371 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13373 const char *inptr = input;
13374 size_t inbytesleft = strlen (input);
13375 char *outptr = buf;
13376 size_t outbytesleft = sizeof (buf);
13377 size_t res = iconv (cd_88591_to_utf8,
13378 (char **) &inptr, &inbytesleft,
13379 &outptr, &outbytesleft);
13382 iconv_close (cd_88591_to_utf8);
13386 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13388 if (/* Try standardized names. */
13389 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13390 /* Try IRIX, OSF/1 names. */
13391 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13392 /* Try AIX names. */
13393 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13394 /* Try HP-UX names. */
13395 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13400 if ac_fn_c_try_run "$LINENO"; then :
13401 am_cv_func_iconv_works=yes
13403 am_cv_func_iconv_works=no
13405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13406 conftest.$ac_objext conftest.beam conftest.$ac_ext
13409 LIBS="$am_save_LIBS"
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13413 $as_echo "$am_cv_func_iconv_works" >&6; }
13414 case "$am_cv_func_iconv_works" in
13415 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13416 *) am_func_iconv=yes ;;
13419 am_func_iconv=no am_cv_lib_iconv=no
13421 if test "$am_func_iconv" = yes; then
13423 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13426 if test "$am_cv_lib_iconv" = yes; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13428 $as_echo_n "checking how to link with libiconv... " >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13430 $as_echo "$LIBICONV" >&6; }
13432 CPPFLAGS="$am_save_CPPFLAGS"
13439 if test "$am_cv_func_iconv" = yes; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13441 $as_echo_n "checking for iconv declaration... " >&6; }
13442 if ${am_cv_proto_iconv+:} false; then :
13443 $as_echo_n "(cached) " >&6
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13449 #include <stdlib.h>
13455 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
13456 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13469 if ac_fn_c_try_compile "$LINENO"; then :
13470 am_cv_proto_iconv_arg1=""
13472 am_cv_proto_iconv_arg1="const"
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 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);"
13478 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13480 $am_cv_proto_iconv" >&5
13482 $am_cv_proto_iconv" >&6; }
13484 cat >>confdefs.h <<_ACEOF
13485 #define ICONV_CONST $am_cv_proto_iconv_arg1
13491 libfuse_libs="$libfuse_libs $LTLIBICONV"
13492 if test "$am_cv_func_iconv" = yes; then
13502 if test -z "$MOUNT_FUSE_PATH"; then
13503 MOUNT_FUSE_PATH=/sbin
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&5
13505 $as_echo "$as_me: MOUNT_FUSE_PATH env var not set, using default $MOUNT_FUSE_PATH" >&6;}
13508 if test -z "$UDEV_RULES_PATH"; then
13509 UDEV_RULES_PATH=/etc/udev/rules.d
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&5
13511 $as_echo "$as_me: UDEV_RULES_PATH env var not set, using default $UDEV_RULES_PATH" >&6;}
13514 if test -z "$INIT_D_PATH"; then
13515 INIT_D_PATH=/etc/init.d
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&5
13517 $as_echo "$as_me: INIT_D_PATH env var not set, using default $INIT_D_PATH" >&6;}
13523 if test "$arch" = linux; then
13531 if test "$arch" = netbsd; then
13539 if test "$arch" = bsd; then
13549 if test "$arch" = linux -a "$cross_compiling" != "yes"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umount supports --fake --no-canonicalize" >&5
13551 $as_echo_n "checking if umount supports --fake --no-canonicalize... " >&6; }
13552 # exit code of umount is 1 if option is unrecognised, 2 otherwise
13553 umount --fake --no-canonicalize > /dev/null 2>&1
13554 if test $? != 1; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13556 $as_echo "yes" >&6; }
13558 firstline=`umount --fake --no-canonicalize 2>&1 | head -1`
13559 if test "$firstline" = 'umount: only root can use "--fake" option'; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13561 $as_echo "yes" >&6; }
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $firstline" >&5
13564 $as_echo "$firstline" >&6; }
13570 ac_config_files="$ac_config_files fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile doc/Makefile"
13572 cat >confcache <<\_ACEOF
13573 # This file is a shell script that caches the results of configure
13574 # tests run on this system so they can be shared between configure
13575 # scripts and configure runs, see configure's option --config-cache.
13576 # It is not useful on other systems. If it contains results you don't
13577 # want to keep, you may remove or edit it.
13579 # config.status only pays attention to the cache file if you give it
13580 # the --recheck option to rerun configure.
13582 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13583 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13584 # following values.
13588 # The following way of writing the cache mishandles newlines in values,
13589 # but we know of no workaround that is simple, portable, and efficient.
13590 # So, we kill variables containing newlines.
13591 # Ultrix sh set writes to stderr and can't be redirected directly,
13592 # and sets the high bit in the cache file unless we assign to the vars.
13594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13595 eval ac_val=\$$ac_var
13599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13603 _ | IFS | as_nl) ;; #(
13604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13605 *) { eval $ac_var=; unset $ac_var;} ;;
13611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13612 *${as_nl}ac_space=\ *)
13613 # `set' does not quote correctly, so add quotes: double-quote
13614 # substitution turns \\\\ into \\, and sed turns \\ into \.
13617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13620 # `set' quotes correctly as required by POSIX, so do not add quotes.
13621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13630 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13634 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13635 if test -w "$cache_file"; then
13636 if test "x$cache_file" != "x/dev/null"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13638 $as_echo "$as_me: updating cache $cache_file" >&6;}
13639 if test ! -f "$cache_file" || test -h "$cache_file"; then
13640 cat confcache >"$cache_file"
13642 case $cache_file in #(
13644 mv -f confcache "$cache_file"$$ &&
13645 mv -f "$cache_file"$$ "$cache_file" ;; #(
13647 mv -f confcache "$cache_file" ;;
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13659 # Let make expand exec_prefix.
13660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13662 DEFS=-DHAVE_CONFIG_H
13667 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13668 # 1. Remove the extension, and $U if already installed.
13669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13670 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13672 # will be set to the directory where LIBOBJS objects are built.
13673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13676 LIBOBJS=$ac_libobjs
13678 LTLIBOBJS=$ac_ltlibobjs
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13682 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13683 if test -n "$am_sleep_pid"; then
13684 # Hide warnings about reused PIDs.
13685 wait $am_sleep_pid 2>/dev/null
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13688 $as_echo "done" >&6; }
13689 if test -n "$EXEEXT"; then
13691 am__EXEEXT_FALSE='#'
13693 am__EXEEXT_TRUE='#'
13697 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13698 as_fn_error $? "conditional \"AMDEP\" was never defined.
13699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13702 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13706 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13709 if test -z "${ICONV_TRUE}" && test -z "${ICONV_FALSE}"; then
13710 as_fn_error $? "conditional \"ICONV\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
13714 as_fn_error $? "conditional \"LINUX\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
13718 as_fn_error $? "conditional \"NETBSD\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
13722 as_fn_error $? "conditional \"BSD\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13726 : "${CONFIG_STATUS=./config.status}"
13728 ac_clean_files_save=$ac_clean_files
13729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13735 # Generated by $as_me.
13736 # Run this file to recreate the current configuration.
13737 # Compiler output produced by configure, useful for debugging
13738 # configure, is in config.log if it exists.
13741 ac_cs_recheck=false
13744 SHELL=\${CONFIG_SHELL-$SHELL}
13747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13748 ## -------------------- ##
13749 ## M4sh Initialization. ##
13750 ## -------------------- ##
13752 # Be more Bourne compatible
13753 DUALCASE=1; export DUALCASE # for MKS sh
13754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758 # is contrary to our usage. Disable this feature.
13759 alias -g '${1+"$@"}'='"$@"'
13760 setopt NO_GLOB_SUBST
13762 case `(set -o) 2>/dev/null` in #(
13774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13778 # Prefer a ksh shell builtin over an external printf program on Solaris,
13779 # but without wasting forks for bash or zsh.
13780 if test -z "$BASH_VERSION$ZSH_VERSION" \
13781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13782 as_echo='print -r --'
13783 as_echo_n='print -rn --'
13784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13785 as_echo='printf %s\n'
13786 as_echo_n='printf %s'
13788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13790 as_echo_n='/usr/ucb/echo -n'
13792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13793 as_echo_n_body='eval
13797 expr "X$arg" : "X\\(.*\\)$as_nl";
13798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13802 export as_echo_n_body
13803 as_echo_n='sh -c $as_echo_n_body as_echo'
13805 export as_echo_body
13806 as_echo='sh -c $as_echo_body as_echo'
13809 # The user is always right.
13810 if test "${PATH_SEPARATOR+set}" != set; then
13812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13820 # We need space, tab and new line, in precisely that order. Quoting is
13821 # there to prevent editors from complaining about space-tab.
13822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13823 # splitting by setting IFS to empty value.)
13826 # Find who we are. Look in the path if we contain no directory separator.
13829 *[\\/]* ) as_myself=$0 ;;
13830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13834 test -z "$as_dir" && as_dir=.
13835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13841 # We did not find ourselves, most probably we were run as `sh COMMAND'
13842 # in which case we are not to be found in the path.
13843 if test "x$as_myself" = x; then
13846 if test ! -f "$as_myself"; then
13847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13851 # Unset variables that we do not need and which cause bugs (e.g. in
13852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13853 # suppresses any "Segmentation fault" message there. '((' could
13854 # trigger a bug in pdksh 5.2.14.
13855 for as_var in BASH_ENV ENV MAIL MAILPATH
13856 do eval test x\${$as_var+set} = xset \
13857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13874 # ----------------------------------------
13875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13877 # script with STATUS, using 1 if that was 0.
13880 as_status=$1; test $as_status -eq 0 && as_status=1
13882 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13885 $as_echo "$as_me: error: $2" >&2
13886 as_fn_exit $as_status
13890 # as_fn_set_status STATUS
13891 # -----------------------
13892 # Set $? to STATUS, without forking.
13893 as_fn_set_status ()
13896 } # as_fn_set_status
13898 # as_fn_exit STATUS
13899 # -----------------
13900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13904 as_fn_set_status $1
13910 # Portably unset VAR.
13913 { eval $1=; unset $1;}
13915 as_unset=as_fn_unset
13916 # as_fn_append VAR VALUE
13917 # ----------------------
13918 # Append the text in VALUE to the end of the definition contained in VAR. Take
13919 # advantage of any shell optimizations that allow amortized linear growth over
13920 # repeated appends, instead of the typical quadratic growth present in naive
13922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13923 eval 'as_fn_append ()
13934 # as_fn_arith ARG...
13935 # ------------------
13936 # Perform arithmetic evaluation on the ARGs, and store the result in the
13937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13938 # must be portable across $(()) and expr.
13939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13940 eval 'as_fn_arith ()
13947 as_val=`expr "$@" || test $? -eq 1`
13952 if expr a : '\(a\)' >/dev/null 2>&1 &&
13953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13960 as_basename=basename
13965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973 X"$0" : 'X\(//\)$' \| \
13974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976 sed '/^.*\/\([^/][^/]*\)\/*$/{
13990 # Avoid depending upon Character Ranges.
13991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13994 as_cr_digits='0123456789'
13995 as_cr_alnum=$as_cr_Letters$as_cr_digits
13997 ECHO_C= ECHO_N= ECHO_T=
13998 case `echo -n x` in #(((((
14000 case `echo 'xy\c'` in
14001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14010 rm -f conf$$ conf$$.exe conf$$.file
14011 if test -d conf$$.dir; then
14012 rm -f conf$$.dir/conf$$.file
14015 mkdir conf$$.dir 2>/dev/null
14017 if (echo >conf$$.file) 2>/dev/null; then
14018 if ln -s conf$$.file conf$$ 2>/dev/null; then
14020 # ... but there are two gotchas:
14021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14023 # In both cases, we have to default to `cp -pR'.
14024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14026 elif ln conf$$.file conf$$ 2>/dev/null; then
14034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14035 rmdir conf$$.dir 2>/dev/null
14040 # Create "$as_dir" as a directory, including parents if necessary.
14045 -*) as_dir=./$as_dir;;
14047 test -d "$as_dir" || eval $as_mkdir_p || {
14051 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14052 *) as_qdir=$as_dir;;
14054 as_dirs="'$as_qdir' $as_dirs"
14055 as_dir=`$as_dirname -- "$as_dir" ||
14056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14057 X"$as_dir" : 'X\(//\)[^/]' \| \
14058 X"$as_dir" : 'X\(//\)$' \| \
14059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14060 $as_echo X"$as_dir" |
14061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14065 /^X\(\/\/\)[^/].*/{
14078 test -d "$as_dir" && break
14080 test -z "$as_dirs" || eval "mkdir $as_dirs"
14081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14085 if mkdir -p . 2>/dev/null; then
14086 as_mkdir_p='mkdir -p "$as_dir"'
14088 test -d ./-p && rmdir ./-p
14093 # as_fn_executable_p FILE
14094 # -----------------------
14095 # Test if FILE is an executable regular file.
14096 as_fn_executable_p ()
14098 test -f "$1" && test -x "$1"
14099 } # as_fn_executable_p
14100 as_test_x='test -x'
14101 as_executable_p=as_fn_executable_p
14103 # Sed expression to map a string onto a valid CPP name.
14104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14106 # Sed expression to map a string onto a valid variable name.
14107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14111 ## ----------------------------------- ##
14112 ## Main body of $CONFIG_STATUS script. ##
14113 ## ----------------------------------- ##
14115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14118 # Save the log message, to keep $0 and so on meaningful, and to
14119 # report actual input values of CONFIG_FILES etc. instead of their
14120 # values after options handling.
14122 This file was extended by fuse $as_me 2.9.6, which was
14123 generated by GNU Autoconf 2.69. Invocation command line was
14125 CONFIG_FILES = $CONFIG_FILES
14126 CONFIG_HEADERS = $CONFIG_HEADERS
14127 CONFIG_LINKS = $CONFIG_LINKS
14128 CONFIG_COMMANDS = $CONFIG_COMMANDS
14131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14136 case $ac_config_files in *"
14137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14140 case $ac_config_headers in *"
14141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 # Files that config.status was made for.
14147 config_files="$ac_config_files"
14148 config_headers="$ac_config_headers"
14149 config_commands="$ac_config_commands"
14153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14155 \`$as_me' instantiates files and other configuration actions
14156 from templates according to the current configuration. Unless the files
14157 and actions are specified as TAGs, all are instantiated by default.
14159 Usage: $0 [OPTION]... [TAG]...
14161 -h, --help print this help, then exit
14162 -V, --version print version number and configuration settings, then exit
14163 --config print configuration, then exit
14164 -q, --quiet, --silent
14165 do not print progress messages
14166 -d, --debug don't remove temporary files
14167 --recheck update $as_me by reconfiguring in the same conditions
14168 --file=FILE[:TEMPLATE]
14169 instantiate the configuration file FILE
14170 --header=FILE[:TEMPLATE]
14171 instantiate the configuration header FILE
14173 Configuration files:
14176 Configuration headers:
14179 Configuration commands:
14182 Report bugs to the package provider."
14185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14186 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14188 fuse config.status 2.9.6
14189 configured by $0, generated by GNU Autoconf 2.69,
14190 with options \\"\$ac_cs_config\\"
14192 Copyright (C) 2012 Free Software Foundation, Inc.
14193 This config.status script is free software; the Free Software Foundation
14194 gives unlimited permission to copy, distribute and modify it."
14201 test -n "\$AWK" || AWK=awk
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 # The default lists apply if the user does not specify any file.
14211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14212 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14228 # Handling of the options.
14229 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14231 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14232 $as_echo "$ac_cs_version"; exit ;;
14233 --config | --confi | --conf | --con | --co | --c )
14234 $as_echo "$ac_cs_config"; exit ;;
14235 --debug | --debu | --deb | --de | --d | -d )
14237 --file | --fil | --fi | --f )
14240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14241 '') as_fn_error $? "missing file argument" ;;
14243 as_fn_append CONFIG_FILES " '$ac_optarg'"
14244 ac_need_defaults=false;;
14245 --header | --heade | --head | --hea )
14248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14250 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14251 ac_need_defaults=false;;
14253 # Conflict between --help and --header
14254 as_fn_error $? "ambiguous option: \`$1'
14255 Try \`$0 --help' for more information.";;
14256 --help | --hel | -h )
14257 $as_echo "$ac_cs_usage"; exit ;;
14258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14262 # This is an error.
14263 -*) as_fn_error $? "unrecognized option: \`$1'
14264 Try \`$0 --help' for more information." ;;
14266 *) as_fn_append ac_config_targets " $1"
14267 ac_need_defaults=false ;;
14273 ac_configure_extra_args=
14275 if $ac_cs_silent; then
14277 ac_configure_extra_args="$ac_configure_extra_args --silent"
14281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14282 if \$ac_cs_recheck; then
14283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14286 CONFIG_SHELL='$SHELL'
14287 export CONFIG_SHELL
14292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14297 ## Running $as_me. ##
14303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14310 # The HP-UX ksh and POSIX shell print the target directory to stdout
14311 # if CDPATH is set.
14312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14314 sed_quote_subst='$sed_quote_subst'
14315 double_quote_subst='$double_quote_subst'
14316 delay_variable_subst='$delay_variable_subst'
14317 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14318 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14319 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14320 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14323 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14324 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14325 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14326 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14327 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14328 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14329 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14330 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14331 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14332 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14333 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14334 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14335 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14336 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14337 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14338 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14339 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14340 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14341 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14342 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14343 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14344 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14345 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14346 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14347 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14348 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14349 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14350 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14351 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14352 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14353 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14354 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14355 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14356 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14357 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14358 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14359 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14360 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14361 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14362 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14363 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14364 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14365 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14366 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14367 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14368 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14369 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14370 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14371 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14372 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14373 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"`'
14374 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14375 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14376 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14377 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14378 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14379 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14380 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14381 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14382 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14383 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14384 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14385 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14386 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14387 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14388 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14389 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14390 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14391 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14392 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14393 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14394 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14395 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14396 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14397 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14398 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14399 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14400 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14401 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14402 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14403 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14404 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14405 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14406 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14407 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14408 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14409 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14410 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14411 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14412 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14413 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14414 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14415 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14416 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14417 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14418 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14419 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14420 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14421 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14422 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14423 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14424 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14425 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14426 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14427 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14428 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14429 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14430 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14431 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14432 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14433 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14434 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14435 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14436 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14437 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14438 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14439 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14440 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14449 LTCFLAGS='$LTCFLAGS'
14450 compiler='$compiler_DEFAULT'
14452 # A function that is used when there is no print builtin or printf.
14453 func_fallback_echo ()
14455 eval 'cat <<_LTECHO_EOF
14460 # Quote evaled strings.
14475 deplibs_check_method \
14480 sharedlib_from_linklib_cmd \
14483 archiver_list_spec \
14489 lt_cv_sys_global_symbol_pipe \
14490 lt_cv_sys_global_symbol_to_cdecl \
14491 lt_cv_sys_global_symbol_to_c_name_address \
14492 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14493 nm_file_list_spec \
14494 lt_prog_compiler_no_builtin_flag \
14495 lt_prog_compiler_pic \
14496 lt_prog_compiler_wl \
14497 lt_prog_compiler_static \
14498 lt_cv_prog_compiler_c_o \
14507 export_dynamic_flag_spec \
14508 whole_archive_flag_spec \
14509 compiler_needs_object \
14511 allow_undefined_flag \
14512 no_undefined_flag \
14513 hardcode_libdir_flag_spec \
14514 hardcode_libdir_separator \
14518 variables_saved_for_relink \
14520 library_names_spec \
14522 install_override_mode \
14526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14527 *[\\\\\\\`\\"\\\$]*)
14528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14536 # Double-quote double-evaled strings.
14537 for var in reload_cmds \
14538 old_postinstall_cmds \
14539 old_postuninstall_cmds \
14541 extract_expsyms_cmds \
14542 old_archive_from_new_cmds \
14543 old_archive_from_expsyms_cmds \
14545 archive_expsym_cmds \
14547 module_expsym_cmds \
14548 export_symbols_cmds \
14552 postuninstall_cmds \
14554 sys_lib_search_path_spec \
14555 sys_lib_dlsearch_path_spec; do
14556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14557 *[\\\\\\\`\\"\\\$]*)
14558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14566 ac_aux_dir='$ac_aux_dir'
14567 xsi_shell='$xsi_shell'
14568 lt_shell_append='$lt_shell_append'
14570 # See if we are running on zsh, and set the options which allow our
14571 # commands through without removal of \ escapes INIT.
14572 if test -n "\${ZSH_VERSION+set}" ; then
14573 setopt NO_GLOB_SUBST
14579 TIMESTAMP='$TIMESTAMP'
14588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14590 # Handling of arguments.
14591 for ac_config_target in $ac_config_targets
14593 case $ac_config_target in
14594 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
14595 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14596 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14597 "fuse.pc") CONFIG_FILES="$CONFIG_FILES fuse.pc" ;;
14598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14599 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14600 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
14601 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
14602 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14603 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14605 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14610 # If the user did not use the arguments to specify the items to instantiate,
14611 # then the envvar interface is used. Set only those that are not.
14612 # We use the long form for the default assignment because of an extremely
14613 # bizarre bug on SunOS 4.1.3.
14614 if $ac_need_defaults; then
14615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14620 # Have a temporary directory for convenience. Make it in the build tree
14621 # simply because there is no reason against having it here, and in addition,
14622 # creating and moving files from /tmp can sometimes cause problems.
14623 # Hook for its removal unless debugging.
14624 # Note that there is a small window in which the directory will not be cleaned:
14625 # after its creation but before its name has been assigned to `$tmp'.
14629 trap 'exit_status=$?
14630 : "${ac_tmp:=$tmp}"
14631 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14633 trap 'as_fn_exit 1' 1 2 13 15
14635 # Create a (secure) tmp directory for tmp files.
14638 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14642 tmp=./conf$$-$RANDOM
14643 (umask 077 && mkdir "$tmp")
14644 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14647 # Set up the scripts for CONFIG_FILES section.
14648 # No need to generate them if there are no CONFIG_FILES.
14649 # This happens for instance with `./config.status config.h'.
14650 if test -n "$CONFIG_FILES"; then
14653 ac_cr=`echo X | tr X '\015'`
14654 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14655 # But we know of no other shell where ac_cr would be empty at this
14656 # point, so we can use a bashism as a fallback.
14657 if test "x$ac_cr" = x; then
14658 eval ac_cr=\$\'\\r\'
14660 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14661 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14664 ac_cs_awk_cr=$ac_cr
14667 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14672 echo "cat >conf$$subs.awk <<_ACEOF" &&
14673 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14675 } >conf$$subs.sh ||
14676 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14677 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14679 for ac_last_try in false false false false false :; do
14680 . ./conf$$subs.sh ||
14681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14683 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14684 if test $ac_delim_n = $ac_delim_num; then
14686 elif $ac_last_try; then
14687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14692 rm -f conf$$subs.sh
14694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14695 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14699 s/^/S["/; s/!.*/"]=/
14709 s/\(.\{148\}\)..*/\1/
14711 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14716 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14723 s/\(.\{148\}\)..*/\1/
14725 s/["\\]/\\&/g; s/^/"/; s/$/"/
14729 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14734 ' <conf$$subs.awk | sed '
14739 ' >>$CONFIG_STATUS || ac_write_fail=1
14740 rm -f conf$$subs.awk
14741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14743 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14744 for (key in S) S_is_set[key] = 1
14750 nfields = split(line, field, "@")
14752 len = length(field[1])
14753 for (i = 2; i < nfields; i++) {
14755 keylen = length(key)
14756 if (S_is_set[key]) {
14758 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14759 len += length(value) + length(field[++i])
14770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14771 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14772 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14775 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14776 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14779 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14780 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14781 # trailing colons and then remove the whole line if VPATH becomes empty
14782 # (actually we leave an empty line to preserve line numbers).
14783 if test "x$srcdir" = x.; then
14784 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14803 fi # test -n "$CONFIG_FILES"
14805 # Set up the scripts for CONFIG_HEADERS section.
14806 # No need to generate them if there are no CONFIG_HEADERS.
14807 # This happens for instance with `./config.status Makefile'.
14808 if test -n "$CONFIG_HEADERS"; then
14809 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14813 # Transform confdefs.h into an awk script `defines.awk', embedded as
14814 # here-document in config.status, that substitutes the proper values into
14815 # config.h.in to produce config.h.
14817 # Create a delimiter string that does not exist in confdefs.h, to ease
14818 # handling of long lines.
14820 for ac_last_try in false false :; do
14821 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14822 if test -z "$ac_tt"; then
14824 elif $ac_last_try; then
14825 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14831 # For the awk script, D is an array of macro values keyed by name,
14832 # likewise P contains macro parameters if any. Preserve backslash
14833 # newline sequences.
14835 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14837 s/.\{148\}/&'"$ac_delim"'/g
14840 s/^[ ]*#[ ]*define[ ][ ]*/ /
14847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14854 D["\1"]=" \3\\\\\\n"\\/p
14856 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14861 s/.\{148\}/&'"$ac_delim"'/g
14866 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14869 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14871 ' <confdefs.h | sed '
14872 s/'"$ac_delim"'/"\\\
14873 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876 for (key in D) D_is_set[key] = 1
14879 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14881 split(line, arg, " ")
14882 if (arg[1] == "#") {
14886 defundef = substr(arg[1], 2)
14889 split(mac1, mac2, "(") #)
14891 prefix = substr(line, 1, index(line, defundef) - 1)
14892 if (D_is_set[macro]) {
14893 # Preserve the white space surrounding the "#".
14894 print prefix "define", macro P[macro] D[macro]
14897 # Replace #undef with comments. This is necessary, for example,
14898 # in the case of _POSIX_SOURCE, which is predefined and required
14899 # on some systems where configure will not decide to define it.
14900 if (defundef == "undef") {
14901 print "/*", prefix defundef, macro, "*/"
14909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14910 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14911 fi # test -n "$CONFIG_HEADERS"
14914 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14919 :[FHLC]) ac_mode=$ac_tag; continue;;
14921 case $ac_mode$ac_tag in
14923 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14924 :[FH]-) ac_tag=-:-;;
14925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14942 -) ac_f="$ac_tmp/stdin";;
14943 *) # Look for the file first in the build tree, then in the source tree
14944 # (if the path is not absolute). The absolute path cannot be DOS-style,
14945 # because $ac_f cannot contain `:'.
14949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14951 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14953 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14954 as_fn_append ac_file_inputs " '$ac_f'"
14957 # Let's still pretend it is `configure' which instantiates (i.e., don't
14958 # use $as_me), people would be surprised to read:
14959 # /* config.h. Generated by config.status. */
14960 configure_input='Generated from '`
14961 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14963 if test x"$ac_file" != x-; then
14964 configure_input="$ac_file. $configure_input"
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14966 $as_echo "$as_me: creating $ac_file" >&6;}
14968 # Neutralize special characters interpreted by sed in replacement strings.
14969 case $configure_input in #(
14970 *\&* | *\|* | *\\* )
14971 ac_sed_conf_input=`$as_echo "$configure_input" |
14972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14973 *) ac_sed_conf_input=$configure_input;;
14977 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14983 ac_dir=`$as_dirname -- "$ac_file" ||
14984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14985 X"$ac_file" : 'X\(//\)[^/]' \| \
14986 X"$ac_file" : 'X\(//\)$' \| \
14987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14988 $as_echo X"$ac_file" |
14989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14993 /^X\(\/\/\)[^/].*/{
15006 as_dir="$ac_dir"; as_fn_mkdir_p
15010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15012 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15013 # A ".." for each directory in $ac_dir_suffix.
15014 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15015 case $ac_top_builddir_sub in
15016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15020 ac_abs_top_builddir=$ac_pwd
15021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15022 # for backward compatibility:
15023 ac_top_builddir=$ac_top_build_prefix
15026 .) # We are building in place.
15028 ac_top_srcdir=$ac_top_builddir_sub
15029 ac_abs_top_srcdir=$ac_pwd ;;
15030 [\\/]* | ?:[\\/]* ) # Absolute name.
15031 ac_srcdir=$srcdir$ac_dir_suffix;
15032 ac_top_srcdir=$srcdir
15033 ac_abs_top_srcdir=$srcdir ;;
15034 *) # Relative name.
15035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15036 ac_top_srcdir=$ac_top_build_prefix$srcdir
15037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15052 ac_MKDIR_P=$MKDIR_P
15054 [\\/$]* | ?:[\\/]* ) ;;
15055 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15060 # If the template does not know about datarootdir, expand it.
15061 # FIXME: This hack should be removed a few years after 2.60.
15062 ac_datarootdir_hack=; ac_datarootdir_seen=
15073 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15074 *datarootdir*) ac_datarootdir_seen=yes;;
15075 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15077 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15080 ac_datarootdir_hack='
15081 s&@datadir@&$datadir&g
15082 s&@docdir@&$docdir&g
15083 s&@infodir@&$infodir&g
15084 s&@localedir@&$localedir&g
15085 s&@mandir@&$mandir&g
15086 s&\\\${datarootdir}&$datarootdir&g' ;;
15090 # Neutralize VPATH when `$srcdir' = `.'.
15091 # Shell code in configure.ac might set extrasub.
15092 # FIXME: do we really want to maintain this feature?
15093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15094 ac_sed_extra="$ac_vpsub
15097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15100 s|@configure_input@|$ac_sed_conf_input|;t t
15101 s&@top_builddir@&$ac_top_builddir_sub&;t t
15102 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15103 s&@srcdir@&$ac_srcdir&;t t
15104 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15105 s&@top_srcdir@&$ac_top_srcdir&;t t
15106 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15107 s&@builddir@&$ac_builddir&;t t
15108 s&@abs_builddir@&$ac_abs_builddir&;t t
15109 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15110 s&@INSTALL@&$ac_INSTALL&;t t
15111 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15112 $ac_datarootdir_hack
15114 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15115 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15117 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15118 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15120 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15122 which seems to be undefined. Please make sure it is defined" >&5
15123 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15124 which seems to be undefined. Please make sure it is defined" >&2;}
15126 rm -f "$ac_tmp/stdin"
15128 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15129 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15137 if test x"$ac_file" != x-; then
15139 $as_echo "/* $configure_input */" \
15140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15141 } >"$ac_tmp/config.h" \
15142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15143 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15145 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15148 mv "$ac_tmp/config.h" "$ac_file" \
15149 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15152 $as_echo "/* $configure_input */" \
15153 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15154 || as_fn_error $? "could not create -" "$LINENO" 5
15156 # Compute "$ac_file"'s index in $config_headers.
15159 for _am_header in $config_headers :; do
15160 case $_am_header in
15161 $_am_arg | $_am_arg:* )
15164 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15167 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15168 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15169 X"$_am_arg" : 'X\(//\)[^/]' \| \
15170 X"$_am_arg" : 'X\(//\)$' \| \
15171 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15172 $as_echo X"$_am_arg" |
15173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15177 /^X\(\/\/\)[^/].*/{
15189 s/.*/./; q'`/stamp-h$_am_stamp_count
15192 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15193 $as_echo "$as_me: executing $ac_file commands" >&6;}
15198 case $ac_file$ac_mode in
15199 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15200 # Older Autoconf quotes --file arguments for eval, but not when files
15201 # are listed without --file. Let's play safe and only enable the eval
15202 # if we detect the quoting.
15203 case $CONFIG_FILES in
15204 *\'*) eval set x "$CONFIG_FILES" ;;
15205 *) set x $CONFIG_FILES ;;
15210 # Strip MF so we end up with the name of the file.
15211 mf=`echo "$mf" | sed -e 's/:.*$//'`
15212 # Check whether this is an Automake generated Makefile or not.
15213 # We used to match only the files named 'Makefile.in', but
15214 # some people rename them; so instead we look at the file content.
15215 # Grep'ing the first line is not enough: some people post-process
15216 # each Makefile.in and add a new line on top of each file to say so.
15217 # Grep'ing the whole file is not good either: AIX grep has a line
15218 # limit of 2048, but all sed's we know have understand at least 4000.
15219 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15220 dirpart=`$as_dirname -- "$mf" ||
15221 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15222 X"$mf" : 'X\(//\)[^/]' \| \
15223 X"$mf" : 'X\(//\)$' \| \
15224 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15230 /^X\(\/\/\)[^/].*/{
15246 # Extract the definition of DEPDIR, am__include, and am__quote
15247 # from the Makefile without running 'make'.
15248 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15249 test -z "$DEPDIR" && continue
15250 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15251 test -z "$am__include" && continue
15252 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15253 # Find all dependency output files, they are included files with
15254 # $(DEPDIR) in their names. We invoke sed twice because it is the
15255 # simplest approach to changing $(DEPDIR) to its actual value in the
15257 for file in `sed -n "
15258 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15259 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15260 # Make sure the directory exists.
15261 test -f "$dirpart/$file" && continue
15262 fdir=`$as_dirname -- "$file" ||
15263 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15264 X"$file" : 'X\(//\)[^/]' \| \
15265 X"$file" : 'X\(//\)$' \| \
15266 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15267 $as_echo X"$file" |
15268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15272 /^X\(\/\/\)[^/].*/{
15285 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15286 # echo "creating $dirpart/$file"
15287 echo '# dummy' > "$dirpart/$file"
15294 # See if we are running on zsh, and set the options which allow our
15295 # commands through without removal of \ escapes.
15296 if test -n "${ZSH_VERSION+set}" ; then
15297 setopt NO_GLOB_SUBST
15300 cfgfile="${ofile}T"
15301 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15304 cat <<_LT_EOF >> "$cfgfile"
15307 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15308 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15309 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15310 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15312 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15313 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15315 # Written by Gordon Matzigkeit, 1996
15317 # This file is part of GNU Libtool.
15319 # GNU Libtool is free software; you can redistribute it and/or
15320 # modify it under the terms of the GNU General Public License as
15321 # published by the Free Software Foundation; either version 2 of
15322 # the License, or (at your option) any later version.
15324 # As a special exception to the GNU General Public License,
15325 # if you distribute this file as part of a program or library that
15326 # is built using GNU Libtool, you may include this file under the
15327 # same distribution terms that you use for the rest of that program.
15329 # GNU Libtool is distributed in the hope that it will be useful,
15330 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15331 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15332 # GNU General Public License for more details.
15334 # You should have received a copy of the GNU General Public License
15335 # along with GNU Libtool; see the file COPYING. If not, a copy
15336 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15337 # obtained by writing to the Free Software Foundation, Inc.,
15338 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15341 # The names of the tagged configurations supported by this script.
15344 # ### BEGIN LIBTOOL CONFIG
15346 # Which release of libtool.m4 was used?
15347 macro_version=$macro_version
15348 macro_revision=$macro_revision
15350 # Whether or not to build shared libraries.
15351 build_libtool_libs=$enable_shared
15353 # Whether or not to build static libraries.
15354 build_old_libs=$enable_static
15356 # What type of objects to build.
15359 # Whether or not to optimize for fast installation.
15360 fast_install=$enable_fast_install
15362 # Shell to use when invoking shell scripts.
15365 # An echo program that protects backslashes.
15368 # The PATH separator for the build system.
15369 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15372 host_alias=$host_alias
15376 # The build system.
15377 build_alias=$build_alias
15381 # A sed program that does not truncate output.
15384 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15385 Xsed="\$SED -e 1s/^X//"
15387 # A grep program that handles long lines.
15393 # A literal string matcher.
15396 # A BSD- or MS-compatible name lister.
15399 # Whether we need soft or hard links.
15402 # What is the maximum length of a command?
15403 max_cmd_len=$max_cmd_len
15405 # Object file suffix (normally "o").
15408 # Executable file suffix (normally "").
15411 # whether the shell understands "unset".
15414 # turn spaces into newlines.
15417 # turn newlines into spaces.
15420 # convert \$build file names to \$host format.
15421 to_host_file_cmd=$lt_cv_to_host_file_cmd
15423 # convert \$build files to toolchain format.
15424 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15426 # An object symbol dumper.
15427 OBJDUMP=$lt_OBJDUMP
15429 # Method to check whether dependent libraries are shared objects.
15430 deplibs_check_method=$lt_deplibs_check_method
15432 # Command to use when deplibs_check_method = "file_magic".
15433 file_magic_cmd=$lt_file_magic_cmd
15435 # How to find potential files when deplibs_check_method = "file_magic".
15436 file_magic_glob=$lt_file_magic_glob
15438 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15439 want_nocaseglob=$lt_want_nocaseglob
15441 # DLL creation program.
15442 DLLTOOL=$lt_DLLTOOL
15444 # Command to associate shared and link libraries.
15445 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15450 # Flags to create an archive.
15451 AR_FLAGS=$lt_AR_FLAGS
15453 # How to feed a file listing to the archiver.
15454 archiver_list_spec=$lt_archiver_list_spec
15456 # A symbol stripping program.
15459 # Commands used to install an old-style archive.
15461 old_postinstall_cmds=$lt_old_postinstall_cmds
15462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15464 # Whether to use a lock for old archive extraction.
15465 lock_old_archive_extraction=$lock_old_archive_extraction
15470 # LTCC compiler flags.
15471 LTCFLAGS=$lt_CFLAGS
15473 # Take the output of nm and produce a listing of raw symbols and C names.
15474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15476 # Transform the output of nm in a proper C declaration.
15477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15479 # Transform the output of nm in a C name address pair.
15480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15482 # Transform the output of nm in a C name address pair when lib prefix is needed.
15483 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15485 # Specify filename containing input files for \$NM.
15486 nm_file_list_spec=$lt_nm_file_list_spec
15488 # The root where to search for dependent libraries,and in which our libraries should be installed.
15489 lt_sysroot=$lt_sysroot
15491 # The name of the directory that contains temporary libtool files.
15494 # Used to examine libraries when file_magic_cmd begins with "file".
15495 MAGIC_CMD=$MAGIC_CMD
15497 # Must we lock files when doing compilation?
15498 need_locks=$lt_need_locks
15501 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15503 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15504 DSYMUTIL=$lt_DSYMUTIL
15506 # Tool to change global to local symbols on Mac OS X.
15509 # Tool to manipulate fat objects and archives on Mac OS X.
15512 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15515 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15516 OTOOL64=$lt_OTOOL64
15518 # Old archive suffix (normally "a").
15521 # Shared library suffix (normally ".so").
15522 shrext_cmds=$lt_shrext_cmds
15524 # The commands to extract the exported symbol list from a shared archive.
15525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15527 # Variables whose values should be saved in libtool wrapper scripts and
15528 # restored at link time.
15529 variables_saved_for_relink=$lt_variables_saved_for_relink
15531 # Do we need the "lib" prefix for modules?
15532 need_lib_prefix=$need_lib_prefix
15534 # Do we need a version for libraries?
15535 need_version=$need_version
15537 # Library versioning type.
15538 version_type=$version_type
15540 # Shared library runtime path variable.
15541 runpath_var=$runpath_var
15543 # Shared library path variable.
15544 shlibpath_var=$shlibpath_var
15546 # Is shlibpath searched before the hard-coded library search path?
15547 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15549 # Format of library name prefix.
15550 libname_spec=$lt_libname_spec
15552 # List of archive names. First name is the real one, the rest are links.
15553 # The last name is the one that the linker finds with -lNAME
15554 library_names_spec=$lt_library_names_spec
15556 # The coded name of the library, if different from the real name.
15557 soname_spec=$lt_soname_spec
15559 # Permission mode override for installation of shared libraries.
15560 install_override_mode=$lt_install_override_mode
15562 # Command to use after installation of a shared archive.
15563 postinstall_cmds=$lt_postinstall_cmds
15565 # Command to use after uninstallation of a shared archive.
15566 postuninstall_cmds=$lt_postuninstall_cmds
15568 # Commands used to finish a libtool library installation in a directory.
15569 finish_cmds=$lt_finish_cmds
15571 # As "finish_cmds", except a single script fragment to be evaled but
15573 finish_eval=$lt_finish_eval
15575 # Whether we should hardcode library paths into libraries.
15576 hardcode_into_libs=$hardcode_into_libs
15578 # Compile-time system search path for libraries.
15579 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15581 # Run-time system search path for libraries.
15582 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15584 # Whether dlopen is supported.
15585 dlopen_support=$enable_dlopen
15587 # Whether dlopen of programs is supported.
15588 dlopen_self=$enable_dlopen_self
15590 # Whether dlopen of statically linked programs is supported.
15591 dlopen_self_static=$enable_dlopen_self_static
15593 # Commands to strip libraries.
15594 old_striplib=$lt_old_striplib
15595 striplib=$lt_striplib
15598 # The linker used to build libraries.
15601 # How to create reloadable object files.
15602 reload_flag=$lt_reload_flag
15603 reload_cmds=$lt_reload_cmds
15605 # Commands used to build an old-style archive.
15606 old_archive_cmds=$lt_old_archive_cmds
15608 # A language specific compiler.
15611 # Is the compiler the GNU compiler?
15614 # Compiler flag to turn off builtin functions.
15615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15617 # Additional compiler flags for building library objects.
15618 pic_flag=$lt_lt_prog_compiler_pic
15620 # How to pass a linker flag through the compiler.
15621 wl=$lt_lt_prog_compiler_wl
15623 # Compiler flag to prevent dynamic linking.
15624 link_static_flag=$lt_lt_prog_compiler_static
15626 # Does compiler simultaneously support -c and -o options?
15627 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15629 # Whether or not to add -lc for building shared libraries.
15630 build_libtool_need_lc=$archive_cmds_need_lc
15632 # Whether or not to disallow shared libs when runtime libs are static.
15633 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15635 # Compiler flag to allow reflexive dlopens.
15636 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15638 # Compiler flag to generate shared objects directly from archives.
15639 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15641 # Whether the compiler copes with passing no objects directly.
15642 compiler_needs_object=$lt_compiler_needs_object
15644 # Create an old-style archive from a shared archive.
15645 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15647 # Create a temporary old-style archive to link instead of a shared archive.
15648 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15650 # Commands used to build a shared archive.
15651 archive_cmds=$lt_archive_cmds
15652 archive_expsym_cmds=$lt_archive_expsym_cmds
15654 # Commands used to build a loadable module if different from building
15655 # a shared archive.
15656 module_cmds=$lt_module_cmds
15657 module_expsym_cmds=$lt_module_expsym_cmds
15659 # Whether we are building with GNU ld or not.
15660 with_gnu_ld=$lt_with_gnu_ld
15662 # Flag that allows shared libraries with undefined symbols to be built.
15663 allow_undefined_flag=$lt_allow_undefined_flag
15665 # Flag that enforces no undefined symbols.
15666 no_undefined_flag=$lt_no_undefined_flag
15668 # Flag to hardcode \$libdir into a binary during linking.
15669 # This must work even if \$libdir does not exist
15670 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15672 # Whether we need a single "-rpath" flag with a separated argument.
15673 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15676 # DIR into the resulting binary.
15677 hardcode_direct=$hardcode_direct
15679 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15680 # DIR into the resulting binary and the resulting library dependency is
15681 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15682 # library is relocated.
15683 hardcode_direct_absolute=$hardcode_direct_absolute
15685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15686 # into the resulting binary.
15687 hardcode_minus_L=$hardcode_minus_L
15689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15690 # into the resulting binary.
15691 hardcode_shlibpath_var=$hardcode_shlibpath_var
15693 # Set to "yes" if building a shared library automatically hardcodes DIR
15694 # into the library and all subsequent libraries and executables linked
15696 hardcode_automatic=$hardcode_automatic
15698 # Set to yes if linker adds runtime paths of dependent libraries
15699 # to runtime path list.
15700 inherit_rpath=$inherit_rpath
15702 # Whether libtool must link a program against all its dependency libraries.
15703 link_all_deplibs=$link_all_deplibs
15705 # Set to "yes" if exported symbols are required.
15706 always_export_symbols=$always_export_symbols
15708 # The commands to list exported symbols.
15709 export_symbols_cmds=$lt_export_symbols_cmds
15711 # Symbols that should not be listed in the preloaded symbols.
15712 exclude_expsyms=$lt_exclude_expsyms
15714 # Symbols that must always be exported.
15715 include_expsyms=$lt_include_expsyms
15717 # Commands necessary for linking programs (against libraries) with templates.
15718 prelink_cmds=$lt_prelink_cmds
15720 # Commands necessary for finishing linking programs.
15721 postlink_cmds=$lt_postlink_cmds
15723 # Specify filename containing input files.
15724 file_list_spec=$lt_file_list_spec
15726 # How to hardcode a shared library path into an executable.
15727 hardcode_action=$hardcode_action
15729 # ### END LIBTOOL CONFIG
15735 cat <<\_LT_EOF >> "$cfgfile"
15736 # AIX sometimes has problems with the GCC collect2 program. For some
15737 # reason, if we set the COLLECT_NAMES environment variable, the problems
15738 # vanish in a puff of smoke.
15739 if test "X${COLLECT_NAMES+set}" != Xset; then
15741 export COLLECT_NAMES
15748 ltmain="$ac_aux_dir/ltmain.sh"
15751 # We use sed instead of cat because bash on DJGPP gets confused if
15752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15753 # text mode, it properly converts lines to CR/LF. This bash problem
15754 # is reportedly fixed, but why not run on old versions too?
15755 sed '$q' "$ltmain" >> "$cfgfile" \
15756 || (rm -f "$cfgfile"; exit 1)
15758 if test x"$xsi_shell" = xyes; then
15759 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15763 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15764 \ * ) func_dirname_result="${3}" ;;\
15766 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15767 && mv -f "$cfgfile.tmp" "$cfgfile" \
15768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15769 test 0 -eq $? || _lt_function_replace_fail=:
15772 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15775 \ func_basename_result="${1##*/}"\
15776 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15777 && mv -f "$cfgfile.tmp" "$cfgfile" \
15778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15779 test 0 -eq $? || _lt_function_replace_fail=:
15782 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15783 func_dirname_and_basename ()\
15786 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15787 \ * ) func_dirname_result="${3}" ;;\
15789 \ func_basename_result="${1##*/}"\
15790 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15791 && mv -f "$cfgfile.tmp" "$cfgfile" \
15792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15793 test 0 -eq $? || _lt_function_replace_fail=:
15796 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15799 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15800 \ # positional parameters, so assign one to ordinary parameter first.\
15801 \ func_stripname_result=${3}\
15802 \ func_stripname_result=${func_stripname_result#"${1}"}\
15803 \ func_stripname_result=${func_stripname_result%"${2}"}\
15804 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15805 && mv -f "$cfgfile.tmp" "$cfgfile" \
15806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15807 test 0 -eq $? || _lt_function_replace_fail=:
15810 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15811 func_split_long_opt ()\
15813 \ func_split_long_opt_name=${1%%=*}\
15814 \ func_split_long_opt_arg=${1#*=}\
15815 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15816 && mv -f "$cfgfile.tmp" "$cfgfile" \
15817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15818 test 0 -eq $? || _lt_function_replace_fail=:
15821 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15822 func_split_short_opt ()\
15824 \ func_split_short_opt_arg=${1#??}\
15825 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15826 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15827 && mv -f "$cfgfile.tmp" "$cfgfile" \
15828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15829 test 0 -eq $? || _lt_function_replace_fail=:
15832 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15836 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15837 \ *) func_lo2o_result=${1} ;;\
15839 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15840 && mv -f "$cfgfile.tmp" "$cfgfile" \
15841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15842 test 0 -eq $? || _lt_function_replace_fail=:
15845 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15848 func_xform_result=${1%.*}.lo\
15849 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15850 && mv -f "$cfgfile.tmp" "$cfgfile" \
15851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15852 test 0 -eq $? || _lt_function_replace_fail=:
15855 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15858 func_arith_result=$(( $* ))\
15859 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15860 && mv -f "$cfgfile.tmp" "$cfgfile" \
15861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15862 test 0 -eq $? || _lt_function_replace_fail=:
15865 sed -e '/^func_len ()$/,/^} # func_len /c\
15868 func_len_result=${#1}\
15869 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15870 && mv -f "$cfgfile.tmp" "$cfgfile" \
15871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15872 test 0 -eq $? || _lt_function_replace_fail=:
15876 if test x"$lt_shell_append" = xyes; then
15877 sed -e '/^func_append ()$/,/^} # func_append /c\
15880 eval "${1}+=\\${2}"\
15881 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15882 && mv -f "$cfgfile.tmp" "$cfgfile" \
15883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15884 test 0 -eq $? || _lt_function_replace_fail=:
15887 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15888 func_append_quoted ()\
15890 \ func_quote_for_eval "${2}"\
15891 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15892 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15893 && mv -f "$cfgfile.tmp" "$cfgfile" \
15894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15895 test 0 -eq $? || _lt_function_replace_fail=:
15898 # Save a `func_append' function call where possible by direct use of '+='
15899 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15900 && mv -f "$cfgfile.tmp" "$cfgfile" \
15901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15902 test 0 -eq $? || _lt_function_replace_fail=:
15904 # Save a `func_append' function call even when '+=' is not available
15905 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15906 && mv -f "$cfgfile.tmp" "$cfgfile" \
15907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15908 test 0 -eq $? || _lt_function_replace_fail=:
15911 if test x"$_lt_function_replace_fail" = x":"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15913 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15917 mv -f "$cfgfile" "$ofile" ||
15918 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15929 ac_clean_files=$ac_clean_files_save
15931 test $ac_write_fail = 0 ||
15932 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15935 # configure is writing to config.log, and then calls config.status.
15936 # config.status does its own redirection, appending to config.log.
15937 # Unfortunately, on DOS this fails, as config.log is still kept open
15938 # by configure, so config.status won't be able to write to it; its
15939 # output is simply discarded. So we exec the FD to /dev/null,
15940 # effectively closing config.log, so it can be properly (re)opened and
15941 # appended to by config.status. When coming back to configure, we
15942 # need to make the FD available again.
15943 if test "$no_create" != yes; then
15945 ac_config_status_args=
15946 test "$silent" = yes &&
15947 ac_config_status_args="$ac_config_status_args --quiet"
15949 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15952 # would make configure fail if this is the last instruction.
15953 $ac_cs_success || as_fn_exit 1
15955 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15957 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15961 if test "$util_linux_ok" = no; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15963 ******************************************************************
15964 * Please install util-linux version 2.18 or later which supports *
15965 * --fake and --no-canonicalize options in mount and umount *
15966 ******************************************************************" >&5
15967 $as_echo "$as_me: WARNING:
15968 ******************************************************************
15969 * Please install util-linux version 2.18 or later which supports *
15970 * --fake and --no-canonicalize options in mount and umount *
15971 ******************************************************************" >&2;}