2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for exfatprogs 1.2.1.
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.1'
594 PACKAGE_STRING='exfatprogs 1.2.1'
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
698 INSTALL_STRIP_PROGRAM
741 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.1 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.1:";;
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.1
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.1, 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.16'
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 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2688 # <https://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: <https://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"
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3694 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3695 cat > confinc.mk << 'END'
3697 @echo this is the am__doit target >confinc.out
3702 # BSD make does it like this.
3703 echo '.include "confinc.mk" # ignored' > confmf.BSD
3704 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3705 echo 'include confinc.mk # ignored' > confmf.GNU
3707 for s in GNU BSD; do
3708 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3709 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }
3713 case $?:`cat confinc.out 2>/dev/null` in #(
3714 '0:this is the am__doit target') :
3717 am__include='.include' am__quote='"' ;; #(
3719 am__include='include' am__quote='' ;;
3724 if test "$am__include" != "#"; then
3725 _am_result="yes ($s style)"
3729 rm -f confinc.* confmf.*
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3731 $as_echo "${_am_result}" >&6; }
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 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6386 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6387 # Try sorting and uniquifying the output.
6388 if sort "$nlist" | uniq > "$nlist"T; then
6389 mv -f "$nlist"T "$nlist"
6394 # Make sure that we snagged all the symbols we need.
6395 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6396 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6397 cat <<_LT_EOF > conftest.$ac_ext
6398 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6399 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6400 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6401 relocations are performed -- see ld's documentation on pseudo-relocs. */
6402 # define LT_DLSYM_CONST
6403 #elif defined __osf__
6404 /* This system does not cope well with relocations in const data. */
6405 # define LT_DLSYM_CONST
6407 # define LT_DLSYM_CONST const
6415 # Now generate the symbol file.
6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6418 cat <<_LT_EOF >> conftest.$ac_ext
6420 /* The mapping between symbol names and symbols. */
6421 LT_DLSYM_CONST struct {
6425 lt__PROGRAM__LTX_preloaded_symbols[] =
6427 { "@PROGRAM@", (void *) 0 },
6429 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6430 cat <<\_LT_EOF >> conftest.$ac_ext
6434 /* This works around a problem in FreeBSD linker */
6435 #ifdef FREEBSD_WORKAROUND
6436 static const void *lt_preloaded_setup() {
6437 return lt__PROGRAM__LTX_preloaded_symbols;
6445 # Now try linking the two files.
6446 mv conftest.$ac_objext conftstm.$ac_objext
6447 lt_globsym_save_LIBS=$LIBS
6448 lt_globsym_save_CFLAGS=$CFLAGS
6449 LIBS=conftstm.$ac_objext
6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6452 (eval $ac_link) 2>&5
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6458 LIBS=$lt_globsym_save_LIBS
6459 CFLAGS=$lt_globsym_save_CFLAGS
6461 echo "cannot find nm_test_func in $nlist" >&5
6464 echo "cannot find nm_test_var in $nlist" >&5
6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6470 echo "$progname: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6473 rm -rf conftest* conftst*
6475 # Do not use the global_symbol_pipe unless it works.
6476 if test yes = "$pipe_works"; then
6479 lt_cv_sys_global_symbol_pipe=
6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6486 lt_cv_sys_global_symbol_to_cdecl=
6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6490 $as_echo "failed" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6493 $as_echo "ok" >&6; }
6496 # Response file support.
6497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6498 nm_file_list_spec='@'
6499 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6500 nm_file_list_spec='@'
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6540 $as_echo_n "checking for sysroot... " >&6; }
6542 # Check whether --with-sysroot was given.
6543 if test "${with_sysroot+set}" = set; then :
6544 withval=$with_sysroot;
6551 case $with_sysroot in #(
6553 if test yes = "$GCC"; then
6554 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6558 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6564 $as_echo "$with_sysroot" >&6; }
6565 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6570 $as_echo "${lt_sysroot:-no}" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6577 $as_echo_n "checking for a working dd... " >&6; }
6578 if ${ac_cv_path_lt_DD+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 printf 0123456789abcdef0123456789abcdef >conftest.i
6582 cat conftest.i conftest.i >conftest2.i
6584 if test -z "$lt_DD"; then
6585 ac_path_lt_DD_found=false
6586 # Loop through the user's path and test for each of PROGNAME-LIST
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_prog in dd; do
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6595 as_fn_executable_p "$ac_path_lt_DD" || continue
6596 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6597 cmp -s conftest.i conftest.out \
6598 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6600 $ac_path_lt_DD_found && break 3
6605 if test -z "$ac_cv_path_lt_DD"; then
6609 ac_cv_path_lt_DD=$lt_DD
6612 rm -f conftest.i conftest2.i conftest.out
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6615 $as_echo "$ac_cv_path_lt_DD" >&6; }
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6619 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6620 if ${lt_cv_truncate_bin+:} false; then :
6621 $as_echo_n "(cached) " >&6
6623 printf 0123456789abcdef0123456789abcdef >conftest.i
6624 cat conftest.i conftest.i >conftest2.i
6626 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6627 cmp -s conftest.i conftest.out \
6628 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6630 rm -f conftest.i conftest2.i conftest.out
6631 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6634 $as_echo "$lt_cv_truncate_bin" >&6; }
6642 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6645 for cc_temp in $*""; do
6647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6653 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6656 # Check whether --enable-libtool-lock was given.
6657 if test "${enable_libtool_lock+set}" = set; then :
6658 enableval=$enable_libtool_lock;
6661 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6663 # Some flags need to be propagated to the compiler or linker for good
6667 # Find out what ABI is being produced by ac_compile, and set mode
6668 # options accordingly.
6669 echo 'int i;' > conftest.$ac_ext
6670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671 (eval $ac_compile) 2>&5
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }; then
6675 case `/usr/bin/file conftest.$ac_objext` in
6687 # Find out what ABI is being produced by ac_compile, and set linker
6688 # options accordingly.
6689 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6691 (eval $ac_compile) 2>&5
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; }; then
6695 if test yes = "$lt_cv_prog_gnu_ld"; then
6696 case `/usr/bin/file conftest.$ac_objext` in
6698 LD="${LD-ld} -melf32bsmip"
6701 LD="${LD-ld} -melf32bmipn32"
6704 LD="${LD-ld} -melf64bmip"
6708 case `/usr/bin/file conftest.$ac_objext` in
6725 # Find out what ABI is being produced by ac_compile, and set linker
6726 # options accordingly.
6727 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6729 (eval $ac_compile) 2>&5
6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6732 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6742 case `/usr/bin/file conftest.$ac_objext` in
6744 emul="${emul}btsmip"
6747 emul="${emul}ltsmip"
6750 case `/usr/bin/file conftest.$ac_objext` in
6755 LD="${LD-ld} -m $emul"
6760 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6761 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6762 # Find out what ABI is being produced by ac_compile, and set linker
6763 # options accordingly. Note that the listed cases only cover the
6764 # situations where additional linker options are needed (such as when
6765 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6766 # vice versa); the common cases where no linker options are needed do
6767 # not appear in the list.
6768 echo 'int i;' > conftest.$ac_ext
6769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770 (eval $ac_compile) 2>&5
6772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }; then
6774 case `/usr/bin/file conftest.o` in
6777 x86_64-*kfreebsd*-gnu)
6778 LD="${LD-ld} -m elf_i386_fbsd"
6781 case `/usr/bin/file conftest.o` in
6783 LD="${LD-ld} -m elf32_x86_64"
6786 LD="${LD-ld} -m elf_i386"
6790 powerpc64le-*linux*)
6791 LD="${LD-ld} -m elf32lppclinux"
6794 LD="${LD-ld} -m elf32ppclinux"
6797 LD="${LD-ld} -m elf_s390"
6800 LD="${LD-ld} -m elf32_sparc"
6806 x86_64-*kfreebsd*-gnu)
6807 LD="${LD-ld} -m elf_x86_64_fbsd"
6810 LD="${LD-ld} -m elf_x86_64"
6813 LD="${LD-ld} -m elf64lppc"
6816 LD="${LD-ld} -m elf64ppc"
6818 s390*-*linux*|s390*-*tpf*)
6819 LD="${LD-ld} -m elf64_s390"
6822 LD="${LD-ld} -m elf64_sparc"
6832 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6834 CFLAGS="$CFLAGS -belf"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6836 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6837 if ${lt_cv_cc_needs_belf+:} false; then :
6838 $as_echo_n "(cached) " >&6
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6857 if ac_fn_c_try_link "$LINENO"; then :
6858 lt_cv_cc_needs_belf=yes
6860 lt_cv_cc_needs_belf=no
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6865 ac_cpp='$CPP $CPPFLAGS'
6866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6872 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6873 if test yes != "$lt_cv_cc_needs_belf"; then
6874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6879 # Find out what ABI is being produced by ac_compile, and set linker
6880 # options accordingly.
6881 echo 'int i;' > conftest.$ac_ext
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 case `/usr/bin/file conftest.o` in
6889 case $lt_cv_prog_gnu_ld in
6892 i?86-*-solaris*|x86_64-*-solaris*)
6893 LD="${LD-ld} -m elf_x86_64"
6896 LD="${LD-ld} -m elf64_sparc"
6899 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6900 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6905 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6917 need_locks=$enable_libtool_lock
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}mt; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6925 $as_echo_n "(cached) " >&6
6927 if test -n "$MANIFEST_TOOL"; then
6928 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6948 if test -n "$MANIFEST_TOOL"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6950 $as_echo "$MANIFEST_TOOL" >&6; }
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6958 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6959 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6960 # Extract the first word of "mt", so it can be a program name with args.
6961 set dummy mt; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 if test -n "$ac_ct_MANIFEST_TOOL"; then
6968 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6988 if test -n "$ac_ct_MANIFEST_TOOL"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6990 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6996 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6999 case $cross_compiling:$ac_tool_warned in
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7005 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7008 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7011 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7013 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7014 if ${lt_cv_path_mainfest_tool+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 lt_cv_path_mainfest_tool=no
7018 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7019 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7020 cat conftest.err >&5
7021 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7022 lt_cv_path_mainfest_tool=yes
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7027 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7028 if test yes != "$lt_cv_path_mainfest_tool"; then
7038 rhapsody* | darwin*)
7039 if test -n "$ac_tool_prefix"; then
7040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 if test -n "$DSYMUTIL"; then
7048 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7068 if test -n "$DSYMUTIL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7070 $as_echo "$DSYMUTIL" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7078 if test -z "$ac_cv_prog_DSYMUTIL"; then
7079 ac_ct_DSYMUTIL=$DSYMUTIL
7080 # Extract the first word of "dsymutil", so it can be a program name with args.
7081 set dummy dsymutil; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 if test -n "$ac_ct_DSYMUTIL"; then
7088 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7110 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7116 if test "x$ac_ct_DSYMUTIL" = x; then
7119 case $cross_compiling:$ac_tool_warned in
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7125 DSYMUTIL=$ac_ct_DSYMUTIL
7128 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_prog_NMEDIT+:} false; then :
7137 $as_echo_n "(cached) " >&6
7139 if test -n "$NMEDIT"; then
7140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 NMEDIT=$ac_cv_prog_NMEDIT
7160 if test -n "$NMEDIT"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7162 $as_echo "$NMEDIT" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7170 if test -z "$ac_cv_prog_NMEDIT"; then
7171 ac_ct_NMEDIT=$NMEDIT
7172 # Extract the first word of "nmedit", so it can be a program name with args.
7173 set dummy nmedit; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175 $as_echo_n "checking for $ac_word... " >&6; }
7176 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7177 $as_echo_n "(cached) " >&6
7179 if test -n "$ac_ct_NMEDIT"; then
7180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7200 if test -n "$ac_ct_NMEDIT"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7202 $as_echo "$ac_ct_NMEDIT" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205 $as_echo "no" >&6; }
7208 if test "x$ac_ct_NMEDIT" = x; then
7211 case $cross_compiling:$ac_tool_warned in
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7215 ac_tool_warned=yes ;;
7217 NMEDIT=$ac_ct_NMEDIT
7220 NMEDIT="$ac_cv_prog_NMEDIT"
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_LIPO+:} false; then :
7229 $as_echo_n "(cached) " >&6
7231 if test -n "$LIPO"; then
7232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 LIPO=$ac_cv_prog_LIPO
7252 if test -n "$LIPO"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7254 $as_echo "$LIPO" >&6; }
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$ac_cv_prog_LIPO"; then
7264 # Extract the first word of "lipo", so it can be a program name with args.
7265 set dummy lipo; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 if test -n "$ac_ct_LIPO"; then
7272 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_LIPO="lipo"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7292 if test -n "$ac_ct_LIPO"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7294 $as_echo "$ac_ct_LIPO" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$ac_ct_LIPO" = x; then
7303 case $cross_compiling:$ac_tool_warned in
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7312 LIPO="$ac_cv_prog_LIPO"
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7317 set dummy ${ac_tool_prefix}otool; ac_word=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_OTOOL+:} false; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$OTOOL"; then
7324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir=.
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 OTOOL=$ac_cv_prog_OTOOL
7344 if test -n "$OTOOL"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7346 $as_echo "$OTOOL" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_OTOOL"; then
7356 # Extract the first word of "otool", so it can be a program name with args.
7357 set dummy otool; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$ac_ct_OTOOL"; then
7364 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir=.
7371 for ac_exec_ext in '' $ac_executable_extensions; do
7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_ac_ct_OTOOL="otool"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7384 if test -n "$ac_ct_OTOOL"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7386 $as_echo "$ac_ct_OTOOL" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_OTOOL" = x; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned=yes ;;
7404 OTOOL="$ac_cv_prog_OTOOL"
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_OTOOL64+:} false; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -n "$OTOOL64"; then
7416 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir=.
7423 for ac_exec_ext in '' $ac_executable_extensions; do
7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 OTOOL64=$ac_cv_prog_OTOOL64
7436 if test -n "$OTOOL64"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7438 $as_echo "$OTOOL64" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_OTOOL64"; then
7447 ac_ct_OTOOL64=$OTOOL64
7448 # Extract the first word of "otool64", so it can be a program name with args.
7449 set dummy otool64; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$ac_ct_OTOOL64"; then
7456 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_OTOOL64="otool64"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7476 if test -n "$ac_ct_OTOOL64"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7478 $as_echo "$ac_ct_OTOOL64" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_OTOOL64" = x; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned=yes ;;
7493 OTOOL64=$ac_ct_OTOOL64
7496 OTOOL64="$ac_cv_prog_OTOOL64"
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7526 $as_echo_n "checking for -single_module linker flag... " >&6; }
7527 if ${lt_cv_apple_cc_single_mod+:} false; then :
7528 $as_echo_n "(cached) " >&6
7530 lt_cv_apple_cc_single_mod=no
7531 if test -z "$LT_MULTI_MODULE"; then
7532 # By default we will add the -single_module flag. You can override
7533 # by either setting the environment variable LT_MULTI_MODULE
7534 # non-empty at configure time, or by adding -multi_module to the
7536 rm -rf libconftest.dylib*
7537 echo "int foo(void){return 1;}" > conftest.c
7538 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7539 -dynamiclib -Wl,-single_module conftest.c" >&5
7540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7541 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7543 # If there is a non-empty error log, and "single_module"
7544 # appears in it, assume the flag caused a linker warning
7545 if test -s conftest.err && $GREP single_module conftest.err; then
7546 cat conftest.err >&5
7547 # Otherwise, if the output was created with a 0 exit code from
7548 # the compiler, it worked.
7549 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7550 lt_cv_apple_cc_single_mod=yes
7552 cat conftest.err >&5
7554 rm -rf libconftest.dylib*
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7559 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7562 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7563 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 lt_cv_ld_exported_symbols_list=no
7567 save_LDFLAGS=$LDFLAGS
7568 echo "_main" > conftest.sym
7569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7581 if ac_fn_c_try_link "$LINENO"; then :
7582 lt_cv_ld_exported_symbols_list=yes
7584 lt_cv_ld_exported_symbols_list=no
7586 rm -f core conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 LDFLAGS=$save_LDFLAGS
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7592 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7595 $as_echo_n "checking for -force_load linker flag... " >&6; }
7596 if ${lt_cv_ld_force_load+:} false; then :
7597 $as_echo_n "(cached) " >&6
7599 lt_cv_ld_force_load=no
7600 cat > conftest.c << _LT_EOF
7601 int forced_loaded() { return 2;}
7603 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7604 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7605 echo "$AR cr libconftest.a conftest.o" >&5
7606 $AR cr libconftest.a conftest.o 2>&5
7607 echo "$RANLIB libconftest.a" >&5
7608 $RANLIB libconftest.a 2>&5
7609 cat > conftest.c << _LT_EOF
7610 int main() { return 0;}
7612 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7613 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7615 if test -s conftest.err && $GREP force_load conftest.err; then
7616 cat conftest.err >&5
7617 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7618 lt_cv_ld_force_load=yes
7620 cat conftest.err >&5
7622 rm -f conftest.err libconftest.a conftest conftest.c
7623 rm -rf conftest.dSYM
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7627 $as_echo "$lt_cv_ld_force_load" >&6; }
7629 rhapsody* | darwin1.[012])
7630 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7632 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7633 darwin*) # darwin 5.x on
7634 # if running on 10.5 or later, the deployment target defaults
7635 # to the OS version, if on x86, and 10.4, the deployment
7636 # target defaults to 10.4. Don't you love it?
7637 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7638 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7639 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7641 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7643 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7647 if test yes = "$lt_cv_apple_cc_single_mod"; then
7648 _lt_dar_single_mod='$single_module'
7650 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7651 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7653 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7655 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7656 _lt_dsymutil='~$DSYMUTIL $lib || :'
7663 # func_munge_path_list VARIABLE PATH
7664 # -----------------------------------
7665 # VARIABLE is name of variable containing _space_ separated list of
7666 # directories to be munged by the contents of PATH, which is string
7669 # string "DIR[ DIR]" will be prepended to VARIABLE
7671 # string "DIR[ DIR]" will be appended to VARIABLE
7672 # "DIRP[:DIRP]::[DIRA:]DIRA"
7673 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7674 # "DIRA[ DIRA]" will be appended to VARIABLE
7676 # VARIABLE will be replaced by "DIR[ DIR]"
7677 func_munge_path_list ()
7683 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7686 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7689 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7690 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7693 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7704 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7705 # On Suns, sometimes $CPP names a directory.
7706 if test -n "$CPP" && test -d "$CPP"; then
7709 if test -z "$CPP"; then
7710 if ${ac_cv_prog_CPP+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 # Double quotes because CPP needs to be expanded
7714 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7717 for ac_c_preproc_warn_flag in '' yes
7719 # Use a header file that comes with gcc, so configuring glibc
7720 # with a fresh cross-compiler works.
7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7722 # <limits.h> exists even on freestanding compilers.
7723 # On the NeXT, cc -E runs the code through the compiler's parser,
7724 # not just through cpp. "Syntax error" is here to catch this case.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7728 # include <limits.h>
7730 # include <assert.h>
7734 if ac_fn_c_try_cpp "$LINENO"; then :
7737 # Broken: fails on valid input.
7740 rm -f conftest.err conftest.i conftest.$ac_ext
7742 # OK, works on sane cases. Now check whether nonexistent headers
7743 # can be detected and how.
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7746 #include <ac_nonexistent.h>
7748 if ac_fn_c_try_cpp "$LINENO"; then :
7749 # Broken: success on invalid input.
7752 # Passes both tests.
7756 rm -f conftest.err conftest.i conftest.$ac_ext
7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7760 rm -f conftest.i conftest.err conftest.$ac_ext
7761 if $ac_preproc_ok; then :
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7774 $as_echo "$CPP" >&6; }
7776 for ac_c_preproc_warn_flag in '' yes
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 # include <limits.h>
7789 # include <assert.h>
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7796 # Broken: fails on valid input.
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7811 # Passes both tests.
7815 rm -f conftest.err conftest.i conftest.$ac_ext
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.i conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7825 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7826 See \`config.log' for more details" "$LINENO" 5; }
7830 ac_cpp='$CPP $CPPFLAGS'
7831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7837 $as_echo_n "checking for ANSI C header files... " >&6; }
7838 if ${ac_cv_header_stdc+:} false; then :
7839 $as_echo_n "(cached) " >&6
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7856 if ac_fn_c_try_compile "$LINENO"; then :
7857 ac_cv_header_stdc=yes
7859 ac_cv_header_stdc=no
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 if test $ac_cv_header_stdc = yes; then
7864 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871 $EGREP "memchr" >/dev/null 2>&1; then :
7874 ac_cv_header_stdc=no
7880 if test $ac_cv_header_stdc = yes; then
7881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888 $EGREP "free" >/dev/null 2>&1; then :
7891 ac_cv_header_stdc=no
7897 if test $ac_cv_header_stdc = yes; then
7898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7899 if test "$cross_compiling" = yes; then :
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7906 #if ((' ' & 0x0FF) == 0x020)
7907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7910 # define ISLOWER(c) \
7911 (('a' <= (c) && (c) <= 'i') \
7912 || ('j' <= (c) && (c) <= 'r') \
7913 || ('s' <= (c) && (c) <= 'z'))
7914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7922 for (i = 0; i < 256; i++)
7923 if (XOR (islower (i), ISLOWER (i))
7924 || toupper (i) != TOUPPER (i))
7929 if ac_fn_c_try_run "$LINENO"; then :
7932 ac_cv_header_stdc=no
7934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7935 conftest.$ac_objext conftest.beam conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7941 $as_echo "$ac_cv_header_stdc" >&6; }
7942 if test $ac_cv_header_stdc = yes; then
7944 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7949 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7950 inttypes.h stdint.h unistd.h
7952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7953 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 for ac_header in dlfcn.h
7967 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7969 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7970 cat >>confdefs.h <<_ACEOF
7971 #define HAVE_DLFCN_H 1
7992 # Check whether --enable-shared was given.
7993 if test "${enable_shared+set}" = set; then :
7994 enableval=$enable_shared; p=${PACKAGE-default}
7996 yes) enable_shared=yes ;;
7997 no) enable_shared=no ;;
8000 # Look at the argument we got. We use all the common list separators.
8001 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8002 for pkg in $enableval; do
8004 if test "X$pkg" = "X$p"; then
8023 # Check whether --enable-static was given.
8024 if test "${enable_static+set}" = set; then :
8025 enableval=$enable_static; p=${PACKAGE-default}
8027 yes) enable_static=yes ;;
8028 no) enable_static=no ;;
8031 # Look at the argument we got. We use all the common list separators.
8032 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8033 for pkg in $enableval; do
8035 if test "X$pkg" = "X$p"; then
8055 # Check whether --with-pic was given.
8056 if test "${with_pic+set}" = set; then :
8057 withval=$with_pic; lt_p=${PACKAGE-default}
8059 yes|no) pic_mode=$withval ;;
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8064 for lt_pkg in $withval; do
8066 if test "X$lt_pkg" = "X$lt_p"; then
8084 # Check whether --enable-fast-install was given.
8085 if test "${enable_fast_install+set}" = set; then :
8086 enableval=$enable_fast_install; p=${PACKAGE-default}
8088 yes) enable_fast_install=yes ;;
8089 no) enable_fast_install=no ;;
8091 enable_fast_install=no
8092 # Look at the argument we got. We use all the common list separators.
8093 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8094 for pkg in $enableval; do
8096 if test "X$pkg" = "X$p"; then
8097 enable_fast_install=yes
8104 enable_fast_install=yes
8114 shared_archive_member_spec=
8115 case $host,$enable_shared in
8116 power*-*-aix[5-9]*,yes)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8118 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8120 # Check whether --with-aix-soname was given.
8121 if test "${with_aix_soname+set}" = set; then :
8122 withval=$with_aix_soname; case $withval in
8126 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8129 lt_cv_with_aix_soname=$with_aix_soname
8131 if ${lt_cv_with_aix_soname+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 lt_cv_with_aix_soname=aix
8137 with_aix_soname=$lt_cv_with_aix_soname
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8141 $as_echo "$with_aix_soname" >&6; }
8142 if test aix != "$with_aix_soname"; then
8143 # For the AIX way of multilib, we name the shared archive member
8144 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8145 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8146 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8147 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8148 if test 64 = "${OBJECT_MODE-32}"; then
8149 shared_archive_member_spec=shr_64
8151 shared_archive_member_spec=shr
8169 # This can be used to rebuild libtool when needed
8170 LIBTOOL_DEPS=$ltmain
8172 # Always use our own libtool.
8173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8204 test -z "$LN_S" && LN_S="ln -s"
8219 if test -n "${ZSH_VERSION+set}"; then
8220 setopt NO_GLOB_SUBST
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8224 $as_echo_n "checking for objdir... " >&6; }
8225 if ${lt_cv_objdir+:} false; then :
8226 $as_echo_n "(cached) " >&6
8228 rm -f .libs 2>/dev/null
8229 mkdir .libs 2>/dev/null
8230 if test -d .libs; then
8233 # MS-DOS does not allow filenames that begin with a dot.
8236 rmdir .libs 2>/dev/null
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8239 $as_echo "$lt_cv_objdir" >&6; }
8240 objdir=$lt_cv_objdir
8246 cat >>confdefs.h <<_ACEOF
8247 #define LT_OBJDIR "$lt_cv_objdir/"
8255 # AIX sometimes has problems with the GCC collect2 program. For some
8256 # reason, if we set the COLLECT_NAMES environment variable, the problems
8257 # vanish in a puff of smoke.
8258 if test set != "${COLLECT_NAMES+set}"; then
8260 export COLLECT_NAMES
8267 can_build_shared=yes
8269 # All known linkers require a '.a' archive for static linking (except MSVC,
8270 # which needs '.lib').
8273 with_gnu_ld=$lt_cv_prog_gnu_ld
8278 # Set sane defaults for various variables
8279 test -z "$CC" && CC=cc
8280 test -z "$LTCC" && LTCC=$CC
8281 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8282 test -z "$LD" && LD=ld
8283 test -z "$ac_objext" && ac_objext=o
8285 func_cc_basename $compiler
8286 cc_basename=$func_cc_basename_result
8289 # Only perform the check for file, if the check method requires it
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 case $deplibs_check_method in
8293 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8296 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8297 $as_echo_n "(cached) " >&6
8301 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8304 lt_save_MAGIC_CMD=$MAGIC_CMD
8305 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8307 for ac_dir in $ac_dummy; do
8309 test -z "$ac_dir" && ac_dir=.
8310 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8311 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8312 if test -n "$file_magic_test_file"; then
8313 case $deplibs_check_method in
8315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8318 $EGREP "$file_magic_regex" > /dev/null; then
8323 *** Warning: the command libtool uses to detect shared libraries,
8324 *** $file_magic_cmd, produces output that libtool cannot recognize.
8325 *** The result is that libtool may fail to recognize shared libraries
8326 *** as such. This will affect the creation of libtool libraries that
8327 *** depend on shared libraries, but programs linked with such libtool
8328 *** libraries will work regardless of this problem. Nevertheless, you
8329 *** may want to report the problem to your system manager and/or to
8330 *** bug-libtool@gnu.org
8340 MAGIC_CMD=$lt_save_MAGIC_CMD
8345 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8346 if test -n "$MAGIC_CMD"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8348 $as_echo "$MAGIC_CMD" >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8358 if test -z "$lt_cv_path_MAGIC_CMD"; then
8359 if test -n "$ac_tool_prefix"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8361 $as_echo_n "checking for file... " >&6; }
8362 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8363 $as_echo_n "(cached) " >&6
8367 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8370 lt_save_MAGIC_CMD=$MAGIC_CMD
8371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8372 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8373 for ac_dir in $ac_dummy; do
8375 test -z "$ac_dir" && ac_dir=.
8376 if test -f "$ac_dir/file"; then
8377 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8378 if test -n "$file_magic_test_file"; then
8379 case $deplibs_check_method in
8381 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8382 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8384 $EGREP "$file_magic_regex" > /dev/null; then
8389 *** Warning: the command libtool uses to detect shared libraries,
8390 *** $file_magic_cmd, produces output that libtool cannot recognize.
8391 *** The result is that libtool may fail to recognize shared libraries
8392 *** as such. This will affect the creation of libtool libraries that
8393 *** depend on shared libraries, but programs linked with such libtool
8394 *** libraries will work regardless of this problem. Nevertheless, you
8395 *** may want to report the problem to your system manager and/or to
8396 *** bug-libtool@gnu.org
8406 MAGIC_CMD=$lt_save_MAGIC_CMD
8411 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8412 if test -n "$MAGIC_CMD"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8414 $as_echo "$MAGIC_CMD" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8430 # Use C for the default configuration in the libtool script
8434 ac_cpp='$CPP $CPPFLAGS'
8435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8440 # Source file extension for C test sources.
8443 # Object file extension for compiled C test sources.
8447 # Code to be used in simple compile tests
8448 lt_simple_compile_test_code="int some_variable = 0;"
8450 # Code to be used in simple link tests
8451 lt_simple_link_test_code='int main(){return(0);}'
8459 # If no C compiler was specified, use CC.
8462 # If no C compiler flags were specified, use CFLAGS.
8463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8465 # Allow CC to be a program name with arguments.
8468 # Save the default compiler, since it gets overwritten when the other
8469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8470 compiler_DEFAULT=$CC
8472 # save warnings/boilerplate of simple test code
8473 ac_outfile=conftest.$ac_objext
8474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8476 _lt_compiler_boilerplate=`cat conftest.err`
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8482 _lt_linker_boilerplate=`cat conftest.err`
8487 ## There is no encapsulation within the following macros, do not change
8488 ## the running order or otherwise move them around unless you know exactly
8489 ## what you are doing...
8490 if test -n "$compiler"; then
8492 lt_prog_compiler_no_builtin_flag=
8494 if test yes = "$GCC"; then
8495 case $cc_basename in
8497 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8499 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8503 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8504 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8505 $as_echo_n "(cached) " >&6
8507 lt_cv_prog_compiler_rtti_exceptions=no
8508 ac_outfile=conftest.$ac_objext
8509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8510 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8511 # Insert the option either (1) after the last *FLAGS variable, or
8512 # (2) before a word containing "conftest.", or (3) at the end.
8513 # Note that $ac_compile itself does not contain backslashes and begins
8514 # with a dollar sign (not a hyphen), so the echo should work correctly.
8515 # The option is referenced via a variable to avoid confusing sed.
8516 lt_compile=`echo "$ac_compile" | $SED \
8517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519 -e 's:$: $lt_compiler_flag:'`
8520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8521 (eval "$lt_compile" 2>conftest.err)
8523 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 if (exit $ac_status) && test -s "$ac_outfile"; then
8526 # The compiler can only warn and ignore the option if not recognized
8527 # So say no if there are warnings other than the usual output.
8528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_rtti_exceptions=yes
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8538 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8540 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8541 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8553 lt_prog_compiler_wl=
8554 lt_prog_compiler_pic=
8555 lt_prog_compiler_static=
8558 if test yes = "$GCC"; then
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_static='-static'
8564 # All AIX code is PIC.
8565 if test ia64 = "$host_cpu"; then
8566 # AIX 5 now supports IA64 processor
8567 lt_prog_compiler_static='-Bstatic'
8569 lt_prog_compiler_pic='-fPIC'
8575 # see comment about AmigaOS4 .so support
8576 lt_prog_compiler_pic='-fPIC'
8579 # FIXME: we need at least 68020 code to build shared libraries, but
8580 # adding the '-m68020' flag to GCC prevents building anything better,
8582 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8587 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8588 # PIC is the default for these OSes.
8591 mingw* | cygwin* | pw32* | os2* | cegcc*)
8592 # This hack is so that the source file can tell whether it is being
8593 # built for inclusion in a dll (and should export symbols for example).
8594 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8595 # (--disable-auto-import) libraries
8596 lt_prog_compiler_pic='-DDLL_EXPORT'
8599 lt_prog_compiler_static='$wl-static'
8604 darwin* | rhapsody*)
8605 # PIC is the default on this platform
8606 # Common symbols not allowed in MH_DYLIB files
8607 lt_prog_compiler_pic='-fno-common'
8611 # PIC is the default for Haiku.
8612 # The "-static" flag exists, but is broken.
8613 lt_prog_compiler_static=
8617 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8618 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8619 # sets the default TLS model and affects inlining.
8625 lt_prog_compiler_pic='-fPIC'
8631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8632 # Instead, we relocate shared libraries at runtime.
8636 # Just because we use GCC doesn't mean we suddenly get shared libraries
8637 # on systems that don't support them.
8638 lt_prog_compiler_can_build_shared=no
8643 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 lt_prog_compiler_pic='-fPIC -shared'
8649 if test -d /usr/nec; then
8650 lt_prog_compiler_pic=-Kconform_pic
8655 lt_prog_compiler_pic='-fPIC'
8659 case $cc_basename in
8660 nvcc*) # Cuda Compiler Driver 2.2
8661 lt_prog_compiler_wl='-Xlinker '
8662 if test -n "$lt_prog_compiler_pic"; then
8663 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8668 # PORTME Check for flag to pass linker flags through the system compiler.
8671 lt_prog_compiler_wl='-Wl,'
8672 if test ia64 = "$host_cpu"; then
8673 # AIX 5 now supports IA64 processor
8674 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8680 darwin* | rhapsody*)
8681 # PIC is the default on this platform
8682 # Common symbols not allowed in MH_DYLIB files
8683 lt_prog_compiler_pic='-fno-common'
8684 case $cc_basename in
8686 # NAG Fortran compiler
8687 lt_prog_compiler_wl='-Wl,-Wl,,'
8688 lt_prog_compiler_pic='-PIC'
8689 lt_prog_compiler_static='-Bstatic'
8694 mingw* | cygwin* | pw32* | os2* | cegcc*)
8695 # This hack is so that the source file can tell whether it is being
8696 # built for inclusion in a dll (and should export symbols for example).
8697 lt_prog_compiler_pic='-DDLL_EXPORT'
8700 lt_prog_compiler_static='$wl-static'
8705 hpux9* | hpux10* | hpux11*)
8706 lt_prog_compiler_wl='-Wl,'
8707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8714 lt_prog_compiler_pic='+Z'
8717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8718 lt_prog_compiler_static='$wl-a ${wl}archive'
8721 irix5* | irix6* | nonstopux*)
8722 lt_prog_compiler_wl='-Wl,'
8723 # PIC (with -KPIC) is the default.
8724 lt_prog_compiler_static='-non_shared'
8727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8728 case $cc_basename in
8729 # old Intel for x86_64, which still supported -KPIC.
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-static'
8735 # flang / f18. f95 an alias for gfortran or flang on Debian
8736 flang* | f18* | f95*)
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='-fPIC'
8739 lt_prog_compiler_static='-static'
8741 # icc used to be incompatible with GCC.
8742 # ICC 10 doesn't accept -KPIC any more.
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-fPIC'
8746 lt_prog_compiler_static='-static'
8748 # Lahey Fortran 8.1.
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='--shared'
8752 lt_prog_compiler_static='--static'
8755 # NAG Fortran compiler
8756 lt_prog_compiler_wl='-Wl,-Wl,,'
8757 lt_prog_compiler_pic='-PIC'
8758 lt_prog_compiler_static='-Bstatic'
8761 # Fabrice Bellard et al's Tiny C Compiler
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_pic='-fPIC'
8764 lt_prog_compiler_static='-static'
8766 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767 # Portland Group compilers (*not* the Pentium gcc compiler,
8768 # which looks to be a dead project)
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_pic='-fpic'
8771 lt_prog_compiler_static='-Bstatic'
8774 lt_prog_compiler_wl='-Wl,'
8775 # All Alpha code is PIC.
8776 lt_prog_compiler_static='-non_shared'
8778 xl* | bgxl* | bgf* | mpixl*)
8779 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-qpic'
8782 lt_prog_compiler_static='-qstaticlink'
8785 case `$CC -V 2>&1 | sed 5q` in
8786 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8787 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788 lt_prog_compiler_pic='-KPIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 lt_prog_compiler_wl=''
8792 *Sun\ F* | *Sun*Fortran*)
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_wl='-Qoption ld '
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_wl='-Wl,'
8803 *Intel*\ [CF]*Compiler*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_pic='-fPIC'
8806 lt_prog_compiler_static='-static'
8809 lt_prog_compiler_wl='-Wl,'
8810 lt_prog_compiler_pic='-fpic'
8811 lt_prog_compiler_static='-Bstatic'
8819 lt_prog_compiler_pic='-KPIC'
8820 lt_prog_compiler_static='-Bstatic'
8824 # QNX uses GNU C++, but need to define -shared option too, otherwise
8826 lt_prog_compiler_pic='-fPIC -shared'
8829 osf3* | osf4* | osf5*)
8830 lt_prog_compiler_wl='-Wl,'
8831 # All OSF/1 code is PIC.
8832 lt_prog_compiler_static='-non_shared'
8836 lt_prog_compiler_static='-non_shared'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-Bstatic'
8842 case $cc_basename in
8843 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8844 lt_prog_compiler_wl='-Qoption ld ';;
8846 lt_prog_compiler_wl='-Wl,';;
8851 lt_prog_compiler_wl='-Qoption ld '
8852 lt_prog_compiler_pic='-PIC'
8853 lt_prog_compiler_static='-Bstatic'
8856 sysv4 | sysv4.2uw2* | sysv4.3*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8863 if test -d /usr/nec; then
8864 lt_prog_compiler_pic='-Kconform_pic'
8865 lt_prog_compiler_static='-Bstatic'
8869 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_can_build_shared=no
8881 lt_prog_compiler_pic='-pic'
8882 lt_prog_compiler_static='-Bstatic'
8886 lt_prog_compiler_can_build_shared=no
8892 # For platforms that do not support PIC, -DPIC is meaningless:
8894 lt_prog_compiler_pic=
8897 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8903 if ${lt_cv_prog_compiler_pic+:} false; then :
8904 $as_echo_n "(cached) " >&6
8906 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8909 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8910 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8913 # Check to make sure the PIC flag actually works.
8915 if test -n "$lt_prog_compiler_pic"; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8917 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8918 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8919 $as_echo_n "(cached) " >&6
8921 lt_cv_prog_compiler_pic_works=no
8922 ac_outfile=conftest.$ac_objext
8923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8925 # Insert the option either (1) after the last *FLAGS variable, or
8926 # (2) before a word containing "conftest.", or (3) at the end.
8927 # Note that $ac_compile itself does not contain backslashes and begins
8928 # with a dollar sign (not a hyphen), so the echo should work correctly.
8929 # The option is referenced via a variable to avoid confusing sed.
8930 lt_compile=`echo "$ac_compile" | $SED \
8931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933 -e 's:$: $lt_compiler_flag:'`
8934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935 (eval "$lt_compile" 2>conftest.err)
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 if (exit $ac_status) && test -s "$ac_outfile"; then
8940 # The compiler can only warn and ignore the option if not recognized
8941 # So say no if there are warnings other than the usual output.
8942 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8945 lt_cv_prog_compiler_pic_works=yes
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8954 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8955 case $lt_prog_compiler_pic in
8957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8960 lt_prog_compiler_pic=
8961 lt_prog_compiler_can_build_shared=no
8977 # Check to make sure the static flag actually works.
8979 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8982 if ${lt_cv_prog_compiler_static_works+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 lt_cv_prog_compiler_static_works=no
8986 save_LDFLAGS=$LDFLAGS
8987 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8990 # The linker can only warn and ignore the option if not recognized
8991 # So say no if there are warnings
8992 if test -s conftest.err; then
8993 # Append any errors to the config.log.
8994 cat conftest.err 1>&5
8995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997 if diff conftest.exp conftest.er2 >/dev/null; then
8998 lt_cv_prog_compiler_static_works=yes
9001 lt_cv_prog_compiler_static_works=yes
9005 LDFLAGS=$save_LDFLAGS
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9009 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9011 if test yes = "$lt_cv_prog_compiler_static_works"; then
9014 lt_prog_compiler_static=
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9025 if ${lt_cv_prog_compiler_c_o+:} false; then :
9026 $as_echo_n "(cached) " >&6
9028 lt_cv_prog_compiler_c_o=no
9029 $RM -r conftest 2>/dev/null
9033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9035 lt_compiler_flag="-o out/conftest2.$ac_objext"
9036 # Insert the option either (1) after the last *FLAGS variable, or
9037 # (2) before a word containing "conftest.", or (3) at the end.
9038 # Note that $ac_compile itself does not contain backslashes and begins
9039 # with a dollar sign (not a hyphen), so the echo should work correctly.
9040 lt_compile=`echo "$ac_compile" | $SED \
9041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043 -e 's:$: $lt_compiler_flag:'`
9044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045 (eval "$lt_compile" 2>out/conftest.err)
9047 cat out/conftest.err >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051 # The compiler can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056 lt_cv_prog_compiler_c_o=yes
9061 # SGI C++ compiler will create directory out/ii_files/ for
9062 # template instantiation
9063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064 $RM out/* && rmdir out
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9071 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9080 if ${lt_cv_prog_compiler_c_o+:} false; then :
9081 $as_echo_n "(cached) " >&6
9083 lt_cv_prog_compiler_c_o=no
9084 $RM -r conftest 2>/dev/null
9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090 lt_compiler_flag="-o out/conftest2.$ac_objext"
9091 # Insert the option either (1) after the last *FLAGS variable, or
9092 # (2) before a word containing "conftest.", or (3) at the end.
9093 # Note that $ac_compile itself does not contain backslashes and begins
9094 # with a dollar sign (not a hyphen), so the echo should work correctly.
9095 lt_compile=`echo "$ac_compile" | $SED \
9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098 -e 's:$: $lt_compiler_flag:'`
9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100 (eval "$lt_compile" 2>out/conftest.err)
9102 cat out/conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106 # The compiler can only warn and ignore the option if not recognized
9107 # So say no if there are warnings
9108 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9111 lt_cv_prog_compiler_c_o=yes
9116 # SGI C++ compiler will create directory out/ii_files/ for
9117 # template instantiation
9118 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9119 $RM out/* && rmdir out
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131 hard_links=nottested
9132 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9133 # do not overwrite the value of need_locks provided by the user
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9135 $as_echo_n "checking if we can lock with hard links... " >&6; }
9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9140 ln conftest.a conftest.b 2>&5 || hard_links=no
9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9143 $as_echo "$hard_links" >&6; }
9144 if test no = "$hard_links"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9146 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9159 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9162 allow_undefined_flag=
9163 always_export_symbols=no
9165 archive_expsym_cmds=
9166 compiler_needs_object=no
9167 enable_shared_with_static_runtimes=no
9168 export_dynamic_flag_spec=
9169 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9170 hardcode_automatic=no
9172 hardcode_direct_absolute=no
9173 hardcode_libdir_flag_spec=
9174 hardcode_libdir_separator=
9176 hardcode_shlibpath_var=unsupported
9178 link_all_deplibs=unknown
9181 old_archive_from_new_cmds=
9182 old_archive_from_expsyms_cmds=
9183 thread_safe_flag_spec=
9184 whole_archive_flag_spec=
9185 # include_expsyms should be a list of space-separated symbols to be *always*
9186 # included in the symbol list
9188 # exclude_expsyms can be an extended regexp of symbols to exclude
9189 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9190 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9191 # as well as any symbol that contains 'd'.
9192 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9193 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9194 # platforms (ab)use it in PIC code, but their linkers get confused if
9195 # the symbol is explicitly referenced. Since portable code cannot
9196 # rely on this symbol name, it's probably fine to never include it in
9197 # preloaded symbol tables.
9198 # Exclude shared library initialization/finalization symbols.
9199 extract_expsyms_cmds=
9202 cygwin* | mingw* | pw32* | cegcc*)
9203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9204 # When not using gcc, we currently assume that we are using
9205 # Microsoft Visual C++.
9206 if test yes != "$GCC"; then
9211 # we just hope/assume this is gcc and not c89 (= MSVC++)
9217 linux* | k*bsd*-gnu | gnu*)
9224 # On some targets, GNU ld is compatible enough with the native linker
9225 # that we're better off using the native interface for both.
9226 lt_use_gnu_ld_interface=no
9227 if test yes = "$with_gnu_ld"; then
9230 # The AIX port of GNU ld has always aspired to compatibility
9231 # with the native linker. However, as the warning in the GNU ld
9232 # block says, versions before 2.19.5* couldn't really create working
9233 # shared libraries, regardless of the interface used.
9234 case `$LD -v 2>&1` in
9235 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9236 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9237 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9239 lt_use_gnu_ld_interface=yes
9244 lt_use_gnu_ld_interface=yes
9249 if test yes = "$lt_use_gnu_ld_interface"; then
9250 # If archive_cmds runs LD, not CC, wlarc should be empty
9253 # Set some defaults for GNU ld with shared library support. These
9254 # are reset later if shared libraries are not supported. Putting them
9255 # here allows them to be overridden if necessary.
9256 runpath_var=LD_RUN_PATH
9257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9258 export_dynamic_flag_spec='$wl--export-dynamic'
9259 # ancient GNU ld didn't support --whole-archive et. al.
9260 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9261 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9263 whole_archive_flag_spec=
9265 supports_anon_versioning=no
9266 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9267 *GNU\ gold*) supports_anon_versioning=yes ;;
9268 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271 *\ 2.11.*) ;; # other 2.11 versions
9272 *) supports_anon_versioning=yes ;;
9275 # See if GNU ld supports shared libraries.
9278 # On AIX/PPC, the GNU linker is very broken
9279 if test ia64 != "$host_cpu"; then
9283 *** Warning: the GNU linker, at least up to release 2.19, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support. If you
9286 *** really care for shared libraries, you may want to install binutils
9287 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9288 *** You will then need to restart the configuration process.
9297 # see comment about AmigaOS4 .so support
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9299 archive_expsym_cmds=''
9302 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_minus_L=yes
9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 allow_undefined_flag=unsupported
9312 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9313 # support --undefined. This deserves some investigation. FIXME
9314 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9320 cygwin* | mingw* | pw32* | cegcc*)
9321 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9322 # as there is no search path for DLLs.
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 export_dynamic_flag_spec='$wl--export-all-symbols'
9325 allow_undefined_flag=unsupported
9326 always_export_symbols=no
9327 enable_shared_with_static_runtimes=yes
9328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9329 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9331 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333 # If the export-symbols file already is a .def file, use it as
9334 # is; otherwise, prepend EXPORTS...
9335 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9336 cp $export_symbols $output_objdir/$soname.def;
9338 echo EXPORTS > $output_objdir/$soname.def;
9339 cat $export_symbols >> $output_objdir/$soname.def;
9341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349 link_all_deplibs=yes
9353 hardcode_libdir_flag_spec='-L$libdir'
9354 hardcode_minus_L=yes
9355 allow_undefined_flag=unsupported
9357 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9358 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9359 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9360 $ECHO EXPORTS >> $output_objdir/$libname.def~
9361 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9363 emximp -o $lib $output_objdir/$libname.def'
9364 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9365 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9366 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9367 $ECHO EXPORTS >> $output_objdir/$libname.def~
9369 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9370 prefix_cmds="$prefix_cmds -e 1d";
9372 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9373 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9374 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9375 emximp -o $lib $output_objdir/$libname.def'
9376 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9377 enable_shared_with_static_runtimes=yes
9382 hardcode_shlibpath_var=no
9383 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9384 export_dynamic_flag_spec='$wl-E'
9385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9386 # Instead, shared libraries are loaded at an image base (0x10000000 by
9387 # default) and relocated if they conflict, which is a slow very memory
9388 # consuming and fragmenting process. To avoid this, we pick a random,
9389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9392 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'
9395 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9397 if test linux-dietlibc = "$host_os"; then
9398 case $cc_basename in
9399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9403 && test no = "$tmp_diet"
9405 tmp_addflag=' $pic_flag'
9406 tmp_sharedflag='-shared'
9407 case $cc_basename,$host_cpu in
9408 pgcc*) # Portland Group C compiler
9409 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'
9410 tmp_addflag=' $pic_flag'
9412 pgf77* | pgf90* | pgf95* | pgfortran*)
9413 # Portland Group f77 and f90 compilers
9414 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'
9415 tmp_addflag=' $pic_flag -Mnomain' ;;
9416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9417 tmp_addflag=' -i_dynamic' ;;
9418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9419 tmp_addflag=' -i_dynamic -nofor_main' ;;
9420 ifc* | ifort*) # Intel Fortran compiler
9421 tmp_addflag=' -nofor_main' ;;
9422 lf95*) # Lahey Fortran 8.1
9423 whole_archive_flag_spec=
9424 tmp_sharedflag='--shared' ;;
9425 nagfor*) # NAGFOR 5.3
9426 tmp_sharedflag='-Wl,-shared' ;;
9427 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9428 tmp_sharedflag='-qmkshrobj'
9430 nvcc*) # Cuda Compiler Driver 2.2
9431 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'
9432 compiler_needs_object=yes
9435 case `$CC -V 2>&1 | sed 5q` in
9436 *Sun\ C*) # Sun C 5.9
9437 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'
9438 compiler_needs_object=yes
9439 tmp_sharedflag='-G' ;;
9440 *Sun\ F*) # Sun Fortran 8.3
9441 tmp_sharedflag='-G' ;;
9443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9445 if test yes = "$supports_anon_versioning"; then
9446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9448 echo "local: *; };" >> $output_objdir/$libname.ver~
9449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9452 case $cc_basename in
9454 export_dynamic_flag_spec='-rdynamic'
9456 xlf* | bgf* | bgxlf* | mpixlf*)
9457 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9458 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9459 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9460 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9461 if test yes = "$supports_anon_versioning"; then
9462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9464 echo "local: *; };" >> $output_objdir/$libname.ver~
9465 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9474 netbsd* | netbsdelf*-gnu)
9475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9476 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9485 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9489 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9490 *** create shared libraries on Solaris systems. Therefore, libtool
9491 *** is disabling shared libraries support. We urge you to upgrade GNU
9492 *** binutils to release 2.9.1 or newer. Another option is to modify
9493 *** your PATH or compiler configuration so that the native linker is
9494 *** used, and then restart.
9497 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9506 case `$LD -v 2>&1` in
9507 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9511 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9512 *** reliably create shared libraries on SCO systems. Therefore, libtool
9513 *** is disabling shared libraries support. We urge you to upgrade GNU
9514 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9515 *** your PATH or compiler configuration so that the native linker is
9516 *** used, and then restart.
9521 # For security reasons, it is highly recommended that you always
9522 # use absolute paths for naming shared libraries, and exclude the
9523 # DT_RUNPATH tag from executables and libraries. But doing so
9524 # requires that you compile everything twice, which is a pain.
9525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9537 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_shlibpath_var=no
9544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9546 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9553 if test no = "$ld_shlibs"; then
9555 hardcode_libdir_flag_spec=
9556 export_dynamic_flag_spec=
9557 whole_archive_flag_spec=
9560 # PORTME fill in a description of your system's linker (not GNU ld)
9563 allow_undefined_flag=unsupported
9564 always_export_symbols=yes
9565 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'
9566 # Note: this linker hardcodes the directories in LIBPATH if there
9567 # are no directories specified by -L.
9568 hardcode_minus_L=yes
9569 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9570 # Neither direct hardcoding nor static linking is supported with a
9572 hardcode_direct=unsupported
9577 if test ia64 = "$host_cpu"; then
9578 # On IA64, the linker does run time linking by default, so we don't
9579 # have to do anything special.
9580 aix_use_runtimelinking=no
9581 exp_sym_flag='-Bexport'
9584 # If we're using GNU nm, then we don't want the "-C" option.
9585 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9586 # Without the "-l" option, or with the "-B" option, AIX nm treats
9587 # weak defined symbols like other global defined symbols, whereas
9588 # GNU nm marks them as "W".
9589 # While the 'weak' keyword is ignored in the Export File, we need
9590 # it in the Import File for the 'aix-soname' feature, so we have
9591 # to replace the "-B" option with "-P" for AIX nm.
9592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9593 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'
9595 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'
9597 aix_use_runtimelinking=no
9599 # Test if we are trying to use run time linking or normal
9600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9601 # have runtime linking enabled, and use it for executables.
9602 # For shared libraries, we enable/disable runtime linking
9603 # depending on the kind of the shared library created -
9604 # when "with_aix_soname,aix_use_runtimelinking" is:
9605 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9606 # "aix,yes" lib.so shared, rtl:yes, for executables
9607 # lib.a static archive
9608 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9609 # lib.a(lib.so.V) shared, rtl:no, for executables
9610 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9611 # lib.a(lib.so.V) shared, rtl:no
9612 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9613 # lib.a static archive
9614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9615 for ld_flag in $LDFLAGS; do
9616 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9617 aix_use_runtimelinking=yes
9621 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9622 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9623 # so we don't have lib.a shared libs to link our executables.
9624 # We have to force runtime linking in this case.
9625 aix_use_runtimelinking=yes
9626 LDFLAGS="$LDFLAGS -Wl,-brtl"
9631 exp_sym_flag='-bexport'
9632 no_entry_flag='-bnoentry'
9635 # When large executables or shared objects are built, AIX ld can
9636 # have problems creating the table of contents. If linking a library
9637 # or program results in "error TOC overflow" add -mminimal-toc to
9638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643 hardcode_direct_absolute=yes
9644 hardcode_libdir_separator=':'
9645 link_all_deplibs=yes
9646 file_list_spec='$wl-f,'
9647 case $with_aix_soname,$aix_use_runtimelinking in
9648 aix,*) ;; # traditional, no import file
9649 svr4,* | *,yes) # use import file
9650 # The Import File defines what to hardcode.
9652 hardcode_direct_absolute=no
9656 if test yes = "$GCC"; then
9657 case $host_os in aix4.[012]|aix4.[012].*)
9658 # We only want to do this on AIX 4.2 and lower, the check
9659 # below for broken collect2 doesn't work under 4.3+
9660 collect2name=`$CC -print-prog-name=collect2`
9661 if test -f "$collect2name" &&
9662 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9664 # We have reworked collect2
9667 # We have old collect2
9668 hardcode_direct=unsupported
9669 # It fails to find uninstalled libraries when the uninstalled
9670 # path is not listed in the libpath. Setting hardcode_minus_L
9671 # to unsupported forces relinking
9672 hardcode_minus_L=yes
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_libdir_separator=
9678 shared_flag='-shared'
9679 if test yes = "$aix_use_runtimelinking"; then
9680 shared_flag="$shared_flag "'$wl-G'
9682 # Need to ensure runtime linking is disabled for the traditional
9683 # shared library, or the linker may eventually find shared libraries
9684 # /with/ Import File - we do not want to mix them.
9685 shared_flag_aix='-shared'
9686 shared_flag_svr4='-shared $wl-G'
9689 if test ia64 = "$host_cpu"; then
9690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9691 # chokes on -Wl,-G. The following line is correct:
9694 if test yes = "$aix_use_runtimelinking"; then
9697 shared_flag='$wl-bM:SRE'
9699 shared_flag_aix='$wl-bM:SRE'
9700 shared_flag_svr4='$wl-G'
9704 export_dynamic_flag_spec='$wl-bexpall'
9705 # It seems that -bexpall does not export symbols beginning with
9706 # underscore (_), so it is better to generate a list of symbols to export.
9707 always_export_symbols=yes
9708 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9709 # Warning - without using the other runtime loading flags (-brtl),
9710 # -berok will link without error, but may produce a broken library.
9711 allow_undefined_flag='-berok'
9712 # Determine the default libpath from the value encoded in an
9714 if test set = "${lt_cv_aix_libpath+set}"; then
9715 aix_libpath=$lt_cv_aix_libpath
9717 if ${lt_cv_aix_libpath_+:} false; then :
9718 $as_echo_n "(cached) " >&6
9720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9731 if ac_fn_c_try_link "$LINENO"; then :
9733 lt_aix_libpath_sed='
9734 /Import File Strings/,/^$/ {
9736 s/^0 *\([^ ]*\) *$/\1/
9740 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9741 # Check for a 64-bit object if we didn't find anything.
9742 if test -z "$lt_cv_aix_libpath_"; then
9743 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9748 if test -z "$lt_cv_aix_libpath_"; then
9749 lt_cv_aix_libpath_=/usr/lib:/lib
9754 aix_libpath=$lt_cv_aix_libpath_
9757 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9758 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
9760 if test ia64 = "$host_cpu"; then
9761 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag="-z nodefs"
9763 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"
9765 # Determine the default libpath from the value encoded in an
9767 if test set = "${lt_cv_aix_libpath+set}"; then
9768 aix_libpath=$lt_cv_aix_libpath
9770 if ${lt_cv_aix_libpath_+:} false; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9784 if ac_fn_c_try_link "$LINENO"; then :
9786 lt_aix_libpath_sed='
9787 /Import File Strings/,/^$/ {
9789 s/^0 *\([^ ]*\) *$/\1/
9793 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794 # Check for a 64-bit object if we didn't find anything.
9795 if test -z "$lt_cv_aix_libpath_"; then
9796 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 if test -z "$lt_cv_aix_libpath_"; then
9802 lt_cv_aix_libpath_=/usr/lib:/lib
9807 aix_libpath=$lt_cv_aix_libpath_
9810 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9811 # Warning - without using the other run time loading flags,
9812 # -berok will link without error, but may produce a broken library.
9813 no_undefined_flag=' $wl-bernotok'
9814 allow_undefined_flag=' $wl-berok'
9815 if test yes = "$with_gnu_ld"; then
9816 # We only use this code for GNU lds that support --whole-archive.
9817 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9819 # Exported symbols can be pulled into shared objects from archives
9820 whole_archive_flag_spec='$convenience'
9822 archive_cmds_need_lc=yes
9823 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9824 # -brtl affects multiple linker settings, -berok does not and is overridden later
9825 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9826 if test svr4 != "$with_aix_soname"; then
9827 # This is similar to how AIX traditionally builds its shared libraries.
9828 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'
9830 if test aix != "$with_aix_soname"; then
9831 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'
9833 # used by -dlpreopen to get the symbols
9834 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9836 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9844 # see comment about AmigaOS4 .so support
9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9846 archive_expsym_cmds=''
9849 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)'
9850 hardcode_libdir_flag_spec='-L$libdir'
9851 hardcode_minus_L=yes
9857 export_dynamic_flag_spec=-rdynamic
9860 cygwin* | mingw* | pw32* | cegcc*)
9861 # When not using gcc, we currently assume that we are using
9862 # Microsoft Visual C++.
9863 # hardcode_libdir_flag_spec is actually meaningless, as there is
9864 # no search path for DLLs.
9865 case $cc_basename in
9868 hardcode_libdir_flag_spec=' '
9869 allow_undefined_flag=unsupported
9870 always_export_symbols=yes
9872 # Tell ltmain to make .lib files, not .a files.
9874 # Tell ltmain to make .dll files, not .so files.
9876 # FIXME: Setting linknames here is a bad hack.
9877 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9878 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9879 cp "$export_symbols" "$output_objdir/$soname.def";
9880 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9882 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9884 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9886 # The linker will not automatically build a static lib if we build a DLL.
9887 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9888 enable_shared_with_static_runtimes=yes
9889 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9892 old_postinstall_cmds='chmod 644 $oldlib'
9893 postlink_cmds='lt_outputfile="@OUTPUT@"~
9894 lt_tool_outputfile="@TOOL_OUTPUT@"~
9895 case $lt_outputfile in
9898 lt_outputfile=$lt_outputfile.exe
9899 lt_tool_outputfile=$lt_tool_outputfile.exe
9902 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9903 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9904 $RM "$lt_outputfile.manifest";
9908 # Assume MSVC wrapper
9909 hardcode_libdir_flag_spec=' '
9910 allow_undefined_flag=unsupported
9911 # Tell ltmain to make .lib files, not .a files.
9913 # Tell ltmain to make .dll files, not .so files.
9915 # FIXME: Setting linknames here is a bad hack.
9916 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9917 # The linker will automatically build a .lib file if we build a DLL.
9918 old_archive_from_new_cmds='true'
9919 # FIXME: Should let the user specify the lib program.
9920 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9921 enable_shared_with_static_runtimes=yes
9926 darwin* | rhapsody*)
9929 archive_cmds_need_lc=no
9931 hardcode_automatic=yes
9932 hardcode_shlibpath_var=unsupported
9933 if test yes = "$lt_cv_ld_force_load"; then
9934 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\"`'
9937 whole_archive_flag_spec=''
9939 link_all_deplibs=yes
9940 allow_undefined_flag=$_lt_dar_allow_undefined
9941 case $cc_basename in
9942 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9943 *) _lt_dar_can_shared=$GCC ;;
9945 if test yes = "$_lt_dar_can_shared"; then
9946 output_verbose_link_cmd=func_echo_all
9947 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9948 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9949 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"
9950 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"
9959 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_shlibpath_var=no
9964 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9965 # support. Future versions do this automatically, but an explicit c++rt0.o
9966 # does not break anything, and helps significantly (at the cost of a little
9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9970 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_shlibpath_var=no
9975 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_minus_L=yes
9980 hardcode_shlibpath_var=no
9983 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9984 freebsd* | dragonfly*)
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 hardcode_libdir_flag_spec='-R$libdir'
9988 hardcode_shlibpath_var=no
9992 if test yes = "$GCC"; then
9993 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'
9995 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'
9997 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9998 hardcode_libdir_separator=:
10001 # hardcode_minus_L: Not really in the search PATH,
10002 # but as the default location of the library.
10003 hardcode_minus_L=yes
10004 export_dynamic_flag_spec='$wl-E'
10008 if test yes,no = "$GCC,$with_gnu_ld"; then
10009 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013 if test no = "$with_gnu_ld"; then
10014 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10015 hardcode_libdir_separator=:
10016 hardcode_direct=yes
10017 hardcode_direct_absolute=yes
10018 export_dynamic_flag_spec='$wl-E'
10019 # hardcode_minus_L: Not really in the search PATH,
10020 # but as the default location of the library.
10021 hardcode_minus_L=yes
10026 if test yes,no = "$GCC,$with_gnu_ld"; then
10029 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10041 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10048 # Older versions of the 11.00 compiler do not understand -b yet
10049 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10051 $as_echo_n "checking if $CC understands -b... " >&6; }
10052 if ${lt_cv_prog_compiler__b+:} false; then :
10053 $as_echo_n "(cached) " >&6
10055 lt_cv_prog_compiler__b=no
10056 save_LDFLAGS=$LDFLAGS
10057 LDFLAGS="$LDFLAGS -b"
10058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10060 # The linker can only warn and ignore the option if not recognized
10061 # So say no if there are warnings
10062 if test -s conftest.err; then
10063 # Append any errors to the config.log.
10064 cat conftest.err 1>&5
10065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067 if diff conftest.exp conftest.er2 >/dev/null; then
10068 lt_cv_prog_compiler__b=yes
10071 lt_cv_prog_compiler__b=yes
10075 LDFLAGS=$save_LDFLAGS
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10081 if test yes = "$lt_cv_prog_compiler__b"; then
10082 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10090 if test no = "$with_gnu_ld"; then
10091 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10092 hardcode_libdir_separator=:
10097 hardcode_shlibpath_var=no
10100 hardcode_direct=yes
10101 hardcode_direct_absolute=yes
10102 export_dynamic_flag_spec='$wl-E'
10104 # hardcode_minus_L: Not really in the search PATH,
10105 # but as the default location of the library.
10106 hardcode_minus_L=yes
10112 irix5* | irix6* | nonstopux*)
10113 if test yes = "$GCC"; then
10114 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'
10115 # Try to use the -exported_symbol ld option, if it does not
10116 # work, assume that -exports_file does not work either and
10117 # implicitly export all symbols.
10118 # This should be the same for all languages, so no per-tag cache variable.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10121 if ${lt_cv_irix_exported_symbol+:} false; then :
10122 $as_echo_n "(cached) " >&6
10124 save_LDFLAGS=$LDFLAGS
10125 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int foo (void) { return 0; }
10130 if ac_fn_c_try_link "$LINENO"; then :
10131 lt_cv_irix_exported_symbol=yes
10133 lt_cv_irix_exported_symbol=no
10135 rm -f core conftest.err conftest.$ac_objext \
10136 conftest$ac_exeext conftest.$ac_ext
10137 LDFLAGS=$save_LDFLAGS
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10141 if test yes = "$lt_cv_irix_exported_symbol"; then
10142 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'
10144 link_all_deplibs=no
10146 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'
10147 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'
10149 archive_cmds_need_lc='no'
10150 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10151 hardcode_libdir_separator=:
10153 link_all_deplibs=yes
10157 case $cc_basename in
10159 # Fabrice Bellard et al's Tiny C Compiler
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10166 netbsd* | netbsdelf*-gnu)
10167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10172 hardcode_libdir_flag_spec='-R$libdir'
10173 hardcode_direct=yes
10174 hardcode_shlibpath_var=no
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_direct=yes
10180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10181 hardcode_libdir_separator=:
10182 hardcode_shlibpath_var=no
10188 openbsd* | bitrig*)
10189 if test -f /usr/libexec/ld.so; then
10190 hardcode_direct=yes
10191 hardcode_shlibpath_var=no
10192 hardcode_direct_absolute=yes
10193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10196 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10197 export_dynamic_flag_spec='$wl-E'
10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_minus_L=yes
10210 allow_undefined_flag=unsupported
10212 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10213 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10214 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10215 $ECHO EXPORTS >> $output_objdir/$libname.def~
10216 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10217 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10218 emximp -o $lib $output_objdir/$libname.def'
10219 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10220 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10221 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10222 $ECHO EXPORTS >> $output_objdir/$libname.def~
10223 prefix_cmds="$SED"~
10224 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10225 prefix_cmds="$prefix_cmds -e 1d";
10227 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10228 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10229 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10230 emximp -o $lib $output_objdir/$libname.def'
10231 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10232 enable_shared_with_static_runtimes=yes
10236 if test yes = "$GCC"; then
10237 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10238 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'
10240 allow_undefined_flag=' -expect_unresolved \*'
10241 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'
10243 archive_cmds_need_lc='no'
10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 hardcode_libdir_separator=:
10248 osf4* | osf5*) # as osf3* with the addition of -msym flag
10249 if test yes = "$GCC"; then
10250 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10251 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'
10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10254 allow_undefined_flag=' -expect_unresolved \*'
10255 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'
10256 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~
10257 $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'
10259 # Both c and cxx compiler support -rpath directly
10260 hardcode_libdir_flag_spec='-rpath $libdir'
10262 archive_cmds_need_lc='no'
10263 hardcode_libdir_separator=:
10267 no_undefined_flag=' -z defs'
10268 if test yes = "$GCC"; then
10270 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $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'
10274 case `$CC -V 2>&1` in
10277 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10279 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10283 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10285 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10289 hardcode_libdir_flag_spec='-R$libdir'
10290 hardcode_shlibpath_var=no
10292 solaris2.[0-5] | solaris2.[0-5].*) ;;
10294 # The compiler driver will combine and reorder linker options,
10295 # but understands '-z linker_flag'. GCC discards it without '$wl',
10296 # but is careful enough not to reorder.
10297 # Supported since Solaris 2.6 (maybe 2.5.1?)
10298 if test yes = "$GCC"; then
10299 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10301 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10305 link_all_deplibs=yes
10309 if test sequent = "$host_vendor"; then
10310 # Use $CC to link under sequent, because it throws in some extra .o
10311 # files that make .init and .fini sections work.
10312 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_direct=yes
10318 hardcode_minus_L=yes
10319 hardcode_shlibpath_var=no
10323 case $host_vendor in
10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_direct=yes # is this really true???
10329 ## LD is ld it makes a PLAMLIB
10330 ## CC just makes a GrossModule.
10331 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10332 reload_cmds='$CC -r -o $output$reload_objs'
10336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10337 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10340 runpath_var='LD_RUN_PATH'
10341 hardcode_shlibpath_var=no
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var=no
10347 export_dynamic_flag_spec='-Bexport'
10351 if test -d /usr/nec; then
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_shlibpath_var=no
10354 runpath_var=LD_RUN_PATH
10355 hardcode_runpath_var=yes
10360 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10361 no_undefined_flag='$wl-z,text'
10362 archive_cmds_need_lc=no
10363 hardcode_shlibpath_var=no
10364 runpath_var='LD_RUN_PATH'
10366 if test yes = "$GCC"; then
10367 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375 sysv5* | sco3.2v5* | sco5v6*)
10376 # Note: We CANNOT use -z defs as we might desire, because we do not
10377 # link with -lc, and that would cause any symbols used from libc to
10378 # always be unresolved, which means just about no library would
10379 # ever link correctly. If we're not using GNU ld we use -z text
10380 # though, which does catch some bad symbols but isn't as heavy-handed
10382 no_undefined_flag='$wl-z,text'
10383 allow_undefined_flag='$wl-z,nodefs'
10384 archive_cmds_need_lc=no
10385 hardcode_shlibpath_var=no
10386 hardcode_libdir_flag_spec='$wl-R,$libdir'
10387 hardcode_libdir_separator=':'
10388 link_all_deplibs=yes
10389 export_dynamic_flag_spec='$wl-Bexport'
10390 runpath_var='LD_RUN_PATH'
10392 if test yes = "$GCC"; then
10393 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10403 hardcode_libdir_flag_spec='-L$libdir'
10404 hardcode_shlibpath_var=no
10412 if test sni = "$host_vendor"; then
10414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10415 export_dynamic_flag_spec='$wl-Blargedynsym'
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10422 $as_echo "$ld_shlibs" >&6; }
10423 test no = "$ld_shlibs" && can_build_shared=no
10425 with_gnu_ld=$with_gnu_ld
10442 # Do we need to explicitly link libc?
10444 case "x$archive_cmds_need_lc" in
10446 # Assume -lc should be added
10447 archive_cmds_need_lc=yes
10449 if test yes,yes = "$GCC,$enable_shared"; then
10450 case $archive_cmds in
10452 # FIXME: we may have to deal with multi-command sequences.
10455 # Test whether the compiler implicitly links with -lc since on some
10456 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10457 # to ld, don't add -lc before -lgcc.
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10459 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10460 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10461 $as_echo_n "(cached) " >&6
10464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10467 (eval $ac_compile) 2>&5
10469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10470 test $ac_status = 0; } 2>conftest.err; then
10473 libobjs=conftest.$ac_objext
10475 wl=$lt_prog_compiler_wl
10476 pic_flag=$lt_prog_compiler_pic
10482 lt_save_allow_undefined_flag=$allow_undefined_flag
10483 allow_undefined_flag=
10484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10485 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488 test $ac_status = 0; }
10490 lt_cv_archive_cmds_need_lc=no
10492 lt_cv_archive_cmds_need_lc=yes
10494 allow_undefined_flag=$lt_save_allow_undefined_flag
10496 cat conftest.err 1>&5
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10502 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10503 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10662 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10664 if test yes = "$GCC"; then
10666 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10667 *) lt_awk_arg='/^libraries:/' ;;
10670 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10671 *) lt_sed_strip_eq='s|=/|/|g' ;;
10673 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10674 case $lt_search_path_spec in
10676 # if the path contains ";" then we assume it to be the separator
10677 # otherwise default to the standard path separator (i.e. ":") - it is
10678 # assumed that no part of a normal pathname contains ";" but that should
10679 # okay in the real world where ";" in dirpaths is itself problematic.
10680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10686 # Ok, now we have the path, separated by spaces, we can step through it
10687 # and add multilib dir if necessary...
10688 lt_tmp_lt_search_path_spec=
10689 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10690 # ...but if some path component already ends with the multilib dir we assume
10691 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10692 case "$lt_multi_os_dir; $lt_search_path_spec " in
10693 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10697 for lt_sys_path in $lt_search_path_spec; do
10698 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10700 elif test -n "$lt_multi_os_dir"; then
10701 test -d "$lt_sys_path" && \
10702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10705 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10706 BEGIN {RS = " "; FS = "/|\n";} {
10709 for (lt_i = NF; lt_i > 0; lt_i--) {
10710 if ($lt_i != "" && $lt_i != ".") {
10711 if ($lt_i == "..") {
10714 if (lt_count == 0) {
10715 lt_foo = "/" $lt_i lt_foo;
10722 if (lt_foo != "") { lt_freq[lt_foo]++; }
10723 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10725 # AWK program above erroneously prepends '/' to C:/dos/paths
10728 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10729 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10731 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 library_names_spec=
10736 libname_spec='lib$name'
10740 postuninstall_cmds=
10744 shlibpath_overrides_runpath=unknown
10746 dynamic_linker="$host_os ld.so"
10747 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10748 need_lib_prefix=unknown
10749 hardcode_into_libs=no
10751 # when you set need_version to no, make sure it does not cause -set_version
10752 # flags to be left without arguments
10753 need_version=unknown
10759 version_type=linux # correct to gnu/linux during the next big refactor
10760 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10761 shlibpath_var=LIBPATH
10763 # AIX 3 has no versioning support, so we append a major version to the name.
10764 soname_spec='$libname$release$shared_ext$major'
10768 version_type=linux # correct to gnu/linux during the next big refactor
10771 hardcode_into_libs=yes
10772 if test ia64 = "$host_cpu"; then
10773 # AIX 5 supports IA64
10774 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10775 shlibpath_var=LD_LIBRARY_PATH
10777 # With GCC up to 2.95.x, collect2 would create an import file
10778 # for dependence libraries. The import file would start with
10779 # the line '#! .'. This would cause the generated library to
10780 # depend on '.', always an invalid library. This was fixed in
10781 # development snapshots of GCC prior to 3.0.
10783 aix4 | aix4.[01] | aix4.[01].*)
10784 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10786 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10789 can_build_shared=no
10793 # Using Import Files as archive members, it is possible to support
10794 # filename-based versioning of shared library archives on AIX. While
10795 # this would work for both with and without runtime linking, it will
10796 # prevent static linking of such archives. So we do filename-based
10797 # shared library versioning with .so extension only, which is used
10798 # when both runtime linking and shared linking is enabled.
10799 # Unfortunately, runtime linking may impact performance, so we do
10800 # not want this to be the default eventually. Also, we use the
10801 # versioned .so libs for executables only if there is the -brtl
10802 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10803 # To allow for filename-based versioning support, we need to create
10804 # libNAME.so.V as an archive file, containing:
10805 # *) an Import File, referring to the versioned filename of the
10806 # archive as well as the shared archive member, telling the
10807 # bitwidth (32 or 64) of that shared object, and providing the
10808 # list of exported symbols of that shared object, eventually
10809 # decorated with the 'weak' keyword
10810 # *) the shared object with the F_LOADONLY flag set, to really avoid
10811 # it being seen by the linker.
10812 # At run time we better use the real file rather than another symlink,
10813 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10815 case $with_aix_soname,$aix_use_runtimelinking in
10816 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10817 # soname into executable. Probably we can add versioning support to
10818 # collect2, so additional links can be useful in future.
10819 aix,yes) # traditional libtool
10820 dynamic_linker='AIX unversionable lib.so'
10821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10822 # instead of lib<name>.a to let people know that these are not
10823 # typical AIX shared libraries.
10824 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10826 aix,no) # traditional AIX only
10827 dynamic_linker='AIX lib.a(lib.so.V)'
10828 # We preserve .a as extension for shared libraries through AIX4.2
10829 # and later when we are not doing run time linking.
10830 library_names_spec='$libname$release.a $libname.a'
10831 soname_spec='$libname$release$shared_ext$major'
10833 svr4,*) # full svr4 only
10834 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10835 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10836 # We do not specify a path in Import Files, so LIBPATH fires.
10837 shlibpath_overrides_runpath=yes
10839 *,yes) # both, prefer svr4
10840 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10841 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10842 # unpreferred sharedlib libNAME.a needs extra handling
10843 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"'
10844 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"'
10845 # We do not specify a path in Import Files, so LIBPATH fires.
10846 shlibpath_overrides_runpath=yes
10848 *,no) # both, prefer aix
10849 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10850 library_names_spec='$libname$release.a $libname.a'
10851 soname_spec='$libname$release$shared_ext$major'
10852 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10853 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)'
10854 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"'
10857 shlibpath_var=LIBPATH
10864 # Since July 2007 AmigaOS4 officially supports .so libraries.
10865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10869 library_names_spec='$libname.ixlibrary $libname.a'
10870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10871 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'
10877 library_names_spec='$libname$shared_ext'
10878 dynamic_linker="$host_os ld.so"
10879 shlibpath_var=LIBRARY_PATH
10883 version_type=linux # correct to gnu/linux during the next big refactor
10885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10886 soname_spec='$libname$release$shared_ext$major'
10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10891 # the default ld.so.conf also contains /usr/contrib/lib and
10892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10893 # libtool to hard-code these into programs
10896 cygwin* | mingw* | pw32* | cegcc*)
10897 version_type=windows
10902 case $GCC,$cc_basename in
10905 library_names_spec='$libname.dll.a'
10906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10907 postinstall_cmds='base_file=`basename \$file`~
10908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10909 dldir=$destdir/`dirname \$dlpath`~
10910 test -d \$dldir || mkdir -p \$dldir~
10911 $install_prog $dir/$dlname \$dldir/$dlname~
10912 chmod a+x \$dldir/$dlname~
10913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10917 dlpath=$dir/\$dldll~
10919 shlibpath_overrides_runpath=yes
10923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10924 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10929 # MinGW DLLs use traditional 'lib' prefix
10930 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10933 # pw32 DLLs use 'pw' prefix rather than 'lib'
10934 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10937 dynamic_linker='Win32 ld.exe'
10942 libname_spec='$name'
10943 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10944 library_names_spec='$libname.dll.lib'
10948 sys_lib_search_path_spec=
10951 for lt_path in $LIB
10954 # Let DOS variable expansion print the short 8.3 style file name.
10955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10959 # Convert to MSYS style.
10960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10963 # Convert to unix form, then to dos form, then back to unix form
10964 # but this time dos style (no spaces!) so that the unix form looks
10965 # like /cygdrive/c/PROGRA~1:/cygdr...
10966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10971 sys_lib_search_path_spec=$LIB
10972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10973 # It is most probably a Windows format PATH.
10974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10978 # FIXME: find the short name or the path components, as spaces are
10979 # common. (e.g. "Program Files" -> "PROGRA~1")
10983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10984 postinstall_cmds='base_file=`basename \$file`~
10985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10986 dldir=$destdir/`dirname \$dlpath`~
10987 test -d \$dldir || mkdir -p \$dldir~
10988 $install_prog $dir/$dlname \$dldir/$dlname'
10989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10990 dlpath=$dir/\$dldll~
10992 shlibpath_overrides_runpath=yes
10993 dynamic_linker='Win32 link.exe'
10997 # Assume MSVC wrapper
10998 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10999 dynamic_linker='Win32 ld.exe'
11002 # FIXME: first we should search . and the directory the executable is in
11006 darwin* | rhapsody*)
11007 dynamic_linker="$host_os dyld"
11008 version_type=darwin
11011 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11012 soname_spec='$libname$release$major$shared_ext'
11013 shlibpath_overrides_runpath=yes
11014 shlibpath_var=DYLD_LIBRARY_PATH
11015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11022 version_type=linux # correct to gnu/linux during the next big refactor
11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11026 soname_spec='$libname$release$shared_ext$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11030 freebsd* | dragonfly*)
11031 # DragonFly does not have aout. When/if they implement a new
11032 # versioning mechanism, adjust this.
11033 if test -x /usr/bin/objformat; then
11034 objformat=`/usr/bin/objformat`
11037 freebsd[23].*) objformat=aout ;;
11038 *) objformat=elf ;;
11041 version_type=freebsd-$objformat
11042 case $version_type in
11044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11045 soname_spec='$libname$release$shared_ext$major'
11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11054 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11059 freebsd3.[01]* | freebsdelf3.[01]*)
11060 shlibpath_overrides_runpath=yes
11061 hardcode_into_libs=yes
11063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11065 shlibpath_overrides_runpath=no
11066 hardcode_into_libs=yes
11068 *) # from 4.6 on, and DragonFly
11069 shlibpath_overrides_runpath=yes
11070 hardcode_into_libs=yes
11076 version_type=linux # correct to gnu/linux during the next big refactor
11079 dynamic_linker="$host_os runtime_loader"
11080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081 soname_spec='$libname$release$shared_ext$major'
11082 shlibpath_var=LIBRARY_PATH
11083 shlibpath_overrides_runpath=no
11084 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11085 hardcode_into_libs=yes
11088 hpux9* | hpux10* | hpux11*)
11089 # Give a soname corresponding to the major version so that dld.sl refuses to
11090 # link against other versions.
11097 hardcode_into_libs=yes
11098 dynamic_linker="$host_os dld.so"
11099 shlibpath_var=LD_LIBRARY_PATH
11100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11102 soname_spec='$libname$release$shared_ext$major'
11103 if test 32 = "$HPUX_IA64_MODE"; then
11104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11105 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11107 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11108 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11113 hardcode_into_libs=yes
11114 dynamic_linker="$host_os dld.sl"
11115 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11118 soname_spec='$libname$release$shared_ext$major'
11119 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11124 dynamic_linker="$host_os dld.sl"
11125 shlibpath_var=SHLIB_PATH
11126 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128 soname_spec='$libname$release$shared_ext$major'
11131 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11132 postinstall_cmds='chmod 555 $lib'
11133 # or fails outright, so override atomically:
11134 install_override_mode=555
11138 version_type=linux # correct to gnu/linux during the next big refactor
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=no
11146 hardcode_into_libs=yes
11149 irix5* | irix6* | nonstopux*)
11151 nonstopux*) version_type=nonstopux ;;
11153 if test yes = "$lt_cv_prog_gnu_ld"; then
11154 version_type=linux # correct to gnu/linux during the next big refactor
11161 soname_spec='$libname$release$shared_ext$major'
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11164 irix5* | nonstopux*)
11165 libsuff= shlibsuff=
11168 case $LD in # libtool.m4 will add one of these switches to LD
11169 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11170 libsuff= shlibsuff= libmagic=32-bit;;
11171 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11172 libsuff=32 shlibsuff=N32 libmagic=N32;;
11173 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11174 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11175 *) libsuff= shlibsuff= libmagic=never-match;;
11179 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11180 shlibpath_overrides_runpath=no
11181 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11182 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11183 hardcode_into_libs=yes
11186 # No shared lib support for Linux oldld, aout, or coff.
11187 linux*oldld* | linux*aout* | linux*coff*)
11192 version_type=none # Android doesn't support versioned libraries.
11195 library_names_spec='$libname$release$shared_ext'
11196 soname_spec='$libname$release$shared_ext'
11198 shlibpath_var=LD_LIBRARY_PATH
11199 shlibpath_overrides_runpath=yes
11201 # This implies no fast_install, which is unacceptable.
11202 # Some rework will be needed to allow for fast_install
11203 # before this can be enabled.
11204 hardcode_into_libs=yes
11206 dynamic_linker='Android linker'
11207 # Don't embed -rpath directories since the linker doesn't support them.
11208 hardcode_libdir_flag_spec='-L$libdir'
11211 # This must be glibc/ELF.
11212 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11213 version_type=linux # correct to gnu/linux during the next big refactor
11216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11217 soname_spec='$libname$release$shared_ext$major'
11218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=no
11222 # Some binutils ld are patched to set DT_RUNPATH
11223 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11224 $as_echo_n "(cached) " >&6
11226 lt_cv_shlibpath_overrides_runpath=no
11227 save_LDFLAGS=$LDFLAGS
11228 save_libdir=$libdir
11229 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11230 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11244 lt_cv_shlibpath_overrides_runpath=yes
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LDFLAGS=$save_LDFLAGS
11250 libdir=$save_libdir
11254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11256 # This implies no fast_install, which is unacceptable.
11257 # Some rework will be needed to allow for fast_install
11258 # before this can be enabled.
11259 hardcode_into_libs=yes
11261 # Ideally, we could use ldconfig to report *all* directores which are
11262 # searched for libraries, however this is still not possible. Aside from not
11263 # being certain /sbin/ldconfig is available, command
11264 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11265 # even though it is searched at run-time. Try to do the best guess by
11266 # appending ld.so.conf contents (and includes) to the search path.
11267 if test -f /etc/ld.so.conf; then
11268 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' ' '`
11269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11272 # We used to test for /lib/ld.so.1 and disable shared libraries on
11273 # powerpc, because MkLinux only supported shared libraries with the
11274 # GNU dynamic linker. Since this was broken with cross compilers,
11275 # most powerpc-linux boxes support dynamic linking these days and
11276 # people can always --disable-shared, the test was removed, and we
11277 # assume the GNU/Linux dynamic linker is in use.
11278 dynamic_linker='GNU/Linux ld.so'
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=no
11289 hardcode_into_libs=yes
11290 dynamic_linker='NetBSD ld.elf_so'
11297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11300 dynamic_linker='NetBSD (a.out) ld.so'
11302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11303 soname_spec='$libname$release$shared_ext$major'
11304 dynamic_linker='NetBSD ld.elf_so'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes
11308 hardcode_into_libs=yes
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 shlibpath_overrides_runpath=yes
11322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11323 soname_spec='$libname$release$shared_ext$major'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11327 dynamic_linker='ldqnx.so'
11330 openbsd* | bitrig*)
11332 sys_lib_dlsearch_path_spec=/usr/lib
11334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 shlibpath_overrides_runpath=yes
11346 libname_spec='$name'
11347 version_type=windows
11351 # OS/2 can only load a DLL with a base name of 8 characters or less.
11352 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11353 v=$($ECHO $release$versuffix | tr -d .-);
11354 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11355 $ECHO $n$v`$shared_ext'
11356 library_names_spec='${libname}_dll.$libext'
11357 dynamic_linker='OS/2 ld.exe'
11358 shlibpath_var=BEGINLIBPATH
11359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361 postinstall_cmds='base_file=`basename \$file`~
11362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11363 dldir=$destdir/`dirname \$dlpath`~
11364 test -d \$dldir || mkdir -p \$dldir~
11365 $install_prog $dir/$dlname \$dldir/$dlname~
11366 chmod a+x \$dldir/$dlname~
11367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11371 dlpath=$dir/\$dldll~
11375 osf3* | osf4* | osf5*)
11379 soname_spec='$libname$release$shared_ext$major'
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11383 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11391 version_type=linux # correct to gnu/linux during the next big refactor
11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11395 soname_spec='$libname$release$shared_ext$major'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 shlibpath_overrides_runpath=yes
11398 hardcode_into_libs=yes
11399 # ldd complains unless libraries are executable
11400 postinstall_cmds='chmod +x $lib'
11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=yes
11409 if test yes = "$with_gnu_ld"; then
11416 version_type=linux # correct to gnu/linux during the next big refactor
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 soname_spec='$libname$release$shared_ext$major'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 case $host_vendor in
11422 shlibpath_overrides_runpath=no
11424 runpath_var=LD_RUN_PATH
11432 shlibpath_overrides_runpath=no
11433 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11439 if test -d /usr/nec; then
11440 version_type=linux # correct to gnu/linux during the next big refactor
11441 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11442 soname_spec='$libname$shared_ext.$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11452 soname_spec='$libname$release$shared_ext$major'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=yes
11455 hardcode_into_libs=yes
11456 if test yes = "$with_gnu_ld"; then
11457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11459 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11466 sys_lib_dlsearch_path_spec='/usr/lib'
11470 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11471 version_type=linux # correct to gnu/linux during the next big refactor
11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=no
11477 hardcode_into_libs=yes
11481 version_type=linux # correct to gnu/linux during the next big refactor
11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11483 soname_spec='$libname$release$shared_ext$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11492 $as_echo "$dynamic_linker" >&6; }
11493 test no = "$dynamic_linker" && can_build_shared=no
11495 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11496 if test yes = "$GCC"; then
11497 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11500 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11501 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11504 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11505 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11508 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11509 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11511 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11512 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11514 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11515 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11614 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11616 if test -n "$hardcode_libdir_flag_spec" ||
11617 test -n "$runpath_var" ||
11618 test yes = "$hardcode_automatic"; then
11620 # We can hardcode non-existent directories.
11621 if test no != "$hardcode_direct" &&
11622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11623 # have to relink, otherwise we might link with an installed library
11624 # when we should be linking with a yet-to-be-installed one
11625 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11626 test no != "$hardcode_minus_L"; then
11627 # Linking always hardcodes the temporary library directory.
11628 hardcode_action=relink
11630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11631 hardcode_action=immediate
11634 # We cannot hardcode anything, or else we can only hardcode existing
11636 hardcode_action=unsupported
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11639 $as_echo "$hardcode_action" >&6; }
11641 if test relink = "$hardcode_action" ||
11642 test yes = "$inherit_rpath"; then
11643 # Fast installation is not supported
11644 enable_fast_install=no
11645 elif test yes = "$shlibpath_overrides_runpath" ||
11646 test no = "$enable_shared"; then
11647 # Fast installation is not necessary
11648 enable_fast_install=needless
11656 if test yes != "$enable_dlopen"; then
11657 enable_dlopen=unknown
11658 enable_dlopen_self=unknown
11659 enable_dlopen_self_static=unknown
11666 lt_cv_dlopen=load_add_on
11668 lt_cv_dlopen_self=yes
11671 mingw* | pw32* | cegcc*)
11672 lt_cv_dlopen=LoadLibrary
11677 lt_cv_dlopen=dlopen
11682 # if libdl is installed we need to link against it
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11684 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11685 if ${ac_cv_lib_dl_dlopen+:} false; then :
11686 $as_echo_n "(cached) " >&6
11688 ac_check_lib_save_LIBS=$LIBS
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11708 if ac_fn_c_try_link "$LINENO"; then :
11709 ac_cv_lib_dl_dlopen=yes
11711 ac_cv_lib_dl_dlopen=no
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11720 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11725 lt_cv_dlopen_self=yes
11732 # Don't try to run any link tests for TPF. We know it's impossible
11733 # because TPF is a cross-compiler, and we know how we open DSOs.
11734 lt_cv_dlopen=dlopen
11736 lt_cv_dlopen_self=no
11740 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11741 if test "x$ac_cv_func_shl_load" = xyes; then :
11742 lt_cv_dlopen=shl_load
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11746 if ${ac_cv_lib_dld_shl_load+:} false; then :
11747 $as_echo_n "(cached) " >&6
11749 ac_check_lib_save_LIBS=$LIBS
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11764 return shl_load ();
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_dld_shl_load=yes
11772 ac_cv_lib_dld_shl_load=no
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11780 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11781 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11783 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11784 if test "x$ac_cv_func_dlopen" = xyes; then :
11785 lt_cv_dlopen=dlopen
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11789 if ${ac_cv_lib_dl_dlopen+:} false; then :
11790 $as_echo_n "(cached) " >&6
11792 ac_check_lib_save_LIBS=$LIBS
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 ac_cv_lib_dl_dlopen=yes
11815 ac_cv_lib_dl_dlopen=no
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11824 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11828 if ${ac_cv_lib_svld_dlopen+:} false; then :
11829 $as_echo_n "(cached) " >&6
11831 ac_check_lib_save_LIBS=$LIBS
11832 LIBS="-lsvld $LIBS"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11851 if ac_fn_c_try_link "$LINENO"; then :
11852 ac_cv_lib_svld_dlopen=yes
11854 ac_cv_lib_svld_dlopen=no
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 LIBS=$ac_check_lib_save_LIBS
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11862 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11863 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11867 if ${ac_cv_lib_dld_dld_link+:} false; then :
11868 $as_echo_n "(cached) " >&6
11870 ac_check_lib_save_LIBS=$LIBS
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11885 return dld_link ();
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_dld_dld_link=yes
11893 ac_cv_lib_dld_dld_link=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11901 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11902 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11923 if test no = "$lt_cv_dlopen"; then
11929 case $lt_cv_dlopen in
11931 save_CPPFLAGS=$CPPFLAGS
11932 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11934 save_LDFLAGS=$LDFLAGS
11935 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11938 LIBS="$lt_cv_dlopen_libs $LIBS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11942 if ${lt_cv_dlopen_self+:} false; then :
11943 $as_echo_n "(cached) " >&6
11945 if test yes = "$cross_compiling"; then :
11946 lt_cv_dlopen_self=cross
11948 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11949 lt_status=$lt_dlunknown
11950 cat > conftest.$ac_ext <<_LT_EOF
11951 #line $LINENO "configure"
11952 #include "confdefs.h"
11961 # define LT_DLGLOBAL RTLD_GLOBAL
11964 # define LT_DLGLOBAL DL_GLOBAL
11966 # define LT_DLGLOBAL 0
11970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11971 find out it does not work in some platform. */
11972 #ifndef LT_DLLAZY_OR_NOW
11974 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11977 # define LT_DLLAZY_OR_NOW DL_LAZY
11980 # define LT_DLLAZY_OR_NOW RTLD_NOW
11983 # define LT_DLLAZY_OR_NOW DL_NOW
11985 # define LT_DLLAZY_OR_NOW 0
11992 /* When -fvisibility=hidden is used, assume the code has been annotated
11993 correspondingly for the symbols needed. */
11994 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11995 int fnord () __attribute__((visibility("default")));
11998 int fnord () { return 42; }
12001 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12002 int status = $lt_dlunknown;
12006 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12009 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12010 else puts (dlerror ());
12012 /* dlclose (self); */
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12021 (eval $ac_link) 2>&5
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12025 (./conftest; exit; ) >&5 2>/dev/null
12027 case x$lt_status in
12028 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12029 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12030 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12033 # compilation failed
12034 lt_cv_dlopen_self=no
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12042 $as_echo "$lt_cv_dlopen_self" >&6; }
12044 if test yes = "$lt_cv_dlopen_self"; then
12045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12048 if ${lt_cv_dlopen_self_static+:} false; then :
12049 $as_echo_n "(cached) " >&6
12051 if test yes = "$cross_compiling"; then :
12052 lt_cv_dlopen_self_static=cross
12054 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12055 lt_status=$lt_dlunknown
12056 cat > conftest.$ac_ext <<_LT_EOF
12057 #line $LINENO "configure"
12058 #include "confdefs.h"
12067 # define LT_DLGLOBAL RTLD_GLOBAL
12070 # define LT_DLGLOBAL DL_GLOBAL
12072 # define LT_DLGLOBAL 0
12076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12077 find out it does not work in some platform. */
12078 #ifndef LT_DLLAZY_OR_NOW
12080 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12083 # define LT_DLLAZY_OR_NOW DL_LAZY
12086 # define LT_DLLAZY_OR_NOW RTLD_NOW
12089 # define LT_DLLAZY_OR_NOW DL_NOW
12091 # define LT_DLLAZY_OR_NOW 0
12098 /* When -fvisibility=hidden is used, assume the code has been annotated
12099 correspondingly for the symbols needed. */
12100 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12101 int fnord () __attribute__((visibility("default")));
12104 int fnord () { return 42; }
12107 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12108 int status = $lt_dlunknown;
12112 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12115 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12116 else puts (dlerror ());
12118 /* dlclose (self); */
12126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12127 (eval $ac_link) 2>&5
12129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12130 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12131 (./conftest; exit; ) >&5 2>/dev/null
12133 case x$lt_status in
12134 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12135 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12136 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12139 # compilation failed
12140 lt_cv_dlopen_self_static=no
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12151 CPPFLAGS=$save_CPPFLAGS
12152 LDFLAGS=$save_LDFLAGS
12157 case $lt_cv_dlopen_self in
12158 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12159 *) enable_dlopen_self=unknown ;;
12162 case $lt_cv_dlopen_self_static in
12163 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12164 *) enable_dlopen_self_static=unknown ;;
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12189 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12190 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12192 $as_echo "yes" >&6; }
12194 # FIXME - insert some real tests, host_os isn't really good enough
12197 if test -n "$STRIP"; then
12198 striplib="$STRIP -x"
12199 old_striplib="$STRIP -S"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12201 $as_echo "yes" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12225 # Report what library types will actually be built
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12229 $as_echo "$can_build_shared" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12232 $as_echo_n "checking whether to build shared libraries... " >&6; }
12233 test no = "$can_build_shared" && enable_shared=no
12235 # On AIX, shared libraries and static libraries use the same namespace, and
12236 # are all built from PIC.
12239 test yes = "$enable_shared" && enable_static=no
12240 if test -n "$RANLIB"; then
12241 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12242 postinstall_cmds='$RANLIB $lib'
12247 if test ia64 != "$host_cpu"; then
12248 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12249 yes,aix,yes) ;; # shared object as lib.so file only
12250 yes,svr4,*) ;; # shared object as lib.so archive member only
12251 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12257 $as_echo "$enable_shared" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12260 $as_echo_n "checking whether to build static libraries... " >&6; }
12261 # Make sure either enable_shared or enable_static is yes.
12262 test yes = "$enable_shared" || enable_static=yes
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12264 $as_echo "$enable_static" >&6; }
12271 ac_cpp='$CPP $CPPFLAGS'
12272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292 ac_config_commands="$ac_config_commands libtool"
12297 # Only expand once:
12300 # Check whether --enable-largefile was given.
12301 if test "${enable_largefile+set}" = set; then :
12302 enableval=$enable_largefile;
12305 if test "$enable_largefile" != no; then
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12308 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12309 if ${ac_cv_sys_largefile_CC+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 ac_cv_sys_largefile_CC=no
12313 if test "$GCC" != yes; then
12316 # IRIX 6.2 and later do not support large files by default,
12317 # so use the C compiler's -n32 option if that helps.
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 #include <sys/types.h>
12321 /* Check that off_t can represent 2**63 - 1 correctly.
12322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12323 since some C++ compilers masquerading as C compilers
12324 incorrectly reject 9223372036854775807. */
12325 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12327 && LARGE_OFF_T % 2147483647 == 1)
12337 if ac_fn_c_try_compile "$LINENO"; then :
12340 rm -f core conftest.err conftest.$ac_objext
12342 if ac_fn_c_try_compile "$LINENO"; then :
12343 ac_cv_sys_largefile_CC=' -n32'; break
12345 rm -f core conftest.err conftest.$ac_objext
12349 rm -f conftest.$ac_ext
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12353 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12354 if test "$ac_cv_sys_largefile_CC" != no; then
12355 CC=$CC$ac_cv_sys_largefile_CC
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12359 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12360 if ${ac_cv_sys_file_offset_bits+:} false; then :
12361 $as_echo_n "(cached) " >&6
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #include <sys/types.h>
12367 /* Check that off_t can represent 2**63 - 1 correctly.
12368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12369 since some C++ compilers masquerading as C compilers
12370 incorrectly reject 9223372036854775807. */
12371 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12373 && LARGE_OFF_T % 2147483647 == 1)
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384 ac_cv_sys_file_offset_bits=no; break
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 #define _FILE_OFFSET_BITS 64
12390 #include <sys/types.h>
12391 /* Check that off_t can represent 2**63 - 1 correctly.
12392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12393 since some C++ compilers masquerading as C compilers
12394 incorrectly reject 9223372036854775807. */
12395 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12397 && LARGE_OFF_T % 2147483647 == 1)
12407 if ac_fn_c_try_compile "$LINENO"; then :
12408 ac_cv_sys_file_offset_bits=64; break
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 ac_cv_sys_file_offset_bits=unknown
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12416 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12417 case $ac_cv_sys_file_offset_bits in #(
12420 cat >>confdefs.h <<_ACEOF
12421 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12426 if test $ac_cv_sys_file_offset_bits = unknown; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12428 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12429 if ${ac_cv_sys_large_files+:} false; then :
12430 $as_echo_n "(cached) " >&6
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435 #include <sys/types.h>
12436 /* Check that off_t can represent 2**63 - 1 correctly.
12437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12438 since some C++ compilers masquerading as C compilers
12439 incorrectly reject 9223372036854775807. */
12440 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12442 && LARGE_OFF_T % 2147483647 == 1)
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453 ac_cv_sys_large_files=no; break
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h. */
12458 #define _LARGE_FILES 1
12459 #include <sys/types.h>
12460 /* Check that off_t can represent 2**63 - 1 correctly.
12461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12462 since some C++ compilers masquerading as C compilers
12463 incorrectly reject 9223372036854775807. */
12464 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
12465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12466 && LARGE_OFF_T % 2147483647 == 1)
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477 ac_cv_sys_large_files=1; break
12479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 ac_cv_sys_large_files=unknown
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12485 $as_echo "$ac_cv_sys_large_files" >&6; }
12486 case $ac_cv_sys_large_files in #(
12489 cat >>confdefs.h <<_ACEOF
12490 #define _LARGE_FILES $ac_cv_sys_large_files
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12501 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12502 if ${ac_cv_c_bigendian+:} false; then :
12503 $as_echo_n "(cached) " >&6
12505 ac_cv_c_bigendian=unknown
12506 # See if we're dealing with a universal compiler.
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h. */
12509 #ifndef __APPLE_CC__
12510 not a universal capable compiler
12515 if ac_fn_c_try_compile "$LINENO"; then :
12517 # Check for potential -arch flags. It is not universal unless
12518 # there are at least two -arch flags with different values.
12521 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12522 if test -n "$ac_prev"; then
12524 i?86 | x86_64 | ppc | ppc64)
12525 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12528 ac_cv_c_bigendian=universal
12534 elif test "x$ac_word" = "x-arch"; then
12539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 if test $ac_cv_c_bigendian = unknown; then
12541 # See if sys/param.h defines the BYTE_ORDER macro.
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544 #include <sys/types.h>
12545 #include <sys/param.h>
12550 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12551 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12553 bogus endian macros
12560 if ac_fn_c_try_compile "$LINENO"; then :
12561 # It does; now see whether it defined to BIG_ENDIAN or not.
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #include <sys/types.h>
12565 #include <sys/param.h>
12570 #if BYTE_ORDER != BIG_ENDIAN
12578 if ac_fn_c_try_compile "$LINENO"; then :
12579 ac_cv_c_bigendian=yes
12581 ac_cv_c_bigendian=no
12583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 if test $ac_cv_c_bigendian = unknown; then
12588 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591 #include <limits.h>
12596 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12597 bogus endian macros
12604 if ac_fn_c_try_compile "$LINENO"; then :
12605 # It does; now see whether it defined to _BIG_ENDIAN or not.
12606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12607 /* end confdefs.h. */
12608 #include <limits.h>
12613 #ifndef _BIG_ENDIAN
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622 ac_cv_c_bigendian=yes
12624 ac_cv_c_bigendian=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 if test $ac_cv_c_bigendian = unknown; then
12631 # Compile a test program.
12632 if test "$cross_compiling" = yes; then :
12633 # Try to guess by grepping values from an object file.
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636 short int ascii_mm[] =
12637 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12638 short int ascii_ii[] =
12639 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12640 int use_ascii (int i) {
12641 return ascii_mm[i] + ascii_ii[i];
12643 short int ebcdic_ii[] =
12644 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12645 short int ebcdic_mm[] =
12646 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12647 int use_ebcdic (int i) {
12648 return ebcdic_mm[i] + ebcdic_ii[i];
12655 return use_ascii (foo) == use_ebcdic (foo);
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12662 ac_cv_c_bigendian=yes
12664 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12665 if test "$ac_cv_c_bigendian" = unknown; then
12666 ac_cv_c_bigendian=no
12668 # finding both strings is unlikely to happen, but who knows?
12669 ac_cv_c_bigendian=unknown
12673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 $ac_includes_default
12682 /* Are we little or big endian? From Harbison&Steele. */
12686 char c[sizeof (long int)];
12689 return u.c[sizeof (long int) - 1] == 1;
12695 if ac_fn_c_try_run "$LINENO"; then :
12696 ac_cv_c_bigendian=no
12698 ac_cv_c_bigendian=yes
12700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12701 conftest.$ac_objext conftest.beam conftest.$ac_ext
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12707 $as_echo "$ac_cv_c_bigendian" >&6; }
12708 case $ac_cv_c_bigendian in #(
12710 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12716 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12720 as_fn_error $? "unknown endianness
12721 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12725 ac_config_files="$ac_config_files Makefile lib/Makefile mkfs/Makefile fsck/Makefile tune/Makefile label/Makefile dump/Makefile exfat2img/Makefile"
12728 cat >confcache <<\_ACEOF
12729 # This file is a shell script that caches the results of configure
12730 # tests run on this system so they can be shared between configure
12731 # scripts and configure runs, see configure's option --config-cache.
12732 # It is not useful on other systems. If it contains results you don't
12733 # want to keep, you may remove or edit it.
12735 # config.status only pays attention to the cache file if you give it
12736 # the --recheck option to rerun configure.
12738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12740 # following values.
12744 # The following way of writing the cache mishandles newlines in values,
12745 # but we know of no workaround that is simple, portable, and efficient.
12746 # So, we kill variables containing newlines.
12747 # Ultrix sh set writes to stderr and can't be redirected directly,
12748 # and sets the high bit in the cache file unless we assign to the vars.
12750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12751 eval ac_val=\$$ac_var
12755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12759 _ | IFS | as_nl) ;; #(
12760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12761 *) { eval $ac_var=; unset $ac_var;} ;;
12767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12768 *${as_nl}ac_space=\ *)
12769 # `set' does not quote correctly, so add quotes: double-quote
12770 # substitution turns \\\\ into \\, and sed turns \\ into \.
12773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12776 # `set' quotes correctly as required by POSIX, so do not add quotes.
12777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12791 if test -w "$cache_file"; then
12792 if test "x$cache_file" != "x/dev/null"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12794 $as_echo "$as_me: updating cache $cache_file" >&6;}
12795 if test ! -f "$cache_file" || test -h "$cache_file"; then
12796 cat confcache >"$cache_file"
12798 case $cache_file in #(
12800 mv -f confcache "$cache_file"$$ &&
12801 mv -f "$cache_file"$$ "$cache_file" ;; #(
12803 mv -f confcache "$cache_file" ;;
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12809 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12815 # Let make expand exec_prefix.
12816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12818 DEFS=-DHAVE_CONFIG_H
12823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12824 # 1. Remove the extension, and $U if already installed.
12825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12826 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12828 # will be set to the directory where LIBOBJS objects are built.
12829 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12830 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12832 LIBOBJS=$ac_libobjs
12834 LTLIBOBJS=$ac_ltlibobjs
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12838 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12839 if test -n "$am_sleep_pid"; then
12840 # Hide warnings about reused PIDs.
12841 wait $am_sleep_pid 2>/dev/null
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12844 $as_echo "done" >&6; }
12845 if test -n "$EXEEXT"; then
12847 am__EXEEXT_FALSE='#'
12849 am__EXEEXT_TRUE='#'
12853 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12854 as_fn_error $? "conditional \"AMDEP\" was never defined.
12855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12857 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12858 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12863 : "${CONFIG_STATUS=./config.status}"
12865 ac_clean_files_save=$ac_clean_files
12866 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12868 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12870 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12872 # Generated by $as_me.
12873 # Run this file to recreate the current configuration.
12874 # Compiler output produced by configure, useful for debugging
12875 # configure, is in config.log if it exists.
12878 ac_cs_recheck=false
12881 SHELL=\${CONFIG_SHELL-$SHELL}
12884 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12885 ## -------------------- ##
12886 ## M4sh Initialization. ##
12887 ## -------------------- ##
12889 # Be more Bourne compatible
12890 DUALCASE=1; export DUALCASE # for MKS sh
12891 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12895 # is contrary to our usage. Disable this feature.
12896 alias -g '${1+"$@"}'='"$@"'
12897 setopt NO_GLOB_SUBST
12899 case `(set -o) 2>/dev/null` in #(
12911 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12915 # Prefer a ksh shell builtin over an external printf program on Solaris,
12916 # but without wasting forks for bash or zsh.
12917 if test -z "$BASH_VERSION$ZSH_VERSION" \
12918 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12919 as_echo='print -r --'
12920 as_echo_n='print -rn --'
12921 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12922 as_echo='printf %s\n'
12923 as_echo_n='printf %s'
12925 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12926 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12927 as_echo_n='/usr/ucb/echo -n'
12929 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12930 as_echo_n_body='eval
12934 expr "X$arg" : "X\\(.*\\)$as_nl";
12935 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12937 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12939 export as_echo_n_body
12940 as_echo_n='sh -c $as_echo_n_body as_echo'
12942 export as_echo_body
12943 as_echo='sh -c $as_echo_body as_echo'
12946 # The user is always right.
12947 if test "${PATH_SEPARATOR+set}" != set; then
12949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12957 # We need space, tab and new line, in precisely that order. Quoting is
12958 # there to prevent editors from complaining about space-tab.
12959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12960 # splitting by setting IFS to empty value.)
12963 # Find who we are. Look in the path if we contain no directory separator.
12966 *[\\/]* ) as_myself=$0 ;;
12967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12971 test -z "$as_dir" && as_dir=.
12972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12978 # We did not find ourselves, most probably we were run as `sh COMMAND'
12979 # in which case we are not to be found in the path.
12980 if test "x$as_myself" = x; then
12983 if test ! -f "$as_myself"; then
12984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12988 # Unset variables that we do not need and which cause bugs (e.g. in
12989 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12990 # suppresses any "Segmentation fault" message there. '((' could
12991 # trigger a bug in pdksh 5.2.14.
12992 for as_var in BASH_ENV ENV MAIL MAILPATH
12993 do eval test x\${$as_var+set} = xset \
12994 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13010 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13011 # ----------------------------------------
13012 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13013 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13014 # script with STATUS, using 1 if that was 0.
13017 as_status=$1; test $as_status -eq 0 && as_status=1
13019 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13020 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13022 $as_echo "$as_me: error: $2" >&2
13023 as_fn_exit $as_status
13027 # as_fn_set_status STATUS
13028 # -----------------------
13029 # Set $? to STATUS, without forking.
13030 as_fn_set_status ()
13033 } # as_fn_set_status
13035 # as_fn_exit STATUS
13036 # -----------------
13037 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13041 as_fn_set_status $1
13047 # Portably unset VAR.
13050 { eval $1=; unset $1;}
13052 as_unset=as_fn_unset
13053 # as_fn_append VAR VALUE
13054 # ----------------------
13055 # Append the text in VALUE to the end of the definition contained in VAR. Take
13056 # advantage of any shell optimizations that allow amortized linear growth over
13057 # repeated appends, instead of the typical quadratic growth present in naive
13059 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13060 eval 'as_fn_append ()
13071 # as_fn_arith ARG...
13072 # ------------------
13073 # Perform arithmetic evaluation on the ARGs, and store the result in the
13074 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13075 # must be portable across $(()) and expr.
13076 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13077 eval 'as_fn_arith ()
13084 as_val=`expr "$@" || test $? -eq 1`
13089 if expr a : '\(a\)' >/dev/null 2>&1 &&
13090 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13097 as_basename=basename
13102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13108 as_me=`$as_basename -- "$0" ||
13109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13110 X"$0" : 'X\(//\)$' \| \
13111 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13113 sed '/^.*\/\([^/][^/]*\)\/*$/{
13127 # Avoid depending upon Character Ranges.
13128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13131 as_cr_digits='0123456789'
13132 as_cr_alnum=$as_cr_Letters$as_cr_digits
13134 ECHO_C= ECHO_N= ECHO_T=
13135 case `echo -n x` in #(((((
13137 case `echo 'xy\c'` in
13138 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13140 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13147 rm -f conf$$ conf$$.exe conf$$.file
13148 if test -d conf$$.dir; then
13149 rm -f conf$$.dir/conf$$.file
13152 mkdir conf$$.dir 2>/dev/null
13154 if (echo >conf$$.file) 2>/dev/null; then
13155 if ln -s conf$$.file conf$$ 2>/dev/null; then
13157 # ... but there are two gotchas:
13158 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13159 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13160 # In both cases, we have to default to `cp -pR'.
13161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13163 elif ln conf$$.file conf$$ 2>/dev/null; then
13171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13172 rmdir conf$$.dir 2>/dev/null
13177 # Create "$as_dir" as a directory, including parents if necessary.
13182 -*) as_dir=./$as_dir;;
13184 test -d "$as_dir" || eval $as_mkdir_p || {
13188 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13189 *) as_qdir=$as_dir;;
13191 as_dirs="'$as_qdir' $as_dirs"
13192 as_dir=`$as_dirname -- "$as_dir" ||
13193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13194 X"$as_dir" : 'X\(//\)[^/]' \| \
13195 X"$as_dir" : 'X\(//\)$' \| \
13196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13197 $as_echo X"$as_dir" |
13198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13202 /^X\(\/\/\)[^/].*/{
13215 test -d "$as_dir" && break
13217 test -z "$as_dirs" || eval "mkdir $as_dirs"
13218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13222 if mkdir -p . 2>/dev/null; then
13223 as_mkdir_p='mkdir -p "$as_dir"'
13225 test -d ./-p && rmdir ./-p
13230 # as_fn_executable_p FILE
13231 # -----------------------
13232 # Test if FILE is an executable regular file.
13233 as_fn_executable_p ()
13235 test -f "$1" && test -x "$1"
13236 } # as_fn_executable_p
13237 as_test_x='test -x'
13238 as_executable_p=as_fn_executable_p
13240 # Sed expression to map a string onto a valid CPP name.
13241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13243 # Sed expression to map a string onto a valid variable name.
13244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13248 ## ----------------------------------- ##
13249 ## Main body of $CONFIG_STATUS script. ##
13250 ## ----------------------------------- ##
13252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13255 # Save the log message, to keep $0 and so on meaningful, and to
13256 # report actual input values of CONFIG_FILES etc. instead of their
13257 # values after options handling.
13259 This file was extended by exfatprogs $as_me 1.2.1, which was
13260 generated by GNU Autoconf 2.69. Invocation command line was
13262 CONFIG_FILES = $CONFIG_FILES
13263 CONFIG_HEADERS = $CONFIG_HEADERS
13264 CONFIG_LINKS = $CONFIG_LINKS
13265 CONFIG_COMMANDS = $CONFIG_COMMANDS
13268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13273 case $ac_config_files in *"
13274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13277 case $ac_config_headers in *"
13278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13283 # Files that config.status was made for.
13284 config_files="$ac_config_files"
13285 config_headers="$ac_config_headers"
13286 config_commands="$ac_config_commands"
13290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292 \`$as_me' instantiates files and other configuration actions
13293 from templates according to the current configuration. Unless the files
13294 and actions are specified as TAGs, all are instantiated by default.
13296 Usage: $0 [OPTION]... [TAG]...
13298 -h, --help print this help, then exit
13299 -V, --version print version number and configuration settings, then exit
13300 --config print configuration, then exit
13301 -q, --quiet, --silent
13302 do not print progress messages
13303 -d, --debug don't remove temporary files
13304 --recheck update $as_me by reconfiguring in the same conditions
13305 --file=FILE[:TEMPLATE]
13306 instantiate the configuration file FILE
13307 --header=FILE[:TEMPLATE]
13308 instantiate the configuration header FILE
13310 Configuration files:
13313 Configuration headers:
13316 Configuration commands:
13319 Report bugs to <linkinjeon@kernel.org>.
13320 exfatprogs home page: <https://github.com/exfatprogs/exfatprogs>."
13323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13324 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13326 exfatprogs config.status 1.2.1
13327 configured by $0, generated by GNU Autoconf 2.69,
13328 with options \\"\$ac_cs_config\\"
13330 Copyright (C) 2012 Free Software Foundation, Inc.
13331 This config.status script is free software; the Free Software Foundation
13332 gives unlimited permission to copy, distribute and modify it."
13339 test -n "\$AWK" || AWK=awk
13342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13343 # The default lists apply if the user does not specify any file.
13349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13350 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13354 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13366 # Handling of the options.
13367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13369 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13370 $as_echo "$ac_cs_version"; exit ;;
13371 --config | --confi | --conf | --con | --co | --c )
13372 $as_echo "$ac_cs_config"; exit ;;
13373 --debug | --debu | --deb | --de | --d | -d )
13375 --file | --fil | --fi | --f )
13378 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13379 '') as_fn_error $? "missing file argument" ;;
13381 as_fn_append CONFIG_FILES " '$ac_optarg'"
13382 ac_need_defaults=false;;
13383 --header | --heade | --head | --hea )
13386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13388 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13389 ac_need_defaults=false;;
13391 # Conflict between --help and --header
13392 as_fn_error $? "ambiguous option: \`$1'
13393 Try \`$0 --help' for more information.";;
13394 --help | --hel | -h )
13395 $as_echo "$ac_cs_usage"; exit ;;
13396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13397 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13400 # This is an error.
13401 -*) as_fn_error $? "unrecognized option: \`$1'
13402 Try \`$0 --help' for more information." ;;
13404 *) as_fn_append ac_config_targets " $1"
13405 ac_need_defaults=false ;;
13411 ac_configure_extra_args=
13413 if $ac_cs_silent; then
13415 ac_configure_extra_args="$ac_configure_extra_args --silent"
13419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13420 if \$ac_cs_recheck; then
13421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13424 CONFIG_SHELL='$SHELL'
13425 export CONFIG_SHELL
13430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13435 ## Running $as_me. ##
13441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13445 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13448 # The HP-UX ksh and POSIX shell print the target directory to stdout
13449 # if CDPATH is set.
13450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13452 sed_quote_subst='$sed_quote_subst'
13453 double_quote_subst='$double_quote_subst'
13454 delay_variable_subst='$delay_variable_subst'
13455 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13456 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13457 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13458 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13459 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13460 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13461 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13462 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13463 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13464 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13485 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13486 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13487 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13488 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13489 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13490 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13491 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13492 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13493 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13494 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13495 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13496 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13497 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13498 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13499 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13500 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13501 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13502 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13503 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13504 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13505 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13506 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13507 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13508 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13509 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13510 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13511 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13513 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"`'
13514 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13515 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13516 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13517 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13518 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13519 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13520 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13521 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13522 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13523 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13524 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13525 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13526 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13527 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13528 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13529 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13530 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13531 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13532 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13533 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13534 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13535 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13536 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13537 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13538 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13539 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13540 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13541 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13542 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13543 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13544 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13545 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13546 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13547 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13548 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13549 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13550 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13551 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13552 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13553 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13554 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13555 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13556 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13557 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13558 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13559 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13560 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13561 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13562 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13563 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13564 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13565 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13566 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13567 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13568 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13569 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13570 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13571 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13572 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13573 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13574 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13575 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13576 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13577 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13578 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13579 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13580 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13581 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13582 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13583 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13584 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13585 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13586 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13587 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13588 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13589 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13592 LTCFLAGS='$LTCFLAGS'
13593 compiler='$compiler_DEFAULT'
13595 # A function that is used when there is no print builtin or printf.
13596 func_fallback_echo ()
13598 eval 'cat <<_LTECHO_EOF
13603 # Quote evaled strings.
13618 deplibs_check_method \
13623 sharedlib_from_linklib_cmd \
13626 archiver_list_spec \
13632 lt_cv_sys_global_symbol_pipe \
13633 lt_cv_sys_global_symbol_to_cdecl \
13634 lt_cv_sys_global_symbol_to_import \
13635 lt_cv_sys_global_symbol_to_c_name_address \
13636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13637 lt_cv_nm_interface \
13638 nm_file_list_spec \
13639 lt_cv_truncate_bin \
13640 lt_prog_compiler_no_builtin_flag \
13641 lt_prog_compiler_pic \
13642 lt_prog_compiler_wl \
13643 lt_prog_compiler_static \
13644 lt_cv_prog_compiler_c_o \
13653 export_dynamic_flag_spec \
13654 whole_archive_flag_spec \
13655 compiler_needs_object \
13657 allow_undefined_flag \
13658 no_undefined_flag \
13659 hardcode_libdir_flag_spec \
13660 hardcode_libdir_separator \
13664 variables_saved_for_relink \
13666 library_names_spec \
13668 install_override_mode \
13672 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13673 *[\\\\\\\`\\"\\\$]*)
13674 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13677 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13682 # Double-quote double-evaled strings.
13683 for var in reload_cmds \
13684 old_postinstall_cmds \
13685 old_postuninstall_cmds \
13687 extract_expsyms_cmds \
13688 old_archive_from_new_cmds \
13689 old_archive_from_expsyms_cmds \
13691 archive_expsym_cmds \
13693 module_expsym_cmds \
13694 export_symbols_cmds \
13698 postuninstall_cmds \
13700 sys_lib_search_path_spec \
13701 configure_time_dlsearch_path \
13702 configure_time_lt_sys_library_path; do
13703 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13704 *[\\\\\\\`\\"\\\$]*)
13705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13713 ac_aux_dir='$ac_aux_dir'
13715 # See if we are running on zsh, and set the options that allow our
13716 # commands through without removal of \ escapes INIT.
13717 if test -n "\${ZSH_VERSION+set}"; then
13718 setopt NO_GLOB_SUBST
13732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13734 # Handling of arguments.
13735 for ac_config_target in $ac_config_targets
13737 case $ac_config_target in
13738 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13739 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13740 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13741 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13742 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13743 "mkfs/Makefile") CONFIG_FILES="$CONFIG_FILES mkfs/Makefile" ;;
13744 "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
13745 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
13746 "label/Makefile") CONFIG_FILES="$CONFIG_FILES label/Makefile" ;;
13747 "dump/Makefile") CONFIG_FILES="$CONFIG_FILES dump/Makefile" ;;
13748 "exfat2img/Makefile") CONFIG_FILES="$CONFIG_FILES exfat2img/Makefile" ;;
13750 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13755 # If the user did not use the arguments to specify the items to instantiate,
13756 # then the envvar interface is used. Set only those that are not.
13757 # We use the long form for the default assignment because of an extremely
13758 # bizarre bug on SunOS 4.1.3.
13759 if $ac_need_defaults; then
13760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13765 # Have a temporary directory for convenience. Make it in the build tree
13766 # simply because there is no reason against having it here, and in addition,
13767 # creating and moving files from /tmp can sometimes cause problems.
13768 # Hook for its removal unless debugging.
13769 # Note that there is a small window in which the directory will not be cleaned:
13770 # after its creation but before its name has been assigned to `$tmp'.
13774 trap 'exit_status=$?
13775 : "${ac_tmp:=$tmp}"
13776 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13778 trap 'as_fn_exit 1' 1 2 13 15
13780 # Create a (secure) tmp directory for tmp files.
13783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13787 tmp=./conf$$-$RANDOM
13788 (umask 077 && mkdir "$tmp")
13789 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13792 # Set up the scripts for CONFIG_FILES section.
13793 # No need to generate them if there are no CONFIG_FILES.
13794 # This happens for instance with `./config.status config.h'.
13795 if test -n "$CONFIG_FILES"; then
13798 ac_cr=`echo X | tr X '\015'`
13799 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13800 # But we know of no other shell where ac_cr would be empty at this
13801 # point, so we can use a bashism as a fallback.
13802 if test "x$ac_cr" = x; then
13803 eval ac_cr=\$\'\\r\'
13805 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13806 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13809 ac_cs_awk_cr=$ac_cr
13812 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13817 echo "cat >conf$$subs.awk <<_ACEOF" &&
13818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13820 } >conf$$subs.sh ||
13821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13822 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13824 for ac_last_try in false false false false false :; do
13825 . ./conf$$subs.sh ||
13826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13829 if test $ac_delim_n = $ac_delim_num; then
13831 elif $ac_last_try; then
13832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13837 rm -f conf$$subs.sh
13839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13840 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13844 s/^/S["/; s/!.*/"]=/
13854 s/\(.\{148\}\)..*/\1/
13856 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13861 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13868 s/\(.\{148\}\)..*/\1/
13870 s/["\\]/\\&/g; s/^/"/; s/$/"/
13874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13879 ' <conf$$subs.awk | sed '
13884 ' >>$CONFIG_STATUS || ac_write_fail=1
13885 rm -f conf$$subs.awk
13886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13888 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13889 for (key in S) S_is_set[key] = 1
13895 nfields = split(line, field, "@")
13897 len = length(field[1])
13898 for (i = 2; i < nfields; i++) {
13900 keylen = length(key)
13901 if (S_is_set[key]) {
13903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13904 len += length(value) + length(field[++i])
13915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13916 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13920 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13921 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13924 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13925 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13926 # trailing colons and then remove the whole line if VPATH becomes empty
13927 # (actually we leave an empty line to preserve line numbers).
13928 if test "x$srcdir" = x.; then
13929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13948 fi # test -n "$CONFIG_FILES"
13950 # Set up the scripts for CONFIG_HEADERS section.
13951 # No need to generate them if there are no CONFIG_HEADERS.
13952 # This happens for instance with `./config.status Makefile'.
13953 if test -n "$CONFIG_HEADERS"; then
13954 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13958 # Transform confdefs.h into an awk script `defines.awk', embedded as
13959 # here-document in config.status, that substitutes the proper values into
13960 # config.h.in to produce config.h.
13962 # Create a delimiter string that does not exist in confdefs.h, to ease
13963 # handling of long lines.
13965 for ac_last_try in false false :; do
13966 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13967 if test -z "$ac_tt"; then
13969 elif $ac_last_try; then
13970 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13976 # For the awk script, D is an array of macro values keyed by name,
13977 # likewise P contains macro parameters if any. Preserve backslash
13978 # newline sequences.
13980 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13982 s/.\{148\}/&'"$ac_delim"'/g
13985 s/^[ ]*#[ ]*define[ ][ ]*/ /
13992 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13994 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13999 D["\1"]=" \3\\\\\\n"\\/p
14001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14006 s/.\{148\}/&'"$ac_delim"'/g
14011 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14014 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14016 ' <confdefs.h | sed '
14017 s/'"$ac_delim"'/"\\\
14018 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14021 for (key in D) D_is_set[key] = 1
14024 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14026 split(line, arg, " ")
14027 if (arg[1] == "#") {
14031 defundef = substr(arg[1], 2)
14034 split(mac1, mac2, "(") #)
14036 prefix = substr(line, 1, index(line, defundef) - 1)
14037 if (D_is_set[macro]) {
14038 # Preserve the white space surrounding the "#".
14039 print prefix "define", macro P[macro] D[macro]
14042 # Replace #undef with comments. This is necessary, for example,
14043 # in the case of _POSIX_SOURCE, which is predefined and required
14044 # on some systems where configure will not decide to define it.
14045 if (defundef == "undef") {
14046 print "/*", prefix defundef, macro, "*/"
14054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14055 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14056 fi # test -n "$CONFIG_HEADERS"
14059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14064 :[FHLC]) ac_mode=$ac_tag; continue;;
14066 case $ac_mode$ac_tag in
14068 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14069 :[FH]-) ac_tag=-:-;;
14070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14087 -) ac_f="$ac_tmp/stdin";;
14088 *) # Look for the file first in the build tree, then in the source tree
14089 # (if the path is not absolute). The absolute path cannot be DOS-style,
14090 # because $ac_f cannot contain `:'.
14094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14096 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14099 as_fn_append ac_file_inputs " '$ac_f'"
14102 # Let's still pretend it is `configure' which instantiates (i.e., don't
14103 # use $as_me), people would be surprised to read:
14104 # /* config.h. Generated by config.status. */
14105 configure_input='Generated from '`
14106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14108 if test x"$ac_file" != x-; then
14109 configure_input="$ac_file. $configure_input"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14111 $as_echo "$as_me: creating $ac_file" >&6;}
14113 # Neutralize special characters interpreted by sed in replacement strings.
14114 case $configure_input in #(
14115 *\&* | *\|* | *\\* )
14116 ac_sed_conf_input=`$as_echo "$configure_input" |
14117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14118 *) ac_sed_conf_input=$configure_input;;
14122 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14128 ac_dir=`$as_dirname -- "$ac_file" ||
14129 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14130 X"$ac_file" : 'X\(//\)[^/]' \| \
14131 X"$ac_file" : 'X\(//\)$' \| \
14132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14133 $as_echo X"$ac_file" |
14134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14138 /^X\(\/\/\)[^/].*/{
14151 as_dir="$ac_dir"; as_fn_mkdir_p
14155 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14158 # A ".." for each directory in $ac_dir_suffix.
14159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14160 case $ac_top_builddir_sub in
14161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14165 ac_abs_top_builddir=$ac_pwd
14166 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14167 # for backward compatibility:
14168 ac_top_builddir=$ac_top_build_prefix
14171 .) # We are building in place.
14173 ac_top_srcdir=$ac_top_builddir_sub
14174 ac_abs_top_srcdir=$ac_pwd ;;
14175 [\\/]* | ?:[\\/]* ) # Absolute name.
14176 ac_srcdir=$srcdir$ac_dir_suffix;
14177 ac_top_srcdir=$srcdir
14178 ac_abs_top_srcdir=$srcdir ;;
14179 *) # Relative name.
14180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14181 ac_top_srcdir=$ac_top_build_prefix$srcdir
14182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14184 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14197 ac_MKDIR_P=$MKDIR_P
14199 [\\/$]* | ?:[\\/]* ) ;;
14200 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14205 # If the template does not know about datarootdir, expand it.
14206 # FIXME: This hack should be removed a few years after 2.60.
14207 ac_datarootdir_hack=; ac_datarootdir_seen=
14218 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14219 *datarootdir*) ac_datarootdir_seen=yes;;
14220 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14222 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14225 ac_datarootdir_hack='
14226 s&@datadir@&$datadir&g
14227 s&@docdir@&$docdir&g
14228 s&@infodir@&$infodir&g
14229 s&@localedir@&$localedir&g
14230 s&@mandir@&$mandir&g
14231 s&\\\${datarootdir}&$datarootdir&g' ;;
14235 # Neutralize VPATH when `$srcdir' = `.'.
14236 # Shell code in configure.ac might set extrasub.
14237 # FIXME: do we really want to maintain this feature?
14238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14239 ac_sed_extra="$ac_vpsub
14242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14245 s|@configure_input@|$ac_sed_conf_input|;t t
14246 s&@top_builddir@&$ac_top_builddir_sub&;t t
14247 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14248 s&@srcdir@&$ac_srcdir&;t t
14249 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14250 s&@top_srcdir@&$ac_top_srcdir&;t t
14251 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14252 s&@builddir@&$ac_builddir&;t t
14253 s&@abs_builddir@&$ac_abs_builddir&;t t
14254 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14255 s&@INSTALL@&$ac_INSTALL&;t t
14256 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14257 $ac_datarootdir_hack
14259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14260 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14265 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14267 which seems to be undefined. Please make sure it is defined" >&5
14268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14269 which seems to be undefined. Please make sure it is defined" >&2;}
14271 rm -f "$ac_tmp/stdin"
14273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14282 if test x"$ac_file" != x-; then
14284 $as_echo "/* $configure_input */" \
14285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14286 } >"$ac_tmp/config.h" \
14287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14293 mv "$ac_tmp/config.h" "$ac_file" \
14294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14297 $as_echo "/* $configure_input */" \
14298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14299 || as_fn_error $? "could not create -" "$LINENO" 5
14301 # Compute "$ac_file"'s index in $config_headers.
14304 for _am_header in $config_headers :; do
14305 case $_am_header in
14306 $_am_arg | $_am_arg:* )
14309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14312 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14313 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314 X"$_am_arg" : 'X\(//\)[^/]' \| \
14315 X"$_am_arg" : 'X\(//\)$' \| \
14316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14317 $as_echo X"$_am_arg" |
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14322 /^X\(\/\/\)[^/].*/{
14334 s/.*/./; q'`/stamp-h$_am_stamp_count
14337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14338 $as_echo "$as_me: executing $ac_file commands" >&6;}
14343 case $ac_file$ac_mode in
14344 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14345 # Older Autoconf quotes --file arguments for eval, but not when files
14346 # are listed without --file. Let's play safe and only enable the eval
14347 # if we detect the quoting.
14348 # TODO: see whether this extra hack can be removed once we start
14349 # requiring Autoconf 2.70 or later.
14350 case $CONFIG_FILES in #(
14352 eval set x "$CONFIG_FILES" ;; #(
14354 set x $CONFIG_FILES ;; #(
14359 # Used to flag and report bootstrapping failures.
14363 # Strip MF so we end up with the name of the file.
14364 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14365 # Check whether this is an Automake generated Makefile which includes
14366 # dependency-tracking related rules and includes.
14367 # Grep'ing the whole file directly is not great: AIX grep has a line
14368 # limit of 2048, but all sed's we know have understand at least 4000.
14369 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14371 am_dirpart=`$as_dirname -- "$am_mf" ||
14372 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14373 X"$am_mf" : 'X\(//\)[^/]' \| \
14374 X"$am_mf" : 'X\(//\)$' \| \
14375 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14376 $as_echo X"$am_mf" |
14377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14381 /^X\(\/\/\)[^/].*/{
14394 am_filepart=`$as_basename -- "$am_mf" ||
14395 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14396 X"$am_mf" : 'X\(//\)$' \| \
14397 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14398 $as_echo X/"$am_mf" |
14399 sed '/^.*\/\([^/][^/]*\)\/*$/{
14412 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14413 && sed -e '/# am--include-marker/d' "$am_filepart" \
14414 | $MAKE -f - am--depfiles" >&5
14415 (cd "$am_dirpart" \
14416 && sed -e '/# am--include-marker/d' "$am_filepart" \
14417 | $MAKE -f - am--depfiles) >&5 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } || am_rc=$?
14422 if test $am_rc -ne 0; then
14423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14425 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14426 for automatic dependency tracking. Try re-running configure with the
14427 '--disable-dependency-tracking' option to at least be able to build
14428 the package (albeit without support for automatic dependency tracking).
14429 See \`config.log' for more details" "$LINENO" 5; }
14431 { am_dirpart=; unset am_dirpart;}
14432 { am_filepart=; unset am_filepart;}
14433 { am_mf=; unset am_mf;}
14434 { am_rc=; unset am_rc;}
14435 rm -f conftest-deps.mk
14440 # See if we are running on zsh, and set the options that allow our
14441 # commands through without removal of \ escapes.
14442 if test -n "${ZSH_VERSION+set}"; then
14443 setopt NO_GLOB_SUBST
14447 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14450 cat <<_LT_EOF >> "$cfgfile"
14452 # Generated automatically by $as_me ($PACKAGE) $VERSION
14453 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14455 # Provide generalized library-building support services.
14456 # Written by Gordon Matzigkeit, 1996
14458 # Copyright (C) 2014 Free Software Foundation, Inc.
14459 # This is free software; see the source for copying conditions. There is NO
14460 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14462 # GNU Libtool is free software; you can redistribute it and/or modify
14463 # it under the terms of the GNU General Public License as published by
14464 # the Free Software Foundation; either version 2 of of the License, or
14465 # (at your option) any later version.
14467 # As a special exception to the GNU General Public License, if you
14468 # distribute this file as part of a program or library that is built
14469 # using GNU Libtool, you may include this file under the same
14470 # distribution terms that you use for the rest of that program.
14472 # GNU Libtool is distributed in the hope that it will be useful, but
14473 # WITHOUT ANY WARRANTY; without even the implied warranty of
14474 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14475 # GNU General Public License for more details.
14477 # You should have received a copy of the GNU General Public License
14478 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14481 # The names of the tagged configurations supported by this script.
14484 # Configured defaults for sys_lib_dlsearch_path munging.
14485 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14487 # ### BEGIN LIBTOOL CONFIG
14489 # Which release of libtool.m4 was used?
14490 macro_version=$macro_version
14491 macro_revision=$macro_revision
14493 # Whether or not to build shared libraries.
14494 build_libtool_libs=$enable_shared
14496 # Whether or not to build static libraries.
14497 build_old_libs=$enable_static
14499 # What type of objects to build.
14502 # Whether or not to optimize for fast installation.
14503 fast_install=$enable_fast_install
14505 # Shared archive member basename,for filename based shared library versioning on AIX.
14506 shared_archive_member_spec=$shared_archive_member_spec
14508 # Shell to use when invoking shell scripts.
14511 # An echo program that protects backslashes.
14514 # The PATH separator for the build system.
14515 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14518 host_alias=$host_alias
14522 # The build system.
14523 build_alias=$build_alias
14527 # A sed program that does not truncate output.
14530 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14531 Xsed="\$SED -e 1s/^X//"
14533 # A grep program that handles long lines.
14539 # A literal string matcher.
14542 # A BSD- or MS-compatible name lister.
14545 # Whether we need soft or hard links.
14548 # What is the maximum length of a command?
14549 max_cmd_len=$max_cmd_len
14551 # Object file suffix (normally "o").
14554 # Executable file suffix (normally "").
14557 # whether the shell understands "unset".
14560 # turn spaces into newlines.
14563 # turn newlines into spaces.
14566 # convert \$build file names to \$host format.
14567 to_host_file_cmd=$lt_cv_to_host_file_cmd
14569 # convert \$build files to toolchain format.
14570 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14572 # An object symbol dumper.
14573 OBJDUMP=$lt_OBJDUMP
14575 # Method to check whether dependent libraries are shared objects.
14576 deplibs_check_method=$lt_deplibs_check_method
14578 # Command to use when deplibs_check_method = "file_magic".
14579 file_magic_cmd=$lt_file_magic_cmd
14581 # How to find potential files when deplibs_check_method = "file_magic".
14582 file_magic_glob=$lt_file_magic_glob
14584 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14585 want_nocaseglob=$lt_want_nocaseglob
14587 # DLL creation program.
14588 DLLTOOL=$lt_DLLTOOL
14590 # Command to associate shared and link libraries.
14591 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14596 # Flags to create an archive.
14597 AR_FLAGS=$lt_AR_FLAGS
14599 # How to feed a file listing to the archiver.
14600 archiver_list_spec=$lt_archiver_list_spec
14602 # A symbol stripping program.
14605 # Commands used to install an old-style archive.
14607 old_postinstall_cmds=$lt_old_postinstall_cmds
14608 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14610 # Whether to use a lock for old archive extraction.
14611 lock_old_archive_extraction=$lock_old_archive_extraction
14616 # LTCC compiler flags.
14617 LTCFLAGS=$lt_CFLAGS
14619 # Take the output of nm and produce a listing of raw symbols and C names.
14620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14622 # Transform the output of nm in a proper C declaration.
14623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14625 # Transform the output of nm into a list of symbols to manually relocate.
14626 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14628 # Transform the output of nm in a C name address pair.
14629 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14631 # Transform the output of nm in a C name address pair when lib prefix is needed.
14632 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14634 # The name lister interface.
14635 nm_interface=$lt_lt_cv_nm_interface
14637 # Specify filename containing input files for \$NM.
14638 nm_file_list_spec=$lt_nm_file_list_spec
14640 # The root where to search for dependent libraries,and where our libraries should be installed.
14641 lt_sysroot=$lt_sysroot
14643 # Command to truncate a binary pipe.
14644 lt_truncate_bin=$lt_lt_cv_truncate_bin
14646 # The name of the directory that contains temporary libtool files.
14649 # Used to examine libraries when file_magic_cmd begins with "file".
14650 MAGIC_CMD=$MAGIC_CMD
14652 # Must we lock files when doing compilation?
14653 need_locks=$lt_need_locks
14656 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14658 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14659 DSYMUTIL=$lt_DSYMUTIL
14661 # Tool to change global to local symbols on Mac OS X.
14664 # Tool to manipulate fat objects and archives on Mac OS X.
14667 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14670 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14671 OTOOL64=$lt_OTOOL64
14673 # Old archive suffix (normally "a").
14676 # Shared library suffix (normally ".so").
14677 shrext_cmds=$lt_shrext_cmds
14679 # The commands to extract the exported symbol list from a shared archive.
14680 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14682 # Variables whose values should be saved in libtool wrapper scripts and
14683 # restored at link time.
14684 variables_saved_for_relink=$lt_variables_saved_for_relink
14686 # Do we need the "lib" prefix for modules?
14687 need_lib_prefix=$need_lib_prefix
14689 # Do we need a version for libraries?
14690 need_version=$need_version
14692 # Library versioning type.
14693 version_type=$version_type
14695 # Shared library runtime path variable.
14696 runpath_var=$runpath_var
14698 # Shared library path variable.
14699 shlibpath_var=$shlibpath_var
14701 # Is shlibpath searched before the hard-coded library search path?
14702 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14704 # Format of library name prefix.
14705 libname_spec=$lt_libname_spec
14707 # List of archive names. First name is the real one, the rest are links.
14708 # The last name is the one that the linker finds with -lNAME
14709 library_names_spec=$lt_library_names_spec
14711 # The coded name of the library, if different from the real name.
14712 soname_spec=$lt_soname_spec
14714 # Permission mode override for installation of shared libraries.
14715 install_override_mode=$lt_install_override_mode
14717 # Command to use after installation of a shared archive.
14718 postinstall_cmds=$lt_postinstall_cmds
14720 # Command to use after uninstallation of a shared archive.
14721 postuninstall_cmds=$lt_postuninstall_cmds
14723 # Commands used to finish a libtool library installation in a directory.
14724 finish_cmds=$lt_finish_cmds
14726 # As "finish_cmds", except a single script fragment to be evaled but
14728 finish_eval=$lt_finish_eval
14730 # Whether we should hardcode library paths into libraries.
14731 hardcode_into_libs=$hardcode_into_libs
14733 # Compile-time system search path for libraries.
14734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14736 # Detected run-time system search path for libraries.
14737 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14739 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14740 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14742 # Whether dlopen is supported.
14743 dlopen_support=$enable_dlopen
14745 # Whether dlopen of programs is supported.
14746 dlopen_self=$enable_dlopen_self
14748 # Whether dlopen of statically linked programs is supported.
14749 dlopen_self_static=$enable_dlopen_self_static
14751 # Commands to strip libraries.
14752 old_striplib=$lt_old_striplib
14753 striplib=$lt_striplib
14756 # The linker used to build libraries.
14759 # How to create reloadable object files.
14760 reload_flag=$lt_reload_flag
14761 reload_cmds=$lt_reload_cmds
14763 # Commands used to build an old-style archive.
14764 old_archive_cmds=$lt_old_archive_cmds
14766 # A language specific compiler.
14769 # Is the compiler the GNU compiler?
14772 # Compiler flag to turn off builtin functions.
14773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14775 # Additional compiler flags for building library objects.
14776 pic_flag=$lt_lt_prog_compiler_pic
14778 # How to pass a linker flag through the compiler.
14779 wl=$lt_lt_prog_compiler_wl
14781 # Compiler flag to prevent dynamic linking.
14782 link_static_flag=$lt_lt_prog_compiler_static
14784 # Does compiler simultaneously support -c and -o options?
14785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14787 # Whether or not to add -lc for building shared libraries.
14788 build_libtool_need_lc=$archive_cmds_need_lc
14790 # Whether or not to disallow shared libs when runtime libs are static.
14791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14793 # Compiler flag to allow reflexive dlopens.
14794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14796 # Compiler flag to generate shared objects directly from archives.
14797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14799 # Whether the compiler copes with passing no objects directly.
14800 compiler_needs_object=$lt_compiler_needs_object
14802 # Create an old-style archive from a shared archive.
14803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14805 # Create a temporary old-style archive to link instead of a shared archive.
14806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14808 # Commands used to build a shared archive.
14809 archive_cmds=$lt_archive_cmds
14810 archive_expsym_cmds=$lt_archive_expsym_cmds
14812 # Commands used to build a loadable module if different from building
14813 # a shared archive.
14814 module_cmds=$lt_module_cmds
14815 module_expsym_cmds=$lt_module_expsym_cmds
14817 # Whether we are building with GNU ld or not.
14818 with_gnu_ld=$lt_with_gnu_ld
14820 # Flag that allows shared libraries with undefined symbols to be built.
14821 allow_undefined_flag=$lt_allow_undefined_flag
14823 # Flag that enforces no undefined symbols.
14824 no_undefined_flag=$lt_no_undefined_flag
14826 # Flag to hardcode \$libdir into a binary during linking.
14827 # This must work even if \$libdir does not exist
14828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14830 # Whether we need a single "-rpath" flag with a separated argument.
14831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14833 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14834 # DIR into the resulting binary.
14835 hardcode_direct=$hardcode_direct
14837 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14838 # DIR into the resulting binary and the resulting library dependency is
14839 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14840 # library is relocated.
14841 hardcode_direct_absolute=$hardcode_direct_absolute
14843 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14844 # into the resulting binary.
14845 hardcode_minus_L=$hardcode_minus_L
14847 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14848 # into the resulting binary.
14849 hardcode_shlibpath_var=$hardcode_shlibpath_var
14851 # Set to "yes" if building a shared library automatically hardcodes DIR
14852 # into the library and all subsequent libraries and executables linked
14854 hardcode_automatic=$hardcode_automatic
14856 # Set to yes if linker adds runtime paths of dependent libraries
14857 # to runtime path list.
14858 inherit_rpath=$inherit_rpath
14860 # Whether libtool must link a program against all its dependency libraries.
14861 link_all_deplibs=$link_all_deplibs
14863 # Set to "yes" if exported symbols are required.
14864 always_export_symbols=$always_export_symbols
14866 # The commands to list exported symbols.
14867 export_symbols_cmds=$lt_export_symbols_cmds
14869 # Symbols that should not be listed in the preloaded symbols.
14870 exclude_expsyms=$lt_exclude_expsyms
14872 # Symbols that must always be exported.
14873 include_expsyms=$lt_include_expsyms
14875 # Commands necessary for linking programs (against libraries) with templates.
14876 prelink_cmds=$lt_prelink_cmds
14878 # Commands necessary for finishing linking programs.
14879 postlink_cmds=$lt_postlink_cmds
14881 # Specify filename containing input files.
14882 file_list_spec=$lt_file_list_spec
14884 # How to hardcode a shared library path into an executable.
14885 hardcode_action=$hardcode_action
14887 # ### END LIBTOOL CONFIG
14891 cat <<'_LT_EOF' >> "$cfgfile"
14893 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14895 # func_munge_path_list VARIABLE PATH
14896 # -----------------------------------
14897 # VARIABLE is name of variable containing _space_ separated list of
14898 # directories to be munged by the contents of PATH, which is string
14901 # string "DIR[ DIR]" will be prepended to VARIABLE
14903 # string "DIR[ DIR]" will be appended to VARIABLE
14904 # "DIRP[:DIRP]::[DIRA:]DIRA"
14905 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14906 # "DIRA[ DIRA]" will be appended to VARIABLE
14908 # VARIABLE will be replaced by "DIR[ DIR]"
14909 func_munge_path_list ()
14915 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14918 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14921 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14922 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14925 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14931 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14932 func_cc_basename ()
14934 for cc_temp in $*""; do
14936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14942 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14946 # ### END FUNCTIONS SHARED WITH CONFIGURE
14952 cat <<\_LT_EOF >> "$cfgfile"
14953 # AIX sometimes has problems with the GCC collect2 program. For some
14954 # reason, if we set the COLLECT_NAMES environment variable, the problems
14955 # vanish in a puff of smoke.
14956 if test set != "${COLLECT_NAMES+set}"; then
14958 export COLLECT_NAMES
14965 ltmain=$ac_aux_dir/ltmain.sh
14968 # We use sed instead of cat because bash on DJGPP gets confused if
14969 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14970 # text mode, it properly converts lines to CR/LF. This bash problem
14971 # is reportedly fixed, but why not run on old versions too?
14972 sed '$q' "$ltmain" >> "$cfgfile" \
14973 || (rm -f "$cfgfile"; exit 1)
14975 mv -f "$cfgfile" "$ofile" ||
14976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14987 ac_clean_files=$ac_clean_files_save
14989 test $ac_write_fail = 0 ||
14990 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14993 # configure is writing to config.log, and then calls config.status.
14994 # config.status does its own redirection, appending to config.log.
14995 # Unfortunately, on DOS this fails, as config.log is still kept open
14996 # by configure, so config.status won't be able to write to it; its
14997 # output is simply discarded. So we exec the FD to /dev/null,
14998 # effectively closing config.log, so it can be properly (re)opened and
14999 # appended to by config.status. When coming back to configure, we
15000 # need to make the FD available again.
15001 if test "$no_create" != yes; then
15003 ac_config_status_args=
15004 test "$silent" = yes &&
15005 ac_config_status_args="$ac_config_status_args --quiet"
15007 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15009 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15010 # would make configure fail if this is the last instruction.
15011 $ac_cs_success || as_fn_exit 1
15013 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15015 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}