2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for exfatprogs 1.2.3.
5 # Report bugs to <linkinjeon@kernel.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: linkinjeon@kernel.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='exfatprogs'
592 PACKAGE_TARNAME='exfatprogs'
593 PACKAGE_VERSION='1.2.3'
594 PACKAGE_STRING='exfatprogs 1.2.3'
595 PACKAGE_BUGREPORT='linkinjeon@kernel.org'
596 PACKAGE_URL='https://github.com/exfatprogs/exfatprogs'
598 ac_unique_file="config.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
699 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
757 enable_dependency_tracking
768 ac_precious_vars='build_alias
780 # Initialize some variables set by options.
782 ac_init_version=false
783 ac_unrecognized_opts=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name=s,x,x,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 runstatedir='${localstatedir}/run'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -runstatedir | --runstatedir | --runstatedi | --runstated \
1070 | --runstate | --runstat | --runsta | --runst | --runs \
1071 | --run | --ru | --r)
1072 ac_prev=runstatedir ;;
1073 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1074 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1075 | --run=* | --ru=* | --r=*)
1076 runstatedir=$ac_optarg ;;
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1097 -site=* | --site=* | --sit=*)
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information"
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error $? "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir runstatedir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1224 # Be sure to have absolute directory names.
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error $? "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error $? "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures exfatprogs 1.2.3 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking ...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1369 --libdir=DIR object code libraries [EPREFIX/lib]
1370 --includedir=DIR C header files [PREFIX/include]
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374 --infodir=DIR info documentation [DATAROOTDIR/info]
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376 --mandir=DIR man documentation [DATAROOTDIR/man]
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/exfatprogs]
1378 --htmldir=DIR html documentation [DOCDIR]
1379 --dvidir=DIR dvi documentation [DOCDIR]
1380 --pdfdir=DIR pdf documentation [DOCDIR]
1381 --psdir=DIR ps documentation [DOCDIR]
1387 --program-prefix=PREFIX prepend PREFIX to installed program names
1388 --program-suffix=SUFFIX append SUFFIX to installed program names
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 --build=BUILD configure for building on BUILD [guessed]
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of exfatprogs 1.2.3:";;
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-shared[=PKGS] build shared libraries [default=yes]
1414 --enable-static[=PKGS] build static libraries [default=yes]
1415 --enable-fast-install[=PKGS]
1416 optimize for fast installation [default=yes]
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --disable-largefile omit support for large files
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1425 --with-aix-soname=aix|svr4|both
1426 shared library versioning (aka "SONAME") variant to
1427 provide on AIX, [default=aix].
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430 compiler's sysroot if not specified).
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 User-defined run-time library search path.
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 Report bugs to <linkinjeon@kernel.org>.
1448 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>.
1453 if test "$ac_init_help" = "recursive"; then
1454 # If there are subdirs, report their specific --help.
1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456 test -d "$ac_dir" ||
1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465 # A ".." for each directory in $ac_dir_suffix.
1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467 case $ac_top_builddir_sub in
1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 ac_abs_top_builddir=$ac_pwd
1473 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474 # for backward compatibility:
1475 ac_top_builddir=$ac_top_build_prefix
1478 .) # We are building in place.
1480 ac_top_srcdir=$ac_top_builddir_sub
1481 ac_abs_top_srcdir=$ac_pwd ;;
1482 [\\/]* | ?:[\\/]* ) # Absolute name.
1483 ac_srcdir=$srcdir$ac_dir_suffix;
1484 ac_top_srcdir=$srcdir
1485 ac_abs_top_srcdir=$srcdir ;;
1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488 ac_top_srcdir=$ac_top_build_prefix$srcdir
1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1493 cd "$ac_dir" || { ac_status=$?; continue; }
1494 # Check for guested configure.
1495 if test -f "$ac_srcdir/configure.gnu"; then
1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498 elif test -f "$ac_srcdir/configure"; then
1500 $SHELL "$ac_srcdir/configure" --help=recursive
1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 cd "$ac_pwd" || { ac_status=$?; break; }
1508 test -n "$ac_init_help" && exit $ac_status
1509 if $ac_init_version; then
1511 exfatprogs configure 1.2.3
1512 generated by GNU Autoconf 2.69
1514 Copyright (C) 2012 Free Software Foundation, Inc.
1515 This configure script is free software; the Free Software Foundation
1516 gives unlimited permission to copy, distribute and modify it.
1521 ## ------------------------ ##
1522 ## Autoconf initialization. ##
1523 ## ------------------------ ##
1525 # ac_fn_c_try_compile LINENO
1526 # --------------------------
1527 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_compile ()
1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531 rm -f conftest.$ac_objext
1532 if { { ac_try="$ac_compile"
1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535 *) ac_try_echo=$ac_try;;
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539 (eval "$ac_compile") 2>conftest.err
1541 if test -s conftest.err; then
1542 grep -v '^ *+' conftest.err >conftest.er1
1543 cat conftest.er1 >&5
1544 mv -f conftest.er1 conftest.err
1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547 test $ac_status = 0; } && {
1548 test -z "$ac_c_werror_flag" ||
1549 test ! -s conftest.err
1550 } && test -s conftest.$ac_objext; then :
1553 $as_echo "$as_me: failed program was:" >&5
1554 sed 's/^/| /' conftest.$ac_ext >&5
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 as_fn_set_status $ac_retval
1561 } # ac_fn_c_try_compile
1563 # ac_fn_c_try_link LINENO
1564 # -----------------------
1565 # Try to link conftest.$ac_ext, and return whether this succeeded.
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext conftest$ac_exeext
1570 if { { ac_try="$ac_link"
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576 $as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_link") 2>conftest.err
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest$ac_exeext && {
1589 test "$cross_compiling" = yes ||
1590 test -x conftest$ac_exeext
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1601 # interfere with the next link command; also delete a directory that is
1602 # left behind by Apple's compiler. We do this before executing the actions.
1603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1607 } # ac_fn_c_try_link
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \${$3+:} false; then :
1619 $as_echo_n "(cached) " >&6
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1626 if ac_fn_c_try_compile "$LINENO"; then :
1631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 $as_echo "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 } # ac_fn_c_check_header_compile
1640 # ac_fn_c_try_cpp LINENO
1641 # ----------------------
1642 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 if { { ac_try="$ac_cpp conftest.$ac_ext"
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } > conftest.i && {
1662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1677 # ac_fn_c_try_run LINENO
1678 # ----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1680 # that executables *can* be run.
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_link"
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>&5
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1695 { { case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_try") 2>&5
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; }; }; then :
1707 $as_echo "$as_me: program exited with status $ac_status" >&5
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=$ac_status
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1742 # include <limits.h>
1744 # include <assert.h>
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1771 if ac_fn_c_try_link "$LINENO"; then :
1776 rm -f core conftest.err conftest.$ac_objext \
1777 conftest$ac_exeext conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 } # ac_fn_c_check_func
1785 cat >config.log <<_ACEOF
1786 This file contains any messages produced by compilers while
1787 running configure, to aid debugging if configure makes a mistake.
1789 It was created by exfatprogs $as_me 1.2.3, which was
1790 generated by GNU Autoconf 2.69. Invocation command line was
1802 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1808 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1811 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1812 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1813 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1815 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1816 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1817 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 test -z "$as_dir" && as_dir=.
1826 $as_echo "PATH: $as_dir"
1842 # Keep a trace of the command line.
1843 # Strip out --no-create and --no-recursion so they do not pile up.
1844 # Strip out --silent because we don't want to record it for future runs.
1845 # Also quote any args containing shell meta-characters.
1846 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_must_keep_next=false
1856 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858 | -silent | --silent | --silen | --sile | --sil)
1861 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1864 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1866 as_fn_append ac_configure_args1 " '$ac_arg'"
1867 if test $ac_must_keep_next = true; then
1868 ac_must_keep_next=false # Got value, back to normal.
1871 *=* | --config-cache | -C | -disable-* | --disable-* \
1872 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874 | -with-* | --with-* | -without-* | --without-* | --x)
1875 case "$ac_configure_args0 " in
1876 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1879 -* ) ac_must_keep_next=true ;;
1882 as_fn_append ac_configure_args " '$ac_arg'"
1887 { ac_configure_args0=; unset ac_configure_args0;}
1888 { ac_configure_args1=; unset ac_configure_args1;}
1890 # When interrupted or exit'd, cleanup temporary files, and complete
1891 # config.log. We remove comments because anyway the quotes in there
1892 # would cause problems or look ugly.
1893 # WARNING: Use '\'' to represent an apostrophe within the trap.
1894 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895 trap 'exit_status=$?
1896 # Save into config.log some information that might help in debugging.
1900 $as_echo "## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##"
1904 # The following way of writing the cache mishandles newlines in values,
1906 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1907 eval ac_val=\$$ac_var
1911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915 _ | IFS | as_nl) ;; #(
1916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1917 *) { eval $ac_var=; unset $ac_var;} ;;
1922 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1923 *${as_nl}ac_space=\ *)
1925 "s/'\''/'\''\\\\'\'''\''/g;
1926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1936 $as_echo "## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##"
1940 for ac_var in $ac_subst_vars
1942 eval ac_val=\$$ac_var
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1946 $as_echo "$ac_var='\''$ac_val'\''"
1950 if test -n "$ac_subst_files"; then
1951 $as_echo "## ------------------- ##
1952 ## File substitutions. ##
1953 ## ------------------- ##"
1955 for ac_var in $ac_subst_files
1957 eval ac_val=\$$ac_var
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 $as_echo "$ac_var='\''$ac_val'\''"
1966 if test -s confdefs.h; then
1967 $as_echo "## ----------- ##
1974 test "$ac_signal" != 0 &&
1975 $as_echo "$as_me: caught signal $ac_signal"
1976 $as_echo "$as_me: exit $exit_status"
1978 rm -f core *.core core.conftest.* &&
1979 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1982 for ac_signal in 1 2 13 15; do
1983 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1987 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1988 rm -f -r conftest* confdefs.h
1990 $as_echo "/* confdefs.h */" > confdefs.h
1992 # Predefined preprocessor variables.
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_NAME "$PACKAGE_NAME"
1998 cat >>confdefs.h <<_ACEOF
1999 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2006 cat >>confdefs.h <<_ACEOF
2007 #define PACKAGE_STRING "$PACKAGE_STRING"
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE_URL "$PACKAGE_URL"
2019 # Let the site file select an alternate cache file if it wants to.
2020 # Prefer an explicitly selected file to automatically selected ones.
2023 if test -n "$CONFIG_SITE"; then
2024 # We do not want a PATH search for config.site.
2025 case $CONFIG_SITE in #((
2026 -*) ac_site_file1=./$CONFIG_SITE;;
2027 */*) ac_site_file1=$CONFIG_SITE;;
2028 *) ac_site_file1=./$CONFIG_SITE;;
2030 elif test "x$prefix" != xNONE; then
2031 ac_site_file1=$prefix/share/config.site
2032 ac_site_file2=$prefix/etc/config.site
2034 ac_site_file1=$ac_default_prefix/share/config.site
2035 ac_site_file2=$ac_default_prefix/etc/config.site
2037 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2039 test "x$ac_site_file" = xNONE && continue
2040 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2042 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2043 sed 's/^/| /' "$ac_site_file" >&5
2045 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2047 as_fn_error $? "failed to load site script $ac_site_file
2048 See \`config.log' for more details" "$LINENO" 5; }
2052 if test -r "$cache_file"; then
2053 # Some versions of bash will fail to source /dev/null (special files
2054 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2055 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2057 $as_echo "$as_me: loading cache $cache_file" >&6;}
2059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2060 *) . "./$cache_file";;
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2065 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 # Check that the precious variables saved in the cache have kept the same
2071 ac_cache_corrupted=false
2072 for ac_var in $ac_precious_vars; do
2073 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2074 eval ac_new_set=\$ac_env_${ac_var}_set
2075 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2076 eval ac_new_val=\$ac_env_${ac_var}_value
2077 case $ac_old_set,$ac_new_set in
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2081 ac_cache_corrupted=: ;;
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2088 if test "x$ac_old_val" != "x$ac_new_val"; then
2089 # differences in whitespace do not lead to failure.
2090 ac_old_val_w=`echo x $ac_old_val`
2091 ac_new_val_w=`echo x $ac_new_val`
2092 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2095 ac_cache_corrupted=:
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2099 eval $ac_var=\$ac_old_val
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2102 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2104 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2107 # Pass precious variables to config.status.
2108 if test "$ac_new_set" = set; then
2110 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2111 *) ac_arg=$ac_var=$ac_new_val ;;
2113 case " $ac_configure_args " in
2114 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2115 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2119 if $ac_cache_corrupted; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2124 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2126 ## -------------------- ##
2127 ## Main body of script. ##
2128 ## -------------------- ##
2131 ac_cpp='$CPP $CPPFLAGS'
2132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 ac_config_headers="$ac_config_headers config.h"
2143 for ac_dir in build-aux "$srcdir"/build-aux; do
2144 if test -f "$ac_dir/install-sh"; then
2146 ac_install_sh="$ac_aux_dir/install-sh -c"
2148 elif test -f "$ac_dir/install.sh"; then
2150 ac_install_sh="$ac_aux_dir/install.sh -c"
2152 elif test -f "$ac_dir/shtool"; then
2154 ac_install_sh="$ac_aux_dir/shtool install -c"
2158 if test -z "$ac_aux_dir"; then
2159 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2162 # These three variables are undocumented and unsupported,
2163 # and are intended to be withdrawn in a future Autoconf release.
2164 # They can cause serious problems if a builder's source tree is in a directory
2165 # whose full name contains unusual characters.
2166 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2171 am__api_version='1.15'
2173 # Find a good install program. We prefer a C program (faster),
2174 # so one script is as good as another. But avoid the broken or
2175 # incompatible versions:
2176 # SysV /etc/install, /usr/sbin/install
2177 # SunOS /usr/etc/install
2178 # IRIX /sbin/install
2180 # AmigaOS /C/install, which installs bootblocks on floppy discs
2181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184 # OS/2's system install, which has a completely different semantic
2185 # ./install, which can be erroneously created by make from ./install.sh.
2186 # Reject install programs that cannot install multiple files.
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2188 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2189 if test -z "$INSTALL"; then
2190 if ${ac_cv_path_install+:} false; then :
2191 $as_echo_n "(cached) " >&6
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 # Account for people who put trailing slashes in PATH elements.
2199 case $as_dir/ in #((
2200 ./ | .// | /[cC]/* | \
2201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2202 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2205 # OSF1 and SCO ODT 3.0 have their own names for install.
2206 # Don't use installbsd from OSF since it installs stuff as root
2208 for ac_prog in ginstall scoinst install; do
2209 for ac_exec_ext in '' $ac_executable_extensions; do
2210 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2211 if test $ac_prog = install &&
2212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2213 # AIX install. It has an incompatible calling convention.
2215 elif test $ac_prog = install &&
2216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217 # program-specific install script used by HP pwplus--don't use.
2220 rm -rf conftest.one conftest.two conftest.dir
2221 echo one > conftest.one
2222 echo two > conftest.two
2224 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2225 test -s conftest.one && test -s conftest.two &&
2226 test -s conftest.dir/conftest.one &&
2227 test -s conftest.dir/conftest.two
2229 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2242 rm -rf conftest.one conftest.two conftest.dir
2245 if test "${ac_cv_path_install+set}" = set; then
2246 INSTALL=$ac_cv_path_install
2248 # As a last resort, use the slow shell script. Don't cache a
2249 # value for INSTALL within a source directory, because that will
2250 # break other packages using the cache if that directory is
2251 # removed, or if the value is a relative name.
2252 INSTALL=$ac_install_sh
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2256 $as_echo "$INSTALL" >&6; }
2258 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2259 # It thinks the first close brace ends the variable substitution.
2260 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2262 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2264 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2267 $as_echo_n "checking whether build environment is sane... " >&6; }
2268 # Reject unsafe characters in $srcdir or the absolute working directory
2269 # name. Accept space and tab only in the latter.
2273 *[\\\"\#\$\&\'\`$am_lf]*)
2274 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2278 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2281 # Do 'set' in a subshell so we don't clobber the current shell's
2282 # arguments. Must try -L first in case configure is actually a
2283 # symlink; some systems play weird games with the mod time of symlinks
2284 # (eg FreeBSD returns the mod time of the symlink's containing
2288 for am_try in 1 2; do
2289 echo "timestamp, slept: $am_has_slept" > conftest.file
2290 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2291 if test "$*" = "X"; then
2293 set X `ls -t "$srcdir/configure" conftest.file`
2295 if test "$*" != "X $srcdir/configure conftest.file" \
2296 && test "$*" != "X conftest.file $srcdir/configure"; then
2298 # If neither matched, then we have a broken ls. This can happen
2299 # if, for instance, CONFIG_SHELL is bash and it inherits a
2300 # broken ls alias from the environment. This has actually
2301 # happened. Such a system could not be considered "sane".
2302 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2303 alias in your environment" "$LINENO" 5
2305 if test "$2" = conftest.file || test $am_try -eq 2; then
2312 test "$2" = conftest.file
2318 as_fn_error $? "newly created file is older than distributed files!
2319 Check your system clock" "$LINENO" 5
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2322 $as_echo "yes" >&6; }
2323 # If we didn't sleep, we still need to ensure time stamps of config.status and
2324 # generated files are strictly newer.
2326 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2333 test "$program_prefix" != NONE &&
2334 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2335 # Use a double $ so make ignores it.
2336 test "$program_suffix" != NONE &&
2337 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2338 # Double any \ or $.
2339 # By default was `s,x,x', remove it if useless.
2340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2343 # Expand $ac_aux_dir to an absolute path.
2344 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2346 if test x"${MISSING+set}" != xset; then
2349 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2351 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2354 # Use eval to expand $SHELL
2355 if eval "$MISSING --is-lightweight"; then
2356 am_missing_run="$MISSING "
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2360 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2363 if test x"${install_sh+set}" != xset; then
2366 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2368 install_sh="\${SHELL} $am_aux_dir/install-sh"
2372 # Installed binaries are usually stripped using 'strip' when the user
2373 # run "make install-strip". However 'strip' might not be the right
2374 # tool to use in cross-compilation environments, therefore Automake
2375 # will honor the 'STRIP' environment variable to overrule this program.
2376 if test "$cross_compiling" != no; then
2377 if test -n "$ac_tool_prefix"; then
2378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2379 set dummy ${ac_tool_prefix}strip; ac_word=$2
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2381 $as_echo_n "checking for $ac_word... " >&6; }
2382 if ${ac_cv_prog_STRIP+:} false; then :
2383 $as_echo_n "(cached) " >&6
2385 if test -n "$STRIP"; then
2386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2392 test -z "$as_dir" && as_dir=.
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 STRIP=$ac_cv_prog_STRIP
2406 if test -n "$STRIP"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2408 $as_echo "$STRIP" >&6; }
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2411 $as_echo "no" >&6; }
2416 if test -z "$ac_cv_prog_STRIP"; then
2418 # Extract the first word of "strip", so it can be a program name with args.
2419 set dummy strip; ac_word=$2
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2421 $as_echo_n "checking for $ac_word... " >&6; }
2422 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 if test -n "$ac_ct_STRIP"; then
2426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2435 ac_cv_prog_ac_ct_STRIP="strip"
2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2446 if test -n "$ac_ct_STRIP"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2448 $as_echo "$ac_ct_STRIP" >&6; }
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2454 if test "x$ac_ct_STRIP" = x; then
2457 case $cross_compiling:$ac_tool_warned in
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2461 ac_tool_warned=yes ;;
2466 STRIP="$ac_cv_prog_STRIP"
2470 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2473 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2474 if test -z "$MKDIR_P"; then
2475 if ${ac_cv_path_mkdir+:} false; then :
2476 $as_echo_n "(cached) " >&6
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2482 test -z "$as_dir" && as_dir=.
2483 for ac_prog in mkdir gmkdir; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2486 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2487 'mkdir (GNU coreutils) '* | \
2488 'mkdir (coreutils) '* | \
2489 'mkdir (fileutils) '4.1*)
2490 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2500 test -d ./--version && rmdir ./--version
2501 if test "${ac_cv_path_mkdir+set}" = set; then
2502 MKDIR_P="$ac_cv_path_mkdir -p"
2504 # As a last resort, use the slow shell script. Don't cache a
2505 # value for MKDIR_P within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the value is a relative name.
2508 MKDIR_P="$ac_install_sh -d"
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2512 $as_echo "$MKDIR_P" >&6; }
2514 for ac_prog in gawk mawk nawk awk
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_AWK+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$AWK"; then
2524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_AWK="$ac_prog"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$AWK"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2546 $as_echo "$AWK" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2553 test -n "$AWK" && break
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2559 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2560 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 cat >conftest.make <<\_ACEOF
2566 @echo '@@@%%%=$(MAKE)=@@@%%%'
2568 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2569 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2571 eval ac_cv_prog_make_${ac_make}_set=yes;;
2573 eval ac_cv_prog_make_${ac_make}_set=no;;
2577 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2579 $as_echo "yes" >&6; }
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2583 $as_echo "no" >&6; }
2584 SET_MAKE="MAKE=${MAKE-make}"
2587 rm -rf .tst 2>/dev/null
2588 mkdir .tst 2>/dev/null
2589 if test -d .tst; then
2594 rmdir .tst 2>/dev/null
2596 # Check whether --enable-silent-rules was given.
2597 if test "${enable_silent_rules+set}" = set; then :
2598 enableval=$enable_silent_rules;
2601 case $enable_silent_rules in # (((
2602 yes) AM_DEFAULT_VERBOSITY=0;;
2603 no) AM_DEFAULT_VERBOSITY=1;;
2604 *) AM_DEFAULT_VERBOSITY=1;;
2606 am_make=${MAKE-make}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2608 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2609 if ${am_cv_make_support_nested_variables+:} false; then :
2610 $as_echo_n "(cached) " >&6
2612 if $as_echo 'TRUE=$(BAR$(V))
2618 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2619 am_cv_make_support_nested_variables=yes
2621 am_cv_make_support_nested_variables=no
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2625 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2626 if test $am_cv_make_support_nested_variables = yes; then
2628 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2630 AM_V=$AM_DEFAULT_VERBOSITY
2631 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2635 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637 # is not polluted with repeated "-I."
2638 am__isrc=' -I$(srcdir)'
2639 # test to see if srcdir already configured
2640 if test -f $srcdir/config.status; then
2641 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645 # test whether we have cygpath
2646 if test -z "$CYGPATH_W"; then
2647 if (cygpath --version) >/dev/null 2>/dev/null; then
2648 CYGPATH_W='cygpath -w'
2655 # Define the identity of the package.
2656 PACKAGE='exfatprogs'
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE "$PACKAGE"
2665 cat >>confdefs.h <<_ACEOF
2666 #define VERSION "$VERSION"
2669 # Some tools Automake needs.
2671 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685 # For better backward compatibility. To be removed once Automake 1.9.x
2686 # dies out for good. For more background, see:
2687 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2688 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2689 mkdir_p='$(MKDIR_P)'
2691 # We need awk for the "check" target (and possibly the TAP driver). The
2692 # system "awk" is bad on some platforms.
2693 # Always define AMTAR for backward compatibility. Yes, it's still used
2694 # in the wild :-( We should find a proper way to deprecate it ...
2698 # We'll loop over all known methods to create a tar archive until one works.
2699 _am_tools='gnutar pax cpio none'
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2704 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2706 # Go ahead even if we have the value already cached. We do so because we
2707 # need to set the values for the 'am__tar' and 'am__untar' variables.
2708 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2710 for _am_tool in $_am_tools; do
2713 for _am_tar in tar gnutar gtar; do
2714 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2715 ($_am_tar --version) >&5 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } && break
2720 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2721 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2722 am__untar="$_am_tar -xf -"
2725 # Must skip GNU tar: if it does not support --format= it doesn't create
2726 # ustar tarball either.
2727 (tar --version) >/dev/null 2>&1 && continue
2728 am__tar='tar chf - "$$tardir"'
2729 am__tar_='tar chf - "$tardir"'
2730 am__untar='tar xf -'
2733 am__tar='pax -L -x pax -w "$$tardir"'
2734 am__tar_='pax -L -x pax -w "$tardir"'
2738 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2739 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2740 am__untar='cpio -i -H pax -d'
2749 # If the value was cached, stop now. We just wanted to have am__tar
2750 # and am__untar set.
2751 test -n "${am_cv_prog_tar_pax}" && break
2753 # tar/untar a dummy directory, and stop if the command works.
2756 echo GrepMe > conftest.dir/file
2757 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2758 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }
2763 if test -s conftest.tar; then
2764 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2765 ($am__untar <conftest.tar) >&5 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }
2769 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2770 (cat conftest.dir/file) >&5 2>&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }
2774 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2779 if ${am_cv_prog_tar_pax+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 am_cv_prog_tar_pax=$_am_tool
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2786 $as_echo "$am_cv_prog_tar_pax" >&6; }
2793 # POSIX will say in a future version that running "rm -f" with no argument
2794 # is OK; and we want to be able to make that assumption in our Makefile
2795 # recipes. So use an aggressive probe to check that the usage we want is
2796 # actually supported "in the wild" to an acceptable degree.
2797 # See automake bug#10828.
2798 # To make any issue more visible, cause the running configure to be aborted
2799 # by default if the 'rm' program in use doesn't match our expectations; the
2800 # user can still override this though.
2801 if rm -f && rm -fr && rm -rf; then : OK; else
2805 Your 'rm' program seems unable to run without file operands specified
2806 on the command line, even when the '-f' option is present. This is contrary
2807 to the behaviour of most rm programs out there, and not conforming with
2808 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2810 Please tell bug-automake@gnu.org about your system, including the value
2811 of your $PATH and any error possibly output before this message. This
2812 can help us improve future automake versions.
2815 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2816 echo 'Configuration will proceed anyway, since you have set the' >&2
2817 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2821 Aborting the configuration process, to ensure you take notice of the issue.
2823 You can download and install GNU coreutils to get an 'rm' implementation
2824 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2826 If you want to complete the configuration process using your problematic
2827 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2828 to "yes", and re-run configure.
2831 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2886 if test -z "$ac_cv_prog_CC"; then
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2924 if test "x$ac_ct_CC" = x; then
2927 case $cross_compiling:$ac_tool_warned in
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$CC" && break
3080 if test -z "$CC"; then
3082 for ac_prog in cl.exe
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3121 test -n "$ac_ct_CC" && break
3124 if test "x$ac_ct_CC" = x; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details" "$LINENO" 5; }
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149 for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3159 if test -s conftest.err; then
3161 ... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3165 rm -f conftest.er1 conftest.err
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194 for ac_file in $ac_files
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 if { { ac_try="$ac_link_default"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3219 for ac_file in $ac_files ''
3221 test -f "$ac_file" || continue
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 # We found the default executable, but exeext='' is most
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3249 if test -z "$ac_file"; then :
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error 77 "C compiler cannot create executables
3258 See \`config.log' for more details" "$LINENO" 5; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 ac_exeext=$ac_cv_exeext
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272 $as_echo_n "checking for suffix of executables... " >&6; }
3273 if { { ac_try="$ac_link"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 for ac_file in conftest.exe conftest conftest.*; do
3289 test -f "$ac_file" || continue
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 rm -f conftest conftest$ac_cv_exeext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305 $as_echo "$ac_cv_exeext" >&6; }
3307 rm -f conftest.$ac_ext
3308 EXEEXT=$ac_cv_exeext
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3316 FILE *f = fopen ("conftest.out", "w");
3317 return ferror (f) || fclose (f) != 0;
3323 ac_clean_files="$ac_clean_files conftest.out"
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 if test "$cross_compiling" != yes; then
3329 { { ac_try="$ac_link"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 if { ac_try='./conftest$ac_cv_exeext'
3341 { { case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_try") 2>&5
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; }; then
3353 if test "$cross_compiling" = maybe; then
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details" "$LINENO" 5; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365 $as_echo "$cross_compiling" >&6; }
3367 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368 ac_clean_files=$ac_clean_files_save
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370 $as_echo_n "checking for suffix of object files... " >&6; }
3371 if ${ac_cv_objext+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 rm -f conftest.o conftest.obj
3386 if { { ac_try="$ac_compile"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_compile") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 for ac_file in conftest.o conftest.obj conftest.*; do
3398 test -f "$ac_file" || continue;
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See \`config.log' for more details" "$LINENO" 5; }
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if ${ac_cv_c_compiler_gnu+:} false; then :
3423 $as_echo_n "(cached) " >&6
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3439 if ac_fn_c_try_compile "$LINENO"; then :
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450 if test $ac_compiler_gnu = yes; then
3455 ac_test_CFLAGS=${CFLAGS+set}
3456 ac_save_CFLAGS=$CFLAGS
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3459 if ${ac_cv_prog_cc_g+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 ac_save_c_werror_flag=$ac_c_werror_flag
3463 ac_c_werror_flag=yes
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3492 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 $as_echo "$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3529 if test "$GCC" = yes; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537 if ${ac_cv_prog_cc_c89+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 ac_cv_prog_cc_c89=no
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3561 s = g (p, va_arg (v,int));
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3567 function prototypes and stuff, but not '\xHH' hex character constants.
3568 These don't provoke an error unfortunately, instead are silently treated
3569 as 'x'. The following induces an error, until -std is added to get
3570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3571 array size at least. It's necessary to write '\x00'==0 to get something
3572 that's true only with -std. */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576 inside strings and character constants. */
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3597 CC="$ac_save_CC $ac_arg"
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_c89=$ac_arg
3601 rm -f core conftest.err conftest.$ac_objext
3602 test "x$ac_cv_prog_cc_c89" != "xno" && break
3604 rm -f conftest.$ac_ext
3609 case "x$ac_cv_prog_cc_c89" in
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 $as_echo "none needed" >&6; } ;;
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 $as_echo "unsupported" >&6; } ;;
3617 CC="$CC $ac_cv_prog_cc_c89"
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3621 if test "x$ac_cv_prog_cc_c89" != xno; then :
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3638 if ${am_cv_prog_cc_c_o+:} false; then :
3639 $as_echo_n "(cached) " >&6
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3652 # Make sure it works both with $CC and with simple cc.
3653 # Following AC_PROG_CC_C_O, we do the test twice because some
3654 # compilers refuse to overwrite an existing .o file with -o,
3655 # though they will create one.
3656 am_cv_prog_cc_c_o=yes
3658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } \
3663 && test -f conftest2.$ac_objext; then
3666 am_cv_prog_cc_c_o=no
3670 rm -f core conftest*
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3675 if test "$am_cv_prog_cc_c_o" != yes; then
3676 # Losing compiler, so override with the script.
3677 # FIXME: It is wrong to rewrite CC.
3678 # But if we don't then we get into trouble of one sort or another.
3679 # A longer-term fix would be to have automake use am__CC in this case,
3680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3681 CC="$am_aux_dir/compile $CC"
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 DEPDIR="${am__leading_dot}deps"
3691 ac_config_commands="$ac_config_commands depfiles"
3694 am_make=${MAKE-make}
3695 cat > confinc << 'END'
3697 @echo this is the am__doit target
3700 # If we don't find an include directive, just comment out the code.
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3702 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3706 # First try GNU make style include.
3707 echo "include confinc" > confmf
3708 # Ignore all kinds of additional output from 'make'.
3709 case `$am_make -s -f confmf 2> /dev/null` in #(
3710 *the\ am__doit\ target*)
3716 # Now try BSD make style include.
3717 if test "$am__include" = "#"; then
3718 echo '.include "confinc"' > confmf
3719 case `$am_make -s -f confmf 2> /dev/null` in #(
3720 *the\ am__doit\ target*)
3721 am__include=.include
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3730 $as_echo "$_am_result" >&6; }
3731 rm -f confinc confmf
3733 # Check whether --enable-dependency-tracking was given.
3734 if test "${enable_dependency_tracking+set}" = set; then :
3735 enableval=$enable_dependency_tracking;
3738 if test "x$enable_dependency_tracking" != xno; then
3739 am_depcomp="$ac_aux_dir/depcomp"
3743 if test "x$enable_dependency_tracking" != xno; then
3753 depcc="$CC" am_compiler_list=
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756 $as_echo_n "checking dependency style of $depcc... " >&6; }
3757 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761 # We make a subdir and do the tests there. Otherwise we can end up
3762 # making bogus files that we don't know about and never remove. For
3763 # instance it was reported that on HP-UX the gcc test will end up
3764 # making a dummy file named 'D' -- because '-MD' means "put the output
3768 # Copy depcomp to subdir because otherwise we won't find it if we're
3769 # using a relative directory.
3770 cp "$am_depcomp" conftest.dir
3772 # We will build objects and dependencies in a subdirectory because
3773 # it helps to detect inapplicable dependency modes. For instance
3774 # both Tru64's cc and ICC support -MD to output dependencies as a
3775 # side effect of compilation, but ICC will put the dependencies in
3776 # the current directory while Tru64 will put them in the object
3780 am_cv_CC_dependencies_compiler_type=none
3781 if test "$am_compiler_list" = ""; then
3782 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785 case " $depcc " in #(
3786 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3789 for depmode in $am_compiler_list; do
3790 # Setup a source with many dependencies, because some compilers
3791 # like to wrap large dependency lists on column 80 (with \), and
3792 # we should not choose a depcomp mode which is confused by this.
3794 # We need to recreate these files for each test, as the compiler may
3795 # overwrite some of them when testing with obscure command lines.
3796 # This happens at least with the AIX C compiler.
3798 for i in 1 2 3 4 5 6; do
3799 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3800 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3801 # Solaris 10 /bin/sh.
3802 echo '/* dummy */' > sub/conftst$i.h
3804 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3806 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3807 # mode. It turns out that the SunPro C++ compiler does not properly
3808 # handle '-M -o', and we need to detect this. Also, some Intel
3809 # versions had trouble with output in subdirs.
3810 am__obj=sub/conftest.${OBJEXT-o}
3811 am__minus_obj="-o $am__obj"
3814 # This depmode causes a compiler race in universal mode.
3815 test "$am__universal" = false || continue
3818 # After this tag, mechanisms are not by side-effect, so they'll
3819 # only be used when explicitly requested.
3820 if test "x$enable_dependency_tracking" = xyes; then
3826 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3827 # This compiler won't grok '-c -o', but also, the minuso test has
3828 # not run yet. These depmodes are late enough in the game, and
3829 # so weak that their functioning should not be impacted.
3830 am__obj=conftest.${OBJEXT-o}
3835 if depmode=$depmode \
3836 source=sub/conftest.c object=$am__obj \
3837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3838 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3839 >/dev/null 2>conftest.err &&
3840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3842 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3844 # icc doesn't choke on unknown options, it will just issue warnings
3845 # or remarks (even with -Werror). So we grep stderr for any message
3846 # that says an option was ignored or not supported.
3847 # When given -MP, icc 7.0 and 7.1 complain thusly:
3848 # icc: Command line warning: ignoring option '-M'; no argument required
3849 # The diagnosis changed in icc 8.0:
3850 # icc: Command line remark: option '-MP' not supported
3851 if (grep 'ignoring option' conftest.err ||
3852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3853 am_cv_CC_dependencies_compiler_type=$depmode
3862 am_cv_CC_dependencies_compiler_type=none
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3867 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3871 test "x$enable_dependency_tracking" != xno \
3872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874 am__fastdepCC_FALSE='#'
3876 am__fastdepCC_TRUE='#'
3877 am__fastdepCC_FALSE=
3881 case $ac_cv_prog_cc_stdc in #(
3883 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3886 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3887 if ${ac_cv_prog_cc_c99+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 ac_cv_prog_cc_c99=no
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3895 #include <stdbool.h>
3900 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3901 #define debug(...) fprintf (stderr, __VA_ARGS__)
3902 #define showlist(...) puts (#__VA_ARGS__)
3903 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3905 test_varargs_macros (void)
3910 debug ("X = %d\n", x);
3911 showlist (The first, second, and third items.);
3912 report (x>y, "x is %d but y is %d", x, y);
3915 // Check long long types.
3916 #define BIG64 18446744073709551615ull
3917 #define BIG32 4294967295ul
3918 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3920 your preprocessor is broken;
3924 your preprocessor is broken;
3926 static long long int bignum = -9223372036854775807LL;
3927 static unsigned long long int ubignum = BIG64;
3929 struct incomplete_array
3937 const wchar_t *name;
3941 typedef const char *ccp;
3944 test_restrict (ccp restrict text)
3946 // See if C++-style comments work.
3947 // Iterate through items via the restricted pointer.
3948 // Also check for declarations in for loops.
3949 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3954 // Check varargs and va_copy.
3956 test_varargs (const char *format, ...)
3959 va_start (args, format);
3961 va_copy (args_copy, args);
3972 str = va_arg (args_copy, const char *);
3975 number = va_arg (args_copy, int);
3978 fnumber = va_arg (args_copy, double);
3993 _Bool success = false;
3996 if (test_restrict ("String literal") == 0)
3998 char *restrict newvar = "Another string";
4001 test_varargs ("s, d' f .", "string", 65, 34.234);
4002 test_varargs_macros ();
4004 // Check flexible array members.
4005 struct incomplete_array *ia =
4006 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4008 for (int i = 0; i < ia->datasize; ++i)
4009 ia->data[i] = i * 1.234;
4011 // Check named initializers.
4012 struct named_init ni = {
4014 .name = L"Test wide string",
4015 .average = 543.34343,
4020 int dynamic_array[ni.number];
4021 dynamic_array[ni.number - 1] = 543;
4023 // work around unused variable warnings
4024 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4025 || dynamic_array[ni.number - 1] != 543);
4031 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4033 CC="$ac_save_CC $ac_arg"
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_cv_prog_cc_c99=$ac_arg
4037 rm -f core conftest.err conftest.$ac_objext
4038 test "x$ac_cv_prog_cc_c99" != "xno" && break
4040 rm -f conftest.$ac_ext
4045 case "x$ac_cv_prog_cc_c99" in
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4048 $as_echo "none needed" >&6; } ;;
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4051 $as_echo "unsupported" >&6; } ;;
4053 CC="$CC $ac_cv_prog_cc_c99"
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4055 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4057 if test "x$ac_cv_prog_cc_c99" != xno; then :
4058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4062 if ${ac_cv_prog_cc_c89+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 ac_cv_prog_cc_c89=no
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4073 struct buf { int x; };
4074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4075 static char *e (p, i)
4081 static char *f (char * (*g) (char **, int), char **p, ...)
4086 s = g (p, va_arg (v,int));
4091 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4092 function prototypes and stuff, but not '\xHH' hex character constants.
4093 These don't provoke an error unfortunately, instead are silently treated
4094 as 'x'. The following induces an error, until -std is added to get
4095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4096 array size at least. It's necessary to write '\x00'==0 to get something
4097 that's true only with -std. */
4098 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4100 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4101 inside strings and character constants. */
4103 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4105 int test (int i, double x);
4106 struct s1 {int (*f) (int a);};
4107 struct s2 {int (*f) (double a);};
4108 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4114 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4119 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4120 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4122 CC="$ac_save_CC $ac_arg"
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124 ac_cv_prog_cc_c89=$ac_arg
4126 rm -f core conftest.err conftest.$ac_objext
4127 test "x$ac_cv_prog_cc_c89" != "xno" && break
4129 rm -f conftest.$ac_ext
4134 case "x$ac_cv_prog_cc_c89" in
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137 $as_echo "none needed" >&6; } ;;
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4140 $as_echo "unsupported" >&6; } ;;
4142 CC="$CC $ac_cv_prog_cc_c89"
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4144 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4146 if test "x$ac_cv_prog_cc_c89" != xno; then :
4147 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4149 ac_cv_prog_cc_stdc=no
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4156 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4157 if ${ac_cv_prog_cc_stdc+:} false; then :
4158 $as_echo_n "(cached) " >&6
4161 case $ac_cv_prog_cc_stdc in #(
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;; #(
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4167 $as_echo "none needed" >&6; } ;; #(
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4170 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4173 # Check whether --enable-silent-rules was given.
4174 if test "${enable_silent_rules+set}" = set; then :
4175 enableval=$enable_silent_rules;
4178 case $enable_silent_rules in # (((
4179 yes) AM_DEFAULT_VERBOSITY=0;;
4180 no) AM_DEFAULT_VERBOSITY=1;;
4181 *) AM_DEFAULT_VERBOSITY=0;;
4183 am_make=${MAKE-make}
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4186 if ${am_cv_make_support_nested_variables+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 if $as_echo 'TRUE=$(BAR$(V))
4195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4196 am_cv_make_support_nested_variables=yes
4198 am_cv_make_support_nested_variables=no
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4203 if test $am_cv_make_support_nested_variables = yes; then
4205 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4207 AM_V=$AM_DEFAULT_VERBOSITY
4208 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4215 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4220 macro_version='2.4.6'
4221 macro_revision='2.4.6'
4235 ltmain=$ac_aux_dir/ltmain.sh
4237 # Make sure we can run config.sub.
4238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4239 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4242 $as_echo_n "checking build system type... " >&6; }
4243 if ${ac_cv_build+:} false; then :
4244 $as_echo_n "(cached) " >&6
4246 ac_build_alias=$build_alias
4247 test "x$ac_build_alias" = x &&
4248 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4249 test "x$ac_build_alias" = x &&
4250 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4251 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4252 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4256 $as_echo "$ac_cv_build" >&6; }
4257 case $ac_cv_build in
4259 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4262 ac_save_IFS=$IFS; IFS='-'
4268 # Remember, the first character of IFS is used to create $*,
4269 # except with old shells:
4272 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4276 $as_echo_n "checking host system type... " >&6; }
4277 if ${ac_cv_host+:} false; then :
4278 $as_echo_n "(cached) " >&6
4280 if test "x$host_alias" = x; then
4281 ac_cv_host=$ac_cv_build
4283 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4289 $as_echo "$ac_cv_host" >&6; }
4292 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4295 ac_save_IFS=$IFS; IFS='-'
4301 # Remember, the first character of IFS is used to create $*,
4302 # except with old shells:
4305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4308 # Backslashify metacharacters that are still active within
4309 # double-quoted strings.
4310 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4312 # Same as above, but do not quote variable references.
4313 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4315 # Sed substitution to delay expansion of an escaped shell variable in a
4316 # double_quote_subst'ed string.
4317 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4319 # Sed substitution to delay expansion of an escaped single quote.
4320 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4322 # Sed substitution to avoid accidental globbing in evaled expressions
4323 no_glob_subst='s/\*/\\\*/g'
4325 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4326 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4327 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4330 $as_echo_n "checking how to print strings... " >&6; }
4331 # Test print first, because it will be a builtin if present.
4332 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4333 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4335 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4338 # Use this function as a fallback that always works.
4339 func_fallback_echo ()
4341 eval 'cat <<_LTECHO_EOF
4345 ECHO='func_fallback_echo'
4348 # func_echo_all arg...
4349 # Invoke $ECHO with all args, space-separated.
4356 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4357 $as_echo "printf" >&6; } ;;
4358 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4359 $as_echo "print -r" >&6; } ;;
4360 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4361 $as_echo "cat" >&6; } ;;
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4378 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4379 if ${ac_cv_path_SED+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4383 for ac_i in 1 2 3 4 5 6 7; do
4384 ac_script="$ac_script$as_nl$ac_script"
4386 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4387 { ac_script=; unset ac_script;}
4388 if test -z "$SED"; then
4389 ac_path_SED_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in sed gsed; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_SED" || continue
4400 # Check for GNU ac_path_SED and select it if it is found.
4401 # Check for GNU $ac_path_SED
4402 case `"$ac_path_SED" --version 2>&1` in
4404 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4407 $as_echo_n 0123456789 >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo '' >> "conftest.nl"
4414 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_SED_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_SED="$ac_path_SED"
4420 ac_path_SED_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 $ac_path_SED_found && break 3
4433 if test -z "$ac_cv_path_SED"; then
4434 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4442 $as_echo "$ac_cv_path_SED" >&6; }
4443 SED="$ac_cv_path_SED"
4446 test -z "$SED" && SED=sed
4447 Xsed="$SED -e 1s/^X//"
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4461 if ${ac_cv_path_GREP+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 if test -z "$GREP"; then
4465 ac_path_GREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in grep ggrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4475 as_fn_executable_p "$ac_path_GREP" || continue
4476 # Check for GNU ac_path_GREP and select it if it is found.
4477 # Check for GNU $ac_path_GREP
4478 case `"$ac_path_GREP" --version 2>&1` in
4480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4483 $as_echo_n 0123456789 >"conftest.in"
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'GREP' >> "conftest.nl"
4490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 as_fn_arith $ac_count + 1 && ac_count=$as_val
4493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_GREP="$ac_path_GREP"
4496 ac_path_GREP_max=$ac_count
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4504 $ac_path_GREP_found && break 3
4509 if test -z "$ac_cv_path_GREP"; then
4510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4513 ac_cv_path_GREP=$GREP
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4518 $as_echo "$ac_cv_path_GREP" >&6; }
4519 GREP="$ac_cv_path_GREP"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4523 $as_echo_n "checking for egrep... " >&6; }
4524 if ${ac_cv_path_EGREP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4528 then ac_cv_path_EGREP="$GREP -E"
4530 if test -z "$EGREP"; then
4531 ac_path_EGREP_found=false
4532 # Loop through the user's path and test for each of PROGNAME-LIST
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4537 test -z "$as_dir" && as_dir=.
4538 for ac_prog in egrep; do
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4541 as_fn_executable_p "$ac_path_EGREP" || continue
4542 # Check for GNU ac_path_EGREP and select it if it is found.
4543 # Check for GNU $ac_path_EGREP
4544 case `"$ac_path_EGREP" --version 2>&1` in
4546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4549 $as_echo_n 0123456789 >"conftest.in"
4552 cat "conftest.in" "conftest.in" >"conftest.tmp"
4553 mv "conftest.tmp" "conftest.in"
4554 cp "conftest.in" "conftest.nl"
4555 $as_echo 'EGREP' >> "conftest.nl"
4556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558 as_fn_arith $ac_count + 1 && ac_count=$as_val
4559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4560 # Best one so far, save it but keep looking for a better one
4561 ac_cv_path_EGREP="$ac_path_EGREP"
4562 ac_path_EGREP_max=$ac_count
4564 # 10*(2^10) chars as input seems more than enough
4565 test $ac_count -gt 10 && break
4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 $ac_path_EGREP_found && break 3
4575 if test -z "$ac_cv_path_EGREP"; then
4576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4579 ac_cv_path_EGREP=$EGREP
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4585 $as_echo "$ac_cv_path_EGREP" >&6; }
4586 EGREP="$ac_cv_path_EGREP"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4590 $as_echo_n "checking for fgrep... " >&6; }
4591 if ${ac_cv_path_FGREP+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4595 then ac_cv_path_FGREP="$GREP -F"
4597 if test -z "$FGREP"; then
4598 ac_path_FGREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in fgrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4608 as_fn_executable_p "$ac_path_FGREP" || continue
4609 # Check for GNU ac_path_FGREP and select it if it is found.
4610 # Check for GNU $ac_path_FGREP
4611 case `"$ac_path_FGREP" --version 2>&1` in
4613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4616 $as_echo_n 0123456789 >"conftest.in"
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'FGREP' >> "conftest.nl"
4623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 as_fn_arith $ac_count + 1 && ac_count=$as_val
4626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_FGREP="$ac_path_FGREP"
4629 ac_path_FGREP_max=$ac_count
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 $ac_path_FGREP_found && break 3
4642 if test -z "$ac_cv_path_FGREP"; then
4643 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4646 ac_cv_path_FGREP=$FGREP
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4652 $as_echo "$ac_cv_path_FGREP" >&6; }
4653 FGREP="$ac_cv_path_FGREP"
4656 test -z "$GREP" && GREP=grep
4676 # Check whether --with-gnu-ld was given.
4677 if test "${with_gnu_ld+set}" = set; then :
4678 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4684 if test yes = "$GCC"; then
4685 # Check if gcc -print-prog-name=ld gives a path.
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4687 $as_echo_n "checking for ld used by $CC... " >&6; }
4690 # gcc leaves a trailing carriage return, which upsets mingw
4691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4696 # Accept absolute paths.
4698 re_direlt='/[^/][^/]*/\.\./'
4699 # Canonicalize the pathname of ld
4700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4704 test -z "$LD" && LD=$ac_prog
4707 # If it fails, then pretend we aren't using GCC.
4711 # If it is relative, then search for the first ld in PATH.
4715 elif test yes = "$with_gnu_ld"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4717 $as_echo_n "checking for GNU ld... " >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4720 $as_echo_n "checking for non-GNU ld... " >&6; }
4722 if ${lt_cv_path_LD+:} false; then :
4723 $as_echo_n "(cached) " >&6
4725 if test -z "$LD"; then
4726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4727 for ac_dir in $PATH; do
4729 test -z "$ac_dir" && ac_dir=.
4730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4731 lt_cv_path_LD=$ac_dir/$ac_prog
4732 # Check to see if the program is GNU ld. I'd rather use --version,
4733 # but apparently some variants of GNU ld only accept -v.
4734 # Break only if it was the GNU/non-GNU ld that we prefer.
4735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4736 *GNU* | *'with BFD'*)
4737 test no != "$with_gnu_ld" && break
4740 test yes != "$with_gnu_ld" && break
4747 lt_cv_path_LD=$LD # Let the user override the test with a path.
4752 if test -n "$LD"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4754 $as_echo "$LD" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4762 if ${lt_cv_prog_gnu_ld+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4766 case `$LD -v 2>&1 </dev/null` in
4767 *GNU* | *'with BFD'*)
4768 lt_cv_prog_gnu_ld=yes
4771 lt_cv_prog_gnu_ld=no
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4777 with_gnu_ld=$lt_cv_prog_gnu_ld
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4789 if ${lt_cv_path_NM+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 if test -n "$NM"; then
4793 # Let the user override the test.
4796 lt_nm_to_check=${ac_tool_prefix}nm
4797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4798 lt_nm_to_check="$lt_nm_to_check nm"
4800 for lt_tmp_nm in $lt_nm_to_check; do
4801 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4804 test -z "$ac_dir" && ac_dir=.
4805 tmp_nm=$ac_dir/$lt_tmp_nm
4806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4807 # Check to see if the nm accepts a BSD-compat flag.
4808 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4809 # nm: unknown option "B" ignored
4810 # Tru64's nm complains that /dev/null is an invalid object file
4811 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4813 mingw*) lt_bad_file=conftest.nm/nofile ;;
4814 *) lt_bad_file=/dev/null ;;
4816 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4817 *$lt_bad_file* | *'Invalid file or object type'*)
4818 lt_cv_path_NM="$tmp_nm -B"
4822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4824 lt_cv_path_NM="$tmp_nm -p"
4828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4829 continue # so that we can try to find one that supports BSD flags
4838 : ${lt_cv_path_NM=no}
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4842 $as_echo "$lt_cv_path_NM" >&6; }
4843 if test no != "$lt_cv_path_NM"; then
4846 # Didn't find any BSD compatible name lister, look for dumpbin.
4847 if test -n "$DUMPBIN"; then :
4848 # Let the user override the test.
4850 if test -n "$ac_tool_prefix"; then
4851 for ac_prog in dumpbin "link -dump"
4853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if ${ac_cv_prog_DUMPBIN+:} false; then :
4858 $as_echo_n "(cached) " >&6
4860 if test -n "$DUMPBIN"; then
4861 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 DUMPBIN=$ac_cv_prog_DUMPBIN
4881 if test -n "$DUMPBIN"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4883 $as_echo "$DUMPBIN" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$DUMPBIN" && break
4893 if test -z "$DUMPBIN"; then
4894 ac_ct_DUMPBIN=$DUMPBIN
4895 for ac_prog in dumpbin "link -dump"
4897 # Extract the first word of "$ac_prog", so it can be a program name with args.
4898 set dummy $ac_prog; ac_word=$2
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900 $as_echo_n "checking for $ac_word... " >&6; }
4901 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4902 $as_echo_n "(cached) " >&6
4904 if test -n "$ac_ct_DUMPBIN"; then
4905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4914 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4925 if test -n "$ac_ct_DUMPBIN"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4927 $as_echo "$ac_ct_DUMPBIN" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930 $as_echo "no" >&6; }
4934 test -n "$ac_ct_DUMPBIN" && break
4937 if test "x$ac_ct_DUMPBIN" = x; then
4940 case $cross_compiling:$ac_tool_warned in
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4944 ac_tool_warned=yes ;;
4946 DUMPBIN=$ac_ct_DUMPBIN
4950 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4952 DUMPBIN="$DUMPBIN -symbols -headers"
4960 if test : != "$DUMPBIN"; then
4964 test -z "$NM" && NM=nm
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4972 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4973 if ${lt_cv_nm_interface+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 lt_cv_nm_interface="BSD nm"
4977 echo "int some_variable = 0;" > conftest.$ac_ext
4978 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4979 (eval "$ac_compile" 2>conftest.err)
4980 cat conftest.err >&5
4981 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4982 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4983 cat conftest.err >&5
4984 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4985 cat conftest.out >&5
4986 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4987 lt_cv_nm_interface="MS dumpbin"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4992 $as_echo "$lt_cv_nm_interface" >&6; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4995 $as_echo_n "checking whether ln -s works... " >&6; }
4997 if test "$LN_S" = "ln -s"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4999 $as_echo "yes" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5002 $as_echo "no, using $LN_S" >&6; }
5005 # find the maximum length of command line arguments
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5007 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5008 if ${lt_cv_sys_max_cmd_len+:} false; then :
5009 $as_echo_n "(cached) " >&6
5016 # On DJGPP, this test can blow up pretty badly due to problems in libc
5017 # (any single argument exceeding 2000 bytes causes a buffer overrun
5018 # during glob expansion). Even if it were fixed, the result of this
5019 # check would be larger than it should be.
5020 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5024 # Under GNU Hurd, this test is not required because there is
5025 # no limit to the length of command line arguments.
5026 # Libtool will interpret -1 as no limit whatsoever
5027 lt_cv_sys_max_cmd_len=-1;
5030 cygwin* | mingw* | cegcc*)
5031 # On Win9x/ME, this test blows up -- it succeeds, but takes
5032 # about 5 minutes as the teststring grows exponentially.
5033 # Worse, since 9x/ME are not pre-emptively multitasking,
5034 # you end up with a "frozen" computer, even though with patience
5035 # the test eventually succeeds (with a max line length of 256k).
5036 # Instead, let's just punt: use the minimum linelength reported by
5037 # all of the supported platforms: 8192 (on NT/2K/XP).
5038 lt_cv_sys_max_cmd_len=8192;
5042 # On MiNT this can take a long time and run out of memory.
5043 lt_cv_sys_max_cmd_len=8192;
5047 # On AmigaOS with pdksh, this test takes hours, literally.
5048 # So we just punt and use a minimum line length of 8192.
5049 lt_cv_sys_max_cmd_len=8192;
5052 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5053 # This has been around since 386BSD, at least. Likely further.
5054 if test -x /sbin/sysctl; then
5055 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5056 elif test -x /usr/sbin/sysctl; then
5057 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5059 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5061 # And add a safety zone
5062 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5067 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5068 lt_cv_sys_max_cmd_len=196608
5072 # The test takes a long time on OS/2.
5073 lt_cv_sys_max_cmd_len=8192
5077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5079 # nice to cause kernel panics so lets avoid the loop below.
5080 # First set a reasonable default.
5081 lt_cv_sys_max_cmd_len=16384
5083 if test -x /sbin/sysconfig; then
5084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5085 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5090 lt_cv_sys_max_cmd_len=102400
5092 sysv5* | sco5v6* | sysv4.2uw2*)
5093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5094 if test -n "$kargmax"; then
5095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5097 lt_cv_sys_max_cmd_len=32768
5101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5102 if test -n "$lt_cv_sys_max_cmd_len" && \
5103 test undefined != "$lt_cv_sys_max_cmd_len"; then
5104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5107 # Make teststring a little bigger before we do anything with it.
5108 # a 1K string should be a reasonable start.
5109 for i in 1 2 3 4 5 6 7 8; do
5110 teststring=$teststring$teststring
5112 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5113 # If test is not a shell built-in, we'll probably end up computing a
5114 # maximum length that is only half of the actual maximum length, but
5116 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5117 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5118 test 17 != "$i" # 1/2 MB should be enough
5121 teststring=$teststring$teststring
5123 # Only check the string length outside the loop.
5124 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5126 # Add a significant safety factor because C++ compilers can tack on
5127 # massive amounts of additional arguments before passing them to the
5128 # linker. It appears as though 1/2 is a usable value.
5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5136 if test -n "$lt_cv_sys_max_cmd_len"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5138 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5141 $as_echo "none" >&6; }
5143 max_cmd_len=$lt_cv_sys_max_cmd_len
5154 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5164 # test EBCDIC or ASCII
5165 case `echo X|tr X '\101'` in
5166 A) # ASCII based system
5167 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5168 lt_SP2NL='tr \040 \012'
5169 lt_NL2SP='tr \015\012 \040\040'
5171 *) # EBCDIC based system
5172 lt_SP2NL='tr \100 \n'
5173 lt_NL2SP='tr \r\n \100\100'
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5186 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5187 if ${lt_cv_to_host_file_cmd+:} false; then :
5188 $as_echo_n "(cached) " >&6
5193 *-*-mingw* ) # actually msys
5194 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5197 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5199 * ) # otherwise, assume *nix
5200 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5206 *-*-mingw* ) # actually msys
5207 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5210 lt_cv_to_host_file_cmd=func_convert_file_noop
5212 * ) # otherwise, assume *nix
5213 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5217 * ) # unhandled hosts (and "normal" native builds)
5218 lt_cv_to_host_file_cmd=func_convert_file_noop
5224 to_host_file_cmd=$lt_cv_to_host_file_cmd
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5226 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5233 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5234 if ${lt_cv_to_tool_file_cmd+:} false; then :
5235 $as_echo_n "(cached) " >&6
5237 #assume ordinary cross tools, or native build.
5238 lt_cv_to_tool_file_cmd=func_convert_file_noop
5242 *-*-mingw* ) # actually msys
5243 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5251 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5253 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5261 if ${lt_cv_ld_reload_flag+:} false; then :
5262 $as_echo_n "(cached) " >&6
5264 lt_cv_ld_reload_flag='-r'
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5268 reload_flag=$lt_cv_ld_reload_flag
5269 case $reload_flag in
5271 *) reload_flag=" $reload_flag" ;;
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5275 cygwin* | mingw* | pw32* | cegcc*)
5276 if test yes != "$GCC"; then
5281 if test yes = "$GCC"; then
5282 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5284 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if ${ac_cv_prog_OBJDUMP+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$OBJDUMP"; then
5306 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5315 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 OBJDUMP=$ac_cv_prog_OBJDUMP
5326 if test -n "$OBJDUMP"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5328 $as_echo "$OBJDUMP" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5336 if test -z "$ac_cv_prog_OBJDUMP"; then
5337 ac_ct_OBJDUMP=$OBJDUMP
5338 # Extract the first word of "objdump", so it can be a program name with args.
5339 set dummy objdump; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$ac_ct_OBJDUMP"; then
5346 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5366 if test -n "$ac_ct_OBJDUMP"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5368 $as_echo "$ac_ct_OBJDUMP" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5374 if test "x$ac_ct_OBJDUMP" = x; then
5377 case $cross_compiling:$ac_tool_warned in
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5383 OBJDUMP=$ac_ct_OBJDUMP
5386 OBJDUMP="$ac_cv_prog_OBJDUMP"
5389 test -z "$OBJDUMP" && OBJDUMP=objdump
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5400 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5401 if ${lt_cv_deplibs_check_method+:} false; then :
5402 $as_echo_n "(cached) " >&6
5404 lt_cv_file_magic_cmd='$MAGIC_CMD'
5405 lt_cv_file_magic_test_file=
5406 lt_cv_deplibs_check_method='unknown'
5407 # Need to set the preceding variable on all platforms that support
5408 # interlibrary dependencies.
5409 # 'none' -- dependencies not supported.
5410 # 'unknown' -- same as none, but documents that we really don't know.
5411 # 'pass_all' -- all dependencies passed with no checks.
5412 # 'test_compile' -- check by making test program.
5413 # 'file_magic [[regex]]' -- check by looking for files in library path
5414 # that responds to the $file_magic_cmd with a given extended regex.
5415 # If you have 'file' or equivalent on your system and you're not sure
5416 # whether 'pass_all' will *always* work, you probably want this one.
5420 lt_cv_deplibs_check_method=pass_all
5424 lt_cv_deplibs_check_method=pass_all
5428 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5429 lt_cv_file_magic_cmd='/usr/bin/file -L'
5430 lt_cv_file_magic_test_file=/shlib/libc.so
5434 # func_win32_libid is a shell function defined in ltmain.sh
5435 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5436 lt_cv_file_magic_cmd='func_win32_libid'
5440 # Base MSYS/MinGW do not provide the 'file' command needed by
5441 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5442 # unless we find 'file', for example because we are cross-compiling.
5443 if ( file / ) >/dev/null 2>&1; then
5444 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5445 lt_cv_file_magic_cmd='func_win32_libid'
5447 # Keep this pattern in sync with the one in func_win32_libid.
5448 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5449 lt_cv_file_magic_cmd='$OBJDUMP -f'
5454 # use the weaker test based on 'objdump'. See mingw*.
5455 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5456 lt_cv_file_magic_cmd='$OBJDUMP -f'
5459 darwin* | rhapsody*)
5460 lt_cv_deplibs_check_method=pass_all
5463 freebsd* | dragonfly*)
5464 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5467 # Not sure whether the presence of OpenBSD here was a mistake.
5468 # Let's accept both of them until this is cleared up.
5469 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5470 lt_cv_file_magic_cmd=/usr/bin/file
5471 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5475 lt_cv_deplibs_check_method=pass_all
5480 lt_cv_deplibs_check_method=pass_all
5483 hpux10.20* | hpux11*)
5484 lt_cv_file_magic_cmd=/usr/bin/file
5487 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5488 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5491 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]'
5492 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5495 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5496 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5502 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5506 irix5* | irix6* | nonstopux*)
5508 *-32|*"-32 ") libmagic=32-bit;;
5509 *-n32|*"-n32 ") libmagic=N32;;
5510 *-64|*"-64 ") libmagic=64-bit;;
5511 *) libmagic=never-match;;
5513 lt_cv_deplibs_check_method=pass_all
5516 # This must be glibc/ELF.
5517 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5518 lt_cv_deplibs_check_method=pass_all
5521 netbsd* | netbsdelf*-gnu)
5522 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5523 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5531 lt_cv_file_magic_cmd=/usr/bin/file
5532 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5536 lt_cv_deplibs_check_method=pass_all
5540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5547 osf3* | osf4* | osf5*)
5548 lt_cv_deplibs_check_method=pass_all
5552 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5559 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5560 lt_cv_deplibs_check_method=pass_all
5564 case $host_vendor in
5566 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]'
5567 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5570 lt_cv_deplibs_check_method=pass_all
5573 lt_cv_file_magic_cmd='/bin/file'
5574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5577 lt_cv_file_magic_cmd='/bin/file'
5578 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5579 lt_cv_file_magic_test_file=/lib/libc.so
5582 lt_cv_deplibs_check_method=pass_all
5585 lt_cv_deplibs_check_method=pass_all
5591 lt_cv_deplibs_check_method=pass_all
5594 lt_cv_deplibs_check_method=pass_all
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5600 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5604 if test "$build" = "$host"; then
5607 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5610 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5616 file_magic_cmd=$lt_cv_file_magic_cmd
5617 deplibs_check_method=$lt_cv_deplibs_check_method
5618 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5641 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5643 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_DLLTOOL+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 if test -n "$DLLTOOL"; then
5650 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 DLLTOOL=$ac_cv_prog_DLLTOOL
5670 if test -n "$DLLTOOL"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5672 $as_echo "$DLLTOOL" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5680 if test -z "$ac_cv_prog_DLLTOOL"; then
5681 ac_ct_DLLTOOL=$DLLTOOL
5682 # Extract the first word of "dlltool", so it can be a program name with args.
5683 set dummy dlltool; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5687 $as_echo_n "(cached) " >&6
5689 if test -n "$ac_ct_DLLTOOL"; then
5690 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5710 if test -n "$ac_ct_DLLTOOL"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5712 $as_echo "$ac_ct_DLLTOOL" >&6; }
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5718 if test "x$ac_ct_DLLTOOL" = x; then
5721 case $cross_compiling:$ac_tool_warned in
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5727 DLLTOOL=$ac_ct_DLLTOOL
5730 DLLTOOL="$ac_cv_prog_DLLTOOL"
5733 test -z "$DLLTOOL" && DLLTOOL=dlltool
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5745 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5746 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 lt_cv_sharedlib_from_linklib_cmd='unknown'
5752 cygwin* | mingw* | pw32* | cegcc*)
5753 # two different shell functions defined in ltmain.sh;
5754 # decide which one to use based on capabilities of $DLLTOOL
5755 case `$DLLTOOL --help 2>&1` in
5756 *--identify-strict*)
5757 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5760 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5765 # fallback: assume linklib IS sharedlib
5766 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5772 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5773 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5774 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5783 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_AR+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -n "$AR"; then
5794 ac_cv_prog_AR="$AR" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 if test -n "$AR"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5816 $as_echo "$AR" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5823 test -n "$AR" && break
5826 if test -z "$AR"; then
5830 # Extract the first word of "$ac_prog", so it can be a program name with args.
5831 set dummy $ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$ac_ct_AR"; then
5838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847 ac_cv_prog_ac_ct_AR="$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5858 if test -n "$ac_ct_AR"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5860 $as_echo "$ac_ct_AR" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5867 test -n "$ac_ct_AR" && break
5870 if test "x$ac_ct_AR" = x; then
5873 case $cross_compiling:$ac_tool_warned in
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5877 ac_tool_warned=yes ;;
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5897 $as_echo_n "checking for archiver @FILE support... " >&6; }
5898 if ${lt_cv_ar_at_file+:} false; then :
5899 $as_echo_n "(cached) " >&6
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914 echo conftest.$ac_objext > conftest.lst
5915 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5917 (eval $lt_ar_try) 2>&5
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5920 test $ac_status = 0; }
5921 if test 0 -eq "$ac_status"; then
5922 # Ensure the archiver fails upon bogus file names.
5923 rm -f conftest.$ac_objext libconftest.a
5924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5925 (eval $lt_ar_try) 2>&5
5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928 test $ac_status = 0; }
5929 if test 0 -ne "$ac_status"; then
5933 rm -f conftest.* libconftest.a
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5940 $as_echo "$lt_cv_ar_at_file" >&6; }
5942 if test no = "$lt_cv_ar_at_file"; then
5945 archiver_list_spec=$lt_cv_ar_at_file
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}strip; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if ${ac_cv_prog_STRIP+:} false; then :
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$STRIP"; then
5963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 STRIP=$ac_cv_prog_STRIP
5983 if test -n "$STRIP"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5985 $as_echo "$STRIP" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5993 if test -z "$ac_cv_prog_STRIP"; then
5995 # Extract the first word of "strip", so it can be a program name with args.
5996 set dummy strip; ac_word=$2
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6000 $as_echo_n "(cached) " >&6
6002 if test -n "$ac_ct_STRIP"; then
6003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012 ac_cv_prog_ac_ct_STRIP="strip"
6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6023 if test -n "$ac_ct_STRIP"; then
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6025 $as_echo "$ac_ct_STRIP" >&6; }
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028 $as_echo "no" >&6; }
6031 if test "x$ac_ct_STRIP" = x; then
6034 case $cross_compiling:$ac_tool_warned in
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6043 STRIP="$ac_cv_prog_STRIP"
6046 test -z "$STRIP" && STRIP=:
6053 if test -n "$ac_tool_prefix"; then
6054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6055 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if ${ac_cv_prog_RANLIB+:} false; then :
6059 $as_echo_n "(cached) " >&6
6061 if test -n "$RANLIB"; then
6062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 RANLIB=$ac_cv_prog_RANLIB
6082 if test -n "$RANLIB"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6084 $as_echo "$RANLIB" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6092 if test -z "$ac_cv_prog_RANLIB"; then
6093 ac_ct_RANLIB=$RANLIB
6094 # Extract the first word of "ranlib", so it can be a program name with args.
6095 set dummy ranlib; ac_word=$2
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6097 $as_echo_n "checking for $ac_word... " >&6; }
6098 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6099 $as_echo_n "(cached) " >&6
6101 if test -n "$ac_ct_RANLIB"; then
6102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 test -z "$as_dir" && as_dir=.
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111 ac_cv_prog_ac_ct_RANLIB="ranlib"
6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6122 if test -n "$ac_ct_RANLIB"; then
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6124 $as_echo "$ac_ct_RANLIB" >&6; }
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 $as_echo "no" >&6; }
6130 if test "x$ac_ct_RANLIB" = x; then
6133 case $cross_compiling:$ac_tool_warned in
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6137 ac_tool_warned=yes ;;
6139 RANLIB=$ac_ct_RANLIB
6142 RANLIB="$ac_cv_prog_RANLIB"
6145 test -z "$RANLIB" && RANLIB=:
6152 # Determine commands to create old-style static archives.
6153 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6154 old_postinstall_cmds='chmod 644 $oldlib'
6155 old_postuninstall_cmds=
6157 if test -n "$RANLIB"; then
6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6171 lock_old_archive_extraction=yes ;;
6173 lock_old_archive_extraction=no ;;
6214 # If no C compiler was specified, use CC.
6217 # If no C compiler flags were specified, use CFLAGS.
6218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6220 # Allow CC to be a program name with arguments.
6224 # Check for command to grab the raw symbol name followed by C symbol from nm.
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6226 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6227 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6228 $as_echo_n "(cached) " >&6
6231 # These are sane defaults that work on at least a few old systems.
6232 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6234 # Character class describing NM global symbol codes.
6235 symcode='[BCDEGRST]'
6237 # Regexp to match symbols that can be accessed directly from C.
6238 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6240 # Define system-specific variables.
6245 cygwin* | mingw* | pw32* | cegcc*)
6246 symcode='[ABCDGISTW]'
6249 if test ia64 = "$host_cpu"; then
6250 symcode='[ABCDEGRST]'
6254 symcode='[BCDEGRST]'
6257 symcode='[BCDEGQRST]'
6268 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6276 # If we're using GNU nm, then use its standard symbol codes.
6277 case `$NM -V 2>&1` in
6278 *GNU* | *'with BFD'*)
6279 symcode='[ABCDGIRSTW]' ;;
6282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6283 # Gets list of data symbols to import.
6284 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6285 # Adjust the below global symbol transforms to fixup imported variables.
6286 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6287 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6288 lt_c_name_lib_hook="\
6289 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6290 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6292 # Disable hooks by default.
6293 lt_cv_sys_global_symbol_to_import=
6299 # Transform an extracted symbol line into a proper C declaration.
6300 # Some systems (esp. on ia64) link data and code symbols differently,
6301 # so use this general approach.
6302 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6304 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6305 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6307 # Transform an extracted symbol line into symbol name and symbol address
6308 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6310 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6311 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6313 # Transform an extracted symbol line into symbol name with lib prefix and
6315 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6316 $lt_c_name_lib_hook\
6317 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6318 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6319 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6321 # Handle CRLF in mingw tool chain
6325 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6329 # Try without a prefix underscore, then with it.
6330 for ac_symprfx in "" "_"; do
6332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6333 symxfrm="\\1 $ac_symprfx\\2 \\2"
6335 # Write the raw and C identifiers.
6336 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6337 # Fake it for dumpbin and say T for any non-static function,
6338 # D for any global variable and I for any imported variable.
6339 # Also find C++ and __fastcall symbols from MSVC++,
6340 # which start with @ or ?.
6341 lt_cv_sys_global_symbol_pipe="$AWK '"\
6342 " {last_section=section; section=\$ 3};"\
6343 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6344 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6345 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6346 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6347 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6348 " \$ 0!~/External *\|/{next};"\
6349 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6350 " {if(hide[section]) next};"\
6351 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6352 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6353 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6354 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6355 " ' prfx=^$ac_symprfx"
6357 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6359 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6361 # Check to see that the pipe works correctly.
6365 cat > conftest.$ac_ext <<_LT_EOF
6370 void nm_test_func(void);
6371 void nm_test_func(void){}
6375 int main(){nm_test_var='a';nm_test_func();return(0);}
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6379 (eval $ac_compile) 2>&5
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; }; then
6383 # Now try to grab the symbols.
6385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6386 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6389 test $ac_status = 0; } && test -s "$nlist"; then
6390 # Try sorting and uniquifying the output.
6391 if sort "$nlist" | uniq > "$nlist"T; then
6392 mv -f "$nlist"T "$nlist"
6397 # Make sure that we snagged all the symbols we need.
6398 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6399 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6400 cat <<_LT_EOF > conftest.$ac_ext
6401 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6402 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6403 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6404 relocations are performed -- see ld's documentation on pseudo-relocs. */
6405 # define LT_DLSYM_CONST
6406 #elif defined __osf__
6407 /* This system does not cope well with relocations in const data. */
6408 # define LT_DLSYM_CONST
6410 # define LT_DLSYM_CONST const
6418 # Now generate the symbol file.
6419 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6421 cat <<_LT_EOF >> conftest.$ac_ext
6423 /* The mapping between symbol names and symbols. */
6424 LT_DLSYM_CONST struct {
6428 lt__PROGRAM__LTX_preloaded_symbols[] =
6430 { "@PROGRAM@", (void *) 0 },
6432 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6433 cat <<\_LT_EOF >> conftest.$ac_ext
6437 /* This works around a problem in FreeBSD linker */
6438 #ifdef FREEBSD_WORKAROUND
6439 static const void *lt_preloaded_setup() {
6440 return lt__PROGRAM__LTX_preloaded_symbols;
6448 # Now try linking the two files.
6449 mv conftest.$ac_objext conftstm.$ac_objext
6450 lt_globsym_save_LIBS=$LIBS
6451 lt_globsym_save_CFLAGS=$CFLAGS
6452 LIBS=conftstm.$ac_objext
6453 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6455 (eval $ac_link) 2>&5
6457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6461 LIBS=$lt_globsym_save_LIBS
6462 CFLAGS=$lt_globsym_save_CFLAGS
6464 echo "cannot find nm_test_func in $nlist" >&5
6467 echo "cannot find nm_test_var in $nlist" >&5
6470 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6473 echo "$progname: failed program was:" >&5
6474 cat conftest.$ac_ext >&5
6476 rm -rf conftest* conftst*
6478 # Do not use the global_symbol_pipe unless it works.
6479 if test yes = "$pipe_works"; then
6482 lt_cv_sys_global_symbol_pipe=
6488 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6489 lt_cv_sys_global_symbol_to_cdecl=
6491 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6493 $as_echo "failed" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6496 $as_echo "ok" >&6; }
6499 # Response file support.
6500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6501 nm_file_list_spec='@'
6502 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6503 nm_file_list_spec='@'
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6543 $as_echo_n "checking for sysroot... " >&6; }
6545 # Check whether --with-sysroot was given.
6546 if test "${with_sysroot+set}" = set; then :
6547 withval=$with_sysroot;
6554 case $with_sysroot in #(
6556 if test yes = "$GCC"; then
6557 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6561 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6567 $as_echo "$with_sysroot" >&6; }
6568 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6573 $as_echo "${lt_sysroot:-no}" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6580 $as_echo_n "checking for a working dd... " >&6; }
6581 if ${ac_cv_path_lt_DD+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 printf 0123456789abcdef0123456789abcdef >conftest.i
6585 cat conftest.i conftest.i >conftest2.i
6587 if test -z "$lt_DD"; then
6588 ac_path_lt_DD_found=false
6589 # Loop through the user's path and test for each of PROGNAME-LIST
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_prog in dd; do
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6598 as_fn_executable_p "$ac_path_lt_DD" || continue
6599 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6600 cmp -s conftest.i conftest.out \
6601 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6603 $ac_path_lt_DD_found && break 3
6608 if test -z "$ac_cv_path_lt_DD"; then
6612 ac_cv_path_lt_DD=$lt_DD
6615 rm -f conftest.i conftest2.i conftest.out
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6618 $as_echo "$ac_cv_path_lt_DD" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6622 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6623 if ${lt_cv_truncate_bin+:} false; then :
6624 $as_echo_n "(cached) " >&6
6626 printf 0123456789abcdef0123456789abcdef >conftest.i
6627 cat conftest.i conftest.i >conftest2.i
6629 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6630 cmp -s conftest.i conftest.out \
6631 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6633 rm -f conftest.i conftest2.i conftest.out
6634 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6637 $as_echo "$lt_cv_truncate_bin" >&6; }
6645 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6648 for cc_temp in $*""; do
6650 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6651 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6656 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6659 # Check whether --enable-libtool-lock was given.
6660 if test "${enable_libtool_lock+set}" = set; then :
6661 enableval=$enable_libtool_lock;
6664 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6666 # Some flags need to be propagated to the compiler or linker for good
6670 # Find out what ABI is being produced by ac_compile, and set mode
6671 # options accordingly.
6672 echo 'int i;' > conftest.$ac_ext
6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674 (eval $ac_compile) 2>&5
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }; then
6678 case `/usr/bin/file conftest.$ac_objext` in
6690 # Find out what ABI is being produced by ac_compile, and set linker
6691 # options accordingly.
6692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6694 (eval $ac_compile) 2>&5
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }; then
6698 if test yes = "$lt_cv_prog_gnu_ld"; then
6699 case `/usr/bin/file conftest.$ac_objext` in
6701 LD="${LD-ld} -melf32bsmip"
6704 LD="${LD-ld} -melf32bmipn32"
6707 LD="${LD-ld} -melf64bmip"
6711 case `/usr/bin/file conftest.$ac_objext` in
6728 # Find out what ABI is being produced by ac_compile, and set linker
6729 # options accordingly.
6730 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6732 (eval $ac_compile) 2>&5
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.$ac_objext` in
6745 case `/usr/bin/file conftest.$ac_objext` in
6747 emul="${emul}btsmip"
6750 emul="${emul}ltsmip"
6753 case `/usr/bin/file conftest.$ac_objext` in
6758 LD="${LD-ld} -m $emul"
6763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6765 # Find out what ABI is being produced by ac_compile, and set linker
6766 # options accordingly. Note that the listed cases only cover the
6767 # situations where additional linker options are needed (such as when
6768 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6769 # vice versa); the common cases where no linker options are needed do
6770 # not appear in the list.
6771 echo 'int i;' > conftest.$ac_ext
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 case `/usr/bin/file conftest.o` in
6780 x86_64-*kfreebsd*-gnu)
6781 LD="${LD-ld} -m elf_i386_fbsd"
6784 case `/usr/bin/file conftest.o` in
6786 LD="${LD-ld} -m elf32_x86_64"
6789 LD="${LD-ld} -m elf_i386"
6793 powerpc64le-*linux*)
6794 LD="${LD-ld} -m elf32lppclinux"
6797 LD="${LD-ld} -m elf32ppclinux"
6800 LD="${LD-ld} -m elf_s390"
6803 LD="${LD-ld} -m elf32_sparc"
6809 x86_64-*kfreebsd*-gnu)
6810 LD="${LD-ld} -m elf_x86_64_fbsd"
6813 LD="${LD-ld} -m elf_x86_64"
6816 LD="${LD-ld} -m elf64lppc"
6819 LD="${LD-ld} -m elf64ppc"
6821 s390*-*linux*|s390*-*tpf*)
6822 LD="${LD-ld} -m elf64_s390"
6825 LD="${LD-ld} -m elf64_sparc"
6835 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6837 CFLAGS="$CFLAGS -belf"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6839 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6840 if ${lt_cv_cc_needs_belf+:} false; then :
6841 $as_echo_n "(cached) " >&6
6844 ac_cpp='$CPP $CPPFLAGS'
6845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6860 if ac_fn_c_try_link "$LINENO"; then :
6861 lt_cv_cc_needs_belf=yes
6863 lt_cv_cc_needs_belf=no
6865 rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6868 ac_cpp='$CPP $CPPFLAGS'
6869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6875 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6876 if test yes != "$lt_cv_cc_needs_belf"; then
6877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6882 # Find out what ABI is being produced by ac_compile, and set linker
6883 # options accordingly.
6884 echo 'int i;' > conftest.$ac_ext
6885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6886 (eval $ac_compile) 2>&5
6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6889 test $ac_status = 0; }; then
6890 case `/usr/bin/file conftest.o` in
6892 case $lt_cv_prog_gnu_ld in
6895 i?86-*-solaris*|x86_64-*-solaris*)
6896 LD="${LD-ld} -m elf_x86_64"
6899 LD="${LD-ld} -m elf64_sparc"
6902 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6903 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6908 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6920 need_locks=$enable_libtool_lock
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}mt; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$MANIFEST_TOOL"; then
6931 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6951 if test -n "$MANIFEST_TOOL"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6953 $as_echo "$MANIFEST_TOOL" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6961 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6962 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6963 # Extract the first word of "mt", so it can be a program name with args.
6964 set dummy mt; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6968 $as_echo_n "(cached) " >&6
6970 if test -n "$ac_ct_MANIFEST_TOOL"; then
6971 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6991 if test -n "$ac_ct_MANIFEST_TOOL"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6993 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6999 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7002 case $cross_compiling:$ac_tool_warned in
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7008 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7011 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7014 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7016 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7017 if ${lt_cv_path_mainfest_tool+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 lt_cv_path_mainfest_tool=no
7021 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7022 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7023 cat conftest.err >&5
7024 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7025 lt_cv_path_mainfest_tool=yes
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7030 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7031 if test yes != "$lt_cv_path_mainfest_tool"; then
7041 rhapsody* | darwin*)
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$DSYMUTIL"; then
7051 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7071 if test -n "$DSYMUTIL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7073 $as_echo "$DSYMUTIL" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7081 if test -z "$ac_cv_prog_DSYMUTIL"; then
7082 ac_ct_DSYMUTIL=$DSYMUTIL
7083 # Extract the first word of "dsymutil", so it can be a program name with args.
7084 set dummy dsymutil; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7111 if test -n "$ac_ct_DSYMUTIL"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7113 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7119 if test "x$ac_ct_DSYMUTIL" = x; then
7122 case $cross_compiling:$ac_tool_warned in
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7128 DSYMUTIL=$ac_ct_DSYMUTIL
7131 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_NMEDIT+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$NMEDIT"; then
7143 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 NMEDIT=$ac_cv_prog_NMEDIT
7163 if test -n "$NMEDIT"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7165 $as_echo "$NMEDIT" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7173 if test -z "$ac_cv_prog_NMEDIT"; then
7174 ac_ct_NMEDIT=$NMEDIT
7175 # Extract the first word of "nmedit", so it can be a program name with args.
7176 set dummy nmedit; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$ac_ct_NMEDIT"; then
7183 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7203 if test -n "$ac_ct_NMEDIT"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7205 $as_echo "$ac_ct_NMEDIT" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7211 if test "x$ac_ct_NMEDIT" = x; then
7214 case $cross_compiling:$ac_tool_warned in
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7220 NMEDIT=$ac_ct_NMEDIT
7223 NMEDIT="$ac_cv_prog_NMEDIT"
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_LIPO+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$LIPO"; then
7235 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 LIPO=$ac_cv_prog_LIPO
7255 if test -n "$LIPO"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7257 $as_echo "$LIPO" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7265 if test -z "$ac_cv_prog_LIPO"; then
7267 # Extract the first word of "lipo", so it can be a program name with args.
7268 set dummy lipo; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$ac_ct_LIPO"; then
7275 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284 ac_cv_prog_ac_ct_LIPO="lipo"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7295 if test -n "$ac_ct_LIPO"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7297 $as_echo "$ac_ct_LIPO" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7303 if test "x$ac_ct_LIPO" = x; then
7306 case $cross_compiling:$ac_tool_warned in
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7315 LIPO="$ac_cv_prog_LIPO"
7318 if test -n "$ac_tool_prefix"; then
7319 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7320 set dummy ${ac_tool_prefix}otool; ac_word=$2
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7322 $as_echo_n "checking for $ac_word... " >&6; }
7323 if ${ac_cv_prog_OTOOL+:} false; then :
7324 $as_echo_n "(cached) " >&6
7326 if test -n "$OTOOL"; then
7327 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7336 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 OTOOL=$ac_cv_prog_OTOOL
7347 if test -n "$OTOOL"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7349 $as_echo "$OTOOL" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 if test -z "$ac_cv_prog_OTOOL"; then
7359 # Extract the first word of "otool", so it can be a program name with args.
7360 set dummy otool; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7364 $as_echo_n "(cached) " >&6
7366 if test -n "$ac_ct_OTOOL"; then
7367 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_ac_ct_OTOOL="otool"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7387 if test -n "$ac_ct_OTOOL"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7389 $as_echo "$ac_ct_OTOOL" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7395 if test "x$ac_ct_OTOOL" = x; then
7398 case $cross_compiling:$ac_tool_warned in
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7402 ac_tool_warned=yes ;;
7407 OTOOL="$ac_cv_prog_OTOOL"
7410 if test -n "$ac_tool_prefix"; then
7411 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7412 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_OTOOL64+:} false; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$OTOOL64"; then
7419 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 OTOOL64=$ac_cv_prog_OTOOL64
7439 if test -n "$OTOOL64"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7441 $as_echo "$OTOOL64" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7449 if test -z "$ac_cv_prog_OTOOL64"; then
7450 ac_ct_OTOOL64=$OTOOL64
7451 # Extract the first word of "otool64", so it can be a program name with args.
7452 set dummy otool64; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$ac_ct_OTOOL64"; then
7459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir=.
7466 for ac_exec_ext in '' $ac_executable_extensions; do
7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_ac_ct_OTOOL64="otool64"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7479 if test -n "$ac_ct_OTOOL64"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7481 $as_echo "$ac_ct_OTOOL64" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7487 if test "x$ac_ct_OTOOL64" = x; then
7490 case $cross_compiling:$ac_tool_warned in
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494 ac_tool_warned=yes ;;
7496 OTOOL64=$ac_ct_OTOOL64
7499 OTOOL64="$ac_cv_prog_OTOOL64"
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7529 $as_echo_n "checking for -single_module linker flag... " >&6; }
7530 if ${lt_cv_apple_cc_single_mod+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 lt_cv_apple_cc_single_mod=no
7534 if test -z "$LT_MULTI_MODULE"; then
7535 # By default we will add the -single_module flag. You can override
7536 # by either setting the environment variable LT_MULTI_MODULE
7537 # non-empty at configure time, or by adding -multi_module to the
7539 rm -rf libconftest.dylib*
7540 echo "int foo(void){return 1;}" > conftest.c
7541 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7542 -dynamiclib -Wl,-single_module conftest.c" >&5
7543 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7544 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7546 # If there is a non-empty error log, and "single_module"
7547 # appears in it, assume the flag caused a linker warning
7548 if test -s conftest.err && $GREP single_module conftest.err; then
7549 cat conftest.err >&5
7550 # Otherwise, if the output was created with a 0 exit code from
7551 # the compiler, it worked.
7552 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7553 lt_cv_apple_cc_single_mod=yes
7555 cat conftest.err >&5
7557 rm -rf libconftest.dylib*
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7565 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7566 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7567 $as_echo_n "(cached) " >&6
7569 lt_cv_ld_exported_symbols_list=no
7570 save_LDFLAGS=$LDFLAGS
7571 echo "_main" > conftest.sym
7572 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7584 if ac_fn_c_try_link "$LINENO"; then :
7585 lt_cv_ld_exported_symbols_list=yes
7587 lt_cv_ld_exported_symbols_list=no
7589 rm -f core conftest.err conftest.$ac_objext \
7590 conftest$ac_exeext conftest.$ac_ext
7591 LDFLAGS=$save_LDFLAGS
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7595 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7598 $as_echo_n "checking for -force_load linker flag... " >&6; }
7599 if ${lt_cv_ld_force_load+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 lt_cv_ld_force_load=no
7603 cat > conftest.c << _LT_EOF
7604 int forced_loaded() { return 2;}
7606 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7607 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7608 echo "$AR cru libconftest.a conftest.o" >&5
7609 $AR cru libconftest.a conftest.o 2>&5
7610 echo "$RANLIB libconftest.a" >&5
7611 $RANLIB libconftest.a 2>&5
7612 cat > conftest.c << _LT_EOF
7613 int main() { return 0;}
7615 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7616 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7618 if test -s conftest.err && $GREP force_load conftest.err; then
7619 cat conftest.err >&5
7620 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7621 lt_cv_ld_force_load=yes
7623 cat conftest.err >&5
7625 rm -f conftest.err libconftest.a conftest conftest.c
7626 rm -rf conftest.dSYM
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7630 $as_echo "$lt_cv_ld_force_load" >&6; }
7632 rhapsody* | darwin1.[012])
7633 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7635 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7636 darwin*) # darwin 5.x on
7637 # if running on 10.5 or later, the deployment target defaults
7638 # to the OS version, if on x86, and 10.4, the deployment
7639 # target defaults to 10.4. Don't you love it?
7640 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7641 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7642 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7644 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7646 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7650 if test yes = "$lt_cv_apple_cc_single_mod"; then
7651 _lt_dar_single_mod='$single_module'
7653 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7654 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7656 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7658 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7659 _lt_dsymutil='~$DSYMUTIL $lib || :'
7666 # func_munge_path_list VARIABLE PATH
7667 # -----------------------------------
7668 # VARIABLE is name of variable containing _space_ separated list of
7669 # directories to be munged by the contents of PATH, which is string
7672 # string "DIR[ DIR]" will be prepended to VARIABLE
7674 # string "DIR[ DIR]" will be appended to VARIABLE
7675 # "DIRP[:DIRP]::[DIRA:]DIRA"
7676 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7677 # "DIRA[ DIRA]" will be appended to VARIABLE
7679 # VARIABLE will be replaced by "DIR[ DIR]"
7680 func_munge_path_list ()
7686 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7689 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7692 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7693 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7696 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7702 ac_cpp='$CPP $CPPFLAGS'
7703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7707 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7708 # On Suns, sometimes $CPP names a directory.
7709 if test -n "$CPP" && test -d "$CPP"; then
7712 if test -z "$CPP"; then
7713 if ${ac_cv_prog_CPP+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 # Double quotes because CPP needs to be expanded
7717 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7720 for ac_c_preproc_warn_flag in '' yes
7722 # Use a header file that comes with gcc, so configuring glibc
7723 # with a fresh cross-compiler works.
7724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7725 # <limits.h> exists even on freestanding compilers.
7726 # On the NeXT, cc -E runs the code through the compiler's parser,
7727 # not just through cpp. "Syntax error" is here to catch this case.
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7731 # include <limits.h>
7733 # include <assert.h>
7737 if ac_fn_c_try_cpp "$LINENO"; then :
7740 # Broken: fails on valid input.
7743 rm -f conftest.err conftest.i conftest.$ac_ext
7745 # OK, works on sane cases. Now check whether nonexistent headers
7746 # can be detected and how.
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 #include <ac_nonexistent.h>
7751 if ac_fn_c_try_cpp "$LINENO"; then :
7752 # Broken: success on invalid input.
7755 # Passes both tests.
7759 rm -f conftest.err conftest.i conftest.$ac_ext
7762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7763 rm -f conftest.i conftest.err conftest.$ac_ext
7764 if $ac_preproc_ok; then :
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7777 $as_echo "$CPP" >&6; }
7779 for ac_c_preproc_warn_flag in '' yes
7781 # Use a header file that comes with gcc, so configuring glibc
7782 # with a fresh cross-compiler works.
7783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 # <limits.h> exists even on freestanding compilers.
7785 # On the NeXT, cc -E runs the code through the compiler's parser,
7786 # not just through cpp. "Syntax error" is here to catch this case.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7790 # include <limits.h>
7792 # include <assert.h>
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7799 # Broken: fails on valid input.
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7804 # OK, works on sane cases. Now check whether nonexistent headers
7805 # can be detected and how.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811 # Broken: success on invalid input.
7814 # Passes both tests.
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7828 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7829 See \`config.log' for more details" "$LINENO" 5; }
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7840 $as_echo_n "checking for ANSI C header files... " >&6; }
7841 if ${ac_cv_header_stdc+:} false; then :
7842 $as_echo_n "(cached) " >&6
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_cv_header_stdc=yes
7862 ac_cv_header_stdc=no
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 if test $ac_cv_header_stdc = yes; then
7867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869 /* end confdefs.h. */
7873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7874 $EGREP "memchr" >/dev/null 2>&1; then :
7877 ac_cv_header_stdc=no
7883 if test $ac_cv_header_stdc = yes; then
7884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "free" >/dev/null 2>&1; then :
7894 ac_cv_header_stdc=no
7900 if test $ac_cv_header_stdc = yes; then
7901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7902 if test "$cross_compiling" = yes; then :
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7909 #if ((' ' & 0x0FF) == 0x020)
7910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7913 # define ISLOWER(c) \
7914 (('a' <= (c) && (c) <= 'i') \
7915 || ('j' <= (c) && (c) <= 'r') \
7916 || ('s' <= (c) && (c) <= 'z'))
7917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7925 for (i = 0; i < 256; i++)
7926 if (XOR (islower (i), ISLOWER (i))
7927 || toupper (i) != TOUPPER (i))
7932 if ac_fn_c_try_run "$LINENO"; then :
7935 ac_cv_header_stdc=no
7937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7938 conftest.$ac_objext conftest.beam conftest.$ac_ext
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7944 $as_echo "$ac_cv_header_stdc" >&6; }
7945 if test $ac_cv_header_stdc = yes; then
7947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7953 inttypes.h stdint.h unistd.h
7955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7959 cat >>confdefs.h <<_ACEOF
7960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968 for ac_header in dlfcn.h
7970 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7972 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7973 cat >>confdefs.h <<_ACEOF
7974 #define HAVE_DLFCN_H 1
7995 # Check whether --enable-shared was given.
7996 if test "${enable_shared+set}" = set; then :
7997 enableval=$enable_shared; p=${PACKAGE-default}
7999 yes) enable_shared=yes ;;
8000 no) enable_shared=no ;;
8003 # Look at the argument we got. We use all the common list separators.
8004 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8005 for pkg in $enableval; do
8007 if test "X$pkg" = "X$p"; then
8026 # Check whether --enable-static was given.
8027 if test "${enable_static+set}" = set; then :
8028 enableval=$enable_static; p=${PACKAGE-default}
8030 yes) enable_static=yes ;;
8031 no) enable_static=no ;;
8034 # Look at the argument we got. We use all the common list separators.
8035 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8036 for pkg in $enableval; do
8038 if test "X$pkg" = "X$p"; then
8058 # Check whether --with-pic was given.
8059 if test "${with_pic+set}" = set; then :
8060 withval=$with_pic; lt_p=${PACKAGE-default}
8062 yes|no) pic_mode=$withval ;;
8065 # Look at the argument we got. We use all the common list separators.
8066 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8067 for lt_pkg in $withval; do
8069 if test "X$lt_pkg" = "X$lt_p"; then
8087 # Check whether --enable-fast-install was given.
8088 if test "${enable_fast_install+set}" = set; then :
8089 enableval=$enable_fast_install; p=${PACKAGE-default}
8091 yes) enable_fast_install=yes ;;
8092 no) enable_fast_install=no ;;
8094 enable_fast_install=no
8095 # Look at the argument we got. We use all the common list separators.
8096 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8097 for pkg in $enableval; do
8099 if test "X$pkg" = "X$p"; then
8100 enable_fast_install=yes
8107 enable_fast_install=yes
8117 shared_archive_member_spec=
8118 case $host,$enable_shared in
8119 power*-*-aix[5-9]*,yes)
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8121 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8123 # Check whether --with-aix-soname was given.
8124 if test "${with_aix_soname+set}" = set; then :
8125 withval=$with_aix_soname; case $withval in
8129 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8132 lt_cv_with_aix_soname=$with_aix_soname
8134 if ${lt_cv_with_aix_soname+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 lt_cv_with_aix_soname=aix
8140 with_aix_soname=$lt_cv_with_aix_soname
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8144 $as_echo "$with_aix_soname" >&6; }
8145 if test aix != "$with_aix_soname"; then
8146 # For the AIX way of multilib, we name the shared archive member
8147 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8148 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8149 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8150 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8151 if test 64 = "${OBJECT_MODE-32}"; then
8152 shared_archive_member_spec=shr_64
8154 shared_archive_member_spec=shr
8172 # This can be used to rebuild libtool when needed
8173 LIBTOOL_DEPS=$ltmain
8175 # Always use our own libtool.
8176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8207 test -z "$LN_S" && LN_S="ln -s"
8222 if test -n "${ZSH_VERSION+set}"; then
8223 setopt NO_GLOB_SUBST
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8227 $as_echo_n "checking for objdir... " >&6; }
8228 if ${lt_cv_objdir+:} false; then :
8229 $as_echo_n "(cached) " >&6
8231 rm -f .libs 2>/dev/null
8232 mkdir .libs 2>/dev/null
8233 if test -d .libs; then
8236 # MS-DOS does not allow filenames that begin with a dot.
8239 rmdir .libs 2>/dev/null
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8242 $as_echo "$lt_cv_objdir" >&6; }
8243 objdir=$lt_cv_objdir
8249 cat >>confdefs.h <<_ACEOF
8250 #define LT_OBJDIR "$lt_cv_objdir/"
8258 # AIX sometimes has problems with the GCC collect2 program. For some
8259 # reason, if we set the COLLECT_NAMES environment variable, the problems
8260 # vanish in a puff of smoke.
8261 if test set != "${COLLECT_NAMES+set}"; then
8263 export COLLECT_NAMES
8270 can_build_shared=yes
8272 # All known linkers require a '.a' archive for static linking (except MSVC,
8273 # which needs '.lib').
8276 with_gnu_ld=$lt_cv_prog_gnu_ld
8281 # Set sane defaults for various variables
8282 test -z "$CC" && CC=cc
8283 test -z "$LTCC" && LTCC=$CC
8284 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8285 test -z "$LD" && LD=ld
8286 test -z "$ac_objext" && ac_objext=o
8288 func_cc_basename $compiler
8289 cc_basename=$func_cc_basename_result
8292 # Only perform the check for file, if the check method requires it
8293 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8294 case $deplibs_check_method in
8296 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8298 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8299 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8300 $as_echo_n "(cached) " >&6
8304 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8307 lt_save_MAGIC_CMD=$MAGIC_CMD
8308 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8309 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8310 for ac_dir in $ac_dummy; do
8312 test -z "$ac_dir" && ac_dir=.
8313 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8314 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8315 if test -n "$file_magic_test_file"; then
8316 case $deplibs_check_method in
8318 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8319 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8320 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8321 $EGREP "$file_magic_regex" > /dev/null; then
8326 *** Warning: the command libtool uses to detect shared libraries,
8327 *** $file_magic_cmd, produces output that libtool cannot recognize.
8328 *** The result is that libtool may fail to recognize shared libraries
8329 *** as such. This will affect the creation of libtool libraries that
8330 *** depend on shared libraries, but programs linked with such libtool
8331 *** libraries will work regardless of this problem. Nevertheless, you
8332 *** may want to report the problem to your system manager and/or to
8333 *** bug-libtool@gnu.org
8343 MAGIC_CMD=$lt_save_MAGIC_CMD
8348 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8349 if test -n "$MAGIC_CMD"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8351 $as_echo "$MAGIC_CMD" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8361 if test -z "$lt_cv_path_MAGIC_CMD"; then
8362 if test -n "$ac_tool_prefix"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8364 $as_echo_n "checking for file... " >&6; }
8365 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8366 $as_echo_n "(cached) " >&6
8370 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8373 lt_save_MAGIC_CMD=$MAGIC_CMD
8374 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8375 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8376 for ac_dir in $ac_dummy; do
8378 test -z "$ac_dir" && ac_dir=.
8379 if test -f "$ac_dir/file"; then
8380 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8381 if test -n "$file_magic_test_file"; then
8382 case $deplibs_check_method in
8384 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8385 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8386 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8387 $EGREP "$file_magic_regex" > /dev/null; then
8392 *** Warning: the command libtool uses to detect shared libraries,
8393 *** $file_magic_cmd, produces output that libtool cannot recognize.
8394 *** The result is that libtool may fail to recognize shared libraries
8395 *** as such. This will affect the creation of libtool libraries that
8396 *** depend on shared libraries, but programs linked with such libtool
8397 *** libraries will work regardless of this problem. Nevertheless, you
8398 *** may want to report the problem to your system manager and/or to
8399 *** bug-libtool@gnu.org
8409 MAGIC_CMD=$lt_save_MAGIC_CMD
8414 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8415 if test -n "$MAGIC_CMD"; then
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8417 $as_echo "$MAGIC_CMD" >&6; }
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8433 # Use C for the default configuration in the libtool script
8437 ac_cpp='$CPP $CPPFLAGS'
8438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8443 # Source file extension for C test sources.
8446 # Object file extension for compiled C test sources.
8450 # Code to be used in simple compile tests
8451 lt_simple_compile_test_code="int some_variable = 0;"
8453 # Code to be used in simple link tests
8454 lt_simple_link_test_code='int main(){return(0);}'
8462 # If no C compiler was specified, use CC.
8465 # If no C compiler flags were specified, use CFLAGS.
8466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8468 # Allow CC to be a program name with arguments.
8471 # Save the default compiler, since it gets overwritten when the other
8472 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8473 compiler_DEFAULT=$CC
8475 # save warnings/boilerplate of simple test code
8476 ac_outfile=conftest.$ac_objext
8477 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8478 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8479 _lt_compiler_boilerplate=`cat conftest.err`
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8484 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8485 _lt_linker_boilerplate=`cat conftest.err`
8490 ## There is no encapsulation within the following macros, do not change
8491 ## the running order or otherwise move them around unless you know exactly
8492 ## what you are doing...
8493 if test -n "$compiler"; then
8495 lt_prog_compiler_no_builtin_flag=
8497 if test yes = "$GCC"; then
8498 case $cc_basename in
8500 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8502 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8506 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8507 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8508 $as_echo_n "(cached) " >&6
8510 lt_cv_prog_compiler_rtti_exceptions=no
8511 ac_outfile=conftest.$ac_objext
8512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8513 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8514 # Insert the option either (1) after the last *FLAGS variable, or
8515 # (2) before a word containing "conftest.", or (3) at the end.
8516 # Note that $ac_compile itself does not contain backslashes and begins
8517 # with a dollar sign (not a hyphen), so the echo should work correctly.
8518 # The option is referenced via a variable to avoid confusing sed.
8519 lt_compile=`echo "$ac_compile" | $SED \
8520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522 -e 's:$: $lt_compiler_flag:'`
8523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8524 (eval "$lt_compile" 2>conftest.err)
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 if (exit $ac_status) && test -s "$ac_outfile"; then
8529 # The compiler can only warn and ignore the option if not recognized
8530 # So say no if there are warnings other than the usual output.
8531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8534 lt_cv_prog_compiler_rtti_exceptions=yes
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8541 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8543 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8544 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8556 lt_prog_compiler_wl=
8557 lt_prog_compiler_pic=
8558 lt_prog_compiler_static=
8561 if test yes = "$GCC"; then
8562 lt_prog_compiler_wl='-Wl,'
8563 lt_prog_compiler_static='-static'
8567 # All AIX code is PIC.
8568 if test ia64 = "$host_cpu"; then
8569 # AIX 5 now supports IA64 processor
8570 lt_prog_compiler_static='-Bstatic'
8572 lt_prog_compiler_pic='-fPIC'
8578 # see comment about AmigaOS4 .so support
8579 lt_prog_compiler_pic='-fPIC'
8582 # FIXME: we need at least 68020 code to build shared libraries, but
8583 # adding the '-m68020' flag to GCC prevents building anything better,
8585 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8590 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8591 # PIC is the default for these OSes.
8594 mingw* | cygwin* | pw32* | os2* | cegcc*)
8595 # This hack is so that the source file can tell whether it is being
8596 # built for inclusion in a dll (and should export symbols for example).
8597 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8598 # (--disable-auto-import) libraries
8599 lt_prog_compiler_pic='-DDLL_EXPORT'
8602 lt_prog_compiler_static='$wl-static'
8607 darwin* | rhapsody*)
8608 # PIC is the default on this platform
8609 # Common symbols not allowed in MH_DYLIB files
8610 lt_prog_compiler_pic='-fno-common'
8614 # PIC is the default for Haiku.
8615 # The "-static" flag exists, but is broken.
8616 lt_prog_compiler_static=
8620 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8621 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8622 # sets the default TLS model and affects inlining.
8628 lt_prog_compiler_pic='-fPIC'
8634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8635 # Instead, we relocate shared libraries at runtime.
8639 # Just because we use GCC doesn't mean we suddenly get shared libraries
8640 # on systems that don't support them.
8641 lt_prog_compiler_can_build_shared=no
8646 # QNX uses GNU C++, but need to define -shared option too, otherwise
8648 lt_prog_compiler_pic='-fPIC -shared'
8652 if test -d /usr/nec; then
8653 lt_prog_compiler_pic=-Kconform_pic
8658 lt_prog_compiler_pic='-fPIC'
8662 case $cc_basename in
8663 nvcc*) # Cuda Compiler Driver 2.2
8664 lt_prog_compiler_wl='-Xlinker '
8665 if test -n "$lt_prog_compiler_pic"; then
8666 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8671 # PORTME Check for flag to pass linker flags through the system compiler.
8674 lt_prog_compiler_wl='-Wl,'
8675 if test ia64 = "$host_cpu"; then
8676 # AIX 5 now supports IA64 processor
8677 lt_prog_compiler_static='-Bstatic'
8679 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8683 darwin* | rhapsody*)
8684 # PIC is the default on this platform
8685 # Common symbols not allowed in MH_DYLIB files
8686 lt_prog_compiler_pic='-fno-common'
8687 case $cc_basename in
8689 # NAG Fortran compiler
8690 lt_prog_compiler_wl='-Wl,-Wl,,'
8691 lt_prog_compiler_pic='-PIC'
8692 lt_prog_compiler_static='-Bstatic'
8697 mingw* | cygwin* | pw32* | os2* | cegcc*)
8698 # This hack is so that the source file can tell whether it is being
8699 # built for inclusion in a dll (and should export symbols for example).
8700 lt_prog_compiler_pic='-DDLL_EXPORT'
8703 lt_prog_compiler_static='$wl-static'
8708 hpux9* | hpux10* | hpux11*)
8709 lt_prog_compiler_wl='-Wl,'
8710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8717 lt_prog_compiler_pic='+Z'
8720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8721 lt_prog_compiler_static='$wl-a ${wl}archive'
8724 irix5* | irix6* | nonstopux*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC (with -KPIC) is the default.
8727 lt_prog_compiler_static='-non_shared'
8730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8731 case $cc_basename in
8732 # old Intel for x86_64, which still supported -KPIC.
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-static'
8738 # icc used to be incompatible with GCC.
8739 # ICC 10 doesn't accept -KPIC any more.
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='-fPIC'
8743 lt_prog_compiler_static='-static'
8745 # Lahey Fortran 8.1.
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='--shared'
8749 lt_prog_compiler_static='--static'
8752 # NAG Fortran compiler
8753 lt_prog_compiler_wl='-Wl,-Wl,,'
8754 lt_prog_compiler_pic='-PIC'
8755 lt_prog_compiler_static='-Bstatic'
8758 # Fabrice Bellard et al's Tiny C Compiler
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='-fPIC'
8761 lt_prog_compiler_static='-static'
8763 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group compilers (*not* the Pentium gcc compiler,
8765 # which looks to be a dead project)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fpic'
8768 lt_prog_compiler_static='-Bstatic'
8771 lt_prog_compiler_wl='-Wl,'
8772 # All Alpha code is PIC.
8773 lt_prog_compiler_static='-non_shared'
8775 xl* | bgxl* | bgf* | mpixl*)
8776 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-qpic'
8779 lt_prog_compiler_static='-qstaticlink'
8782 case `$CC -V 2>&1 | sed 5q` in
8783 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 lt_prog_compiler_wl=''
8789 *Sun\ F* | *Sun*Fortran*)
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl='-Qoption ld '
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl='-Wl,'
8800 *Intel*\ [CF]*Compiler*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-fPIC'
8803 lt_prog_compiler_static='-static'
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-fpic'
8808 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8821 # QNX uses GNU C++, but need to define -shared option too, otherwise
8823 lt_prog_compiler_pic='-fPIC -shared'
8826 osf3* | osf4* | osf5*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # All OSF/1 code is PIC.
8829 lt_prog_compiler_static='-non_shared'
8833 lt_prog_compiler_static='-non_shared'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 case $cc_basename in
8840 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8841 lt_prog_compiler_wl='-Qoption ld ';;
8843 lt_prog_compiler_wl='-Wl,';;
8848 lt_prog_compiler_wl='-Qoption ld '
8849 lt_prog_compiler_pic='-PIC'
8850 lt_prog_compiler_static='-Bstatic'
8853 sysv4 | sysv4.2uw2* | sysv4.3*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8860 if test -d /usr/nec; then
8861 lt_prog_compiler_pic='-Kconform_pic'
8862 lt_prog_compiler_static='-Bstatic'
8866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_can_build_shared=no
8878 lt_prog_compiler_pic='-pic'
8879 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_can_build_shared=no
8889 # For platforms that do not support PIC, -DPIC is meaningless:
8891 lt_prog_compiler_pic=
8894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8900 if ${lt_cv_prog_compiler_pic+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8906 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8910 # Check to make sure the PIC flag actually works.
8912 if test -n "$lt_prog_compiler_pic"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8916 $as_echo_n "(cached) " >&6
8918 lt_cv_prog_compiler_pic_works=no
8919 ac_outfile=conftest.$ac_objext
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 # The option is referenced via a variable to avoid confusing sed.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>conftest.err)
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s "$ac_outfile"; then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings other than the usual output.
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_pic_works=yes
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8951 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8952 case $lt_prog_compiler_pic in
8954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8957 lt_prog_compiler_pic=
8958 lt_prog_compiler_can_build_shared=no
8974 # Check to make sure the static flag actually works.
8976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8979 if ${lt_cv_prog_compiler_static_works+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 lt_cv_prog_compiler_static_works=no
8983 save_LDFLAGS=$LDFLAGS
8984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8987 # The linker can only warn and ignore the option if not recognized
8988 # So say no if there are warnings
8989 if test -s conftest.err; then
8990 # Append any errors to the config.log.
8991 cat conftest.err 1>&5
8992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8994 if diff conftest.exp conftest.er2 >/dev/null; then
8995 lt_cv_prog_compiler_static_works=yes
8998 lt_cv_prog_compiler_static_works=yes
9002 LDFLAGS=$save_LDFLAGS
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9008 if test yes = "$lt_cv_prog_compiler_static_works"; then
9011 lt_prog_compiler_static=
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if ${lt_cv_prog_compiler_c_o+:} false; then :
9023 $as_echo_n "(cached) " >&6
9025 lt_cv_prog_compiler_c_o=no
9026 $RM -r conftest 2>/dev/null
9030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032 lt_compiler_flag="-o out/conftest2.$ac_objext"
9033 # Insert the option either (1) after the last *FLAGS variable, or
9034 # (2) before a word containing "conftest.", or (3) at the end.
9035 # Note that $ac_compile itself does not contain backslashes and begins
9036 # with a dollar sign (not a hyphen), so the echo should work correctly.
9037 lt_compile=`echo "$ac_compile" | $SED \
9038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040 -e 's:$: $lt_compiler_flag:'`
9041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9042 (eval "$lt_compile" 2>out/conftest.err)
9044 cat out/conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9048 # The compiler can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053 lt_cv_prog_compiler_c_o=yes
9058 # SGI C++ compiler will create directory out/ii_files/ for
9059 # template instantiation
9060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061 $RM out/* && rmdir out
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9077 if ${lt_cv_prog_compiler_c_o+:} false; then :
9078 $as_echo_n "(cached) " >&6
9080 lt_cv_prog_compiler_c_o=no
9081 $RM -r conftest 2>/dev/null
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087 lt_compiler_flag="-o out/conftest2.$ac_objext"
9088 # Insert the option either (1) after the last *FLAGS variable, or
9089 # (2) before a word containing "conftest.", or (3) at the end.
9090 # Note that $ac_compile itself does not contain backslashes and begins
9091 # with a dollar sign (not a hyphen), so the echo should work correctly.
9092 lt_compile=`echo "$ac_compile" | $SED \
9093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095 -e 's:$: $lt_compiler_flag:'`
9096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9097 (eval "$lt_compile" 2>out/conftest.err)
9099 cat out/conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9103 # The compiler can only warn and ignore the option if not recognized
9104 # So say no if there are warnings
9105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_c_o=yes
9113 # SGI C++ compiler will create directory out/ii_files/ for
9114 # template instantiation
9115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9116 $RM out/* && rmdir out
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128 hard_links=nottested
9129 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9130 # do not overwrite the value of need_locks provided by the user
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9132 $as_echo_n "checking if we can lock with hard links... " >&6; }
9135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9137 ln conftest.a conftest.b 2>&5 || hard_links=no
9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9140 $as_echo "$hard_links" >&6; }
9141 if test no = "$hard_links"; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9143 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9159 allow_undefined_flag=
9160 always_export_symbols=no
9162 archive_expsym_cmds=
9163 compiler_needs_object=no
9164 enable_shared_with_static_runtimes=no
9165 export_dynamic_flag_spec=
9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9167 hardcode_automatic=no
9169 hardcode_direct_absolute=no
9170 hardcode_libdir_flag_spec=
9171 hardcode_libdir_separator=
9173 hardcode_shlibpath_var=unsupported
9175 link_all_deplibs=unknown
9178 old_archive_from_new_cmds=
9179 old_archive_from_expsyms_cmds=
9180 thread_safe_flag_spec=
9181 whole_archive_flag_spec=
9182 # include_expsyms should be a list of space-separated symbols to be *always*
9183 # included in the symbol list
9185 # exclude_expsyms can be an extended regexp of symbols to exclude
9186 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9187 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9188 # as well as any symbol that contains 'd'.
9189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9191 # platforms (ab)use it in PIC code, but their linkers get confused if
9192 # the symbol is explicitly referenced. Since portable code cannot
9193 # rely on this symbol name, it's probably fine to never include it in
9194 # preloaded symbol tables.
9195 # Exclude shared library initialization/finalization symbols.
9196 extract_expsyms_cmds=
9199 cygwin* | mingw* | pw32* | cegcc*)
9200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9201 # When not using gcc, we currently assume that we are using
9202 # Microsoft Visual C++.
9203 if test yes != "$GCC"; then
9208 # we just hope/assume this is gcc and not c89 (= MSVC++)
9214 linux* | k*bsd*-gnu | gnu*)
9221 # On some targets, GNU ld is compatible enough with the native linker
9222 # that we're better off using the native interface for both.
9223 lt_use_gnu_ld_interface=no
9224 if test yes = "$with_gnu_ld"; then
9227 # The AIX port of GNU ld has always aspired to compatibility
9228 # with the native linker. However, as the warning in the GNU ld
9229 # block says, versions before 2.19.5* couldn't really create working
9230 # shared libraries, regardless of the interface used.
9231 case `$LD -v 2>&1` in
9232 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9233 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9234 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9236 lt_use_gnu_ld_interface=yes
9241 lt_use_gnu_ld_interface=yes
9246 if test yes = "$lt_use_gnu_ld_interface"; then
9247 # If archive_cmds runs LD, not CC, wlarc should be empty
9250 # Set some defaults for GNU ld with shared library support. These
9251 # are reset later if shared libraries are not supported. Putting them
9252 # here allows them to be overridden if necessary.
9253 runpath_var=LD_RUN_PATH
9254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9255 export_dynamic_flag_spec='$wl--export-dynamic'
9256 # ancient GNU ld didn't support --whole-archive et. al.
9257 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9258 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9260 whole_archive_flag_spec=
9262 supports_anon_versioning=no
9263 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9264 *GNU\ gold*) supports_anon_versioning=yes ;;
9265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9268 *\ 2.11.*) ;; # other 2.11 versions
9269 *) supports_anon_versioning=yes ;;
9272 # See if GNU ld supports shared libraries.
9275 # On AIX/PPC, the GNU linker is very broken
9276 if test ia64 != "$host_cpu"; then
9280 *** Warning: the GNU linker, at least up to release 2.19, is reported
9281 *** to be unable to reliably create shared libraries on AIX.
9282 *** Therefore, libtool is disabling shared libraries support. If you
9283 *** really care for shared libraries, you may want to install binutils
9284 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9285 *** You will then need to restart the configuration process.
9294 # see comment about AmigaOS4 .so support
9295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9296 archive_expsym_cmds=''
9299 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)'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_minus_L=yes
9307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 allow_undefined_flag=unsupported
9309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310 # support --undefined. This deserves some investigation. FIXME
9311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319 # as there is no search path for DLLs.
9320 hardcode_libdir_flag_spec='-L$libdir'
9321 export_dynamic_flag_spec='$wl--export-all-symbols'
9322 allow_undefined_flag=unsupported
9323 always_export_symbols=no
9324 enable_shared_with_static_runtimes=yes
9325 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'
9326 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9329 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330 # If the export-symbols file already is a .def file, use it as
9331 # is; otherwise, prepend EXPORTS...
9332 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9333 cp $export_symbols $output_objdir/$soname.def;
9335 echo EXPORTS > $output_objdir/$soname.def;
9336 cat $export_symbols >> $output_objdir/$soname.def;
9338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9346 link_all_deplibs=yes
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 allow_undefined_flag=unsupported
9354 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9355 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9356 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9357 $ECHO EXPORTS >> $output_objdir/$libname.def~
9358 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9359 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9360 emximp -o $lib $output_objdir/$libname.def'
9361 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9362 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9363 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9364 $ECHO EXPORTS >> $output_objdir/$libname.def~
9366 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9367 prefix_cmds="$prefix_cmds -e 1d";
9369 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9370 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9371 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9372 emximp -o $lib $output_objdir/$libname.def'
9373 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9374 enable_shared_with_static_runtimes=yes
9379 hardcode_shlibpath_var=no
9380 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9381 export_dynamic_flag_spec='$wl-E'
9382 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9383 # Instead, shared libraries are loaded at an image base (0x10000000 by
9384 # default) and relocated if they conflict, which is a slow very memory
9385 # consuming and fragmenting process. To avoid this, we pick a random,
9386 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9387 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9389 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'
9392 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9394 if test linux-dietlibc = "$host_os"; then
9395 case $cc_basename in
9396 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9399 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9400 && test no = "$tmp_diet"
9402 tmp_addflag=' $pic_flag'
9403 tmp_sharedflag='-shared'
9404 case $cc_basename,$host_cpu in
9405 pgcc*) # Portland Group C compiler
9406 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'
9407 tmp_addflag=' $pic_flag'
9409 pgf77* | pgf90* | pgf95* | pgfortran*)
9410 # Portland Group f77 and f90 compilers
9411 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'
9412 tmp_addflag=' $pic_flag -Mnomain' ;;
9413 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9414 tmp_addflag=' -i_dynamic' ;;
9415 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9416 tmp_addflag=' -i_dynamic -nofor_main' ;;
9417 ifc* | ifort*) # Intel Fortran compiler
9418 tmp_addflag=' -nofor_main' ;;
9419 lf95*) # Lahey Fortran 8.1
9420 whole_archive_flag_spec=
9421 tmp_sharedflag='--shared' ;;
9422 nagfor*) # NAGFOR 5.3
9423 tmp_sharedflag='-Wl,-shared' ;;
9424 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425 tmp_sharedflag='-qmkshrobj'
9427 nvcc*) # Cuda Compiler Driver 2.2
9428 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'
9429 compiler_needs_object=yes
9432 case `$CC -V 2>&1 | sed 5q` in
9433 *Sun\ C*) # Sun C 5.9
9434 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'
9435 compiler_needs_object=yes
9436 tmp_sharedflag='-G' ;;
9437 *Sun\ F*) # Sun Fortran 8.3
9438 tmp_sharedflag='-G' ;;
9440 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9442 if test yes = "$supports_anon_versioning"; then
9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445 echo "local: *; };" >> $output_objdir/$libname.ver~
9446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9449 case $cc_basename in
9451 export_dynamic_flag_spec='-rdynamic'
9453 xlf* | bgf* | bgxlf* | mpixlf*)
9454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9457 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9458 if test yes = "$supports_anon_versioning"; then
9459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461 echo "local: *; };" >> $output_objdir/$libname.ver~
9462 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9471 netbsd* | netbsdelf*-gnu)
9472 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9473 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9477 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9482 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9486 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9487 *** create shared libraries on Solaris systems. Therefore, libtool
9488 *** is disabling shared libraries support. We urge you to upgrade GNU
9489 *** binutils to release 2.9.1 or newer. Another option is to modify
9490 *** your PATH or compiler configuration so that the native linker is
9491 *** used, and then restart.
9494 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9496 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9503 case `$LD -v 2>&1` in
9504 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9508 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9509 *** reliably create shared libraries on SCO systems. Therefore, libtool
9510 *** is disabling shared libraries support. We urge you to upgrade GNU
9511 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9512 *** your PATH or compiler configuration so that the native linker is
9513 *** used, and then restart.
9518 # For security reasons, it is highly recommended that you always
9519 # use absolute paths for naming shared libraries, and exclude the
9520 # DT_RUNPATH tag from executables and libraries. But doing so
9521 # requires that you compile everything twice, which is a pain.
9522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9534 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9537 hardcode_shlibpath_var=no
9541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9543 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9550 if test no = "$ld_shlibs"; then
9552 hardcode_libdir_flag_spec=
9553 export_dynamic_flag_spec=
9554 whole_archive_flag_spec=
9557 # PORTME fill in a description of your system's linker (not GNU ld)
9560 allow_undefined_flag=unsupported
9561 always_export_symbols=yes
9562 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'
9563 # Note: this linker hardcodes the directories in LIBPATH if there
9564 # are no directories specified by -L.
9565 hardcode_minus_L=yes
9566 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9567 # Neither direct hardcoding nor static linking is supported with a
9569 hardcode_direct=unsupported
9574 if test ia64 = "$host_cpu"; then
9575 # On IA64, the linker does run time linking by default, so we don't
9576 # have to do anything special.
9577 aix_use_runtimelinking=no
9578 exp_sym_flag='-Bexport'
9581 # If we're using GNU nm, then we don't want the "-C" option.
9582 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9583 # Without the "-l" option, or with the "-B" option, AIX nm treats
9584 # weak defined symbols like other global defined symbols, whereas
9585 # GNU nm marks them as "W".
9586 # While the 'weak' keyword is ignored in the Export File, we need
9587 # it in the Import File for the 'aix-soname' feature, so we have
9588 # to replace the "-B" option with "-P" for AIX nm.
9589 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9590 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9592 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9594 aix_use_runtimelinking=no
9596 # Test if we are trying to use run time linking or normal
9597 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9598 # have runtime linking enabled, and use it for executables.
9599 # For shared libraries, we enable/disable runtime linking
9600 # depending on the kind of the shared library created -
9601 # when "with_aix_soname,aix_use_runtimelinking" is:
9602 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9603 # "aix,yes" lib.so shared, rtl:yes, for executables
9604 # lib.a static archive
9605 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9606 # lib.a(lib.so.V) shared, rtl:no, for executables
9607 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9608 # lib.a(lib.so.V) shared, rtl:no
9609 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9610 # lib.a static archive
9611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9612 for ld_flag in $LDFLAGS; do
9613 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9614 aix_use_runtimelinking=yes
9618 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9619 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9620 # so we don't have lib.a shared libs to link our executables.
9621 # We have to force runtime linking in this case.
9622 aix_use_runtimelinking=yes
9623 LDFLAGS="$LDFLAGS -Wl,-brtl"
9628 exp_sym_flag='-bexport'
9629 no_entry_flag='-bnoentry'
9632 # When large executables or shared objects are built, AIX ld can
9633 # have problems creating the table of contents. If linking a library
9634 # or program results in "error TOC overflow" add -mminimal-toc to
9635 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9636 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9640 hardcode_direct_absolute=yes
9641 hardcode_libdir_separator=':'
9642 link_all_deplibs=yes
9643 file_list_spec='$wl-f,'
9644 case $with_aix_soname,$aix_use_runtimelinking in
9645 aix,*) ;; # traditional, no import file
9646 svr4,* | *,yes) # use import file
9647 # The Import File defines what to hardcode.
9649 hardcode_direct_absolute=no
9653 if test yes = "$GCC"; then
9654 case $host_os in aix4.[012]|aix4.[012].*)
9655 # We only want to do this on AIX 4.2 and lower, the check
9656 # below for broken collect2 doesn't work under 4.3+
9657 collect2name=`$CC -print-prog-name=collect2`
9658 if test -f "$collect2name" &&
9659 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9661 # We have reworked collect2
9664 # We have old collect2
9665 hardcode_direct=unsupported
9666 # It fails to find uninstalled libraries when the uninstalled
9667 # path is not listed in the libpath. Setting hardcode_minus_L
9668 # to unsupported forces relinking
9669 hardcode_minus_L=yes
9670 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_libdir_separator=
9675 shared_flag='-shared'
9676 if test yes = "$aix_use_runtimelinking"; then
9677 shared_flag="$shared_flag "'$wl-G'
9679 # Need to ensure runtime linking is disabled for the traditional
9680 # shared library, or the linker may eventually find shared libraries
9681 # /with/ Import File - we do not want to mix them.
9682 shared_flag_aix='-shared'
9683 shared_flag_svr4='-shared $wl-G'
9686 if test ia64 = "$host_cpu"; then
9687 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9688 # chokes on -Wl,-G. The following line is correct:
9691 if test yes = "$aix_use_runtimelinking"; then
9694 shared_flag='$wl-bM:SRE'
9696 shared_flag_aix='$wl-bM:SRE'
9697 shared_flag_svr4='$wl-G'
9701 export_dynamic_flag_spec='$wl-bexpall'
9702 # It seems that -bexpall does not export symbols beginning with
9703 # underscore (_), so it is better to generate a list of symbols to export.
9704 always_export_symbols=yes
9705 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9706 # Warning - without using the other runtime loading flags (-brtl),
9707 # -berok will link without error, but may produce a broken library.
9708 allow_undefined_flag='-berok'
9709 # Determine the default libpath from the value encoded in an
9711 if test set = "${lt_cv_aix_libpath+set}"; then
9712 aix_libpath=$lt_cv_aix_libpath
9714 if ${lt_cv_aix_libpath_+:} false; then :
9715 $as_echo_n "(cached) " >&6
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9728 if ac_fn_c_try_link "$LINENO"; then :
9730 lt_aix_libpath_sed='
9731 /Import File Strings/,/^$/ {
9733 s/^0 *\([^ ]*\) *$/\1/
9737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9738 # Check for a 64-bit object if we didn't find anything.
9739 if test -z "$lt_cv_aix_libpath_"; then
9740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$lt_cv_aix_libpath_"; then
9746 lt_cv_aix_libpath_=/usr/lib:/lib
9751 aix_libpath=$lt_cv_aix_libpath_
9754 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9755 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9757 if test ia64 = "$host_cpu"; then
9758 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9759 allow_undefined_flag="-z nodefs"
9760 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"
9762 # Determine the default libpath from the value encoded in an
9764 if test set = "${lt_cv_aix_libpath+set}"; then
9765 aix_libpath=$lt_cv_aix_libpath
9767 if ${lt_cv_aix_libpath_+:} false; then :
9768 $as_echo_n "(cached) " >&6
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9781 if ac_fn_c_try_link "$LINENO"; then :
9783 lt_aix_libpath_sed='
9784 /Import File Strings/,/^$/ {
9786 s/^0 *\([^ ]*\) *$/\1/
9790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791 # Check for a 64-bit object if we didn't find anything.
9792 if test -z "$lt_cv_aix_libpath_"; then
9793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796 rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_=/usr/lib:/lib
9804 aix_libpath=$lt_cv_aix_libpath_
9807 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9808 # Warning - without using the other run time loading flags,
9809 # -berok will link without error, but may produce a broken library.
9810 no_undefined_flag=' $wl-bernotok'
9811 allow_undefined_flag=' $wl-berok'
9812 if test yes = "$with_gnu_ld"; then
9813 # We only use this code for GNU lds that support --whole-archive.
9814 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9816 # Exported symbols can be pulled into shared objects from archives
9817 whole_archive_flag_spec='$convenience'
9819 archive_cmds_need_lc=yes
9820 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9821 # -brtl affects multiple linker settings, -berok does not and is overridden later
9822 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9823 if test svr4 != "$with_aix_soname"; then
9824 # This is similar to how AIX traditionally builds its shared libraries.
9825 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9827 if test aix != "$with_aix_soname"; then
9828 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9830 # used by -dlpreopen to get the symbols
9831 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9833 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9841 # see comment about AmigaOS4 .so support
9842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9843 archive_expsym_cmds=''
9846 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)'
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9854 export_dynamic_flag_spec=-rdynamic
9857 cygwin* | mingw* | pw32* | cegcc*)
9858 # When not using gcc, we currently assume that we are using
9859 # Microsoft Visual C++.
9860 # hardcode_libdir_flag_spec is actually meaningless, as there is
9861 # no search path for DLLs.
9862 case $cc_basename in
9865 hardcode_libdir_flag_spec=' '
9866 allow_undefined_flag=unsupported
9867 always_export_symbols=yes
9869 # Tell ltmain to make .lib files, not .a files.
9871 # Tell ltmain to make .dll files, not .so files.
9873 # FIXME: Setting linknames here is a bad hack.
9874 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9875 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9876 cp "$export_symbols" "$output_objdir/$soname.def";
9877 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9879 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9881 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9883 # The linker will not automatically build a static lib if we build a DLL.
9884 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9885 enable_shared_with_static_runtimes=yes
9886 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9889 old_postinstall_cmds='chmod 644 $oldlib'
9890 postlink_cmds='lt_outputfile="@OUTPUT@"~
9891 lt_tool_outputfile="@TOOL_OUTPUT@"~
9892 case $lt_outputfile in
9895 lt_outputfile=$lt_outputfile.exe
9896 lt_tool_outputfile=$lt_tool_outputfile.exe
9899 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9900 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9901 $RM "$lt_outputfile.manifest";
9905 # Assume MSVC wrapper
9906 hardcode_libdir_flag_spec=' '
9907 allow_undefined_flag=unsupported
9908 # Tell ltmain to make .lib files, not .a files.
9910 # Tell ltmain to make .dll files, not .so files.
9912 # FIXME: Setting linknames here is a bad hack.
9913 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9914 # The linker will automatically build a .lib file if we build a DLL.
9915 old_archive_from_new_cmds='true'
9916 # FIXME: Should let the user specify the lib program.
9917 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9918 enable_shared_with_static_runtimes=yes
9923 darwin* | rhapsody*)
9926 archive_cmds_need_lc=no
9928 hardcode_automatic=yes
9929 hardcode_shlibpath_var=unsupported
9930 if test yes = "$lt_cv_ld_force_load"; then
9931 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\"`'
9934 whole_archive_flag_spec=''
9936 link_all_deplibs=yes
9937 allow_undefined_flag=$_lt_dar_allow_undefined
9938 case $cc_basename in
9939 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9940 *) _lt_dar_can_shared=$GCC ;;
9942 if test yes = "$_lt_dar_can_shared"; then
9943 output_verbose_link_cmd=func_echo_all
9944 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9945 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9946 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"
9947 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"
9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_shlibpath_var=no
9961 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9962 # support. Future versions do this automatically, but an explicit c++rt0.o
9963 # does not break anything, and helps significantly (at the cost of a little
9966 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9967 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_shlibpath_var=no
9972 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_minus_L=yes
9977 hardcode_shlibpath_var=no
9980 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9981 freebsd* | dragonfly*)
9982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983 hardcode_libdir_flag_spec='-R$libdir'
9985 hardcode_shlibpath_var=no
9989 if test yes = "$GCC"; then
9990 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9992 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9994 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9995 hardcode_libdir_separator=:
9998 # hardcode_minus_L: Not really in the search PATH,
9999 # but as the default location of the library.
10000 hardcode_minus_L=yes
10001 export_dynamic_flag_spec='$wl-E'
10005 if test yes,no = "$GCC,$with_gnu_ld"; then
10006 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10010 if test no = "$with_gnu_ld"; then
10011 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10012 hardcode_libdir_separator=:
10013 hardcode_direct=yes
10014 hardcode_direct_absolute=yes
10015 export_dynamic_flag_spec='$wl-E'
10016 # hardcode_minus_L: Not really in the search PATH,
10017 # but as the default location of the library.
10018 hardcode_minus_L=yes
10023 if test yes,no = "$GCC,$with_gnu_ld"; then
10026 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045 # Older versions of the 11.00 compiler do not understand -b yet
10046 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10048 $as_echo_n "checking if $CC understands -b... " >&6; }
10049 if ${lt_cv_prog_compiler__b+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 lt_cv_prog_compiler__b=no
10053 save_LDFLAGS=$LDFLAGS
10054 LDFLAGS="$LDFLAGS -b"
10055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10057 # The linker can only warn and ignore the option if not recognized
10058 # So say no if there are warnings
10059 if test -s conftest.err; then
10060 # Append any errors to the config.log.
10061 cat conftest.err 1>&5
10062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10064 if diff conftest.exp conftest.er2 >/dev/null; then
10065 lt_cv_prog_compiler__b=yes
10068 lt_cv_prog_compiler__b=yes
10072 LDFLAGS=$save_LDFLAGS
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10076 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10078 if test yes = "$lt_cv_prog_compiler__b"; then
10079 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10087 if test no = "$with_gnu_ld"; then
10088 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10089 hardcode_libdir_separator=:
10094 hardcode_shlibpath_var=no
10097 hardcode_direct=yes
10098 hardcode_direct_absolute=yes
10099 export_dynamic_flag_spec='$wl-E'
10101 # hardcode_minus_L: Not really in the search PATH,
10102 # but as the default location of the library.
10103 hardcode_minus_L=yes
10109 irix5* | irix6* | nonstopux*)
10110 if test yes = "$GCC"; then
10111 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'
10112 # Try to use the -exported_symbol ld option, if it does not
10113 # work, assume that -exports_file does not work either and
10114 # implicitly export all symbols.
10115 # This should be the same for all languages, so no per-tag cache variable.
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10117 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10118 if ${lt_cv_irix_exported_symbol+:} false; then :
10119 $as_echo_n "(cached) " >&6
10121 save_LDFLAGS=$LDFLAGS
10122 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125 int foo (void) { return 0; }
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 lt_cv_irix_exported_symbol=yes
10130 lt_cv_irix_exported_symbol=no
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 LDFLAGS=$save_LDFLAGS
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10137 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10138 if test yes = "$lt_cv_irix_exported_symbol"; then
10139 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'
10141 link_all_deplibs=no
10143 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'
10144 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'
10146 archive_cmds_need_lc='no'
10147 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10148 hardcode_libdir_separator=:
10150 link_all_deplibs=yes
10154 case $cc_basename in
10156 # Fabrice Bellard et al's Tiny C Compiler
10158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10163 netbsd* | netbsdelf*-gnu)
10164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10167 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10169 hardcode_libdir_flag_spec='-R$libdir'
10170 hardcode_direct=yes
10171 hardcode_shlibpath_var=no
10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 hardcode_direct=yes
10177 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10178 hardcode_libdir_separator=:
10179 hardcode_shlibpath_var=no
10185 openbsd* | bitrig*)
10186 if test -f /usr/libexec/ld.so; then
10187 hardcode_direct=yes
10188 hardcode_shlibpath_var=no
10189 hardcode_direct_absolute=yes
10190 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10191 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10192 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10193 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10194 export_dynamic_flag_spec='$wl-E'
10196 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10197 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10205 hardcode_libdir_flag_spec='-L$libdir'
10206 hardcode_minus_L=yes
10207 allow_undefined_flag=unsupported
10209 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10210 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10211 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10212 $ECHO EXPORTS >> $output_objdir/$libname.def~
10213 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10214 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10215 emximp -o $lib $output_objdir/$libname.def'
10216 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10217 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10218 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10219 $ECHO EXPORTS >> $output_objdir/$libname.def~
10220 prefix_cmds="$SED"~
10221 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10222 prefix_cmds="$prefix_cmds -e 1d";
10224 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10225 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10227 emximp -o $lib $output_objdir/$libname.def'
10228 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10229 enable_shared_with_static_runtimes=yes
10233 if test yes = "$GCC"; then
10234 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10235 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'
10237 allow_undefined_flag=' -expect_unresolved \*'
10238 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'
10240 archive_cmds_need_lc='no'
10241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10242 hardcode_libdir_separator=:
10245 osf4* | osf5*) # as osf3* with the addition of -msym flag
10246 if test yes = "$GCC"; then
10247 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10248 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'
10249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10251 allow_undefined_flag=' -expect_unresolved \*'
10252 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'
10253 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~
10254 $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'
10256 # Both c and cxx compiler support -rpath directly
10257 hardcode_libdir_flag_spec='-rpath $libdir'
10259 archive_cmds_need_lc='no'
10260 hardcode_libdir_separator=:
10264 no_undefined_flag=' -z defs'
10265 if test yes = "$GCC"; then
10267 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10269 $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'
10271 case `$CC -V 2>&1` in
10274 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10276 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10280 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10282 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10286 hardcode_libdir_flag_spec='-R$libdir'
10287 hardcode_shlibpath_var=no
10289 solaris2.[0-5] | solaris2.[0-5].*) ;;
10291 # The compiler driver will combine and reorder linker options,
10292 # but understands '-z linker_flag'. GCC discards it without '$wl',
10293 # but is careful enough not to reorder.
10294 # Supported since Solaris 2.6 (maybe 2.5.1?)
10295 if test yes = "$GCC"; then
10296 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10298 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10302 link_all_deplibs=yes
10306 if test sequent = "$host_vendor"; then
10307 # Use $CC to link under sequent, because it throws in some extra .o
10308 # files that make .init and .fini sections work.
10309 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10313 hardcode_libdir_flag_spec='-L$libdir'
10314 hardcode_direct=yes
10315 hardcode_minus_L=yes
10316 hardcode_shlibpath_var=no
10320 case $host_vendor in
10322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323 hardcode_direct=yes # is this really true???
10326 ## LD is ld it makes a PLAMLIB
10327 ## CC just makes a GrossModule.
10328 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10329 reload_cmds='$CC -r -o $output$reload_objs'
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10337 runpath_var='LD_RUN_PATH'
10338 hardcode_shlibpath_var=no
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_shlibpath_var=no
10344 export_dynamic_flag_spec='-Bexport'
10348 if test -d /usr/nec; then
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_shlibpath_var=no
10351 runpath_var=LD_RUN_PATH
10352 hardcode_runpath_var=yes
10357 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10358 no_undefined_flag='$wl-z,text'
10359 archive_cmds_need_lc=no
10360 hardcode_shlibpath_var=no
10361 runpath_var='LD_RUN_PATH'
10363 if test yes = "$GCC"; then
10364 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10365 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 sysv5* | sco3.2v5* | sco5v6*)
10373 # Note: We CANNOT use -z defs as we might desire, because we do not
10374 # link with -lc, and that would cause any symbols used from libc to
10375 # always be unresolved, which means just about no library would
10376 # ever link correctly. If we're not using GNU ld we use -z text
10377 # though, which does catch some bad symbols but isn't as heavy-handed
10379 no_undefined_flag='$wl-z,text'
10380 allow_undefined_flag='$wl-z,nodefs'
10381 archive_cmds_need_lc=no
10382 hardcode_shlibpath_var=no
10383 hardcode_libdir_flag_spec='$wl-R,$libdir'
10384 hardcode_libdir_separator=':'
10385 link_all_deplibs=yes
10386 export_dynamic_flag_spec='$wl-Bexport'
10387 runpath_var='LD_RUN_PATH'
10389 if test yes = "$GCC"; then
10390 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400 hardcode_libdir_flag_spec='-L$libdir'
10401 hardcode_shlibpath_var=no
10409 if test sni = "$host_vendor"; then
10411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10412 export_dynamic_flag_spec='$wl-Blargedynsym'
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10419 $as_echo "$ld_shlibs" >&6; }
10420 test no = "$ld_shlibs" && can_build_shared=no
10422 with_gnu_ld=$with_gnu_ld
10439 # Do we need to explicitly link libc?
10441 case "x$archive_cmds_need_lc" in
10443 # Assume -lc should be added
10444 archive_cmds_need_lc=yes
10446 if test yes,yes = "$GCC,$enable_shared"; then
10447 case $archive_cmds in
10449 # FIXME: we may have to deal with multi-command sequences.
10452 # Test whether the compiler implicitly links with -lc since on some
10453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10454 # to ld, don't add -lc before -lgcc.
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10456 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10457 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10458 $as_echo_n "(cached) " >&6
10461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10464 (eval $ac_compile) 2>&5
10466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10467 test $ac_status = 0; } 2>conftest.err; then
10470 libobjs=conftest.$ac_objext
10472 wl=$lt_prog_compiler_wl
10473 pic_flag=$lt_prog_compiler_pic
10479 lt_save_allow_undefined_flag=$allow_undefined_flag
10480 allow_undefined_flag=
10481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10482 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10485 test $ac_status = 0; }
10487 lt_cv_archive_cmds_need_lc=no
10489 lt_cv_archive_cmds_need_lc=yes
10491 allow_undefined_flag=$lt_save_allow_undefined_flag
10493 cat conftest.err 1>&5
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10499 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10500 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10659 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10661 if test yes = "$GCC"; then
10663 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10664 *) lt_awk_arg='/^libraries:/' ;;
10667 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10668 *) lt_sed_strip_eq='s|=/|/|g' ;;
10670 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10671 case $lt_search_path_spec in
10673 # if the path contains ";" then we assume it to be the separator
10674 # otherwise default to the standard path separator (i.e. ":") - it is
10675 # assumed that no part of a normal pathname contains ";" but that should
10676 # okay in the real world where ";" in dirpaths is itself problematic.
10677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10683 # Ok, now we have the path, separated by spaces, we can step through it
10684 # and add multilib dir if necessary...
10685 lt_tmp_lt_search_path_spec=
10686 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10687 # ...but if some path component already ends with the multilib dir we assume
10688 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10689 case "$lt_multi_os_dir; $lt_search_path_spec " in
10690 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10694 for lt_sys_path in $lt_search_path_spec; do
10695 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10697 elif test -n "$lt_multi_os_dir"; then
10698 test -d "$lt_sys_path" && \
10699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10702 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10703 BEGIN {RS = " "; FS = "/|\n";} {
10706 for (lt_i = NF; lt_i > 0; lt_i--) {
10707 if ($lt_i != "" && $lt_i != ".") {
10708 if ($lt_i == "..") {
10711 if (lt_count == 0) {
10712 lt_foo = "/" $lt_i lt_foo;
10719 if (lt_foo != "") { lt_freq[lt_foo]++; }
10720 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10722 # AWK program above erroneously prepends '/' to C:/dos/paths
10725 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10726 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10728 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10732 library_names_spec=
10733 libname_spec='lib$name'
10737 postuninstall_cmds=
10741 shlibpath_overrides_runpath=unknown
10743 dynamic_linker="$host_os ld.so"
10744 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10745 need_lib_prefix=unknown
10746 hardcode_into_libs=no
10748 # when you set need_version to no, make sure it does not cause -set_version
10749 # flags to be left without arguments
10750 need_version=unknown
10756 version_type=linux # correct to gnu/linux during the next big refactor
10757 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10758 shlibpath_var=LIBPATH
10760 # AIX 3 has no versioning support, so we append a major version to the name.
10761 soname_spec='$libname$release$shared_ext$major'
10765 version_type=linux # correct to gnu/linux during the next big refactor
10768 hardcode_into_libs=yes
10769 if test ia64 = "$host_cpu"; then
10770 # AIX 5 supports IA64
10771 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10772 shlibpath_var=LD_LIBRARY_PATH
10774 # With GCC up to 2.95.x, collect2 would create an import file
10775 # for dependence libraries. The import file would start with
10776 # the line '#! .'. This would cause the generated library to
10777 # depend on '.', always an invalid library. This was fixed in
10778 # development snapshots of GCC prior to 3.0.
10780 aix4 | aix4.[01] | aix4.[01].*)
10781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10783 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10786 can_build_shared=no
10790 # Using Import Files as archive members, it is possible to support
10791 # filename-based versioning of shared library archives on AIX. While
10792 # this would work for both with and without runtime linking, it will
10793 # prevent static linking of such archives. So we do filename-based
10794 # shared library versioning with .so extension only, which is used
10795 # when both runtime linking and shared linking is enabled.
10796 # Unfortunately, runtime linking may impact performance, so we do
10797 # not want this to be the default eventually. Also, we use the
10798 # versioned .so libs for executables only if there is the -brtl
10799 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10800 # To allow for filename-based versioning support, we need to create
10801 # libNAME.so.V as an archive file, containing:
10802 # *) an Import File, referring to the versioned filename of the
10803 # archive as well as the shared archive member, telling the
10804 # bitwidth (32 or 64) of that shared object, and providing the
10805 # list of exported symbols of that shared object, eventually
10806 # decorated with the 'weak' keyword
10807 # *) the shared object with the F_LOADONLY flag set, to really avoid
10808 # it being seen by the linker.
10809 # At run time we better use the real file rather than another symlink,
10810 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10812 case $with_aix_soname,$aix_use_runtimelinking in
10813 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10814 # soname into executable. Probably we can add versioning support to
10815 # collect2, so additional links can be useful in future.
10816 aix,yes) # traditional libtool
10817 dynamic_linker='AIX unversionable lib.so'
10818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10819 # instead of lib<name>.a to let people know that these are not
10820 # typical AIX shared libraries.
10821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10823 aix,no) # traditional AIX only
10824 dynamic_linker='AIX lib.a(lib.so.V)'
10825 # We preserve .a as extension for shared libraries through AIX4.2
10826 # and later when we are not doing run time linking.
10827 library_names_spec='$libname$release.a $libname.a'
10828 soname_spec='$libname$release$shared_ext$major'
10830 svr4,*) # full svr4 only
10831 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10832 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10833 # We do not specify a path in Import Files, so LIBPATH fires.
10834 shlibpath_overrides_runpath=yes
10836 *,yes) # both, prefer svr4
10837 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10838 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10839 # unpreferred sharedlib libNAME.a needs extra handling
10840 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10841 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10842 # We do not specify a path in Import Files, so LIBPATH fires.
10843 shlibpath_overrides_runpath=yes
10845 *,no) # both, prefer aix
10846 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10847 library_names_spec='$libname$release.a $libname.a'
10848 soname_spec='$libname$release$shared_ext$major'
10849 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10850 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10851 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10854 shlibpath_var=LIBPATH
10861 # Since July 2007 AmigaOS4 officially supports .so libraries.
10862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866 library_names_spec='$libname.ixlibrary $libname.a'
10867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10868 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10874 library_names_spec='$libname$shared_ext'
10875 dynamic_linker="$host_os ld.so"
10876 shlibpath_var=LIBRARY_PATH
10880 version_type=linux # correct to gnu/linux during the next big refactor
10882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883 soname_spec='$libname$release$shared_ext$major'
10884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10888 # the default ld.so.conf also contains /usr/contrib/lib and
10889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10890 # libtool to hard-code these into programs
10893 cygwin* | mingw* | pw32* | cegcc*)
10894 version_type=windows
10899 case $GCC,$cc_basename in
10902 library_names_spec='$libname.dll.a'
10903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10904 postinstall_cmds='base_file=`basename \$file`~
10905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10906 dldir=$destdir/`dirname \$dlpath`~
10907 test -d \$dldir || mkdir -p \$dldir~
10908 $install_prog $dir/$dlname \$dldir/$dlname~
10909 chmod a+x \$dldir/$dlname~
10910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10914 dlpath=$dir/\$dldll~
10916 shlibpath_overrides_runpath=yes
10920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10921 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10926 # MinGW DLLs use traditional 'lib' prefix
10927 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10930 # pw32 DLLs use 'pw' prefix rather than 'lib'
10931 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10934 dynamic_linker='Win32 ld.exe'
10939 libname_spec='$name'
10940 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10941 library_names_spec='$libname.dll.lib'
10945 sys_lib_search_path_spec=
10948 for lt_path in $LIB
10951 # Let DOS variable expansion print the short 8.3 style file name.
10952 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10953 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10956 # Convert to MSYS style.
10957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10960 # Convert to unix form, then to dos form, then back to unix form
10961 # but this time dos style (no spaces!) so that the unix form looks
10962 # like /cygdrive/c/PROGRA~1:/cygdr...
10963 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10964 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10965 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10968 sys_lib_search_path_spec=$LIB
10969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10970 # It is most probably a Windows format PATH.
10971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10975 # FIXME: find the short name or the path components, as spaces are
10976 # common. (e.g. "Program Files" -> "PROGRA~1")
10980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10981 postinstall_cmds='base_file=`basename \$file`~
10982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10983 dldir=$destdir/`dirname \$dlpath`~
10984 test -d \$dldir || mkdir -p \$dldir~
10985 $install_prog $dir/$dlname \$dldir/$dlname'
10986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10987 dlpath=$dir/\$dldll~
10989 shlibpath_overrides_runpath=yes
10990 dynamic_linker='Win32 link.exe'
10994 # Assume MSVC wrapper
10995 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10996 dynamic_linker='Win32 ld.exe'
10999 # FIXME: first we should search . and the directory the executable is in
11003 darwin* | rhapsody*)
11004 dynamic_linker="$host_os dyld"
11005 version_type=darwin
11008 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11009 soname_spec='$libname$release$major$shared_ext'
11010 shlibpath_overrides_runpath=yes
11011 shlibpath_var=DYLD_LIBRARY_PATH
11012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11019 version_type=linux # correct to gnu/linux during the next big refactor
11022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11023 soname_spec='$libname$release$shared_ext$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11027 freebsd* | dragonfly*)
11028 # DragonFly does not have aout. When/if they implement a new
11029 # versioning mechanism, adjust this.
11030 if test -x /usr/bin/objformat; then
11031 objformat=`/usr/bin/objformat`
11034 freebsd[23].*) objformat=aout ;;
11035 *) objformat=elf ;;
11038 version_type=freebsd-$objformat
11039 case $version_type in
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11042 soname_spec='$libname$release$shared_ext$major'
11047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11051 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11056 freebsd3.[01]* | freebsdelf3.[01]*)
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11062 shlibpath_overrides_runpath=no
11063 hardcode_into_libs=yes
11065 *) # from 4.6 on, and DragonFly
11066 shlibpath_overrides_runpath=yes
11067 hardcode_into_libs=yes
11073 version_type=linux # correct to gnu/linux during the next big refactor
11076 dynamic_linker="$host_os runtime_loader"
11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078 soname_spec='$libname$release$shared_ext$major'
11079 shlibpath_var=LIBRARY_PATH
11080 shlibpath_overrides_runpath=no
11081 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11082 hardcode_into_libs=yes
11085 hpux9* | hpux10* | hpux11*)
11086 # Give a soname corresponding to the major version so that dld.sl refuses to
11087 # link against other versions.
11094 hardcode_into_libs=yes
11095 dynamic_linker="$host_os dld.so"
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 soname_spec='$libname$release$shared_ext$major'
11100 if test 32 = "$HPUX_IA64_MODE"; then
11101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11102 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11105 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11110 hardcode_into_libs=yes
11111 dynamic_linker="$host_os dld.sl"
11112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11115 soname_spec='$libname$release$shared_ext$major'
11116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11121 dynamic_linker="$host_os dld.sl"
11122 shlibpath_var=SHLIB_PATH
11123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 soname_spec='$libname$release$shared_ext$major'
11128 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11129 postinstall_cmds='chmod 555 $lib'
11130 # or fails outright, so override atomically:
11131 install_override_mode=555
11135 version_type=linux # correct to gnu/linux during the next big refactor
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 soname_spec='$libname$release$shared_ext$major'
11140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 shlibpath_overrides_runpath=no
11143 hardcode_into_libs=yes
11146 irix5* | irix6* | nonstopux*)
11148 nonstopux*) version_type=nonstopux ;;
11150 if test yes = "$lt_cv_prog_gnu_ld"; then
11151 version_type=linux # correct to gnu/linux during the next big refactor
11158 soname_spec='$libname$release$shared_ext$major'
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11161 irix5* | nonstopux*)
11162 libsuff= shlibsuff=
11165 case $LD in # libtool.m4 will add one of these switches to LD
11166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11167 libsuff= shlibsuff= libmagic=32-bit;;
11168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11169 libsuff=32 shlibsuff=N32 libmagic=N32;;
11170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11171 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11172 *) libsuff= shlibsuff= libmagic=never-match;;
11176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11177 shlibpath_overrides_runpath=no
11178 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11179 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11180 hardcode_into_libs=yes
11183 # No shared lib support for Linux oldld, aout, or coff.
11184 linux*oldld* | linux*aout* | linux*coff*)
11189 version_type=none # Android doesn't support versioned libraries.
11192 library_names_spec='$libname$release$shared_ext'
11193 soname_spec='$libname$release$shared_ext'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11198 # This implies no fast_install, which is unacceptable.
11199 # Some rework will be needed to allow for fast_install
11200 # before this can be enabled.
11201 hardcode_into_libs=yes
11203 dynamic_linker='Android linker'
11204 # Don't embed -rpath directories since the linker doesn't support them.
11205 hardcode_libdir_flag_spec='-L$libdir'
11208 # This must be glibc/ELF.
11209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11210 version_type=linux # correct to gnu/linux during the next big refactor
11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11214 soname_spec='$libname$release$shared_ext$major'
11215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=no
11219 # Some binutils ld are patched to set DT_RUNPATH
11220 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11221 $as_echo_n "(cached) " >&6
11223 lt_cv_shlibpath_overrides_runpath=no
11224 save_LDFLAGS=$LDFLAGS
11225 save_libdir=$libdir
11226 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11227 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11241 lt_cv_shlibpath_overrides_runpath=yes
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LDFLAGS=$save_LDFLAGS
11247 libdir=$save_libdir
11251 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11253 # This implies no fast_install, which is unacceptable.
11254 # Some rework will be needed to allow for fast_install
11255 # before this can be enabled.
11256 hardcode_into_libs=yes
11258 # Ideally, we could use ldconfig to report *all* directores which are
11259 # searched for libraries, however this is still not possible. Aside from not
11260 # being certain /sbin/ldconfig is available, command
11261 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11262 # even though it is searched at run-time. Try to do the best guess by
11263 # appending ld.so.conf contents (and includes) to the search path.
11264 if test -f /etc/ld.so.conf; then
11265 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' ' '`
11266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11269 # We used to test for /lib/ld.so.1 and disable shared libraries on
11270 # powerpc, because MkLinux only supported shared libraries with the
11271 # GNU dynamic linker. Since this was broken with cross compilers,
11272 # most powerpc-linux boxes support dynamic linking these days and
11273 # people can always --disable-shared, the test was removed, and we
11274 # assume the GNU/Linux dynamic linker is in use.
11275 dynamic_linker='GNU/Linux ld.so'
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=no
11286 hardcode_into_libs=yes
11287 dynamic_linker='NetBSD ld.elf_so'
11294 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11297 dynamic_linker='NetBSD (a.out) ld.so'
11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300 soname_spec='$libname$release$shared_ext$major'
11301 dynamic_linker='NetBSD ld.elf_so'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
11309 version_type=linux # correct to gnu/linux during the next big refactor
11310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes
11319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11320 soname_spec='$libname$release$shared_ext$major'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11324 dynamic_linker='ldqnx.so'
11327 openbsd* | bitrig*)
11329 sys_lib_dlsearch_path_spec=/usr/lib
11331 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11336 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes
11343 libname_spec='$name'
11344 version_type=windows
11348 # OS/2 can only load a DLL with a base name of 8 characters or less.
11349 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11350 v=$($ECHO $release$versuffix | tr -d .-);
11351 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11352 $ECHO $n$v`$shared_ext'
11353 library_names_spec='${libname}_dll.$libext'
11354 dynamic_linker='OS/2 ld.exe'
11355 shlibpath_var=BEGINLIBPATH
11356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11358 postinstall_cmds='base_file=`basename \$file`~
11359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11360 dldir=$destdir/`dirname \$dlpath`~
11361 test -d \$dldir || mkdir -p \$dldir~
11362 $install_prog $dir/$dlname \$dldir/$dlname~
11363 chmod a+x \$dldir/$dlname~
11364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11368 dlpath=$dir/\$dldll~
11372 osf3* | osf4* | osf5*)
11376 soname_spec='$libname$release$shared_ext$major'
11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11378 shlibpath_var=LD_LIBRARY_PATH
11379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11388 version_type=linux # correct to gnu/linux during the next big refactor
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 soname_spec='$libname$release$shared_ext$major'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=yes
11395 hardcode_into_libs=yes
11396 # ldd complains unless libraries are executable
11397 postinstall_cmds='chmod +x $lib'
11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 shlibpath_overrides_runpath=yes
11406 if test yes = "$with_gnu_ld"; then
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11415 soname_spec='$libname$release$shared_ext$major'
11416 shlibpath_var=LD_LIBRARY_PATH
11417 case $host_vendor in
11419 shlibpath_overrides_runpath=no
11421 runpath_var=LD_RUN_PATH
11429 shlibpath_overrides_runpath=no
11430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11436 if test -d /usr/nec; then
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11439 soname_spec='$libname$shared_ext.$major'
11440 shlibpath_var=LD_LIBRARY_PATH
11444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11449 soname_spec='$libname$release$shared_ext$major'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11452 hardcode_into_libs=yes
11453 if test yes = "$with_gnu_ld"; then
11454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11459 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11463 sys_lib_dlsearch_path_spec='/usr/lib'
11467 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11468 version_type=linux # correct to gnu/linux during the next big refactor
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=no
11474 hardcode_into_libs=yes
11478 version_type=linux # correct to gnu/linux during the next big refactor
11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480 soname_spec='$libname$release$shared_ext$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11489 $as_echo "$dynamic_linker" >&6; }
11490 test no = "$dynamic_linker" && can_build_shared=no
11492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11493 if test yes = "$GCC"; then
11494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11497 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11498 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11501 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11502 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11505 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11506 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11508 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11509 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11511 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11512 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11611 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11613 if test -n "$hardcode_libdir_flag_spec" ||
11614 test -n "$runpath_var" ||
11615 test yes = "$hardcode_automatic"; then
11617 # We can hardcode non-existent directories.
11618 if test no != "$hardcode_direct" &&
11619 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11620 # have to relink, otherwise we might link with an installed library
11621 # when we should be linking with a yet-to-be-installed one
11622 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11623 test no != "$hardcode_minus_L"; then
11624 # Linking always hardcodes the temporary library directory.
11625 hardcode_action=relink
11627 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11628 hardcode_action=immediate
11631 # We cannot hardcode anything, or else we can only hardcode existing
11633 hardcode_action=unsupported
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11636 $as_echo "$hardcode_action" >&6; }
11638 if test relink = "$hardcode_action" ||
11639 test yes = "$inherit_rpath"; then
11640 # Fast installation is not supported
11641 enable_fast_install=no
11642 elif test yes = "$shlibpath_overrides_runpath" ||
11643 test no = "$enable_shared"; then
11644 # Fast installation is not necessary
11645 enable_fast_install=needless
11653 if test yes != "$enable_dlopen"; then
11654 enable_dlopen=unknown
11655 enable_dlopen_self=unknown
11656 enable_dlopen_self_static=unknown
11663 lt_cv_dlopen=load_add_on
11665 lt_cv_dlopen_self=yes
11668 mingw* | pw32* | cegcc*)
11669 lt_cv_dlopen=LoadLibrary
11674 lt_cv_dlopen=dlopen
11679 # if libdl is installed we need to link against it
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11681 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11682 if ${ac_cv_lib_dl_dlopen+:} false; then :
11683 $as_echo_n "(cached) " >&6
11685 ac_check_lib_save_LIBS=$LIBS
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11705 if ac_fn_c_try_link "$LINENO"; then :
11706 ac_cv_lib_dl_dlopen=yes
11708 ac_cv_lib_dl_dlopen=no
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11715 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11716 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11717 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11722 lt_cv_dlopen_self=yes
11729 # Don't try to run any link tests for TPF. We know it's impossible
11730 # because TPF is a cross-compiler, and we know how we open DSOs.
11731 lt_cv_dlopen=dlopen
11733 lt_cv_dlopen_self=no
11737 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11738 if test "x$ac_cv_func_shl_load" = xyes; then :
11739 lt_cv_dlopen=shl_load
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11742 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11743 if ${ac_cv_lib_dld_shl_load+:} false; then :
11744 $as_echo_n "(cached) " >&6
11746 ac_check_lib_save_LIBS=$LIBS
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11761 return shl_load ();
11766 if ac_fn_c_try_link "$LINENO"; then :
11767 ac_cv_lib_dld_shl_load=yes
11769 ac_cv_lib_dld_shl_load=no
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11776 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11777 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11778 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11780 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11781 if test "x$ac_cv_func_dlopen" = xyes; then :
11782 lt_cv_dlopen=dlopen
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11785 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11786 if ${ac_cv_lib_dl_dlopen+:} false; then :
11787 $as_echo_n "(cached) " >&6
11789 ac_check_lib_save_LIBS=$LIBS
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dl_dlopen=yes
11812 ac_cv_lib_dl_dlopen=no
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11819 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11820 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11821 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11824 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11825 if ${ac_cv_lib_svld_dlopen+:} false; then :
11826 $as_echo_n "(cached) " >&6
11828 ac_check_lib_save_LIBS=$LIBS
11829 LIBS="-lsvld $LIBS"
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11833 /* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
11848 if ac_fn_c_try_link "$LINENO"; then :
11849 ac_cv_lib_svld_dlopen=yes
11851 ac_cv_lib_svld_dlopen=no
11853 rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11858 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11859 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11860 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11863 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11864 if ${ac_cv_lib_dld_dld_link+:} false; then :
11865 $as_echo_n "(cached) " >&6
11867 ac_check_lib_save_LIBS=$LIBS
11869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11882 return dld_link ();
11887 if ac_fn_c_try_link "$LINENO"; then :
11888 ac_cv_lib_dld_dld_link=yes
11890 ac_cv_lib_dld_dld_link=no
11892 rm -f core conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894 LIBS=$ac_check_lib_save_LIBS
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11897 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11898 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11899 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11920 if test no = "$lt_cv_dlopen"; then
11926 case $lt_cv_dlopen in
11928 save_CPPFLAGS=$CPPFLAGS
11929 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11931 save_LDFLAGS=$LDFLAGS
11932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11935 LIBS="$lt_cv_dlopen_libs $LIBS"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11938 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11939 if ${lt_cv_dlopen_self+:} false; then :
11940 $as_echo_n "(cached) " >&6
11942 if test yes = "$cross_compiling"; then :
11943 lt_cv_dlopen_self=cross
11945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11946 lt_status=$lt_dlunknown
11947 cat > conftest.$ac_ext <<_LT_EOF
11948 #line $LINENO "configure"
11949 #include "confdefs.h"
11958 # define LT_DLGLOBAL RTLD_GLOBAL
11961 # define LT_DLGLOBAL DL_GLOBAL
11963 # define LT_DLGLOBAL 0
11967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11968 find out it does not work in some platform. */
11969 #ifndef LT_DLLAZY_OR_NOW
11971 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11974 # define LT_DLLAZY_OR_NOW DL_LAZY
11977 # define LT_DLLAZY_OR_NOW RTLD_NOW
11980 # define LT_DLLAZY_OR_NOW DL_NOW
11982 # define LT_DLLAZY_OR_NOW 0
11989 /* When -fvisibility=hidden is used, assume the code has been annotated
11990 correspondingly for the symbols needed. */
11991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11992 int fnord () __attribute__((visibility("default")));
11995 int fnord () { return 42; }
11998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11999 int status = $lt_dlunknown;
12003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12007 else puts (dlerror ());
12009 /* dlclose (self); */
12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12018 (eval $ac_link) 2>&5
12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12022 (./conftest; exit; ) >&5 2>/dev/null
12024 case x$lt_status in
12025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12027 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12030 # compilation failed
12031 lt_cv_dlopen_self=no
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12039 $as_echo "$lt_cv_dlopen_self" >&6; }
12041 if test yes = "$lt_cv_dlopen_self"; then
12042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12044 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12045 if ${lt_cv_dlopen_self_static+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if test yes = "$cross_compiling"; then :
12049 lt_cv_dlopen_self_static=cross
12051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12052 lt_status=$lt_dlunknown
12053 cat > conftest.$ac_ext <<_LT_EOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12064 # define LT_DLGLOBAL RTLD_GLOBAL
12067 # define LT_DLGLOBAL DL_GLOBAL
12069 # define LT_DLGLOBAL 0
12073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12074 find out it does not work in some platform. */
12075 #ifndef LT_DLLAZY_OR_NOW
12077 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12080 # define LT_DLLAZY_OR_NOW DL_LAZY
12083 # define LT_DLLAZY_OR_NOW RTLD_NOW
12086 # define LT_DLLAZY_OR_NOW DL_NOW
12088 # define LT_DLLAZY_OR_NOW 0
12095 /* When -fvisibility=hidden is used, assume the code has been annotated
12096 correspondingly for the symbols needed. */
12097 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12098 int fnord () __attribute__((visibility("default")));
12101 int fnord () { return 42; }
12104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12105 int status = $lt_dlunknown;
12109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12112 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12113 else puts (dlerror ());
12115 /* dlclose (self); */
12123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12124 (eval $ac_link) 2>&5
12126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12128 (./conftest; exit; ) >&5 2>/dev/null
12130 case x$lt_status in
12131 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12132 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12133 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12136 # compilation failed
12137 lt_cv_dlopen_self_static=no
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12145 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12148 CPPFLAGS=$save_CPPFLAGS
12149 LDFLAGS=$save_LDFLAGS
12154 case $lt_cv_dlopen_self in
12155 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12156 *) enable_dlopen_self=unknown ;;
12159 case $lt_cv_dlopen_self_static in
12160 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12161 *) enable_dlopen_self_static=unknown ;;
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12184 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12185 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12186 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12187 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189 $as_echo "yes" >&6; }
12191 # FIXME - insert some real tests, host_os isn't really good enough
12194 if test -n "$STRIP"; then
12195 striplib="$STRIP -x"
12196 old_striplib="$STRIP -S"
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12198 $as_echo "yes" >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12222 # Report what library types will actually be built
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12224 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12226 $as_echo "$can_build_shared" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12229 $as_echo_n "checking whether to build shared libraries... " >&6; }
12230 test no = "$can_build_shared" && enable_shared=no
12232 # On AIX, shared libraries and static libraries use the same namespace, and
12233 # are all built from PIC.
12236 test yes = "$enable_shared" && enable_static=no
12237 if test -n "$RANLIB"; then
12238 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12239 postinstall_cmds='$RANLIB $lib'
12244 if test ia64 != "$host_cpu"; then
12245 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12246 yes,aix,yes) ;; # shared object as lib.so file only
12247 yes,svr4,*) ;; # shared object as lib.so archive member only
12248 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12254 $as_echo "$enable_shared" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12257 $as_echo_n "checking whether to build static libraries... " >&6; }
12258 # Make sure either enable_shared or enable_static is yes.
12259 test yes = "$enable_shared" || enable_static=yes
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12261 $as_echo "$enable_static" >&6; }
12268 ac_cpp='$CPP $CPPFLAGS'
12269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12289 ac_config_commands="$ac_config_commands libtool"
12294 # Only expand once:
12297 # Check whether --enable-largefile was given.
12298 if test "${enable_largefile+set}" = set; then :
12299 enableval=$enable_largefile;
12302 if test "$enable_largefile" != no; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12305 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12306 if ${ac_cv_sys_largefile_CC+:} false; then :
12307 $as_echo_n "(cached) " >&6
12309 ac_cv_sys_largefile_CC=no
12310 if test "$GCC" != yes; then
12313 # IRIX 6.2 and later do not support large files by default,
12314 # so use the C compiler's -n32 option if that helps.
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12317 #include <sys/types.h>
12318 /* Check that off_t can represent 2**63 - 1 correctly.
12319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12320 since some C++ compilers masquerading as C compilers
12321 incorrectly reject 9223372036854775807. */
12322 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12324 && LARGE_OFF_T % 2147483647 == 1)
12334 if ac_fn_c_try_compile "$LINENO"; then :
12337 rm -f core conftest.err conftest.$ac_objext
12339 if ac_fn_c_try_compile "$LINENO"; then :
12340 ac_cv_sys_largefile_CC=' -n32'; break
12342 rm -f core conftest.err conftest.$ac_objext
12346 rm -f conftest.$ac_ext
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12350 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12351 if test "$ac_cv_sys_largefile_CC" != no; then
12352 CC=$CC$ac_cv_sys_largefile_CC
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12356 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12357 if ${ac_cv_sys_file_offset_bits+:} false; then :
12358 $as_echo_n "(cached) " >&6
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #include <sys/types.h>
12364 /* Check that off_t can represent 2**63 - 1 correctly.
12365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12366 since some C++ compilers masquerading as C compilers
12367 incorrectly reject 9223372036854775807. */
12368 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12370 && LARGE_OFF_T % 2147483647 == 1)
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 ac_cv_sys_file_offset_bits=no; break
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 #define _FILE_OFFSET_BITS 64
12387 #include <sys/types.h>
12388 /* Check that off_t can represent 2**63 - 1 correctly.
12389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12390 since some C++ compilers masquerading as C compilers
12391 incorrectly reject 9223372036854775807. */
12392 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12394 && LARGE_OFF_T % 2147483647 == 1)
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405 ac_cv_sys_file_offset_bits=64; break
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 ac_cv_sys_file_offset_bits=unknown
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12413 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12414 case $ac_cv_sys_file_offset_bits in #(
12417 cat >>confdefs.h <<_ACEOF
12418 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12423 if test $ac_cv_sys_file_offset_bits = unknown; then
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12425 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12426 if ${ac_cv_sys_large_files+:} false; then :
12427 $as_echo_n "(cached) " >&6
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #include <sys/types.h>
12433 /* Check that off_t can represent 2**63 - 1 correctly.
12434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12435 since some C++ compilers masquerading as C compilers
12436 incorrectly reject 9223372036854775807. */
12437 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12439 && LARGE_OFF_T % 2147483647 == 1)
12449 if ac_fn_c_try_compile "$LINENO"; then :
12450 ac_cv_sys_large_files=no; break
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #define _LARGE_FILES 1
12456 #include <sys/types.h>
12457 /* Check that off_t can represent 2**63 - 1 correctly.
12458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12459 since some C++ compilers masquerading as C compilers
12460 incorrectly reject 9223372036854775807. */
12461 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12463 && LARGE_OFF_T % 2147483647 == 1)
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 ac_cv_sys_large_files=1; break
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 ac_cv_sys_large_files=unknown
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12482 $as_echo "$ac_cv_sys_large_files" >&6; }
12483 case $ac_cv_sys_large_files in #(
12486 cat >>confdefs.h <<_ACEOF
12487 #define _LARGE_FILES $ac_cv_sys_large_files
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12498 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12499 if ${ac_cv_c_bigendian+:} false; then :
12500 $as_echo_n "(cached) " >&6
12502 ac_cv_c_bigendian=unknown
12503 # See if we're dealing with a universal compiler.
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 #ifndef __APPLE_CC__
12507 not a universal capable compiler
12512 if ac_fn_c_try_compile "$LINENO"; then :
12514 # Check for potential -arch flags. It is not universal unless
12515 # there are at least two -arch flags with different values.
12518 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12519 if test -n "$ac_prev"; then
12521 i?86 | x86_64 | ppc | ppc64)
12522 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12525 ac_cv_c_bigendian=universal
12531 elif test "x$ac_word" = "x-arch"; then
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 if test $ac_cv_c_bigendian = unknown; then
12538 # See if sys/param.h defines the BYTE_ORDER macro.
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 #include <sys/types.h>
12542 #include <sys/param.h>
12547 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12548 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12550 bogus endian macros
12557 if ac_fn_c_try_compile "$LINENO"; then :
12558 # It does; now see whether it defined to BIG_ENDIAN or not.
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 #include <sys/types.h>
12562 #include <sys/param.h>
12567 #if BYTE_ORDER != BIG_ENDIAN
12575 if ac_fn_c_try_compile "$LINENO"; then :
12576 ac_cv_c_bigendian=yes
12578 ac_cv_c_bigendian=no
12580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 if test $ac_cv_c_bigendian = unknown; then
12585 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12588 #include <limits.h>
12593 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12594 bogus endian macros
12601 if ac_fn_c_try_compile "$LINENO"; then :
12602 # It does; now see whether it defined to _BIG_ENDIAN or not.
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605 #include <limits.h>
12610 #ifndef _BIG_ENDIAN
12618 if ac_fn_c_try_compile "$LINENO"; then :
12619 ac_cv_c_bigendian=yes
12621 ac_cv_c_bigendian=no
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 if test $ac_cv_c_bigendian = unknown; then
12628 # Compile a test program.
12629 if test "$cross_compiling" = yes; then :
12630 # Try to guess by grepping values from an object file.
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 short int ascii_mm[] =
12634 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12635 short int ascii_ii[] =
12636 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12637 int use_ascii (int i) {
12638 return ascii_mm[i] + ascii_ii[i];
12640 short int ebcdic_ii[] =
12641 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12642 short int ebcdic_mm[] =
12643 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12644 int use_ebcdic (int i) {
12645 return ebcdic_mm[i] + ebcdic_ii[i];
12652 return use_ascii (foo) == use_ebcdic (foo);
12657 if ac_fn_c_try_compile "$LINENO"; then :
12658 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12659 ac_cv_c_bigendian=yes
12661 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12662 if test "$ac_cv_c_bigendian" = unknown; then
12663 ac_cv_c_bigendian=no
12665 # finding both strings is unlikely to happen, but who knows?
12666 ac_cv_c_bigendian=unknown
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 $ac_includes_default
12679 /* Are we little or big endian? From Harbison&Steele. */
12683 char c[sizeof (long int)];
12686 return u.c[sizeof (long int) - 1] == 1;
12692 if ac_fn_c_try_run "$LINENO"; then :
12693 ac_cv_c_bigendian=no
12695 ac_cv_c_bigendian=yes
12697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12698 conftest.$ac_objext conftest.beam conftest.$ac_ext
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12704 $as_echo "$ac_cv_c_bigendian" >&6; }
12705 case $ac_cv_c_bigendian in #(
12707 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12713 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12717 as_fn_error $? "unknown endianness
12718 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12722 ac_config_files="$ac_config_files Makefile lib/Makefile mkfs/Makefile fsck/Makefile tune/Makefile label/Makefile dump/Makefile exfat2img/Makefile"
12725 cat >confcache <<\_ACEOF
12726 # This file is a shell script that caches the results of configure
12727 # tests run on this system so they can be shared between configure
12728 # scripts and configure runs, see configure's option --config-cache.
12729 # It is not useful on other systems. If it contains results you don't
12730 # want to keep, you may remove or edit it.
12732 # config.status only pays attention to the cache file if you give it
12733 # the --recheck option to rerun configure.
12735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12737 # following values.
12741 # The following way of writing the cache mishandles newlines in values,
12742 # but we know of no workaround that is simple, portable, and efficient.
12743 # So, we kill variables containing newlines.
12744 # Ultrix sh set writes to stderr and can't be redirected directly,
12745 # and sets the high bit in the cache file unless we assign to the vars.
12747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12748 eval ac_val=\$$ac_var
12752 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12756 _ | IFS | as_nl) ;; #(
12757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12758 *) { eval $ac_var=; unset $ac_var;} ;;
12764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12765 *${as_nl}ac_space=\ *)
12766 # `set' does not quote correctly, so add quotes: double-quote
12767 # substitution turns \\\\ into \\, and sed turns \\ into \.
12770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12773 # `set' quotes correctly as required by POSIX, so do not add quotes.
12774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12788 if test -w "$cache_file"; then
12789 if test "x$cache_file" != "x/dev/null"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12791 $as_echo "$as_me: updating cache $cache_file" >&6;}
12792 if test ! -f "$cache_file" || test -h "$cache_file"; then
12793 cat confcache >"$cache_file"
12795 case $cache_file in #(
12797 mv -f confcache "$cache_file"$$ &&
12798 mv -f "$cache_file"$$ "$cache_file" ;; #(
12800 mv -f confcache "$cache_file" ;;
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12806 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12812 # Let make expand exec_prefix.
12813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12815 DEFS=-DHAVE_CONFIG_H
12820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12821 # 1. Remove the extension, and $U if already installed.
12822 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12823 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12824 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12825 # will be set to the directory where LIBOBJS objects are built.
12826 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12827 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12829 LIBOBJS=$ac_libobjs
12831 LTLIBOBJS=$ac_ltlibobjs
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12835 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12836 if test -n "$am_sleep_pid"; then
12837 # Hide warnings about reused PIDs.
12838 wait $am_sleep_pid 2>/dev/null
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12841 $as_echo "done" >&6; }
12842 if test -n "$EXEEXT"; then
12844 am__EXEEXT_FALSE='#'
12846 am__EXEEXT_TRUE='#'
12850 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12851 as_fn_error $? "conditional \"AMDEP\" was never defined.
12852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12855 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12860 : "${CONFIG_STATUS=./config.status}"
12862 ac_clean_files_save=$ac_clean_files
12863 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12865 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12867 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12869 # Generated by $as_me.
12870 # Run this file to recreate the current configuration.
12871 # Compiler output produced by configure, useful for debugging
12872 # configure, is in config.log if it exists.
12875 ac_cs_recheck=false
12878 SHELL=\${CONFIG_SHELL-$SHELL}
12881 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12882 ## -------------------- ##
12883 ## M4sh Initialization. ##
12884 ## -------------------- ##
12886 # Be more Bourne compatible
12887 DUALCASE=1; export DUALCASE # for MKS sh
12888 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12891 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12892 # is contrary to our usage. Disable this feature.
12893 alias -g '${1+"$@"}'='"$@"'
12894 setopt NO_GLOB_SUBST
12896 case `(set -o) 2>/dev/null` in #(
12908 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12909 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12911 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12912 # Prefer a ksh shell builtin over an external printf program on Solaris,
12913 # but without wasting forks for bash or zsh.
12914 if test -z "$BASH_VERSION$ZSH_VERSION" \
12915 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12916 as_echo='print -r --'
12917 as_echo_n='print -rn --'
12918 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12919 as_echo='printf %s\n'
12920 as_echo_n='printf %s'
12922 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12923 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12924 as_echo_n='/usr/ucb/echo -n'
12926 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12927 as_echo_n_body='eval
12931 expr "X$arg" : "X\\(.*\\)$as_nl";
12932 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12934 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12936 export as_echo_n_body
12937 as_echo_n='sh -c $as_echo_n_body as_echo'
12939 export as_echo_body
12940 as_echo='sh -c $as_echo_body as_echo'
12943 # The user is always right.
12944 if test "${PATH_SEPARATOR+set}" != set; then
12946 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12947 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12954 # We need space, tab and new line, in precisely that order. Quoting is
12955 # there to prevent editors from complaining about space-tab.
12956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12957 # splitting by setting IFS to empty value.)
12960 # Find who we are. Look in the path if we contain no directory separator.
12963 *[\\/]* ) as_myself=$0 ;;
12964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965 for as_dir in $PATH
12968 test -z "$as_dir" && as_dir=.
12969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12975 # We did not find ourselves, most probably we were run as `sh COMMAND'
12976 # in which case we are not to be found in the path.
12977 if test "x$as_myself" = x; then
12980 if test ! -f "$as_myself"; then
12981 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12985 # Unset variables that we do not need and which cause bugs (e.g. in
12986 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12987 # suppresses any "Segmentation fault" message there. '((' could
12988 # trigger a bug in pdksh 5.2.14.
12989 for as_var in BASH_ENV ENV MAIL MAILPATH
12990 do eval test x\${$as_var+set} = xset \
12991 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13007 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13008 # ----------------------------------------
13009 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13010 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13011 # script with STATUS, using 1 if that was 0.
13014 as_status=$1; test $as_status -eq 0 && as_status=1
13016 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13017 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13019 $as_echo "$as_me: error: $2" >&2
13020 as_fn_exit $as_status
13024 # as_fn_set_status STATUS
13025 # -----------------------
13026 # Set $? to STATUS, without forking.
13027 as_fn_set_status ()
13030 } # as_fn_set_status
13032 # as_fn_exit STATUS
13033 # -----------------
13034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13038 as_fn_set_status $1
13044 # Portably unset VAR.
13047 { eval $1=; unset $1;}
13049 as_unset=as_fn_unset
13050 # as_fn_append VAR VALUE
13051 # ----------------------
13052 # Append the text in VALUE to the end of the definition contained in VAR. Take
13053 # advantage of any shell optimizations that allow amortized linear growth over
13054 # repeated appends, instead of the typical quadratic growth present in naive
13056 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13057 eval 'as_fn_append ()
13068 # as_fn_arith ARG...
13069 # ------------------
13070 # Perform arithmetic evaluation on the ARGs, and store the result in the
13071 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13072 # must be portable across $(()) and expr.
13073 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13074 eval 'as_fn_arith ()
13081 as_val=`expr "$@" || test $? -eq 1`
13086 if expr a : '\(a\)' >/dev/null 2>&1 &&
13087 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13094 as_basename=basename
13099 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13105 as_me=`$as_basename -- "$0" ||
13106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13107 X"$0" : 'X\(//\)$' \| \
13108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13110 sed '/^.*\/\([^/][^/]*\)\/*$/{
13124 # Avoid depending upon Character Ranges.
13125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13128 as_cr_digits='0123456789'
13129 as_cr_alnum=$as_cr_Letters$as_cr_digits
13131 ECHO_C= ECHO_N= ECHO_T=
13132 case `echo -n x` in #(((((
13134 case `echo 'xy\c'` in
13135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13137 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13144 rm -f conf$$ conf$$.exe conf$$.file
13145 if test -d conf$$.dir; then
13146 rm -f conf$$.dir/conf$$.file
13149 mkdir conf$$.dir 2>/dev/null
13151 if (echo >conf$$.file) 2>/dev/null; then
13152 if ln -s conf$$.file conf$$ 2>/dev/null; then
13154 # ... but there are two gotchas:
13155 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13156 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13157 # In both cases, we have to default to `cp -pR'.
13158 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13160 elif ln conf$$.file conf$$ 2>/dev/null; then
13168 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13169 rmdir conf$$.dir 2>/dev/null
13174 # Create "$as_dir" as a directory, including parents if necessary.
13179 -*) as_dir=./$as_dir;;
13181 test -d "$as_dir" || eval $as_mkdir_p || {
13185 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13186 *) as_qdir=$as_dir;;
13188 as_dirs="'$as_qdir' $as_dirs"
13189 as_dir=`$as_dirname -- "$as_dir" ||
13190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13191 X"$as_dir" : 'X\(//\)[^/]' \| \
13192 X"$as_dir" : 'X\(//\)$' \| \
13193 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13194 $as_echo X"$as_dir" |
13195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13199 /^X\(\/\/\)[^/].*/{
13212 test -d "$as_dir" && break
13214 test -z "$as_dirs" || eval "mkdir $as_dirs"
13215 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13219 if mkdir -p . 2>/dev/null; then
13220 as_mkdir_p='mkdir -p "$as_dir"'
13222 test -d ./-p && rmdir ./-p
13227 # as_fn_executable_p FILE
13228 # -----------------------
13229 # Test if FILE is an executable regular file.
13230 as_fn_executable_p ()
13232 test -f "$1" && test -x "$1"
13233 } # as_fn_executable_p
13234 as_test_x='test -x'
13235 as_executable_p=as_fn_executable_p
13237 # Sed expression to map a string onto a valid CPP name.
13238 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13240 # Sed expression to map a string onto a valid variable name.
13241 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13245 ## ----------------------------------- ##
13246 ## Main body of $CONFIG_STATUS script. ##
13247 ## ----------------------------------- ##
13249 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13252 # Save the log message, to keep $0 and so on meaningful, and to
13253 # report actual input values of CONFIG_FILES etc. instead of their
13254 # values after options handling.
13256 This file was extended by exfatprogs $as_me 1.2.3, which was
13257 generated by GNU Autoconf 2.69. Invocation command line was
13259 CONFIG_FILES = $CONFIG_FILES
13260 CONFIG_HEADERS = $CONFIG_HEADERS
13261 CONFIG_LINKS = $CONFIG_LINKS
13262 CONFIG_COMMANDS = $CONFIG_COMMANDS
13265 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13270 case $ac_config_files in *"
13271 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13274 case $ac_config_headers in *"
13275 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 # Files that config.status was made for.
13281 config_files="$ac_config_files"
13282 config_headers="$ac_config_headers"
13283 config_commands="$ac_config_commands"
13287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13289 \`$as_me' instantiates files and other configuration actions
13290 from templates according to the current configuration. Unless the files
13291 and actions are specified as TAGs, all are instantiated by default.
13293 Usage: $0 [OPTION]... [TAG]...
13295 -h, --help print this help, then exit
13296 -V, --version print version number and configuration settings, then exit
13297 --config print configuration, then exit
13298 -q, --quiet, --silent
13299 do not print progress messages
13300 -d, --debug don't remove temporary files
13301 --recheck update $as_me by reconfiguring in the same conditions
13302 --file=FILE[:TEMPLATE]
13303 instantiate the configuration file FILE
13304 --header=FILE[:TEMPLATE]
13305 instantiate the configuration header FILE
13307 Configuration files:
13310 Configuration headers:
13313 Configuration commands:
13316 Report bugs to <linkinjeon@kernel.org>.
13317 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>."
13320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13323 exfatprogs config.status 1.2.3
13324 configured by $0, generated by GNU Autoconf 2.69,
13325 with options \\"\$ac_cs_config\\"
13327 Copyright (C) 2012 Free Software Foundation, Inc.
13328 This config.status script is free software; the Free Software Foundation
13329 gives unlimited permission to copy, distribute and modify it."
13336 test -n "\$AWK" || AWK=awk
13339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340 # The default lists apply if the user does not specify any file.
13346 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13347 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13363 # Handling of the options.
13364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13366 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13367 $as_echo "$ac_cs_version"; exit ;;
13368 --config | --confi | --conf | --con | --co | --c )
13369 $as_echo "$ac_cs_config"; exit ;;
13370 --debug | --debu | --deb | --de | --d | -d )
13372 --file | --fil | --fi | --f )
13375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13376 '') as_fn_error $? "missing file argument" ;;
13378 as_fn_append CONFIG_FILES " '$ac_optarg'"
13379 ac_need_defaults=false;;
13380 --header | --heade | --head | --hea )
13383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13385 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13386 ac_need_defaults=false;;
13388 # Conflict between --help and --header
13389 as_fn_error $? "ambiguous option: \`$1'
13390 Try \`$0 --help' for more information.";;
13391 --help | --hel | -h )
13392 $as_echo "$ac_cs_usage"; exit ;;
13393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13397 # This is an error.
13398 -*) as_fn_error $? "unrecognized option: \`$1'
13399 Try \`$0 --help' for more information." ;;
13401 *) as_fn_append ac_config_targets " $1"
13402 ac_need_defaults=false ;;
13408 ac_configure_extra_args=
13410 if $ac_cs_silent; then
13412 ac_configure_extra_args="$ac_configure_extra_args --silent"
13416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13417 if \$ac_cs_recheck; then
13418 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13421 CONFIG_SHELL='$SHELL'
13422 export CONFIG_SHELL
13427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13432 ## Running $as_me. ##
13438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13445 # The HP-UX ksh and POSIX shell print the target directory to stdout
13446 # if CDPATH is set.
13447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13449 sed_quote_subst='$sed_quote_subst'
13450 double_quote_subst='$double_quote_subst'
13451 delay_variable_subst='$delay_variable_subst'
13452 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13453 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13454 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13455 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13456 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13457 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13458 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13459 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13460 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13461 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13462 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13463 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13464 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13465 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13466 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13467 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13468 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13469 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13470 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13471 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13472 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13473 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13474 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13475 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13476 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13477 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13478 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13479 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13480 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13481 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13483 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13484 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13485 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13486 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13487 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13488 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13489 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13490 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13491 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13492 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13493 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13494 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13495 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13496 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13497 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13498 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13499 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13500 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13501 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13502 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13503 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13504 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13505 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13506 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13507 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13508 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13509 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13510 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"`'
13511 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13512 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13513 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13514 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13515 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13516 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13517 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13518 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13519 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13520 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13521 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13522 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13523 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13524 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13525 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13526 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13527 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13528 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13529 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13530 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13531 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13532 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13533 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13534 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13535 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13536 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13537 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13538 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13539 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13540 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13541 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13542 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13543 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13544 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13545 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13546 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13547 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13548 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13549 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13550 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13551 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13552 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13553 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13554 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13555 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13556 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13557 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13558 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13559 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13560 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13561 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13562 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13563 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13564 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13565 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13566 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13567 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13568 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13569 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13570 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13571 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13572 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13573 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13574 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13575 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13576 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13577 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13578 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13579 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13580 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13581 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13582 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13583 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13584 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13585 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13586 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13589 LTCFLAGS='$LTCFLAGS'
13590 compiler='$compiler_DEFAULT'
13592 # A function that is used when there is no print builtin or printf.
13593 func_fallback_echo ()
13595 eval 'cat <<_LTECHO_EOF
13600 # Quote evaled strings.
13615 deplibs_check_method \
13620 sharedlib_from_linklib_cmd \
13623 archiver_list_spec \
13629 lt_cv_sys_global_symbol_pipe \
13630 lt_cv_sys_global_symbol_to_cdecl \
13631 lt_cv_sys_global_symbol_to_import \
13632 lt_cv_sys_global_symbol_to_c_name_address \
13633 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13634 lt_cv_nm_interface \
13635 nm_file_list_spec \
13636 lt_cv_truncate_bin \
13637 lt_prog_compiler_no_builtin_flag \
13638 lt_prog_compiler_pic \
13639 lt_prog_compiler_wl \
13640 lt_prog_compiler_static \
13641 lt_cv_prog_compiler_c_o \
13650 export_dynamic_flag_spec \
13651 whole_archive_flag_spec \
13652 compiler_needs_object \
13654 allow_undefined_flag \
13655 no_undefined_flag \
13656 hardcode_libdir_flag_spec \
13657 hardcode_libdir_separator \
13661 variables_saved_for_relink \
13663 library_names_spec \
13665 install_override_mode \
13669 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13670 *[\\\\\\\`\\"\\\$]*)
13671 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13674 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13679 # Double-quote double-evaled strings.
13680 for var in reload_cmds \
13681 old_postinstall_cmds \
13682 old_postuninstall_cmds \
13684 extract_expsyms_cmds \
13685 old_archive_from_new_cmds \
13686 old_archive_from_expsyms_cmds \
13688 archive_expsym_cmds \
13690 module_expsym_cmds \
13691 export_symbols_cmds \
13695 postuninstall_cmds \
13697 sys_lib_search_path_spec \
13698 configure_time_dlsearch_path \
13699 configure_time_lt_sys_library_path; do
13700 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13701 *[\\\\\\\`\\"\\\$]*)
13702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13710 ac_aux_dir='$ac_aux_dir'
13712 # See if we are running on zsh, and set the options that allow our
13713 # commands through without removal of \ escapes INIT.
13714 if test -n "\${ZSH_VERSION+set}"; then
13715 setopt NO_GLOB_SUBST
13729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 # Handling of arguments.
13732 for ac_config_target in $ac_config_targets
13734 case $ac_config_target in
13735 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13736 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13737 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13738 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13739 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13740 "mkfs/Makefile") CONFIG_FILES="$CONFIG_FILES mkfs/Makefile" ;;
13741 "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
13742 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
13743 "label/Makefile") CONFIG_FILES="$CONFIG_FILES label/Makefile" ;;
13744 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
13745 "exfat2img/Makefile") CONFIG_FILES="$CONFIG_FILES exfat2img/Makefile" ;;
13747 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13752 # If the user did not use the arguments to specify the items to instantiate,
13753 # then the envvar interface is used. Set only those that are not.
13754 # We use the long form for the default assignment because of an extremely
13755 # bizarre bug on SunOS 4.1.3.
13756 if $ac_need_defaults; then
13757 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13758 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13759 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13762 # Have a temporary directory for convenience. Make it in the build tree
13763 # simply because there is no reason against having it here, and in addition,
13764 # creating and moving files from /tmp can sometimes cause problems.
13765 # Hook for its removal unless debugging.
13766 # Note that there is a small window in which the directory will not be cleaned:
13767 # after its creation but before its name has been assigned to `$tmp'.
13771 trap 'exit_status=$?
13772 : "${ac_tmp:=$tmp}"
13773 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13775 trap 'as_fn_exit 1' 1 2 13 15
13777 # Create a (secure) tmp directory for tmp files.
13780 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13784 tmp=./conf$$-$RANDOM
13785 (umask 077 && mkdir "$tmp")
13786 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13789 # Set up the scripts for CONFIG_FILES section.
13790 # No need to generate them if there are no CONFIG_FILES.
13791 # This happens for instance with `./config.status config.h'.
13792 if test -n "$CONFIG_FILES"; then
13795 ac_cr=`echo X | tr X '\015'`
13796 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13797 # But we know of no other shell where ac_cr would be empty at this
13798 # point, so we can use a bashism as a fallback.
13799 if test "x$ac_cr" = x; then
13800 eval ac_cr=\$\'\\r\'
13802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13806 ac_cs_awk_cr=$ac_cr
13809 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13814 echo "cat >conf$$subs.awk <<_ACEOF" &&
13815 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13817 } >conf$$subs.sh ||
13818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13819 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13821 for ac_last_try in false false false false false :; do
13822 . ./conf$$subs.sh ||
13823 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13825 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13826 if test $ac_delim_n = $ac_delim_num; then
13828 elif $ac_last_try; then
13829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13831 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13834 rm -f conf$$subs.sh
13836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13837 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13841 s/^/S["/; s/!.*/"]=/
13851 s/\(.\{148\}\)..*/\1/
13853 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13865 s/\(.\{148\}\)..*/\1/
13867 s/["\\]/\\&/g; s/^/"/; s/$/"/
13871 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13876 ' <conf$$subs.awk | sed '
13881 ' >>$CONFIG_STATUS || ac_write_fail=1
13882 rm -f conf$$subs.awk
13883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13886 for (key in S) S_is_set[key] = 1
13892 nfields = split(line, field, "@")
13894 len = length(field[1])
13895 for (i = 2; i < nfields; i++) {
13897 keylen = length(key)
13898 if (S_is_set[key]) {
13900 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13901 len += length(value) + length(field[++i])
13912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13913 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13914 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13917 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13918 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13921 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13922 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13923 # trailing colons and then remove the whole line if VPATH becomes empty
13924 # (actually we leave an empty line to preserve line numbers).
13925 if test "x$srcdir" = x.; then
13926 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13945 fi # test -n "$CONFIG_FILES"
13947 # Set up the scripts for CONFIG_HEADERS section.
13948 # No need to generate them if there are no CONFIG_HEADERS.
13949 # This happens for instance with `./config.status Makefile'.
13950 if test -n "$CONFIG_HEADERS"; then
13951 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13955 # Transform confdefs.h into an awk script `defines.awk', embedded as
13956 # here-document in config.status, that substitutes the proper values into
13957 # config.h.in to produce config.h.
13959 # Create a delimiter string that does not exist in confdefs.h, to ease
13960 # handling of long lines.
13962 for ac_last_try in false false :; do
13963 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13964 if test -z "$ac_tt"; then
13966 elif $ac_last_try; then
13967 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13973 # For the awk script, D is an array of macro values keyed by name,
13974 # likewise P contains macro parameters if any. Preserve backslash
13975 # newline sequences.
13977 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13979 s/.\{148\}/&'"$ac_delim"'/g
13982 s/^[ ]*#[ ]*define[ ][ ]*/ /
13989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13991 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13995 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13996 D["\1"]=" \3\\\\\\n"\\/p
13998 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14003 s/.\{148\}/&'"$ac_delim"'/g
14008 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14011 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14013 ' <confdefs.h | sed '
14014 s/'"$ac_delim"'/"\\\
14015 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14018 for (key in D) D_is_set[key] = 1
14021 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14023 split(line, arg, " ")
14024 if (arg[1] == "#") {
14028 defundef = substr(arg[1], 2)
14031 split(mac1, mac2, "(") #)
14033 prefix = substr(line, 1, index(line, defundef) - 1)
14034 if (D_is_set[macro]) {
14035 # Preserve the white space surrounding the "#".
14036 print prefix "define", macro P[macro] D[macro]
14039 # Replace #undef with comments. This is necessary, for example,
14040 # in the case of _POSIX_SOURCE, which is predefined and required
14041 # on some systems where configure will not decide to define it.
14042 if (defundef == "undef") {
14043 print "/*", prefix defundef, macro, "*/"
14051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14052 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14053 fi # test -n "$CONFIG_HEADERS"
14056 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14061 :[FHLC]) ac_mode=$ac_tag; continue;;
14063 case $ac_mode$ac_tag in
14065 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14066 :[FH]-) ac_tag=-:-;;
14067 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14084 -) ac_f="$ac_tmp/stdin";;
14085 *) # Look for the file first in the build tree, then in the source tree
14086 # (if the path is not absolute). The absolute path cannot be DOS-style,
14087 # because $ac_f cannot contain `:'.
14091 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14093 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14095 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14096 as_fn_append ac_file_inputs " '$ac_f'"
14099 # Let's still pretend it is `configure' which instantiates (i.e., don't
14100 # use $as_me), people would be surprised to read:
14101 # /* config.h. Generated by config.status. */
14102 configure_input='Generated from '`
14103 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14105 if test x"$ac_file" != x-; then
14106 configure_input="$ac_file. $configure_input"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14108 $as_echo "$as_me: creating $ac_file" >&6;}
14110 # Neutralize special characters interpreted by sed in replacement strings.
14111 case $configure_input in #(
14112 *\&* | *\|* | *\\* )
14113 ac_sed_conf_input=`$as_echo "$configure_input" |
14114 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14115 *) ac_sed_conf_input=$configure_input;;
14119 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14120 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14125 ac_dir=`$as_dirname -- "$ac_file" ||
14126 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14127 X"$ac_file" : 'X\(//\)[^/]' \| \
14128 X"$ac_file" : 'X\(//\)$' \| \
14129 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14130 $as_echo X"$ac_file" |
14131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14135 /^X\(\/\/\)[^/].*/{
14148 as_dir="$ac_dir"; as_fn_mkdir_p
14152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14154 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14155 # A ".." for each directory in $ac_dir_suffix.
14156 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14157 case $ac_top_builddir_sub in
14158 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14159 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14162 ac_abs_top_builddir=$ac_pwd
14163 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14164 # for backward compatibility:
14165 ac_top_builddir=$ac_top_build_prefix
14168 .) # We are building in place.
14170 ac_top_srcdir=$ac_top_builddir_sub
14171 ac_abs_top_srcdir=$ac_pwd ;;
14172 [\\/]* | ?:[\\/]* ) # Absolute name.
14173 ac_srcdir=$srcdir$ac_dir_suffix;
14174 ac_top_srcdir=$srcdir
14175 ac_abs_top_srcdir=$srcdir ;;
14176 *) # Relative name.
14177 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14178 ac_top_srcdir=$ac_top_build_prefix$srcdir
14179 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14181 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14191 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14192 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14194 ac_MKDIR_P=$MKDIR_P
14196 [\\/$]* | ?:[\\/]* ) ;;
14197 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202 # If the template does not know about datarootdir, expand it.
14203 # FIXME: This hack should be removed a few years after 2.60.
14204 ac_datarootdir_hack=; ac_datarootdir_seen=
14215 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14216 *datarootdir*) ac_datarootdir_seen=yes;;
14217 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14219 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14222 ac_datarootdir_hack='
14223 s&@datadir@&$datadir&g
14224 s&@docdir@&$docdir&g
14225 s&@infodir@&$infodir&g
14226 s&@localedir@&$localedir&g
14227 s&@mandir@&$mandir&g
14228 s&\\\${datarootdir}&$datarootdir&g' ;;
14232 # Neutralize VPATH when `$srcdir' = `.'.
14233 # Shell code in configure.ac might set extrasub.
14234 # FIXME: do we really want to maintain this feature?
14235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14236 ac_sed_extra="$ac_vpsub
14239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14242 s|@configure_input@|$ac_sed_conf_input|;t t
14243 s&@top_builddir@&$ac_top_builddir_sub&;t t
14244 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14245 s&@srcdir@&$ac_srcdir&;t t
14246 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14247 s&@top_srcdir@&$ac_top_srcdir&;t t
14248 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14249 s&@builddir@&$ac_builddir&;t t
14250 s&@abs_builddir@&$ac_abs_builddir&;t t
14251 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14252 s&@INSTALL@&$ac_INSTALL&;t t
14253 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14254 $ac_datarootdir_hack
14256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14257 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14262 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14264 which seems to be undefined. Please make sure it is defined" >&5
14265 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14266 which seems to be undefined. Please make sure it is defined" >&2;}
14268 rm -f "$ac_tmp/stdin"
14270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14279 if test x"$ac_file" != x-; then
14281 $as_echo "/* $configure_input */" \
14282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14283 } >"$ac_tmp/config.h" \
14284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14287 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14290 mv "$ac_tmp/config.h" "$ac_file" \
14291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14294 $as_echo "/* $configure_input */" \
14295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14296 || as_fn_error $? "could not create -" "$LINENO" 5
14298 # Compute "$ac_file"'s index in $config_headers.
14301 for _am_header in $config_headers :; do
14302 case $_am_header in
14303 $_am_arg | $_am_arg:* )
14306 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14309 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14310 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14311 X"$_am_arg" : 'X\(//\)[^/]' \| \
14312 X"$_am_arg" : 'X\(//\)$' \| \
14313 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14314 $as_echo X"$_am_arg" |
14315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14319 /^X\(\/\/\)[^/].*/{
14331 s/.*/./; q'`/stamp-h$_am_stamp_count
14334 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14335 $as_echo "$as_me: executing $ac_file commands" >&6;}
14340 case $ac_file$ac_mode in
14341 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14342 # Older Autoconf quotes --file arguments for eval, but not when files
14343 # are listed without --file. Let's play safe and only enable the eval
14344 # if we detect the quoting.
14345 case $CONFIG_FILES in
14346 *\'*) eval set x "$CONFIG_FILES" ;;
14347 *) set x $CONFIG_FILES ;;
14352 # Strip MF so we end up with the name of the file.
14353 mf=`echo "$mf" | sed -e 's/:.*$//'`
14354 # Check whether this is an Automake generated Makefile or not.
14355 # We used to match only the files named 'Makefile.in', but
14356 # some people rename them; so instead we look at the file content.
14357 # Grep'ing the first line is not enough: some people post-process
14358 # each Makefile.in and add a new line on top of each file to say so.
14359 # Grep'ing the whole file is not good either: AIX grep has a line
14360 # limit of 2048, but all sed's we know have understand at least 4000.
14361 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14362 dirpart=`$as_dirname -- "$mf" ||
14363 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$mf" : 'X\(//\)[^/]' \| \
14365 X"$mf" : 'X\(//\)$' \| \
14366 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14372 /^X\(\/\/\)[^/].*/{
14388 # Extract the definition of DEPDIR, am__include, and am__quote
14389 # from the Makefile without running 'make'.
14390 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14391 test -z "$DEPDIR" && continue
14392 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14393 test -z "$am__include" && continue
14394 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14395 # Find all dependency output files, they are included files with
14396 # $(DEPDIR) in their names. We invoke sed twice because it is the
14397 # simplest approach to changing $(DEPDIR) to its actual value in the
14399 for file in `sed -n "
14400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14402 # Make sure the directory exists.
14403 test -f "$dirpart/$file" && continue
14404 fdir=`$as_dirname -- "$file" ||
14405 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14406 X"$file" : 'X\(//\)[^/]' \| \
14407 X"$file" : 'X\(//\)$' \| \
14408 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14409 $as_echo X"$file" |
14410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14414 /^X\(\/\/\)[^/].*/{
14427 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14428 # echo "creating $dirpart/$file"
14429 echo '# dummy' > "$dirpart/$file"
14436 # See if we are running on zsh, and set the options that allow our
14437 # commands through without removal of \ escapes.
14438 if test -n "${ZSH_VERSION+set}"; then
14439 setopt NO_GLOB_SUBST
14443 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14446 cat <<_LT_EOF >> "$cfgfile"
14448 # Generated automatically by $as_me ($PACKAGE) $VERSION
14449 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14451 # Provide generalized library-building support services.
14452 # Written by Gordon Matzigkeit, 1996
14454 # Copyright (C) 2014 Free Software Foundation, Inc.
14455 # This is free software; see the source for copying conditions. There is NO
14456 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14458 # GNU Libtool is free software; you can redistribute it and/or modify
14459 # it under the terms of the GNU General Public License as published by
14460 # the Free Software Foundation; either version 2 of of the License, or
14461 # (at your option) any later version.
14463 # As a special exception to the GNU General Public License, if you
14464 # distribute this file as part of a program or library that is built
14465 # using GNU Libtool, you may include this file under the same
14466 # distribution terms that you use for the rest of that program.
14468 # GNU Libtool is distributed in the hope that it will be useful, but
14469 # WITHOUT ANY WARRANTY; without even the implied warranty of
14470 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14471 # GNU General Public License for more details.
14473 # You should have received a copy of the GNU General Public License
14474 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14477 # The names of the tagged configurations supported by this script.
14480 # Configured defaults for sys_lib_dlsearch_path munging.
14481 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14483 # ### BEGIN LIBTOOL CONFIG
14485 # Which release of libtool.m4 was used?
14486 macro_version=$macro_version
14487 macro_revision=$macro_revision
14489 # Whether or not to build shared libraries.
14490 build_libtool_libs=$enable_shared
14492 # Whether or not to build static libraries.
14493 build_old_libs=$enable_static
14495 # What type of objects to build.
14498 # Whether or not to optimize for fast installation.
14499 fast_install=$enable_fast_install
14501 # Shared archive member basename,for filename based shared library versioning on AIX.
14502 shared_archive_member_spec=$shared_archive_member_spec
14504 # Shell to use when invoking shell scripts.
14507 # An echo program that protects backslashes.
14510 # The PATH separator for the build system.
14511 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14514 host_alias=$host_alias
14518 # The build system.
14519 build_alias=$build_alias
14523 # A sed program that does not truncate output.
14526 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14527 Xsed="\$SED -e 1s/^X//"
14529 # A grep program that handles long lines.
14535 # A literal string matcher.
14538 # A BSD- or MS-compatible name lister.
14541 # Whether we need soft or hard links.
14544 # What is the maximum length of a command?
14545 max_cmd_len=$max_cmd_len
14547 # Object file suffix (normally "o").
14550 # Executable file suffix (normally "").
14553 # whether the shell understands "unset".
14556 # turn spaces into newlines.
14559 # turn newlines into spaces.
14562 # convert \$build file names to \$host format.
14563 to_host_file_cmd=$lt_cv_to_host_file_cmd
14565 # convert \$build files to toolchain format.
14566 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14568 # An object symbol dumper.
14569 OBJDUMP=$lt_OBJDUMP
14571 # Method to check whether dependent libraries are shared objects.
14572 deplibs_check_method=$lt_deplibs_check_method
14574 # Command to use when deplibs_check_method = "file_magic".
14575 file_magic_cmd=$lt_file_magic_cmd
14577 # How to find potential files when deplibs_check_method = "file_magic".
14578 file_magic_glob=$lt_file_magic_glob
14580 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14581 want_nocaseglob=$lt_want_nocaseglob
14583 # DLL creation program.
14584 DLLTOOL=$lt_DLLTOOL
14586 # Command to associate shared and link libraries.
14587 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14592 # Flags to create an archive.
14593 AR_FLAGS=$lt_AR_FLAGS
14595 # How to feed a file listing to the archiver.
14596 archiver_list_spec=$lt_archiver_list_spec
14598 # A symbol stripping program.
14601 # Commands used to install an old-style archive.
14603 old_postinstall_cmds=$lt_old_postinstall_cmds
14604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14606 # Whether to use a lock for old archive extraction.
14607 lock_old_archive_extraction=$lock_old_archive_extraction
14612 # LTCC compiler flags.
14613 LTCFLAGS=$lt_CFLAGS
14615 # Take the output of nm and produce a listing of raw symbols and C names.
14616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14618 # Transform the output of nm in a proper C declaration.
14619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14621 # Transform the output of nm into a list of symbols to manually relocate.
14622 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14624 # Transform the output of nm in a C name address pair.
14625 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14627 # Transform the output of nm in a C name address pair when lib prefix is needed.
14628 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14630 # The name lister interface.
14631 nm_interface=$lt_lt_cv_nm_interface
14633 # Specify filename containing input files for \$NM.
14634 nm_file_list_spec=$lt_nm_file_list_spec
14636 # The root where to search for dependent libraries,and where our libraries should be installed.
14637 lt_sysroot=$lt_sysroot
14639 # Command to truncate a binary pipe.
14640 lt_truncate_bin=$lt_lt_cv_truncate_bin
14642 # The name of the directory that contains temporary libtool files.
14645 # Used to examine libraries when file_magic_cmd begins with "file".
14646 MAGIC_CMD=$MAGIC_CMD
14648 # Must we lock files when doing compilation?
14649 need_locks=$lt_need_locks
14652 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14654 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14655 DSYMUTIL=$lt_DSYMUTIL
14657 # Tool to change global to local symbols on Mac OS X.
14660 # Tool to manipulate fat objects and archives on Mac OS X.
14663 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14666 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14667 OTOOL64=$lt_OTOOL64
14669 # Old archive suffix (normally "a").
14672 # Shared library suffix (normally ".so").
14673 shrext_cmds=$lt_shrext_cmds
14675 # The commands to extract the exported symbol list from a shared archive.
14676 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14678 # Variables whose values should be saved in libtool wrapper scripts and
14679 # restored at link time.
14680 variables_saved_for_relink=$lt_variables_saved_for_relink
14682 # Do we need the "lib" prefix for modules?
14683 need_lib_prefix=$need_lib_prefix
14685 # Do we need a version for libraries?
14686 need_version=$need_version
14688 # Library versioning type.
14689 version_type=$version_type
14691 # Shared library runtime path variable.
14692 runpath_var=$runpath_var
14694 # Shared library path variable.
14695 shlibpath_var=$shlibpath_var
14697 # Is shlibpath searched before the hard-coded library search path?
14698 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14700 # Format of library name prefix.
14701 libname_spec=$lt_libname_spec
14703 # List of archive names. First name is the real one, the rest are links.
14704 # The last name is the one that the linker finds with -lNAME
14705 library_names_spec=$lt_library_names_spec
14707 # The coded name of the library, if different from the real name.
14708 soname_spec=$lt_soname_spec
14710 # Permission mode override for installation of shared libraries.
14711 install_override_mode=$lt_install_override_mode
14713 # Command to use after installation of a shared archive.
14714 postinstall_cmds=$lt_postinstall_cmds
14716 # Command to use after uninstallation of a shared archive.
14717 postuninstall_cmds=$lt_postuninstall_cmds
14719 # Commands used to finish a libtool library installation in a directory.
14720 finish_cmds=$lt_finish_cmds
14722 # As "finish_cmds", except a single script fragment to be evaled but
14724 finish_eval=$lt_finish_eval
14726 # Whether we should hardcode library paths into libraries.
14727 hardcode_into_libs=$hardcode_into_libs
14729 # Compile-time system search path for libraries.
14730 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14732 # Detected run-time system search path for libraries.
14733 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14735 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14736 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14738 # Whether dlopen is supported.
14739 dlopen_support=$enable_dlopen
14741 # Whether dlopen of programs is supported.
14742 dlopen_self=$enable_dlopen_self
14744 # Whether dlopen of statically linked programs is supported.
14745 dlopen_self_static=$enable_dlopen_self_static
14747 # Commands to strip libraries.
14748 old_striplib=$lt_old_striplib
14749 striplib=$lt_striplib
14752 # The linker used to build libraries.
14755 # How to create reloadable object files.
14756 reload_flag=$lt_reload_flag
14757 reload_cmds=$lt_reload_cmds
14759 # Commands used to build an old-style archive.
14760 old_archive_cmds=$lt_old_archive_cmds
14762 # A language specific compiler.
14765 # Is the compiler the GNU compiler?
14768 # Compiler flag to turn off builtin functions.
14769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14771 # Additional compiler flags for building library objects.
14772 pic_flag=$lt_lt_prog_compiler_pic
14774 # How to pass a linker flag through the compiler.
14775 wl=$lt_lt_prog_compiler_wl
14777 # Compiler flag to prevent dynamic linking.
14778 link_static_flag=$lt_lt_prog_compiler_static
14780 # Does compiler simultaneously support -c and -o options?
14781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14783 # Whether or not to add -lc for building shared libraries.
14784 build_libtool_need_lc=$archive_cmds_need_lc
14786 # Whether or not to disallow shared libs when runtime libs are static.
14787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14789 # Compiler flag to allow reflexive dlopens.
14790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14792 # Compiler flag to generate shared objects directly from archives.
14793 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14795 # Whether the compiler copes with passing no objects directly.
14796 compiler_needs_object=$lt_compiler_needs_object
14798 # Create an old-style archive from a shared archive.
14799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14801 # Create a temporary old-style archive to link instead of a shared archive.
14802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14804 # Commands used to build a shared archive.
14805 archive_cmds=$lt_archive_cmds
14806 archive_expsym_cmds=$lt_archive_expsym_cmds
14808 # Commands used to build a loadable module if different from building
14809 # a shared archive.
14810 module_cmds=$lt_module_cmds
14811 module_expsym_cmds=$lt_module_expsym_cmds
14813 # Whether we are building with GNU ld or not.
14814 with_gnu_ld=$lt_with_gnu_ld
14816 # Flag that allows shared libraries with undefined symbols to be built.
14817 allow_undefined_flag=$lt_allow_undefined_flag
14819 # Flag that enforces no undefined symbols.
14820 no_undefined_flag=$lt_no_undefined_flag
14822 # Flag to hardcode \$libdir into a binary during linking.
14823 # This must work even if \$libdir does not exist
14824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14826 # Whether we need a single "-rpath" flag with a separated argument.
14827 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14829 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14830 # DIR into the resulting binary.
14831 hardcode_direct=$hardcode_direct
14833 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14834 # DIR into the resulting binary and the resulting library dependency is
14835 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14836 # library is relocated.
14837 hardcode_direct_absolute=$hardcode_direct_absolute
14839 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14840 # into the resulting binary.
14841 hardcode_minus_L=$hardcode_minus_L
14843 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14844 # into the resulting binary.
14845 hardcode_shlibpath_var=$hardcode_shlibpath_var
14847 # Set to "yes" if building a shared library automatically hardcodes DIR
14848 # into the library and all subsequent libraries and executables linked
14850 hardcode_automatic=$hardcode_automatic
14852 # Set to yes if linker adds runtime paths of dependent libraries
14853 # to runtime path list.
14854 inherit_rpath=$inherit_rpath
14856 # Whether libtool must link a program against all its dependency libraries.
14857 link_all_deplibs=$link_all_deplibs
14859 # Set to "yes" if exported symbols are required.
14860 always_export_symbols=$always_export_symbols
14862 # The commands to list exported symbols.
14863 export_symbols_cmds=$lt_export_symbols_cmds
14865 # Symbols that should not be listed in the preloaded symbols.
14866 exclude_expsyms=$lt_exclude_expsyms
14868 # Symbols that must always be exported.
14869 include_expsyms=$lt_include_expsyms
14871 # Commands necessary for linking programs (against libraries) with templates.
14872 prelink_cmds=$lt_prelink_cmds
14874 # Commands necessary for finishing linking programs.
14875 postlink_cmds=$lt_postlink_cmds
14877 # Specify filename containing input files.
14878 file_list_spec=$lt_file_list_spec
14880 # How to hardcode a shared library path into an executable.
14881 hardcode_action=$hardcode_action
14883 # ### END LIBTOOL CONFIG
14887 cat <<'_LT_EOF' >> "$cfgfile"
14889 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14891 # func_munge_path_list VARIABLE PATH
14892 # -----------------------------------
14893 # VARIABLE is name of variable containing _space_ separated list of
14894 # directories to be munged by the contents of PATH, which is string
14897 # string "DIR[ DIR]" will be prepended to VARIABLE
14899 # string "DIR[ DIR]" will be appended to VARIABLE
14900 # "DIRP[:DIRP]::[DIRA:]DIRA"
14901 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14902 # "DIRA[ DIRA]" will be appended to VARIABLE
14904 # VARIABLE will be replaced by "DIR[ DIR]"
14905 func_munge_path_list ()
14911 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14914 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14917 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14918 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14921 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14927 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14928 func_cc_basename ()
14930 for cc_temp in $*""; do
14932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14938 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14942 # ### END FUNCTIONS SHARED WITH CONFIGURE
14948 cat <<\_LT_EOF >> "$cfgfile"
14949 # AIX sometimes has problems with the GCC collect2 program. For some
14950 # reason, if we set the COLLECT_NAMES environment variable, the problems
14951 # vanish in a puff of smoke.
14952 if test set != "${COLLECT_NAMES+set}"; then
14954 export COLLECT_NAMES
14961 ltmain=$ac_aux_dir/ltmain.sh
14964 # We use sed instead of cat because bash on DJGPP gets confused if
14965 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14966 # text mode, it properly converts lines to CR/LF. This bash problem
14967 # is reportedly fixed, but why not run on old versions too?
14968 sed '$q' "$ltmain" >> "$cfgfile" \
14969 || (rm -f "$cfgfile"; exit 1)
14971 mv -f "$cfgfile" "$ofile" ||
14972 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14983 ac_clean_files=$ac_clean_files_save
14985 test $ac_write_fail = 0 ||
14986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14989 # configure is writing to config.log, and then calls config.status.
14990 # config.status does its own redirection, appending to config.log.
14991 # Unfortunately, on DOS this fails, as config.log is still kept open
14992 # by configure, so config.status won't be able to write to it; its
14993 # output is simply discarded. So we exec the FD to /dev/null,
14994 # effectively closing config.log, so it can be properly (re)opened and
14995 # appended to by config.status. When coming back to configure, we
14996 # need to make the FD available again.
14997 if test "$no_create" != yes; then
14999 ac_config_status_args=
15000 test "$silent" = yes &&
15001 ac_config_status_args="$ac_config_status_args --quiet"
15003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15006 # would make configure fail if this is the last instruction.
15007 $ac_cs_success || as_fn_exit 1
15009 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15011 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}