2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libwebp 0.3.0.
5 # Report bugs to <http://code.google.com/p/webp/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://code.google.com/p/webp/issues about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libwebp'
592 PACKAGE_TARNAME='libwebp'
593 PACKAGE_VERSION='0.3.0'
594 PACKAGE_STRING='libwebp 0.3.0'
595 PACKAGE_BUGREPORT='http://code.google.com/p/webp/issues'
596 PACKAGE_URL='http://developers.google.com/speed/webp'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
638 BUILD_LIBWEBPDECODER_FALSE
639 BUILD_LIBWEBPDECODER_TRUE
644 USE_EXPERIMENTAL_CODE
718 INSTALL_STRIP_PROGRAM
772 program_transform_name
785 enable_option_checking
787 enable_dependency_tracking
808 enable_swap_16bit_csp
812 enable_libwebpdecoder
814 ac_precious_vars='build_alias
825 # Initialize some variables set by options.
827 ac_init_version=false
828 ac_unrecognized_opts=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
839 program_transform_name=s,x,x,
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
983 -help | --help | --hel | --he | -h)
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1132 -site=* | --site=* | --sit=*)
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=no ;;
1191 # Obsolete; use --with-x.
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1259 # Be sure to have absolute directory names.
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures libwebp 0.3.0 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libwebp]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of libwebp 0.3.0:";;
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1453 --enable-everything Enable all optional targets. These can still be
1454 disabled with --disable-target
1455 --disable-threading Disable detection of thread support
1456 --enable-swap-16bit-csp Enable byte swap for 16 bit colorspaces
1457 --enable-experimental Activate experimental features
1458 --enable-libwebpmux Build libwebpmux [default=no]
1459 --enable-libwebpdemux Build libwebpdemux [default=no]
1460 --enable-libwebpdecoder Build libwebpdecoder [default=no]
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-sysroot=DIR Search for dependent libraries within DIR
1469 (or the compiler's sysroot if not specified).
1470 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1471 --with-glincludedir=DIR use GL includes from DIR
1472 --with-gllibdir=DIR use GL libraries from DIR
1473 --with-pngincludedir=DIR
1474 use PNG includes from DIR
1475 --with-pnglibdir=DIR use PNG libraries from DIR
1476 --with-jpegincludedir=DIR
1477 use JPEG includes from DIR
1478 --with-jpeglibdir=DIR use JPEG libraries from DIR
1479 --with-tiffincludedir=DIR
1480 use TIFF includes from DIR
1481 --with-tifflibdir=DIR use TIFF libraries from DIR
1482 --with-gifincludedir=DIR
1483 use GIF includes from DIR
1484 --with-giflibdir=DIR use GIF libraries from DIR
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <http://code.google.com/p/webp/issues>.
1500 libwebp home page: <http://developers.google.com/speed/webp>.
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 libwebp configure 0.3.0
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 test -x conftest$ac_exeext
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_link
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if eval \${$3+:} false; then :
1671 $as_echo_n "(cached) " >&6
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1794 # include <limits.h>
1796 # include <assert.h>
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1823 if ac_fn_c_try_link "$LINENO"; then :
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 } # ac_fn_c_check_func
1838 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839 # -------------------------------------------------------
1840 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841 # the include files in INCLUDES and setting the cache variable VAR
1843 ac_fn_c_check_header_mongrel ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval \${$3+:} false; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1856 # Is the header compilable?
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858 $as_echo_n "checking $2 usability... " >&6; }
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 ac_header_compiler=yes
1867 ac_header_compiler=no
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1871 $as_echo "$ac_header_compiler" >&6; }
1873 # Is the header present?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875 $as_echo_n "checking $2 presence... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1880 if ac_fn_c_try_cpp "$LINENO"; then :
1881 ac_header_preproc=yes
1883 ac_header_preproc=no
1885 rm -f conftest.err conftest.i conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1887 $as_echo "$ac_header_preproc" >&6; }
1889 # So? What about this header?
1890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 ( $as_echo "## --------------------------------------------------- ##
1909 ## Report this to http://code.google.com/p/webp/issues ##
1910 ## --------------------------------------------------- ##"
1911 ) | sed "s/^/$as_me: WARNING: /" >&2
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 eval "$3=\$ac_header_compiler"
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_mongrel
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1932 It was created by libwebp $as_me 0.3.0, which was
1933 generated by GNU Autoconf 2.69. Invocation command line was
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 $as_echo "PATH: $as_dir"
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_must_keep_next=false
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2022 -* ) ac_must_keep_next=true ;;
2025 as_fn_append ac_configure_args " '$ac_arg'"
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Save into config.log some information that might help in debugging.
2043 $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2047 # The following way of writing the cache mishandles newlines in values,
2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050 eval ac_val=\$$ac_var
2054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 _ | IFS | as_nl) ;; #(
2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060 *) { eval $ac_var=; unset $ac_var;} ;;
2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066 *${as_nl}ac_space=\ *)
2068 "s/'\''/'\''\\\\'\'''\''/g;
2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079 $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2083 for ac_var in $ac_subst_vars
2085 eval ac_val=\$$ac_var
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 $as_echo "$ac_var='\''$ac_val'\''"
2093 if test -n "$ac_subst_files"; then
2094 $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2098 for ac_var in $ac_subst_files
2100 eval ac_val=\$$ac_var
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -s confdefs.h; then
2110 $as_echo "## ----------- ##
2117 test "$ac_signal" != 0 &&
2118 $as_echo "$as_me: caught signal $ac_signal"
2119 $as_echo "$as_me: exit $exit_status"
2121 rm -f core *.core core.conftest.* &&
2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125 for ac_signal in 1 2 13 15; do
2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2133 $as_echo "/* confdefs.h */" > confdefs.h
2135 # Predefined preprocessor variables.
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2166 if test -n "$CONFIG_SITE"; then
2167 # We do not want a PATH search for config.site.
2168 case $CONFIG_SITE in #((
2169 -*) ac_site_file1=./$CONFIG_SITE;;
2170 */*) ac_site_file1=$CONFIG_SITE;;
2171 *) ac_site_file1=./$CONFIG_SITE;;
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 test "x$ac_site_file" = xNONE && continue
2183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2188 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2195 if test -r "$cache_file"; then
2196 # Some versions of bash will fail to source /dev/null (special files
2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2202 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203 *) . "./$cache_file";;
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2212 # Check that the precious variables saved in the cache have kept the same
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217 eval ac_new_set=\$ac_env_${ac_var}_set
2218 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219 eval ac_new_val=\$ac_env_${ac_var}_value
2220 case $ac_old_set,$ac_new_set in
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2231 if test "x$ac_old_val" != "x$ac_new_val"; then
2232 # differences in whitespace do not lead to failure.
2233 ac_old_val_w=`echo x $ac_old_val`
2234 ac_new_val_w=`echo x $ac_new_val`
2235 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238 ac_cache_corrupted=:
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242 eval $ac_var=\$ac_old_val
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2245 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2250 # Pass precious variables to config.status.
2251 if test "$ac_new_set" = set; then
2253 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 *) ac_arg=$ac_var=$ac_new_val ;;
2256 case " $ac_configure_args " in
2257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2258 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2262 if $ac_cache_corrupted; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2282 if test -f "$ac_dir/install-sh"; then
2284 ac_install_sh="$ac_aux_dir/install-sh -c"
2286 elif test -f "$ac_dir/install.sh"; then
2288 ac_install_sh="$ac_aux_dir/install.sh -c"
2290 elif test -f "$ac_dir/shtool"; then
2292 ac_install_sh="$ac_aux_dir/shtool install -c"
2296 if test -z "$ac_aux_dir"; then
2297 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2300 # These three variables are undocumented and unsupported,
2301 # and are intended to be withdrawn in a future Autoconf release.
2302 # They can cause serious problems if a builder's source tree is in a directory
2303 # whose full name contains unusual characters.
2304 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2305 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2306 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309 # Make sure we can run config.sub.
2310 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2311 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2314 $as_echo_n "checking build system type... " >&6; }
2315 if ${ac_cv_build+:} false; then :
2316 $as_echo_n "(cached) " >&6
2318 ac_build_alias=$build_alias
2319 test "x$ac_build_alias" = x &&
2320 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2321 test "x$ac_build_alias" = x &&
2322 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2323 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2324 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2328 $as_echo "$ac_cv_build" >&6; }
2329 case $ac_cv_build in
2331 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2334 ac_save_IFS=$IFS; IFS='-'
2340 # Remember, the first character of IFS is used to create $*,
2341 # except with old shells:
2344 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2348 $as_echo_n "checking host system type... " >&6; }
2349 if ${ac_cv_host+:} false; then :
2350 $as_echo_n "(cached) " >&6
2352 if test "x$host_alias" = x; then
2353 ac_cv_host=$ac_cv_build
2355 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2356 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2361 $as_echo "$ac_cv_host" >&6; }
2364 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2367 ac_save_IFS=$IFS; IFS='-'
2373 # Remember, the first character of IFS is used to create $*,
2374 # except with old shells:
2377 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2381 $as_echo_n "checking target system type... " >&6; }
2382 if ${ac_cv_target+:} false; then :
2383 $as_echo_n "(cached) " >&6
2385 if test "x$target_alias" = x; then
2386 ac_cv_target=$ac_cv_host
2388 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2394 $as_echo "$ac_cv_target" >&6; }
2395 case $ac_cv_target in
2397 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2399 target=$ac_cv_target
2400 ac_save_IFS=$IFS; IFS='-'
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2410 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2413 # The aliases save the names the user supplied, while $host etc.
2414 # will get canonicalized.
2415 test -n "$target_alias" &&
2416 test "$program_prefix$program_suffix$program_transform_name" = \
2418 program_prefix=${target_alias}-
2419 am__api_version='1.13'
2421 # Find a good install program. We prefer a C program (faster),
2422 # so one script is as good as another. But avoid the broken or
2423 # incompatible versions:
2424 # SysV /etc/install, /usr/sbin/install
2425 # SunOS /usr/etc/install
2426 # IRIX /sbin/install
2428 # AmigaOS /C/install, which installs bootblocks on floppy discs
2429 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2430 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2431 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2432 # OS/2's system install, which has a completely different semantic
2433 # ./install, which can be erroneously created by make from ./install.sh.
2434 # Reject install programs that cannot install multiple files.
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2436 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2437 if test -z "$INSTALL"; then
2438 if ${ac_cv_path_install+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 # Account for people who put trailing slashes in PATH elements.
2447 case $as_dir/ in #((
2448 ./ | .// | /[cC]/* | \
2449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2450 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2453 # OSF1 and SCO ODT 3.0 have their own names for install.
2454 # Don't use installbsd from OSF since it installs stuff as root
2456 for ac_prog in ginstall scoinst install; do
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2459 if test $ac_prog = install &&
2460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2461 # AIX install. It has an incompatible calling convention.
2463 elif test $ac_prog = install &&
2464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2465 # program-specific install script used by HP pwplus--don't use.
2468 rm -rf conftest.one conftest.two conftest.dir
2469 echo one > conftest.one
2470 echo two > conftest.two
2472 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2473 test -s conftest.one && test -s conftest.two &&
2474 test -s conftest.dir/conftest.one &&
2475 test -s conftest.dir/conftest.two
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490 rm -rf conftest.one conftest.two conftest.dir
2493 if test "${ac_cv_path_install+set}" = set; then
2494 INSTALL=$ac_cv_path_install
2496 # As a last resort, use the slow shell script. Don't cache a
2497 # value for INSTALL within a source directory, because that will
2498 # break other packages using the cache if that directory is
2499 # removed, or if the value is a relative name.
2500 INSTALL=$ac_install_sh
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2504 $as_echo "$INSTALL" >&6; }
2506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2507 # It thinks the first close brace ends the variable substitution.
2508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2515 $as_echo_n "checking whether build environment is sane... " >&6; }
2516 # Reject unsafe characters in $srcdir or the absolute working directory
2517 # name. Accept space and tab only in the latter.
2521 *[\\\"\#\$\&\'\`$am_lf]*)
2522 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2525 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2526 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2529 # Do 'set' in a subshell so we don't clobber the current shell's
2530 # arguments. Must try -L first in case configure is actually a
2531 # symlink; some systems play weird games with the mod time of symlinks
2532 # (eg FreeBSD returns the mod time of the symlink's containing
2536 for am_try in 1 2; do
2537 echo "timestamp, slept: $am_has_slept" > conftest.file
2538 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2539 if test "$*" = "X"; then
2541 set X `ls -t "$srcdir/configure" conftest.file`
2543 if test "$*" != "X $srcdir/configure conftest.file" \
2544 && test "$*" != "X conftest.file $srcdir/configure"; then
2546 # If neither matched, then we have a broken ls. This can happen
2547 # if, for instance, CONFIG_SHELL is bash and it inherits a
2548 # broken ls alias from the environment. This has actually
2549 # happened. Such a system could not be considered "sane".
2550 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2551 alias in your environment" "$LINENO" 5
2553 if test "$2" = conftest.file || test $am_try -eq 2; then
2560 test "$2" = conftest.file
2566 as_fn_error $? "newly created file is older than distributed files!
2567 Check your system clock" "$LINENO" 5
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571 # If we didn't sleep, we still need to ensure time stamps of config.status and
2572 # generated files are strictly newer.
2574 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2581 test "$program_prefix" != NONE &&
2582 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2583 # Use a double $ so make ignores it.
2584 test "$program_suffix" != NONE &&
2585 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2586 # Double any \ or $.
2587 # By default was `s,x,x', remove it if useless.
2588 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2589 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2591 # expand $ac_aux_dir to an absolute path
2592 am_aux_dir=`cd $ac_aux_dir && pwd`
2594 if test x"${MISSING+set}" != xset; then
2597 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2599 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2602 # Use eval to expand $SHELL
2603 if eval "$MISSING --is-lightweight"; then
2604 am_missing_run="$MISSING "
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2608 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2611 if test x"${install_sh}" != xset; then
2614 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2616 install_sh="\${SHELL} $am_aux_dir/install-sh"
2620 # Installed binaries are usually stripped using 'strip' when the user
2621 # run "make install-strip". However 'strip' might not be the right
2622 # tool to use in cross-compilation environments, therefore Automake
2623 # will honor the 'STRIP' environment variable to overrule this program.
2624 if test "$cross_compiling" != no; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_STRIP+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$STRIP"; then
2634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 STRIP=$ac_cv_prog_STRIP
2654 if test -n "$STRIP"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2656 $as_echo "$STRIP" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2664 if test -z "$ac_cv_prog_STRIP"; then
2666 # Extract the first word of "strip", so it can be a program name with args.
2667 set dummy strip; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2671 $as_echo_n "(cached) " >&6
2673 if test -n "$ac_ct_STRIP"; then
2674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 ac_cv_prog_ac_ct_STRIP="strip"
2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2694 if test -n "$ac_ct_STRIP"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2696 $as_echo "$ac_ct_STRIP" >&6; }
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699 $as_echo "no" >&6; }
2702 if test "x$ac_ct_STRIP" = x; then
2705 case $cross_compiling:$ac_tool_warned in
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2709 ac_tool_warned=yes ;;
2714 STRIP="$ac_cv_prog_STRIP"
2718 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2722 if test -z "$MKDIR_P"; then
2723 if ${ac_cv_path_mkdir+:} false; then :
2724 $as_echo_n "(cached) " >&6
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2730 test -z "$as_dir" && as_dir=.
2731 for ac_prog in mkdir gmkdir; do
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2735 'mkdir (GNU coreutils) '* | \
2736 'mkdir (coreutils) '* | \
2737 'mkdir (fileutils) '4.1*)
2738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2748 test -d ./--version && rmdir ./--version
2749 if test "${ac_cv_path_mkdir+set}" = set; then
2750 MKDIR_P="$ac_cv_path_mkdir -p"
2752 # As a last resort, use the slow shell script. Don't cache a
2753 # value for MKDIR_P within a source directory, because that will
2754 # break other packages using the cache if that directory is
2755 # removed, or if the value is a relative name.
2756 MKDIR_P="$ac_install_sh -d"
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2760 $as_echo "$MKDIR_P" >&6; }
2762 for ac_prog in gawk mawk nawk awk
2764 # Extract the first word of "$ac_prog", so it can be a program name with args.
2765 set dummy $ac_prog; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_AWK+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$AWK"; then
2772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_AWK="$ac_prog"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$AWK"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2794 $as_echo "$AWK" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2801 test -n "$AWK" && break
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2805 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2808 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 cat >conftest.make <<\_ACEOF
2814 @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819 eval ac_cv_prog_make_${ac_make}_set=yes;;
2821 eval ac_cv_prog_make_${ac_make}_set=no;;
2825 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2827 $as_echo "yes" >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 SET_MAKE="MAKE=${MAKE-make}"
2835 rm -rf .tst 2>/dev/null
2836 mkdir .tst 2>/dev/null
2837 if test -d .tst; then
2842 rmdir .tst 2>/dev/null
2844 # Check whether --enable-silent-rules was given.
2845 if test "${enable_silent_rules+set}" = set; then :
2846 enableval=$enable_silent_rules;
2849 case $enable_silent_rules in # (((
2850 yes) AM_DEFAULT_VERBOSITY=0;;
2851 no) AM_DEFAULT_VERBOSITY=1;;
2852 *) AM_DEFAULT_VERBOSITY=1;;
2854 am_make=${MAKE-make}
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2856 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2857 if ${am_cv_make_support_nested_variables+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 if $as_echo 'TRUE=$(BAR$(V))
2866 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2867 am_cv_make_support_nested_variables=yes
2869 am_cv_make_support_nested_variables=no
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2873 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2874 if test $am_cv_make_support_nested_variables = yes; then
2876 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2878 AM_V=$AM_DEFAULT_VERBOSITY
2879 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2883 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2884 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2885 # is not polluted with repeated "-I."
2886 am__isrc=' -I$(srcdir)'
2887 # test to see if srcdir already configured
2888 if test -f $srcdir/config.status; then
2889 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2893 # test whether we have cygpath
2894 if test -z "$CYGPATH_W"; then
2895 if (cygpath --version) >/dev/null 2>/dev/null; then
2896 CYGPATH_W='cygpath -w'
2903 # Define the identity of the package.
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE "$PACKAGE"
2913 cat >>confdefs.h <<_ACEOF
2914 #define VERSION "$VERSION"
2917 # Some tools Automake needs.
2919 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2922 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2925 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2928 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2931 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2933 # For better backward compatibility. To be removed once Automake 1.9.x
2934 # dies out for good. For more background, see:
2935 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2936 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2937 mkdir_p='$(MKDIR_P)'
2939 # We need awk for the "check" target. The system "awk" is bad on
2941 # Always define AMTAR for backward compatibility. Yes, it's still used
2942 # in the wild :-( We should find a proper way to deprecate it ...
2945 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2952 DEPDIR="${am__leading_dot}deps"
2954 ac_config_commands="$ac_config_commands depfiles"
2957 am_make=${MAKE-make}
2958 cat > confinc << 'END'
2960 @echo this is the am__doit target
2963 # If we don't find an include directive, just comment out the code.
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2965 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2969 # First try GNU make style include.
2970 echo "include confinc" > confmf
2971 # Ignore all kinds of additional output from 'make'.
2972 case `$am_make -s -f confmf 2> /dev/null` in #(
2973 *the\ am__doit\ target*)
2979 # Now try BSD make style include.
2980 if test "$am__include" = "#"; then
2981 echo '.include "confinc"' > confmf
2982 case `$am_make -s -f confmf 2> /dev/null` in #(
2983 *the\ am__doit\ target*)
2984 am__include=.include
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2993 $as_echo "$_am_result" >&6; }
2994 rm -f confinc confmf
2996 # Check whether --enable-dependency-tracking was given.
2997 if test "${enable_dependency_tracking+set}" = set; then :
2998 enableval=$enable_dependency_tracking;
3001 if test "x$enable_dependency_tracking" != xno; then
3002 am_depcomp="$ac_aux_dir/depcomp"
3006 if test "x$enable_dependency_tracking" != xno; then
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3059 if test -z "$ac_cv_prog_CC"; then
3061 # Extract the first word of "gcc", so it can be a program name with args.
3062 set dummy gcc; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3068 if test -n "$ac_ct_CC"; then
3069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_ac_ct_CC="gcc"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089 if test -n "$ac_ct_CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3091 $as_echo "$ac_ct_CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3097 if test "x$ac_ct_CC" = x; then
3100 case $cross_compiling:$ac_tool_warned in
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3104 ac_tool_warned=yes ;;
3112 if test -z "$CC"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_CC="${ac_tool_prefix}cc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3153 if test -z "$CC"; then
3154 # Extract the first word of "cc", so it can be a program name with args.
3155 set dummy cc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3173 ac_prog_rejected=yes
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test $ac_prog_rejected = yes; then
3185 # We found a bogon in the path, so make sure we never use it.
3186 set dummy $ac_cv_prog_CC
3188 if test $# != 0; then
3189 # We chose a different compiler from the bogus one.
3190 # However, it has the same basename, so the bogon will be chosen
3191 # first if we set CC to just the basename; use the full file name.
3193 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3199 if test -n "$CC"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3201 $as_echo "$CC" >&6; }
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3209 if test -z "$CC"; then
3210 if test -n "$ac_tool_prefix"; then
3211 for ac_prog in cl.exe
3213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$CC" && break
3253 if test -z "$CC"; then
3255 for ac_prog in cl.exe
3257 # Extract the first word of "$ac_prog", so it can be a program name with args.
3258 set dummy $ac_prog; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_ac_ct_CC="$ac_prog"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3294 test -n "$ac_ct_CC" && break
3297 if test "x$ac_ct_CC" = x; then
3300 case $cross_compiling:$ac_tool_warned in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3304 ac_tool_warned=yes ;;
3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3315 as_fn_error $? "no acceptable C compiler found in \$PATH
3316 See \`config.log' for more details" "$LINENO" 5; }
3318 # Provide some information about the compiler.
3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3322 for ac_option in --version -v -V -qversion; do
3323 { { ac_try="$ac_compiler $ac_option >&5"
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3332 if test -s conftest.err; then
3334 ... rest of stderr output deleted ...
3335 10q' conftest.err >conftest.er1
3336 cat conftest.er1 >&5
3338 rm -f conftest.er1 conftest.err
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 ac_clean_files_save=$ac_clean_files
3355 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3356 # Try to create an executable without -o first, disregard a.out.
3357 # It will help us diagnose broken compilers, and finding out an intuition
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3360 $as_echo_n "checking whether the C compiler works... " >&6; }
3361 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3363 # The possible output files:
3364 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3367 for ac_file in $ac_files
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3371 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3376 if { { ac_try="$ac_link_default"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link_default") 2>&5
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3388 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3389 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3390 # so that the user can short-circuit this test for compilers unknown to
3392 for ac_file in $ac_files ''
3394 test -f "$ac_file" || continue
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3399 # We found the default executable, but exeext='' is most
3403 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3405 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 # We set ac_cv_exeext here because the later test for it is not
3408 # safe: cross compilers may not add the suffix if given an `-o'
3409 # argument, so we may need to know it at that point already.
3410 # Even if this section looks crufty: it has the advantage of
3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
3422 if test -z "$ac_file"; then :
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3425 $as_echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error 77 "C compiler cannot create executables
3431 See \`config.log' for more details" "$LINENO" 5; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434 $as_echo "yes" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439 $as_echo "$ac_file" >&6; }
3440 ac_exeext=$ac_cv_exeext
3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445 $as_echo_n "checking for suffix of executables... " >&6; }
3446 if { { ac_try="$ac_link"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3459 # work properly (i.e., refer to `conftest.exe'), while it won't with
3461 for ac_file in conftest.exe conftest conftest.*; do
3462 test -f "$ac_file" || continue
3464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3474 See \`config.log' for more details" "$LINENO" 5; }
3476 rm -f conftest conftest$ac_cv_exeext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478 $as_echo "$ac_cv_exeext" >&6; }
3480 rm -f conftest.$ac_ext
3481 EXEEXT=$ac_cv_exeext
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3489 FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3496 ac_clean_files="$ac_clean_files conftest.out"
3497 # Check that the compiler produces executables we can run. If not, either
3498 # the compiler is broken, or we cross compile.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
3501 if test "$cross_compiling" != yes; then
3502 { { ac_try="$ac_link"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }
3513 if { ac_try='./conftest$ac_cv_exeext'
3514 { { case "(($ac_try" in
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519 $as_echo "$ac_try_echo"; } >&5
3520 (eval "$ac_try") 2>&5
3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523 test $ac_status = 0; }; }; then
3526 if test "$cross_compiling" = maybe; then
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "cannot run C compiled programs.
3532 If you meant to cross compile, use \`--host'.
3533 See \`config.log' for more details" "$LINENO" 5; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538 $as_echo "$cross_compiling" >&6; }
3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541 ac_clean_files=$ac_clean_files_save
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543 $as_echo_n "checking for suffix of object files... " >&6; }
3544 if ${ac_cv_objext+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 rm -f conftest.o conftest.obj
3559 if { { ac_try="$ac_compile"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compile") 2>&5
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3570 for ac_file in conftest.o conftest.obj conftest.*; do
3571 test -f "$ac_file" || continue;
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3579 $as_echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
3585 See \`config.log' for more details" "$LINENO" 5; }
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590 $as_echo "$ac_cv_objext" >&6; }
3591 OBJEXT=$ac_cv_objext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595 if ${ac_cv_c_compiler_gnu+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623 if test $ac_compiler_gnu = yes; then
3628 ac_test_CFLAGS=${CFLAGS+set}
3629 ac_save_CFLAGS=$CFLAGS
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632 if ${ac_cv_prog_cc_g+:} false; then :
3633 $as_echo_n "(cached) " >&6
3635 ac_save_c_werror_flag=$ac_c_werror_flag
3636 ac_c_werror_flag=yes
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3650 if ac_fn_c_try_compile "$LINENO"; then :
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 if ac_fn_c_try_compile "$LINENO"; then :
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_c_werror_flag=$ac_save_c_werror_flag
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
3693 if test "$ac_test_CFLAGS" = set; then
3694 CFLAGS=$ac_save_CFLAGS
3695 elif test $ac_cv_prog_cc_g = yes; then
3696 if test "$GCC" = yes; then
3702 if test "$GCC" = yes; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710 if ${ac_cv_prog_cc_c89+:} false; then :
3711 $as_echo_n "(cached) " >&6
3713 ac_cv_prog_cc_c89=no
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3721 struct buf { int x; };
3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3723 static char *e (p, i)
3729 static char *f (char * (*g) (char **, int), char **p, ...)
3734 s = g (p, va_arg (v,int));
3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3740 function prototypes and stuff, but not '\xHH' hex character constants.
3741 These don't provoke an error unfortunately, instead are silently treated
3742 as 'x'. The following induces an error, until -std is added to get
3743 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3744 array size at least. It's necessary to write '\x00'==0 to get something
3745 that's true only with -std. */
3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3749 inside strings and character constants. */
3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753 int test (int i, double x);
3754 struct s1 {int (*f) (int a);};
3755 struct s2 {int (*f) (double a);};
3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3762 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3768 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770 CC="$ac_save_CC $ac_arg"
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_cv_prog_cc_c89=$ac_arg
3774 rm -f core conftest.err conftest.$ac_objext
3775 test "x$ac_cv_prog_cc_c89" != "xno" && break
3777 rm -f conftest.$ac_ext
3782 case "x$ac_cv_prog_cc_c89" in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3785 $as_echo "none needed" >&6; } ;;
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3788 $as_echo "unsupported" >&6; } ;;
3790 CC="$CC $ac_cv_prog_cc_c89"
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 depcc="$CC" am_compiler_list=
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3807 $as_echo_n "checking dependency style of $depcc... " >&6; }
3808 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3809 $as_echo_n "(cached) " >&6
3811 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812 # We make a subdir and do the tests there. Otherwise we can end up
3813 # making bogus files that we don't know about and never remove. For
3814 # instance it was reported that on HP-UX the gcc test will end up
3815 # making a dummy file named 'D' -- because '-MD' means "put the output
3819 # Copy depcomp to subdir because otherwise we won't find it if we're
3820 # using a relative directory.
3821 cp "$am_depcomp" conftest.dir
3823 # We will build objects and dependencies in a subdirectory because
3824 # it helps to detect inapplicable dependency modes. For instance
3825 # both Tru64's cc and ICC support -MD to output dependencies as a
3826 # side effect of compilation, but ICC will put the dependencies in
3827 # the current directory while Tru64 will put them in the object
3831 am_cv_CC_dependencies_compiler_type=none
3832 if test "$am_compiler_list" = ""; then
3833 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3836 case " $depcc " in #(
3837 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3840 for depmode in $am_compiler_list; do
3841 # Setup a source with many dependencies, because some compilers
3842 # like to wrap large dependency lists on column 80 (with \), and
3843 # we should not choose a depcomp mode which is confused by this.
3845 # We need to recreate these files for each test, as the compiler may
3846 # overwrite some of them when testing with obscure command lines.
3847 # This happens at least with the AIX C compiler.
3849 for i in 1 2 3 4 5 6; do
3850 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3852 # Solaris 10 /bin/sh.
3853 echo '/* dummy */' > sub/conftst$i.h
3855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3858 # mode. It turns out that the SunPro C++ compiler does not properly
3859 # handle '-M -o', and we need to detect this. Also, some Intel
3860 # versions had trouble with output in subdirs.
3861 am__obj=sub/conftest.${OBJEXT-o}
3862 am__minus_obj="-o $am__obj"
3865 # This depmode causes a compiler race in universal mode.
3866 test "$am__universal" = false || continue
3869 # After this tag, mechanisms are not by side-effect, so they'll
3870 # only be used when explicitly requested.
3871 if test "x$enable_dependency_tracking" = xyes; then
3877 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3878 # This compiler won't grok '-c -o', but also, the minuso test has
3879 # not run yet. These depmodes are late enough in the game, and
3880 # so weak that their functioning should not be impacted.
3881 am__obj=conftest.${OBJEXT-o}
3886 if depmode=$depmode \
3887 source=sub/conftest.c object=$am__obj \
3888 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3889 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3890 >/dev/null 2>conftest.err &&
3891 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3892 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3893 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3894 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3895 # icc doesn't choke on unknown options, it will just issue warnings
3896 # or remarks (even with -Werror). So we grep stderr for any message
3897 # that says an option was ignored or not supported.
3898 # When given -MP, icc 7.0 and 7.1 complain thusly:
3899 # icc: Command line warning: ignoring option '-M'; no argument required
3900 # The diagnosis changed in icc 8.0:
3901 # icc: Command line remark: option '-MP' not supported
3902 if (grep 'ignoring option' conftest.err ||
3903 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3904 am_cv_CC_dependencies_compiler_type=$depmode
3913 am_cv_CC_dependencies_compiler_type=none
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3918 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3919 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3922 test "x$enable_dependency_tracking" != xno \
3923 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925 am__fastdepCC_FALSE='#'
3927 am__fastdepCC_TRUE='#'
3928 am__fastdepCC_FALSE=
3933 if test -n "$ac_tool_prefix"; then
3934 for ac_prog in ar lib "link -lib"
3936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if ${ac_cv_prog_AR+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 if test -n "$AR"; then
3944 ac_cv_prog_AR="$AR" # Let the user override the test.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 if test -n "$AR"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3966 $as_echo "$AR" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 test -n "$AR" && break
3976 if test -z "$AR"; then
3978 for ac_prog in ar lib "link -lib"
3980 # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 if test -n "$ac_ct_AR"; then
3988 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_ac_ct_AR="$ac_prog"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4008 if test -n "$ac_ct_AR"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4010 $as_echo "$ac_ct_AR" >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4017 test -n "$ac_ct_AR" && break
4020 if test "x$ac_ct_AR" = x; then
4023 case $cross_compiling:$ac_tool_warned in
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4036 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4037 if ${am_cv_ar_interface+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 am_cv_ar_interface=ar
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 int some_variable = 0;
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4048 (eval $am_ar_try) 2>&5
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }
4052 if test "$ac_status" -eq 0; then
4053 am_cv_ar_interface=ar
4055 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4057 (eval $am_ar_try) 2>&5
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }
4061 if test "$ac_status" -eq 0; then
4062 am_cv_ar_interface=lib
4064 am_cv_ar_interface=unknown
4067 rm -f conftest.lib libconftest.a
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4074 $as_echo "$am_cv_ar_interface" >&6; }
4076 case $am_cv_ar_interface in
4080 # Microsoft lib, so override with the ar-lib wrapper script.
4081 # FIXME: It is wrong to rewrite AR.
4082 # But if we don't then we get into trouble of one sort or another.
4083 # A longer-term fix would be to have automake use am__AR in this case,
4084 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4086 AR="$am_aux_dir/ar-lib $AR"
4089 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4097 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4102 macro_version='2.4.2'
4103 macro_revision='1.3337'
4117 ltmain="$ac_aux_dir/ltmain.sh"
4119 # Backslashify metacharacters that are still active within
4120 # double-quoted strings.
4121 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4123 # Same as above, but do not quote variable references.
4124 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4126 # Sed substitution to delay expansion of an escaped shell variable in a
4127 # double_quote_subst'ed string.
4128 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4130 # Sed substitution to delay expansion of an escaped single quote.
4131 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4133 # Sed substitution to avoid accidental globbing in evaled expressions
4134 no_glob_subst='s/\*/\\\*/g'
4136 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4137 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4138 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4141 $as_echo_n "checking how to print strings... " >&6; }
4142 # Test print first, because it will be a builtin if present.
4143 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4144 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4146 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4149 # Use this function as a fallback that always works.
4150 func_fallback_echo ()
4152 eval 'cat <<_LTECHO_EOF
4156 ECHO='func_fallback_echo'
4159 # func_echo_all arg...
4160 # Invoke $ECHO with all args, space-separated.
4167 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4168 $as_echo "printf" >&6; } ;;
4169 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4170 $as_echo "print -r" >&6; } ;;
4171 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4172 $as_echo "cat" >&6; } ;;
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4189 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4190 if ${ac_cv_path_SED+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4194 for ac_i in 1 2 3 4 5 6 7; do
4195 ac_script="$ac_script$as_nl$ac_script"
4197 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4198 { ac_script=; unset ac_script;}
4199 if test -z "$SED"; then
4200 ac_path_SED_found=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in sed gsed; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4210 as_fn_executable_p "$ac_path_SED" || continue
4211 # Check for GNU ac_path_SED and select it if it is found.
4212 # Check for GNU $ac_path_SED
4213 case `"$ac_path_SED" --version 2>&1` in
4215 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4218 $as_echo_n 0123456789 >"conftest.in"
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 $as_echo '' >> "conftest.nl"
4225 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227 as_fn_arith $ac_count + 1 && ac_count=$as_val
4228 if test $ac_count -gt ${ac_path_SED_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_SED="$ac_path_SED"
4231 ac_path_SED_max=$ac_count
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239 $ac_path_SED_found && break 3
4244 if test -z "$ac_cv_path_SED"; then
4245 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4253 $as_echo "$ac_cv_path_SED" >&6; }
4254 SED="$ac_cv_path_SED"
4257 test -z "$SED" && SED=sed
4258 Xsed="$SED -e 1s/^X//"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4272 if ${ac_cv_path_GREP+:} false; then :
4273 $as_echo_n "(cached) " >&6
4275 if test -z "$GREP"; then
4276 ac_path_GREP_found=false
4277 # Loop through the user's path and test for each of PROGNAME-LIST
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 test -z "$as_dir" && as_dir=.
4283 for ac_prog in grep ggrep; do
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4286 as_fn_executable_p "$ac_path_GREP" || continue
4287 # Check for GNU ac_path_GREP and select it if it is found.
4288 # Check for GNU $ac_path_GREP
4289 case `"$ac_path_GREP" --version 2>&1` in
4291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4294 $as_echo_n 0123456789 >"conftest.in"
4297 cat "conftest.in" "conftest.in" >"conftest.tmp"
4298 mv "conftest.tmp" "conftest.in"
4299 cp "conftest.in" "conftest.nl"
4300 $as_echo 'GREP' >> "conftest.nl"
4301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303 as_fn_arith $ac_count + 1 && ac_count=$as_val
4304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4305 # Best one so far, save it but keep looking for a better one
4306 ac_cv_path_GREP="$ac_path_GREP"
4307 ac_path_GREP_max=$ac_count
4309 # 10*(2^10) chars as input seems more than enough
4310 test $ac_count -gt 10 && break
4312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 $ac_path_GREP_found && break 3
4320 if test -z "$ac_cv_path_GREP"; then
4321 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4324 ac_cv_path_GREP=$GREP
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; }
4335 if ${ac_cv_path_EGREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339 then ac_cv_path_EGREP="$GREP -E"
4341 if test -z "$EGREP"; then
4342 ac_path_EGREP_found=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4348 test -z "$as_dir" && as_dir=.
4349 for ac_prog in egrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352 as_fn_executable_p "$ac_path_EGREP" || continue
4353 # Check for GNU ac_path_EGREP and select it if it is found.
4354 # Check for GNU $ac_path_EGREP
4355 case `"$ac_path_EGREP" --version 2>&1` in
4357 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4360 $as_echo_n 0123456789 >"conftest.in"
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP="$ac_path_EGREP"
4373 ac_path_EGREP_max=$ac_count
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381 $ac_path_EGREP_found && break 3
4386 if test -z "$ac_cv_path_EGREP"; then
4387 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4390 ac_cv_path_EGREP=$EGREP
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4396 $as_echo "$ac_cv_path_EGREP" >&6; }
4397 EGREP="$ac_cv_path_EGREP"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4401 $as_echo_n "checking for fgrep... " >&6; }
4402 if ${ac_cv_path_FGREP+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4406 then ac_cv_path_FGREP="$GREP -F"
4408 if test -z "$FGREP"; then
4409 ac_path_FGREP_found=false
4410 # Loop through the user's path and test for each of PROGNAME-LIST
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415 test -z "$as_dir" && as_dir=.
4416 for ac_prog in fgrep; do
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4419 as_fn_executable_p "$ac_path_FGREP" || continue
4420 # Check for GNU ac_path_FGREP and select it if it is found.
4421 # Check for GNU $ac_path_FGREP
4422 case `"$ac_path_FGREP" --version 2>&1` in
4424 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4427 $as_echo_n 0123456789 >"conftest.in"
4430 cat "conftest.in" "conftest.in" >"conftest.tmp"
4431 mv "conftest.tmp" "conftest.in"
4432 cp "conftest.in" "conftest.nl"
4433 $as_echo 'FGREP' >> "conftest.nl"
4434 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436 as_fn_arith $ac_count + 1 && ac_count=$as_val
4437 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4438 # Best one so far, save it but keep looking for a better one
4439 ac_cv_path_FGREP="$ac_path_FGREP"
4440 ac_path_FGREP_max=$ac_count
4442 # 10*(2^10) chars as input seems more than enough
4443 test $ac_count -gt 10 && break
4445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448 $ac_path_FGREP_found && break 3
4453 if test -z "$ac_cv_path_FGREP"; then
4454 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457 ac_cv_path_FGREP=$FGREP
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4463 $as_echo "$ac_cv_path_FGREP" >&6; }
4464 FGREP="$ac_cv_path_FGREP"
4467 test -z "$GREP" && GREP=grep
4487 # Check whether --with-gnu-ld was given.
4488 if test "${with_gnu_ld+set}" = set; then :
4489 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4495 if test "$GCC" = yes; then
4496 # Check if gcc -print-prog-name=ld gives a path.
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4498 $as_echo_n "checking for ld used by $CC... " >&6; }
4501 # gcc leaves a trailing carriage return which upsets mingw
4502 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4504 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4507 # Accept absolute paths.
4509 re_direlt='/[^/][^/]*/\.\./'
4510 # Canonicalize the pathname of ld
4511 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4512 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4513 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4515 test -z "$LD" && LD="$ac_prog"
4518 # If it fails, then pretend we aren't using GCC.
4522 # If it is relative, then search for the first ld in PATH.
4526 elif test "$with_gnu_ld" = yes; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4528 $as_echo_n "checking for GNU ld... " >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4531 $as_echo_n "checking for non-GNU ld... " >&6; }
4533 if ${lt_cv_path_LD+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 if test -z "$LD"; then
4537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538 for ac_dir in $PATH; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4542 lt_cv_path_LD="$ac_dir/$ac_prog"
4543 # Check to see if the program is GNU ld. I'd rather use --version,
4544 # but apparently some variants of GNU ld only accept -v.
4545 # Break only if it was the GNU/non-GNU ld that we prefer.
4546 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4547 *GNU* | *'with BFD'*)
4548 test "$with_gnu_ld" != no && break
4551 test "$with_gnu_ld" != yes && break
4558 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4563 if test -n "$LD"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4565 $as_echo "$LD" >&6; }
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4570 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4572 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4573 if ${lt_cv_prog_gnu_ld+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4577 case `$LD -v 2>&1 </dev/null` in
4578 *GNU* | *'with BFD'*)
4579 lt_cv_prog_gnu_ld=yes
4582 lt_cv_prog_gnu_ld=no
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4587 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4588 with_gnu_ld=$lt_cv_prog_gnu_ld
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4599 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4600 if ${lt_cv_path_NM+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$NM"; then
4604 # Let the user override the test.
4607 lt_nm_to_check="${ac_tool_prefix}nm"
4608 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4609 lt_nm_to_check="$lt_nm_to_check nm"
4611 for lt_tmp_nm in $lt_nm_to_check; do
4612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4613 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4615 test -z "$ac_dir" && ac_dir=.
4616 tmp_nm="$ac_dir/$lt_tmp_nm"
4617 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4618 # Check to see if the nm accepts a BSD-compat flag.
4619 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4620 # nm: unknown option "B" ignored
4621 # Tru64's nm complains that /dev/null is an invalid object file
4622 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4623 */dev/null* | *'Invalid file or object type'*)
4624 lt_cv_path_NM="$tmp_nm -B"
4628 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4630 lt_cv_path_NM="$tmp_nm -p"
4634 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4635 continue # so that we can try to find one that supports BSD flags
4644 : ${lt_cv_path_NM=no}
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4648 $as_echo "$lt_cv_path_NM" >&6; }
4649 if test "$lt_cv_path_NM" != "no"; then
4652 # Didn't find any BSD compatible name lister, look for dumpbin.
4653 if test -n "$DUMPBIN"; then :
4654 # Let the user override the test.
4656 if test -n "$ac_tool_prefix"; then
4657 for ac_prog in dumpbin "link -dump"
4659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_DUMPBIN+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 if test -n "$DUMPBIN"; then
4667 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 DUMPBIN=$ac_cv_prog_DUMPBIN
4687 if test -n "$DUMPBIN"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4689 $as_echo "$DUMPBIN" >&6; }
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 test -n "$DUMPBIN" && break
4699 if test -z "$DUMPBIN"; then
4700 ac_ct_DUMPBIN=$DUMPBIN
4701 for ac_prog in dumpbin "link -dump"
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 if test -n "$ac_ct_DUMPBIN"; then
4711 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4731 if test -n "$ac_ct_DUMPBIN"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4733 $as_echo "$ac_ct_DUMPBIN" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4740 test -n "$ac_ct_DUMPBIN" && break
4743 if test "x$ac_ct_DUMPBIN" = x; then
4746 case $cross_compiling:$ac_tool_warned in
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4750 ac_tool_warned=yes ;;
4752 DUMPBIN=$ac_ct_DUMPBIN
4756 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4758 DUMPBIN="$DUMPBIN -symbols"
4766 if test "$DUMPBIN" != ":"; then
4770 test -z "$NM" && NM=nm
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4778 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4779 if ${lt_cv_nm_interface+:} false; then :
4780 $as_echo_n "(cached) " >&6
4782 lt_cv_nm_interface="BSD nm"
4783 echo "int some_variable = 0;" > conftest.$ac_ext
4784 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4785 (eval "$ac_compile" 2>conftest.err)
4786 cat conftest.err >&5
4787 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4788 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4789 cat conftest.err >&5
4790 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4791 cat conftest.out >&5
4792 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4793 lt_cv_nm_interface="MS dumpbin"
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4798 $as_echo "$lt_cv_nm_interface" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4801 $as_echo_n "checking whether ln -s works... " >&6; }
4803 if test "$LN_S" = "ln -s"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4805 $as_echo "yes" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4808 $as_echo "no, using $LN_S" >&6; }
4811 # find the maximum length of command line arguments
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4813 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4814 if ${lt_cv_sys_max_cmd_len+:} false; then :
4815 $as_echo_n "(cached) " >&6
4822 # On DJGPP, this test can blow up pretty badly due to problems in libc
4823 # (any single argument exceeding 2000 bytes causes a buffer overrun
4824 # during glob expansion). Even if it were fixed, the result of this
4825 # check would be larger than it should be.
4826 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4830 # Under GNU Hurd, this test is not required because there is
4831 # no limit to the length of command line arguments.
4832 # Libtool will interpret -1 as no limit whatsoever
4833 lt_cv_sys_max_cmd_len=-1;
4836 cygwin* | mingw* | cegcc*)
4837 # On Win9x/ME, this test blows up -- it succeeds, but takes
4838 # about 5 minutes as the teststring grows exponentially.
4839 # Worse, since 9x/ME are not pre-emptively multitasking,
4840 # you end up with a "frozen" computer, even though with patience
4841 # the test eventually succeeds (with a max line length of 256k).
4842 # Instead, let's just punt: use the minimum linelength reported by
4843 # all of the supported platforms: 8192 (on NT/2K/XP).
4844 lt_cv_sys_max_cmd_len=8192;
4848 # On MiNT this can take a long time and run out of memory.
4849 lt_cv_sys_max_cmd_len=8192;
4853 # On AmigaOS with pdksh, this test takes hours, literally.
4854 # So we just punt and use a minimum line length of 8192.
4855 lt_cv_sys_max_cmd_len=8192;
4858 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4859 # This has been around since 386BSD, at least. Likely further.
4860 if test -x /sbin/sysctl; then
4861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4862 elif test -x /usr/sbin/sysctl; then
4863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4865 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4867 # And add a safety zone
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4873 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4874 lt_cv_sys_max_cmd_len=196608
4878 # The test takes a long time on OS/2.
4879 lt_cv_sys_max_cmd_len=8192
4883 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4884 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4885 # nice to cause kernel panics so lets avoid the loop below.
4886 # First set a reasonable default.
4887 lt_cv_sys_max_cmd_len=16384
4889 if test -x /sbin/sysconfig; then
4890 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4891 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4896 lt_cv_sys_max_cmd_len=102400
4898 sysv5* | sco5v6* | sysv4.2uw2*)
4899 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4900 if test -n "$kargmax"; then
4901 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4903 lt_cv_sys_max_cmd_len=32768
4907 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4908 if test -n "$lt_cv_sys_max_cmd_len"; then
4909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4912 # Make teststring a little bigger before we do anything with it.
4913 # a 1K string should be a reasonable start.
4914 for i in 1 2 3 4 5 6 7 8 ; do
4915 teststring=$teststring$teststring
4917 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4918 # If test is not a shell built-in, we'll probably end up computing a
4919 # maximum length that is only half of the actual maximum length, but
4921 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4922 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4923 test $i != 17 # 1/2 MB should be enough
4926 teststring=$teststring$teststring
4928 # Only check the string length outside the loop.
4929 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4931 # Add a significant safety factor because C++ compilers can tack on
4932 # massive amounts of additional arguments before passing them to the
4933 # linker. It appears as though 1/2 is a usable value.
4934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4941 if test -n $lt_cv_sys_max_cmd_len ; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4943 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4946 $as_echo "none" >&6; }
4948 max_cmd_len=$lt_cv_sys_max_cmd_len
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4960 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4961 # Try some XSI features
4964 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4966 && eval 'test $(( 1 + 1 )) -eq 2 \
4967 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4970 $as_echo "$xsi_shell" >&6; }
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4974 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4976 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4978 && lt_shell_append=yes
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4980 $as_echo "$lt_shell_append" >&6; }
4983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4993 # test EBCDIC or ASCII
4994 case `echo X|tr X '\101'` in
4995 A) # ASCII based system
4996 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4997 lt_SP2NL='tr \040 \012'
4998 lt_NL2SP='tr \015\012 \040\040'
5000 *) # EBCDIC based system
5001 lt_SP2NL='tr \100 \n'
5002 lt_NL2SP='tr \r\n \100\100'
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5015 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5016 if ${lt_cv_to_host_file_cmd+:} false; then :
5017 $as_echo_n "(cached) " >&6
5022 *-*-mingw* ) # actually msys
5023 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5026 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5028 * ) # otherwise, assume *nix
5029 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5035 *-*-mingw* ) # actually msys
5036 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5039 lt_cv_to_host_file_cmd=func_convert_file_noop
5041 * ) # otherwise, assume *nix
5042 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5046 * ) # unhandled hosts (and "normal" native builds)
5047 lt_cv_to_host_file_cmd=func_convert_file_noop
5053 to_host_file_cmd=$lt_cv_to_host_file_cmd
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5055 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5062 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5063 if ${lt_cv_to_tool_file_cmd+:} false; then :
5064 $as_echo_n "(cached) " >&6
5066 #assume ordinary cross tools, or native build.
5067 lt_cv_to_tool_file_cmd=func_convert_file_noop
5071 *-*-mingw* ) # actually msys
5072 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5080 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5082 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5089 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5090 if ${lt_cv_ld_reload_flag+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 lt_cv_ld_reload_flag='-r'
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5096 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5097 reload_flag=$lt_cv_ld_reload_flag
5098 case $reload_flag in
5100 *) reload_flag=" $reload_flag" ;;
5102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5104 cygwin* | mingw* | pw32* | cegcc*)
5105 if test "$GCC" != yes; then
5110 if test "$GCC" = yes; then
5111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5113 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_OBJDUMP+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$OBJDUMP"; then
5135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 OBJDUMP=$ac_cv_prog_OBJDUMP
5155 if test -n "$OBJDUMP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5157 $as_echo "$OBJDUMP" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_OBJDUMP"; then
5166 ac_ct_OBJDUMP=$OBJDUMP
5167 # Extract the first word of "objdump", so it can be a program name with args.
5168 set dummy objdump; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$ac_ct_OBJDUMP"; then
5175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5195 if test -n "$ac_ct_OBJDUMP"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5197 $as_echo "$ac_ct_OBJDUMP" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_OBJDUMP" = x; then
5206 case $cross_compiling:$ac_tool_warned in
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5212 OBJDUMP=$ac_ct_OBJDUMP
5215 OBJDUMP="$ac_cv_prog_OBJDUMP"
5218 test -z "$OBJDUMP" && OBJDUMP=objdump
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5229 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5230 if ${lt_cv_deplibs_check_method+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 lt_cv_file_magic_cmd='$MAGIC_CMD'
5234 lt_cv_file_magic_test_file=
5235 lt_cv_deplibs_check_method='unknown'
5236 # Need to set the preceding variable on all platforms that support
5237 # interlibrary dependencies.
5238 # 'none' -- dependencies not supported.
5239 # `unknown' -- same as none, but documents that we really don't know.
5240 # 'pass_all' -- all dependencies passed with no checks.
5241 # 'test_compile' -- check by making test program.
5242 # 'file_magic [[regex]]' -- check by looking for files in library path
5243 # which responds to the $file_magic_cmd with a given extended regex.
5244 # If you have `file' or equivalent on your system and you're not sure
5245 # whether `pass_all' will *always* work, you probably want this one.
5249 lt_cv_deplibs_check_method=pass_all
5253 lt_cv_deplibs_check_method=pass_all
5257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5258 lt_cv_file_magic_cmd='/usr/bin/file -L'
5259 lt_cv_file_magic_test_file=/shlib/libc.so
5263 # func_win32_libid is a shell function defined in ltmain.sh
5264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5265 lt_cv_file_magic_cmd='func_win32_libid'
5269 # Base MSYS/MinGW do not provide the 'file' command needed by
5270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5271 # unless we find 'file', for example because we are cross-compiling.
5272 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5273 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5274 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5275 lt_cv_file_magic_cmd='func_win32_libid'
5277 # Keep this pattern in sync with the one in func_win32_libid.
5278 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5279 lt_cv_file_magic_cmd='$OBJDUMP -f'
5284 # use the weaker test based on 'objdump'. See mingw*.
5285 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5286 lt_cv_file_magic_cmd='$OBJDUMP -f'
5289 darwin* | rhapsody*)
5290 lt_cv_deplibs_check_method=pass_all
5293 freebsd* | dragonfly*)
5294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5297 # Not sure whether the presence of OpenBSD here was a mistake.
5298 # Let's accept both of them until this is cleared up.
5299 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5300 lt_cv_file_magic_cmd=/usr/bin/file
5301 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5305 lt_cv_deplibs_check_method=pass_all
5310 lt_cv_deplibs_check_method=pass_all
5314 lt_cv_deplibs_check_method=pass_all
5317 hpux10.20* | hpux11*)
5318 lt_cv_file_magic_cmd=/usr/bin/file
5321 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5322 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5325 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]'
5326 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5329 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5330 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5336 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5340 irix5* | irix6* | nonstopux*)
5342 *-32|*"-32 ") libmagic=32-bit;;
5343 *-n32|*"-n32 ") libmagic=N32;;
5344 *-64|*"-64 ") libmagic=64-bit;;
5345 *) libmagic=never-match;;
5347 lt_cv_deplibs_check_method=pass_all
5350 # This must be glibc/ELF.
5351 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5352 lt_cv_deplibs_check_method=pass_all
5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5365 lt_cv_file_magic_cmd=/usr/bin/file
5366 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5370 lt_cv_deplibs_check_method=pass_all
5374 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5381 osf3* | osf4* | osf5*)
5382 lt_cv_deplibs_check_method=pass_all
5386 lt_cv_deplibs_check_method=pass_all
5390 lt_cv_deplibs_check_method=pass_all
5393 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5394 lt_cv_deplibs_check_method=pass_all
5398 case $host_vendor in
5400 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]'
5401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5404 lt_cv_deplibs_check_method=pass_all
5407 lt_cv_file_magic_cmd='/bin/file'
5408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5411 lt_cv_file_magic_cmd='/bin/file'
5412 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5413 lt_cv_file_magic_test_file=/lib/libc.so
5416 lt_cv_deplibs_check_method=pass_all
5419 lt_cv_deplibs_check_method=pass_all
5425 lt_cv_deplibs_check_method=pass_all
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5431 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5435 if test "$build" = "$host"; then
5438 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5441 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5447 file_magic_cmd=$lt_cv_file_magic_cmd
5448 deplibs_check_method=$lt_cv_deplibs_check_method
5449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5472 if test -n "$ac_tool_prefix"; then
5473 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5474 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if ${ac_cv_prog_DLLTOOL+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 if test -n "$DLLTOOL"; then
5481 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 DLLTOOL=$ac_cv_prog_DLLTOOL
5501 if test -n "$DLLTOOL"; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5503 $as_echo "$DLLTOOL" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 $as_echo "no" >&6; }
5511 if test -z "$ac_cv_prog_DLLTOOL"; then
5512 ac_ct_DLLTOOL=$DLLTOOL
5513 # Extract the first word of "dlltool", so it can be a program name with args.
5514 set dummy dlltool; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 if test -n "$ac_ct_DLLTOOL"; then
5521 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5541 if test -n "$ac_ct_DLLTOOL"; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5543 $as_echo "$ac_ct_DLLTOOL" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546 $as_echo "no" >&6; }
5549 if test "x$ac_ct_DLLTOOL" = x; then
5552 case $cross_compiling:$ac_tool_warned in
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5558 DLLTOOL=$ac_ct_DLLTOOL
5561 DLLTOOL="$ac_cv_prog_DLLTOOL"
5564 test -z "$DLLTOOL" && DLLTOOL=dlltool
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5576 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5577 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 lt_cv_sharedlib_from_linklib_cmd='unknown'
5583 cygwin* | mingw* | pw32* | cegcc*)
5584 # two different shell functions defined in ltmain.sh
5585 # decide which to use based on capabilities of $DLLTOOL
5586 case `$DLLTOOL --help 2>&1` in
5587 *--identify-strict*)
5588 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5591 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5596 # fallback: assume linklib IS sharedlib
5597 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5603 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5604 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5605 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5613 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_AR+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$AR"; then
5624 ac_cv_prog_AR="$AR" # Let the user override the test.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 if test -n "$AR"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5646 $as_echo "$AR" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5653 test -n "$AR" && break
5656 if test -z "$AR"; then
5660 # Extract the first word of "$ac_prog", so it can be a program name with args.
5661 set dummy $ac_prog; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5665 $as_echo_n "(cached) " >&6
5667 if test -n "$ac_ct_AR"; then
5668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_ac_ct_AR="$ac_prog"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688 if test -n "$ac_ct_AR"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5690 $as_echo "$ac_ct_AR" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5697 test -n "$ac_ct_AR" && break
5700 if test "x$ac_ct_AR" = x; then
5703 case $cross_compiling:$ac_tool_warned in
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5707 ac_tool_warned=yes ;;
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5727 $as_echo_n "checking for archiver @FILE support... " >&6; }
5728 if ${lt_cv_ar_at_file+:} false; then :
5729 $as_echo_n "(cached) " >&6
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733 /* end confdefs.h. */
5743 if ac_fn_c_try_compile "$LINENO"; then :
5744 echo conftest.$ac_objext > conftest.lst
5745 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5747 (eval $lt_ar_try) 2>&5
5749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5750 test $ac_status = 0; }
5751 if test "$ac_status" -eq 0; then
5752 # Ensure the archiver fails upon bogus file names.
5753 rm -f conftest.$ac_objext libconftest.a
5754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5755 (eval $lt_ar_try) 2>&5
5757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5758 test $ac_status = 0; }
5759 if test "$ac_status" -ne 0; then
5763 rm -f conftest.* libconftest.a
5766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5770 $as_echo "$lt_cv_ar_at_file" >&6; }
5772 if test "x$lt_cv_ar_at_file" = xno; then
5775 archiver_list_spec=$lt_cv_ar_at_file
5784 if test -n "$ac_tool_prefix"; then
5785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5786 set dummy ${ac_tool_prefix}strip; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_STRIP+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$STRIP"; then
5793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 STRIP=$ac_cv_prog_STRIP
5813 if test -n "$STRIP"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5815 $as_echo "$STRIP" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5823 if test -z "$ac_cv_prog_STRIP"; then
5825 # Extract the first word of "strip", so it can be a program name with args.
5826 set dummy strip; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 if test -n "$ac_ct_STRIP"; then
5833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_STRIP="strip"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5853 if test -n "$ac_ct_STRIP"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5855 $as_echo "$ac_ct_STRIP" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5861 if test "x$ac_ct_STRIP" = x; then
5864 case $cross_compiling:$ac_tool_warned in
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868 ac_tool_warned=yes ;;
5873 STRIP="$ac_cv_prog_STRIP"
5876 test -z "$STRIP" && STRIP=:
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_RANLIB+:} false; then :
5889 $as_echo_n "(cached) " >&6
5891 if test -n "$RANLIB"; then
5892 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 RANLIB=$ac_cv_prog_RANLIB
5912 if test -n "$RANLIB"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5914 $as_echo "$RANLIB" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5922 if test -z "$ac_cv_prog_RANLIB"; then
5923 ac_ct_RANLIB=$RANLIB
5924 # Extract the first word of "ranlib", so it can be a program name with args.
5925 set dummy ranlib; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 if test -n "$ac_ct_RANLIB"; then
5932 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941 ac_cv_prog_ac_ct_RANLIB="ranlib"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5952 if test -n "$ac_ct_RANLIB"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5954 $as_echo "$ac_ct_RANLIB" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5960 if test "x$ac_ct_RANLIB" = x; then
5963 case $cross_compiling:$ac_tool_warned in
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967 ac_tool_warned=yes ;;
5969 RANLIB=$ac_ct_RANLIB
5972 RANLIB="$ac_cv_prog_RANLIB"
5975 test -z "$RANLIB" && RANLIB=:
5982 # Determine commands to create old-style static archives.
5983 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5984 old_postinstall_cmds='chmod 644 $oldlib'
5985 old_postuninstall_cmds=
5987 if test -n "$RANLIB"; then
5990 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5996 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6001 lock_old_archive_extraction=yes ;;
6003 lock_old_archive_extraction=no ;;
6044 # If no C compiler was specified, use CC.
6047 # If no C compiler flags were specified, use CFLAGS.
6048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6050 # Allow CC to be a program name with arguments.
6054 # Check for command to grab the raw symbol name followed by C symbol from nm.
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6056 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6057 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6058 $as_echo_n "(cached) " >&6
6061 # These are sane defaults that work on at least a few old systems.
6062 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6064 # Character class describing NM global symbol codes.
6065 symcode='[BCDEGRST]'
6067 # Regexp to match symbols that can be accessed directly from C.
6068 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6070 # Define system-specific variables.
6075 cygwin* | mingw* | pw32* | cegcc*)
6076 symcode='[ABCDGISTW]'
6079 if test "$host_cpu" = ia64; then
6080 symcode='[ABCDEGRST]'
6084 symcode='[BCDEGRST]'
6087 symcode='[BCDEGQRST]'
6098 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6106 # If we're using GNU nm, then use its standard symbol codes.
6107 case `$NM -V 2>&1` in
6108 *GNU* | *'with BFD'*)
6109 symcode='[ABCDGIRSTW]' ;;
6112 # Transform an extracted symbol line into a proper C declaration.
6113 # Some systems (esp. on ia64) link data and code symbols differently,
6114 # so use this general approach.
6115 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6117 # Transform an extracted symbol line into symbol name and symbol address
6118 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6121 # Handle CRLF in mingw tool chain
6125 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6129 # Try without a prefix underscore, then with it.
6130 for ac_symprfx in "" "_"; do
6132 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6133 symxfrm="\\1 $ac_symprfx\\2 \\2"
6135 # Write the raw and C identifiers.
6136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6137 # Fake it for dumpbin and say T for any non-static function
6138 # and D for any global variable.
6139 # Also find C++ and __fastcall symbols from MSVC++,
6140 # which start with @ or ?.
6141 lt_cv_sys_global_symbol_pipe="$AWK '"\
6142 " {last_section=section; section=\$ 3};"\
6143 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6144 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6145 " \$ 0!~/External *\|/{next};"\
6146 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6147 " {if(hide[section]) next};"\
6148 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6149 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6150 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6151 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6152 " ' prfx=^$ac_symprfx"
6154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6156 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6158 # Check to see that the pipe works correctly.
6162 cat > conftest.$ac_ext <<_LT_EOF
6167 void nm_test_func(void);
6168 void nm_test_func(void){}
6172 int main(){nm_test_var='a';nm_test_func();return(0);}
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 # Now try to grab the symbols.
6182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6183 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; } && test -s "$nlist"; then
6187 # Try sorting and uniquifying the output.
6188 if sort "$nlist" | uniq > "$nlist"T; then
6189 mv -f "$nlist"T "$nlist"
6194 # Make sure that we snagged all the symbols we need.
6195 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6196 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6197 cat <<_LT_EOF > conftest.$ac_ext
6198 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6199 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6200 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6201 relocations are performed -- see ld's documentation on pseudo-relocs. */
6202 # define LT_DLSYM_CONST
6203 #elif defined(__osf__)
6204 /* This system does not cope well with relocations in const data. */
6205 # define LT_DLSYM_CONST
6207 # define LT_DLSYM_CONST const
6215 # Now generate the symbol file.
6216 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6218 cat <<_LT_EOF >> conftest.$ac_ext
6220 /* The mapping between symbol names and symbols. */
6221 LT_DLSYM_CONST struct {
6225 lt__PROGRAM__LTX_preloaded_symbols[] =
6227 { "@PROGRAM@", (void *) 0 },
6229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6230 cat <<\_LT_EOF >> conftest.$ac_ext
6234 /* This works around a problem in FreeBSD linker */
6235 #ifdef FREEBSD_WORKAROUND
6236 static const void *lt_preloaded_setup() {
6237 return lt__PROGRAM__LTX_preloaded_symbols;
6245 # Now try linking the two files.
6246 mv conftest.$ac_objext conftstm.$ac_objext
6247 lt_globsym_save_LIBS=$LIBS
6248 lt_globsym_save_CFLAGS=$CFLAGS
6249 LIBS="conftstm.$ac_objext"
6250 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6252 (eval $ac_link) 2>&5
6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6258 LIBS=$lt_globsym_save_LIBS
6259 CFLAGS=$lt_globsym_save_CFLAGS
6261 echo "cannot find nm_test_func in $nlist" >&5
6264 echo "cannot find nm_test_var in $nlist" >&5
6267 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6270 echo "$progname: failed program was:" >&5
6271 cat conftest.$ac_ext >&5
6273 rm -rf conftest* conftst*
6275 # Do not use the global_symbol_pipe unless it works.
6276 if test "$pipe_works" = yes; then
6279 lt_cv_sys_global_symbol_pipe=
6285 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6286 lt_cv_sys_global_symbol_to_cdecl=
6288 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6290 $as_echo "failed" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6293 $as_echo "ok" >&6; }
6296 # Response file support.
6297 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6298 nm_file_list_spec='@'
6299 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6300 nm_file_list_spec='@'
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6330 $as_echo_n "checking for sysroot... " >&6; }
6332 # Check whether --with-sysroot was given.
6333 if test "${with_sysroot+set}" = set; then :
6334 withval=$with_sysroot;
6341 case ${with_sysroot} in #(
6343 if test "$GCC" = yes; then
6344 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6348 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6354 $as_echo "${with_sysroot}" >&6; }
6355 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6360 $as_echo "${lt_sysroot:-no}" >&6; }
6366 # Check whether --enable-libtool-lock was given.
6367 if test "${enable_libtool_lock+set}" = set; then :
6368 enableval=$enable_libtool_lock;
6371 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6373 # Some flags need to be propagated to the compiler or linker for good
6377 # Find out which ABI we are using.
6378 echo 'int i;' > conftest.$ac_ext
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380 (eval $ac_compile) 2>&5
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }; then
6384 case `/usr/bin/file conftest.$ac_objext` in
6396 # Find out which ABI we are using.
6397 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 if test "$lt_cv_prog_gnu_ld" = yes; then
6404 case `/usr/bin/file conftest.$ac_objext` in
6406 LD="${LD-ld} -melf32bsmip"
6409 LD="${LD-ld} -melf32bmipn32"
6412 LD="${LD-ld} -melf64bmip"
6416 case `/usr/bin/file conftest.$ac_objext` in
6432 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6433 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6434 # Find out which ABI we are using.
6435 echo 'int i;' > conftest.$ac_ext
6436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6437 (eval $ac_compile) 2>&5
6439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6440 test $ac_status = 0; }; then
6441 case `/usr/bin/file conftest.o` in
6444 x86_64-*kfreebsd*-gnu)
6445 LD="${LD-ld} -m elf_i386_fbsd"
6448 LD="${LD-ld} -m elf_i386"
6450 ppc64-*linux*|powerpc64-*linux*)
6451 LD="${LD-ld} -m elf32ppclinux"
6454 LD="${LD-ld} -m elf_s390"
6457 LD="${LD-ld} -m elf32_sparc"
6463 x86_64-*kfreebsd*-gnu)
6464 LD="${LD-ld} -m elf_x86_64_fbsd"
6467 LD="${LD-ld} -m elf_x86_64"
6469 ppc*-*linux*|powerpc*-*linux*)
6470 LD="${LD-ld} -m elf64ppc"
6472 s390*-*linux*|s390*-*tpf*)
6473 LD="${LD-ld} -m elf64_s390"
6476 LD="${LD-ld} -m elf64_sparc"
6486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6487 SAVE_CFLAGS="$CFLAGS"
6488 CFLAGS="$CFLAGS -belf"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6490 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6491 if ${lt_cv_cc_needs_belf+:} false; then :
6492 $as_echo_n "(cached) " >&6
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501 /* end confdefs.h. */
6511 if ac_fn_c_try_link "$LINENO"; then :
6512 lt_cv_cc_needs_belf=yes
6514 lt_cv_cc_needs_belf=no
6516 rm -f core conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6519 ac_cpp='$CPP $CPPFLAGS'
6520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6526 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6529 CFLAGS="$SAVE_CFLAGS"
6533 # Find out which ABI we are using.
6534 echo 'int i;' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 case `/usr/bin/file conftest.o` in
6542 case $lt_cv_prog_gnu_ld in
6546 LD="${LD-ld} -m elf_x86_64"
6549 LD="${LD-ld} -m elf64_sparc"
6552 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6553 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6558 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6570 need_locks="$enable_libtool_lock"
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}mt; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$MANIFEST_TOOL"; then
6581 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6601 if test -n "$MANIFEST_TOOL"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6603 $as_echo "$MANIFEST_TOOL" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6612 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6613 # Extract the first word of "mt", so it can be a program name with args.
6614 set dummy mt; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_MANIFEST_TOOL"; then
6621 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6641 if test -n "$ac_ct_MANIFEST_TOOL"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6643 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6658 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6661 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6664 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6666 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6667 if ${lt_cv_path_mainfest_tool+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 lt_cv_path_mainfest_tool=no
6671 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6672 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6673 cat conftest.err >&5
6674 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6675 lt_cv_path_mainfest_tool=yes
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6680 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6681 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6691 rhapsody* | darwin*)
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$DSYMUTIL"; then
6701 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6721 if test -n "$DSYMUTIL"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6723 $as_echo "$DSYMUTIL" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_DSYMUTIL"; then
6732 ac_ct_DSYMUTIL=$DSYMUTIL
6733 # Extract the first word of "dsymutil", so it can be a program name with args.
6734 set dummy dsymutil; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$ac_ct_DSYMUTIL"; then
6741 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6761 if test -n "$ac_ct_DSYMUTIL"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6763 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_DSYMUTIL" = x; then
6772 case $cross_compiling:$ac_tool_warned in
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6778 DSYMUTIL=$ac_ct_DSYMUTIL
6781 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_NMEDIT+:} false; then :
6790 $as_echo_n "(cached) " >&6
6792 if test -n "$NMEDIT"; then
6793 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 NMEDIT=$ac_cv_prog_NMEDIT
6813 if test -n "$NMEDIT"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6815 $as_echo "$NMEDIT" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6823 if test -z "$ac_cv_prog_NMEDIT"; then
6824 ac_ct_NMEDIT=$NMEDIT
6825 # Extract the first word of "nmedit", so it can be a program name with args.
6826 set dummy nmedit; ac_word=$2
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$ac_ct_NMEDIT"; then
6833 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6853 if test -n "$ac_ct_NMEDIT"; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6855 $as_echo "$ac_ct_NMEDIT" >&6; }
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 $as_echo "no" >&6; }
6861 if test "x$ac_ct_NMEDIT" = x; then
6864 case $cross_compiling:$ac_tool_warned in
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6870 NMEDIT=$ac_ct_NMEDIT
6873 NMEDIT="$ac_cv_prog_NMEDIT"
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_LIPO+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 if test -n "$LIPO"; then
6885 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 LIPO=$ac_cv_prog_LIPO
6905 if test -n "$LIPO"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6907 $as_echo "$LIPO" >&6; }
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6915 if test -z "$ac_cv_prog_LIPO"; then
6917 # Extract the first word of "lipo", so it can be a program name with args.
6918 set dummy lipo; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 if test -n "$ac_ct_LIPO"; then
6925 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_ac_ct_LIPO="lipo"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6945 if test -n "$ac_ct_LIPO"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6947 $as_echo "$ac_ct_LIPO" >&6; }
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$ac_ct_LIPO" = x; then
6956 case $cross_compiling:$ac_tool_warned in
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6965 LIPO="$ac_cv_prog_LIPO"
6968 if test -n "$ac_tool_prefix"; then
6969 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6970 set dummy ${ac_tool_prefix}otool; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_OTOOL+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 if test -n "$OTOOL"; then
6977 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 OTOOL=$ac_cv_prog_OTOOL
6997 if test -n "$OTOOL"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6999 $as_echo "$OTOOL" >&6; }
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7007 if test -z "$ac_cv_prog_OTOOL"; then
7009 # Extract the first word of "otool", so it can be a program name with args.
7010 set dummy otool; ac_word=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 if test -n "$ac_ct_OTOOL"; then
7017 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir=.
7024 for ac_exec_ext in '' $ac_executable_extensions; do
7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026 ac_cv_prog_ac_ct_OTOOL="otool"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7037 if test -n "$ac_ct_OTOOL"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7039 $as_echo "$ac_ct_OTOOL" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7045 if test "x$ac_ct_OTOOL" = x; then
7048 case $cross_compiling:$ac_tool_warned in
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7052 ac_tool_warned=yes ;;
7057 OTOOL="$ac_cv_prog_OTOOL"
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_OTOOL64+:} false; then :
7066 $as_echo_n "(cached) " >&6
7068 if test -n "$OTOOL64"; then
7069 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 OTOOL64=$ac_cv_prog_OTOOL64
7089 if test -n "$OTOOL64"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7091 $as_echo "$OTOOL64" >&6; }
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7099 if test -z "$ac_cv_prog_OTOOL64"; then
7100 ac_ct_OTOOL64=$OTOOL64
7101 # Extract the first word of "otool64", so it can be a program name with args.
7102 set dummy otool64; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7106 $as_echo_n "(cached) " >&6
7108 if test -n "$ac_ct_OTOOL64"; then
7109 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_ac_ct_OTOOL64="otool64"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7129 if test -n "$ac_ct_OTOOL64"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7131 $as_echo "$ac_ct_OTOOL64" >&6; }
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7137 if test "x$ac_ct_OTOOL64" = x; then
7140 case $cross_compiling:$ac_tool_warned in
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7146 OTOOL64=$ac_ct_OTOOL64
7149 OTOOL64="$ac_cv_prog_OTOOL64"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7179 $as_echo_n "checking for -single_module linker flag... " >&6; }
7180 if ${lt_cv_apple_cc_single_mod+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 lt_cv_apple_cc_single_mod=no
7184 if test -z "${LT_MULTI_MODULE}"; then
7185 # By default we will add the -single_module flag. You can override
7186 # by either setting the environment variable LT_MULTI_MODULE
7187 # non-empty at configure time, or by adding -multi_module to the
7189 rm -rf libconftest.dylib*
7190 echo "int foo(void){return 1;}" > conftest.c
7191 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7192 -dynamiclib -Wl,-single_module conftest.c" >&5
7193 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7194 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7196 # If there is a non-empty error log, and "single_module"
7197 # appears in it, assume the flag caused a linker warning
7198 if test -s conftest.err && $GREP single_module conftest.err; then
7199 cat conftest.err >&5
7200 # Otherwise, if the output was created with a 0 exit code from
7201 # the compiler, it worked.
7202 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7203 lt_cv_apple_cc_single_mod=yes
7205 cat conftest.err >&5
7207 rm -rf libconftest.dylib*
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7212 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7215 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7216 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 lt_cv_ld_exported_symbols_list=no
7220 save_LDFLAGS=$LDFLAGS
7221 echo "_main" > conftest.sym
7222 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7234 if ac_fn_c_try_link "$LINENO"; then :
7235 lt_cv_ld_exported_symbols_list=yes
7237 lt_cv_ld_exported_symbols_list=no
7239 rm -f core conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
7241 LDFLAGS="$save_LDFLAGS"
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7245 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7248 $as_echo_n "checking for -force_load linker flag... " >&6; }
7249 if ${lt_cv_ld_force_load+:} false; then :
7250 $as_echo_n "(cached) " >&6
7252 lt_cv_ld_force_load=no
7253 cat > conftest.c << _LT_EOF
7254 int forced_loaded() { return 2;}
7256 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7257 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7258 echo "$AR cru libconftest.a conftest.o" >&5
7259 $AR cru libconftest.a conftest.o 2>&5
7260 echo "$RANLIB libconftest.a" >&5
7261 $RANLIB libconftest.a 2>&5
7262 cat > conftest.c << _LT_EOF
7263 int main() { return 0;}
7265 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7266 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7268 if test -s conftest.err && $GREP force_load conftest.err; then
7269 cat conftest.err >&5
7270 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7271 lt_cv_ld_force_load=yes
7273 cat conftest.err >&5
7275 rm -f conftest.err libconftest.a conftest conftest.c
7276 rm -rf conftest.dSYM
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7280 $as_echo "$lt_cv_ld_force_load" >&6; }
7282 rhapsody* | darwin1.[012])
7283 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7285 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7286 darwin*) # darwin 5.x on
7287 # if running on 10.5 or later, the deployment target defaults
7288 # to the OS version, if on x86, and 10.4, the deployment
7289 # target defaults to 10.4. Don't you love it?
7290 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7291 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7292 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7294 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7300 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7301 _lt_dar_single_mod='$single_module'
7303 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7304 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7306 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7308 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7309 _lt_dsymutil='~$DSYMUTIL $lib || :'
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7322 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7323 # On Suns, sometimes $CPP names a directory.
7324 if test -n "$CPP" && test -d "$CPP"; then
7327 if test -z "$CPP"; then
7328 if ${ac_cv_prog_CPP+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 # Double quotes because CPP needs to be expanded
7332 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7335 for ac_c_preproc_warn_flag in '' yes
7337 # Use a header file that comes with gcc, so configuring glibc
7338 # with a fresh cross-compiler works.
7339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340 # <limits.h> exists even on freestanding compilers.
7341 # On the NeXT, cc -E runs the code through the compiler's parser,
7342 # not just through cpp. "Syntax error" is here to catch this case.
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7346 # include <limits.h>
7348 # include <assert.h>
7352 if ac_fn_c_try_cpp "$LINENO"; then :
7355 # Broken: fails on valid input.
7358 rm -f conftest.err conftest.i conftest.$ac_ext
7360 # OK, works on sane cases. Now check whether nonexistent headers
7361 # can be detected and how.
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 #include <ac_nonexistent.h>
7366 if ac_fn_c_try_cpp "$LINENO"; then :
7367 # Broken: success on invalid input.
7370 # Passes both tests.
7374 rm -f conftest.err conftest.i conftest.$ac_ext
7377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7378 rm -f conftest.i conftest.err conftest.$ac_ext
7379 if $ac_preproc_ok; then :
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7392 $as_echo "$CPP" >&6; }
7394 for ac_c_preproc_warn_flag in '' yes
7396 # Use a header file that comes with gcc, so configuring glibc
7397 # with a fresh cross-compiler works.
7398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7399 # <limits.h> exists even on freestanding compilers.
7400 # On the NeXT, cc -E runs the code through the compiler's parser,
7401 # not just through cpp. "Syntax error" is here to catch this case.
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7405 # include <limits.h>
7407 # include <assert.h>
7411 if ac_fn_c_try_cpp "$LINENO"; then :
7414 # Broken: fails on valid input.
7417 rm -f conftest.err conftest.i conftest.$ac_ext
7419 # OK, works on sane cases. Now check whether nonexistent headers
7420 # can be detected and how.
7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7423 #include <ac_nonexistent.h>
7425 if ac_fn_c_try_cpp "$LINENO"; then :
7426 # Broken: success on invalid input.
7429 # Passes both tests.
7433 rm -f conftest.err conftest.i conftest.$ac_ext
7436 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7437 rm -f conftest.i conftest.err conftest.$ac_ext
7438 if $ac_preproc_ok; then :
7441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7443 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7444 See \`config.log' for more details" "$LINENO" 5; }
7448 ac_cpp='$CPP $CPPFLAGS'
7449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7455 $as_echo_n "checking for ANSI C header files... " >&6; }
7456 if ${ac_cv_header_stdc+:} false; then :
7457 $as_echo_n "(cached) " >&6
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7474 if ac_fn_c_try_compile "$LINENO"; then :
7475 ac_cv_header_stdc=yes
7477 ac_cv_header_stdc=no
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 if test $ac_cv_header_stdc = yes; then
7482 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489 $EGREP "memchr" >/dev/null 2>&1; then :
7492 ac_cv_header_stdc=no
7498 if test $ac_cv_header_stdc = yes; then
7499 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7506 $EGREP "free" >/dev/null 2>&1; then :
7509 ac_cv_header_stdc=no
7515 if test $ac_cv_header_stdc = yes; then
7516 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7517 if test "$cross_compiling" = yes; then :
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7524 #if ((' ' & 0x0FF) == 0x020)
7525 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7526 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7528 # define ISLOWER(c) \
7529 (('a' <= (c) && (c) <= 'i') \
7530 || ('j' <= (c) && (c) <= 'r') \
7531 || ('s' <= (c) && (c) <= 'z'))
7532 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7535 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7540 for (i = 0; i < 256; i++)
7541 if (XOR (islower (i), ISLOWER (i))
7542 || toupper (i) != TOUPPER (i))
7547 if ac_fn_c_try_run "$LINENO"; then :
7550 ac_cv_header_stdc=no
7552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7553 conftest.$ac_objext conftest.beam conftest.$ac_ext
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7559 $as_echo "$ac_cv_header_stdc" >&6; }
7560 if test $ac_cv_header_stdc = yes; then
7562 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7566 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7568 inttypes.h stdint.h unistd.h
7570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7571 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7574 cat >>confdefs.h <<_ACEOF
7575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 for ac_header in dlfcn.h
7585 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7587 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7588 cat >>confdefs.h <<_ACEOF
7589 #define HAVE_DLFCN_H 1
7610 # Check whether --enable-shared was given.
7611 if test "${enable_shared+set}" = set; then :
7612 enableval=$enable_shared; p=${PACKAGE-default}
7614 yes) enable_shared=yes ;;
7615 no) enable_shared=no ;;
7618 # Look at the argument we got. We use all the common list separators.
7619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7620 for pkg in $enableval; do
7622 if test "X$pkg" = "X$p"; then
7641 # Check whether --enable-static was given.
7642 if test "${enable_static+set}" = set; then :
7643 enableval=$enable_static; p=${PACKAGE-default}
7645 yes) enable_static=yes ;;
7646 no) enable_static=no ;;
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651 for pkg in $enableval; do
7653 if test "X$pkg" = "X$p"; then
7673 # Check whether --with-pic was given.
7674 if test "${with_pic+set}" = set; then :
7675 withval=$with_pic; lt_p=${PACKAGE-default}
7677 yes|no) pic_mode=$withval ;;
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for lt_pkg in $withval; do
7684 if test "X$lt_pkg" = "X$lt_p"; then
7696 test -z "$pic_mode" && pic_mode=default
7704 # Check whether --enable-fast-install was given.
7705 if test "${enable_fast_install+set}" = set; then :
7706 enableval=$enable_fast_install; p=${PACKAGE-default}
7708 yes) enable_fast_install=yes ;;
7709 no) enable_fast_install=no ;;
7711 enable_fast_install=no
7712 # Look at the argument we got. We use all the common list separators.
7713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7714 for pkg in $enableval; do
7716 if test "X$pkg" = "X$p"; then
7717 enable_fast_install=yes
7724 enable_fast_install=yes
7737 # This can be used to rebuild libtool when needed
7738 LIBTOOL_DEPS="$ltmain"
7740 # Always use our own libtool.
7741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7772 test -z "$LN_S" && LN_S="ln -s"
7787 if test -n "${ZSH_VERSION+set}" ; then
7788 setopt NO_GLOB_SUBST
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7792 $as_echo_n "checking for objdir... " >&6; }
7793 if ${lt_cv_objdir+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 rm -f .libs 2>/dev/null
7797 mkdir .libs 2>/dev/null
7798 if test -d .libs; then
7801 # MS-DOS does not allow filenames that begin with a dot.
7804 rmdir .libs 2>/dev/null
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7807 $as_echo "$lt_cv_objdir" >&6; }
7808 objdir=$lt_cv_objdir
7814 cat >>confdefs.h <<_ACEOF
7815 #define LT_OBJDIR "$lt_cv_objdir/"
7823 # AIX sometimes has problems with the GCC collect2 program. For some
7824 # reason, if we set the COLLECT_NAMES environment variable, the problems
7825 # vanish in a puff of smoke.
7826 if test "X${COLLECT_NAMES+set}" != Xset; then
7828 export COLLECT_NAMES
7835 can_build_shared=yes
7837 # All known linkers require a `.a' archive for static linking (except MSVC,
7838 # which needs '.lib').
7841 with_gnu_ld="$lt_cv_prog_gnu_ld"
7844 old_CFLAGS="$CFLAGS"
7846 # Set sane defaults for various variables
7847 test -z "$CC" && CC=cc
7848 test -z "$LTCC" && LTCC=$CC
7849 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7850 test -z "$LD" && LD=ld
7851 test -z "$ac_objext" && ac_objext=o
7853 for cc_temp in $compiler""; do
7855 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7856 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7861 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7864 # Only perform the check for file, if the check method requires it
7865 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7866 case $deplibs_check_method in
7868 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7870 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7871 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7872 $as_echo_n "(cached) " >&6
7876 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7879 lt_save_MAGIC_CMD="$MAGIC_CMD"
7880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7881 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7882 for ac_dir in $ac_dummy; do
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f $ac_dir/${ac_tool_prefix}file; then
7886 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7887 if test -n "$file_magic_test_file"; then
7888 case $deplibs_check_method in
7890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7893 $EGREP "$file_magic_regex" > /dev/null; then
7898 *** Warning: the command libtool uses to detect shared libraries,
7899 *** $file_magic_cmd, produces output that libtool cannot recognize.
7900 *** The result is that libtool may fail to recognize shared libraries
7901 *** as such. This will affect the creation of libtool libraries that
7902 *** depend on shared libraries, but programs linked with such libtool
7903 *** libraries will work regardless of this problem. Nevertheless, you
7904 *** may want to report the problem to your system manager and/or to
7905 *** bug-libtool@gnu.org
7915 MAGIC_CMD="$lt_save_MAGIC_CMD"
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if test -n "$MAGIC_CMD"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7923 $as_echo "$MAGIC_CMD" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7933 if test -z "$lt_cv_path_MAGIC_CMD"; then
7934 if test -n "$ac_tool_prefix"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7936 $as_echo_n "checking for file... " >&6; }
7937 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7938 $as_echo_n "(cached) " >&6
7942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7945 lt_save_MAGIC_CMD="$MAGIC_CMD"
7946 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7948 for ac_dir in $ac_dummy; do
7950 test -z "$ac_dir" && ac_dir=.
7951 if test -f $ac_dir/file; then
7952 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7953 if test -n "$file_magic_test_file"; then
7954 case $deplibs_check_method in
7956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7959 $EGREP "$file_magic_regex" > /dev/null; then
7964 *** Warning: the command libtool uses to detect shared libraries,
7965 *** $file_magic_cmd, produces output that libtool cannot recognize.
7966 *** The result is that libtool may fail to recognize shared libraries
7967 *** as such. This will affect the creation of libtool libraries that
7968 *** depend on shared libraries, but programs linked with such libtool
7969 *** libraries will work regardless of this problem. Nevertheless, you
7970 *** may want to report the problem to your system manager and/or to
7971 *** bug-libtool@gnu.org
7981 MAGIC_CMD="$lt_save_MAGIC_CMD"
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if test -n "$MAGIC_CMD"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7989 $as_echo "$MAGIC_CMD" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
8005 # Use C for the default configuration in the libtool script
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8015 # Source file extension for C test sources.
8018 # Object file extension for compiled C test sources.
8022 # Code to be used in simple compile tests
8023 lt_simple_compile_test_code="int some_variable = 0;"
8025 # Code to be used in simple link tests
8026 lt_simple_link_test_code='int main(){return(0);}'
8034 # If no C compiler was specified, use CC.
8037 # If no C compiler flags were specified, use CFLAGS.
8038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8040 # Allow CC to be a program name with arguments.
8043 # Save the default compiler, since it gets overwritten when the other
8044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8045 compiler_DEFAULT=$CC
8047 # save warnings/boilerplate of simple test code
8048 ac_outfile=conftest.$ac_objext
8049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8051 _lt_compiler_boilerplate=`cat conftest.err`
8054 ac_outfile=conftest.$ac_objext
8055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8057 _lt_linker_boilerplate=`cat conftest.err`
8062 ## There is no encapsulation within the following macros, do not change
8063 ## the running order or otherwise move them around unless you know exactly
8064 ## what you are doing...
8065 if test -n "$compiler"; then
8067 lt_prog_compiler_no_builtin_flag=
8069 if test "$GCC" = yes; then
8070 case $cc_basename in
8072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8078 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8079 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8080 $as_echo_n "(cached) " >&6
8082 lt_cv_prog_compiler_rtti_exceptions=no
8083 ac_outfile=conftest.$ac_objext
8084 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8085 lt_compiler_flag="-fno-rtti -fno-exceptions"
8086 # Insert the option either (1) after the last *FLAGS variable, or
8087 # (2) before a word containing "conftest.", or (3) at the end.
8088 # Note that $ac_compile itself does not contain backslashes and begins
8089 # with a dollar sign (not a hyphen), so the echo should work correctly.
8090 # The option is referenced via a variable to avoid confusing sed.
8091 lt_compile=`echo "$ac_compile" | $SED \
8092 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094 -e 's:$: $lt_compiler_flag:'`
8095 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8096 (eval "$lt_compile" 2>conftest.err)
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 if (exit $ac_status) && test -s "$ac_outfile"; then
8101 # The compiler can only warn and ignore the option if not recognized
8102 # So say no if there are warnings other than the usual output.
8103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8105 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8106 lt_cv_prog_compiler_rtti_exceptions=yes
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8113 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8115 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8116 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8128 lt_prog_compiler_wl=
8129 lt_prog_compiler_pic=
8130 lt_prog_compiler_static=
8133 if test "$GCC" = yes; then
8134 lt_prog_compiler_wl='-Wl,'
8135 lt_prog_compiler_static='-static'
8139 # All AIX code is PIC.
8140 if test "$host_cpu" = ia64; then
8141 # AIX 5 now supports IA64 processor
8142 lt_prog_compiler_static='-Bstatic'
8149 # see comment about AmigaOS4 .so support
8150 lt_prog_compiler_pic='-fPIC'
8153 # FIXME: we need at least 68020 code to build shared libraries, but
8154 # adding the `-m68020' flag to GCC prevents building anything better,
8156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8162 # PIC is the default for these OSes.
8165 mingw* | cygwin* | pw32* | os2* | cegcc*)
8166 # This hack is so that the source file can tell whether it is being
8167 # built for inclusion in a dll (and should export symbols for example).
8168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8169 # (--disable-auto-import) libraries
8170 lt_prog_compiler_pic='-DDLL_EXPORT'
8173 darwin* | rhapsody*)
8174 # PIC is the default on this platform
8175 # Common symbols not allowed in MH_DYLIB files
8176 lt_prog_compiler_pic='-fno-common'
8180 # PIC is the default for Haiku.
8181 # The "-static" flag exists, but is broken.
8182 lt_prog_compiler_static=
8186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8188 # sets the default TLS model and affects inlining.
8194 lt_prog_compiler_pic='-fPIC'
8200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8201 # Instead, we relocate shared libraries at runtime.
8205 # Just because we use GCC doesn't mean we suddenly get shared libraries
8206 # on systems that don't support them.
8207 lt_prog_compiler_can_build_shared=no
8212 # QNX uses GNU C++, but need to define -shared option too, otherwise
8214 lt_prog_compiler_pic='-fPIC -shared'
8218 if test -d /usr/nec; then
8219 lt_prog_compiler_pic=-Kconform_pic
8224 lt_prog_compiler_pic='-fPIC'
8228 case $cc_basename in
8229 nvcc*) # Cuda Compiler Driver 2.2
8230 lt_prog_compiler_wl='-Xlinker '
8231 if test -n "$lt_prog_compiler_pic"; then
8232 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8237 # PORTME Check for flag to pass linker flags through the system compiler.
8240 lt_prog_compiler_wl='-Wl,'
8241 if test "$host_cpu" = ia64; then
8242 # AIX 5 now supports IA64 processor
8243 lt_prog_compiler_static='-Bstatic'
8245 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8249 mingw* | cygwin* | pw32* | os2* | cegcc*)
8250 # This hack is so that the source file can tell whether it is being
8251 # built for inclusion in a dll (and should export symbols for example).
8252 lt_prog_compiler_pic='-DDLL_EXPORT'
8255 hpux9* | hpux10* | hpux11*)
8256 lt_prog_compiler_wl='-Wl,'
8257 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8264 lt_prog_compiler_pic='+Z'
8267 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268 lt_prog_compiler_static='${wl}-a ${wl}archive'
8271 irix5* | irix6* | nonstopux*)
8272 lt_prog_compiler_wl='-Wl,'
8273 # PIC (with -KPIC) is the default.
8274 lt_prog_compiler_static='-non_shared'
8277 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8278 case $cc_basename in
8279 # old Intel for x86_64 which still supported -KPIC.
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-KPIC'
8283 lt_prog_compiler_static='-static'
8285 # icc used to be incompatible with GCC.
8286 # ICC 10 doesn't accept -KPIC any more.
8288 lt_prog_compiler_wl='-Wl,'
8289 lt_prog_compiler_pic='-fPIC'
8290 lt_prog_compiler_static='-static'
8292 # Lahey Fortran 8.1.
8294 lt_prog_compiler_wl='-Wl,'
8295 lt_prog_compiler_pic='--shared'
8296 lt_prog_compiler_static='--static'
8299 # NAG Fortran compiler
8300 lt_prog_compiler_wl='-Wl,-Wl,,'
8301 lt_prog_compiler_pic='-PIC'
8302 lt_prog_compiler_static='-Bstatic'
8304 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8305 # Portland Group compilers (*not* the Pentium gcc compiler,
8306 # which looks to be a dead project)
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_pic='-fpic'
8309 lt_prog_compiler_static='-Bstatic'
8312 lt_prog_compiler_wl='-Wl,'
8313 # All Alpha code is PIC.
8314 lt_prog_compiler_static='-non_shared'
8316 xl* | bgxl* | bgf* | mpixl*)
8317 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-qpic'
8320 lt_prog_compiler_static='-qstaticlink'
8323 case `$CC -V 2>&1 | sed 5q` in
8324 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8325 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 lt_prog_compiler_wl=''
8330 *Sun\ F* | *Sun*Fortran*)
8331 lt_prog_compiler_pic='-KPIC'
8332 lt_prog_compiler_static='-Bstatic'
8333 lt_prog_compiler_wl='-Qoption ld '
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl='-Wl,'
8341 *Intel*\ [CF]*Compiler*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-fPIC'
8344 lt_prog_compiler_static='-static'
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_pic='-fpic'
8349 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8362 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 lt_prog_compiler_pic='-fPIC -shared'
8367 osf3* | osf4* | osf5*)
8368 lt_prog_compiler_wl='-Wl,'
8369 # All OSF/1 code is PIC.
8370 lt_prog_compiler_static='-non_shared'
8374 lt_prog_compiler_static='-non_shared'
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
8380 case $cc_basename in
8381 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8382 lt_prog_compiler_wl='-Qoption ld ';;
8384 lt_prog_compiler_wl='-Wl,';;
8389 lt_prog_compiler_wl='-Qoption ld '
8390 lt_prog_compiler_pic='-PIC'
8391 lt_prog_compiler_static='-Bstatic'
8394 sysv4 | sysv4.2uw2* | sysv4.3*)
8395 lt_prog_compiler_wl='-Wl,'
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8401 if test -d /usr/nec ;then
8402 lt_prog_compiler_pic='-Kconform_pic'
8403 lt_prog_compiler_static='-Bstatic'
8407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_can_build_shared=no
8419 lt_prog_compiler_pic='-pic'
8420 lt_prog_compiler_static='-Bstatic'
8424 lt_prog_compiler_can_build_shared=no
8430 # For platforms which do not support PIC, -DPIC is meaningless:
8432 lt_prog_compiler_pic=
8435 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8440 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8441 if ${lt_cv_prog_compiler_pic+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8447 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8448 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8451 # Check to make sure the PIC flag actually works.
8453 if test -n "$lt_prog_compiler_pic"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8455 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8456 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8457 $as_echo_n "(cached) " >&6
8459 lt_cv_prog_compiler_pic_works=no
8460 ac_outfile=conftest.$ac_objext
8461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8462 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8463 # Insert the option either (1) after the last *FLAGS variable, or
8464 # (2) before a word containing "conftest.", or (3) at the end.
8465 # Note that $ac_compile itself does not contain backslashes and begins
8466 # with a dollar sign (not a hyphen), so the echo should work correctly.
8467 # The option is referenced via a variable to avoid confusing sed.
8468 lt_compile=`echo "$ac_compile" | $SED \
8469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8471 -e 's:$: $lt_compiler_flag:'`
8472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8473 (eval "$lt_compile" 2>conftest.err)
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 if (exit $ac_status) && test -s "$ac_outfile"; then
8478 # The compiler can only warn and ignore the option if not recognized
8479 # So say no if there are warnings other than the usual output.
8480 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8482 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8483 lt_cv_prog_compiler_pic_works=yes
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8490 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8492 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8493 case $lt_prog_compiler_pic in
8495 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8498 lt_prog_compiler_pic=
8499 lt_prog_compiler_can_build_shared=no
8515 # Check to make sure the static flag actually works.
8517 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8519 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8520 if ${lt_cv_prog_compiler_static_works+:} false; then :
8521 $as_echo_n "(cached) " >&6
8523 lt_cv_prog_compiler_static_works=no
8524 save_LDFLAGS="$LDFLAGS"
8525 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8526 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8527 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8528 # The linker can only warn and ignore the option if not recognized
8529 # So say no if there are warnings
8530 if test -s conftest.err; then
8531 # Append any errors to the config.log.
8532 cat conftest.err 1>&5
8533 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8535 if diff conftest.exp conftest.er2 >/dev/null; then
8536 lt_cv_prog_compiler_static_works=yes
8539 lt_cv_prog_compiler_static_works=yes
8543 LDFLAGS="$save_LDFLAGS"
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8547 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8549 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8552 lt_prog_compiler_static=
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8562 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8563 if ${lt_cv_prog_compiler_c_o+:} false; then :
8564 $as_echo_n "(cached) " >&6
8566 lt_cv_prog_compiler_c_o=no
8567 $RM -r conftest 2>/dev/null
8571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8573 lt_compiler_flag="-o out/conftest2.$ac_objext"
8574 # Insert the option either (1) after the last *FLAGS variable, or
8575 # (2) before a word containing "conftest.", or (3) at the end.
8576 # Note that $ac_compile itself does not contain backslashes and begins
8577 # with a dollar sign (not a hyphen), so the echo should work correctly.
8578 lt_compile=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>out/conftest.err)
8585 cat out/conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589 # The compiler can only warn and ignore the option if not recognized
8590 # So say no if there are warnings
8591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8592 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8593 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8594 lt_cv_prog_compiler_c_o=yes
8599 # SGI C++ compiler will create directory out/ii_files/ for
8600 # template instantiation
8601 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8602 $RM out/* && rmdir out
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8609 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8618 if ${lt_cv_prog_compiler_c_o+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 lt_cv_prog_compiler_c_o=no
8622 $RM -r conftest 2>/dev/null
8626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 lt_compiler_flag="-o out/conftest2.$ac_objext"
8629 # Insert the option either (1) after the last *FLAGS variable, or
8630 # (2) before a word containing "conftest.", or (3) at the end.
8631 # Note that $ac_compile itself does not contain backslashes and begins
8632 # with a dollar sign (not a hyphen), so the echo should work correctly.
8633 lt_compile=`echo "$ac_compile" | $SED \
8634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8636 -e 's:$: $lt_compiler_flag:'`
8637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8638 (eval "$lt_compile" 2>out/conftest.err)
8640 cat out/conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644 # The compiler can only warn and ignore the option if not recognized
8645 # So say no if there are warnings
8646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_c_o=yes
8654 # SGI C++ compiler will create directory out/ii_files/ for
8655 # template instantiation
8656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8657 $RM out/* && rmdir out
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669 hard_links="nottested"
8670 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8671 # do not overwrite the value of need_locks provided by the user
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8673 $as_echo_n "checking if we can lock with hard links... " >&6; }
8676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 ln conftest.a conftest.b 2>&5 || hard_links=no
8679 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8681 $as_echo "$hard_links" >&6; }
8682 if test "$hard_links" = no; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8684 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8697 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8700 allow_undefined_flag=
8701 always_export_symbols=no
8703 archive_expsym_cmds=
8704 compiler_needs_object=no
8705 enable_shared_with_static_runtimes=no
8706 export_dynamic_flag_spec=
8707 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8708 hardcode_automatic=no
8710 hardcode_direct_absolute=no
8711 hardcode_libdir_flag_spec=
8712 hardcode_libdir_separator=
8714 hardcode_shlibpath_var=unsupported
8716 link_all_deplibs=unknown
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8759 # On some targets, GNU ld is compatible enough with the native linker
8760 # that we're better off using the native interface for both.
8761 lt_use_gnu_ld_interface=no
8762 if test "$with_gnu_ld" = yes; then
8765 # The AIX port of GNU ld has always aspired to compatibility
8766 # with the native linker. However, as the warning in the GNU ld
8767 # block says, versions before 2.19.5* couldn't really create working
8768 # shared libraries, regardless of the interface used.
8769 case `$LD -v 2>&1` in
8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8774 lt_use_gnu_ld_interface=yes
8779 lt_use_gnu_ld_interface=yes
8784 if test "$lt_use_gnu_ld_interface" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8798 whole_archive_flag_spec=
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *GNU\ gold*) supports_anon_versioning=yes ;;
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8810 # See if GNU ld supports shared libraries.
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 allow_undefined_flag=unsupported
8847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848 # support --undefined. This deserves some investigation. FIXME
8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 cygwin* | mingw* | pw32* | cegcc*)
8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857 # as there is no search path for DLLs.
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 export_dynamic_flag_spec='${wl}--export-all-symbols'
8860 allow_undefined_flag=unsupported
8861 always_export_symbols=no
8862 enable_shared_with_static_runtimes=yes
8863 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'
8864 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8866 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8868 # If the export-symbols file already is a .def file (1st line
8869 # is EXPORTS), use it as is; otherwise, prepend...
8870 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8871 cp $export_symbols $output_objdir/$soname.def;
8873 echo EXPORTS > $output_objdir/$soname.def;
8874 cat $export_symbols >> $output_objdir/$soname.def;
8876 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8884 link_all_deplibs=yes
8889 hardcode_shlibpath_var=no
8890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8891 export_dynamic_flag_spec='${wl}-E'
8892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8893 # Instead, shared libraries are loaded at an image base (0x10000000 by
8894 # default) and relocated if they conflict, which is a slow very memory
8895 # consuming and fragmenting process. To avoid this, we pick a random,
8896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8897 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8898 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8899 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'
8902 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8904 if test "$host_os" = linux-dietlibc; then
8905 case $cc_basename in
8906 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8909 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8910 && test "$tmp_diet" = no
8912 tmp_addflag=' $pic_flag'
8913 tmp_sharedflag='-shared'
8914 case $cc_basename,$host_cpu in
8915 pgcc*) # Portland Group C compiler
8916 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'
8917 tmp_addflag=' $pic_flag'
8919 pgf77* | pgf90* | pgf95* | pgfortran*)
8920 # Portland Group f77 and f90 compilers
8921 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'
8922 tmp_addflag=' $pic_flag -Mnomain' ;;
8923 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8924 tmp_addflag=' -i_dynamic' ;;
8925 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8926 tmp_addflag=' -i_dynamic -nofor_main' ;;
8927 ifc* | ifort*) # Intel Fortran compiler
8928 tmp_addflag=' -nofor_main' ;;
8929 lf95*) # Lahey Fortran 8.1
8930 whole_archive_flag_spec=
8931 tmp_sharedflag='--shared' ;;
8932 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8933 tmp_sharedflag='-qmkshrobj'
8935 nvcc*) # Cuda Compiler Driver 2.2
8936 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'
8937 compiler_needs_object=yes
8940 case `$CC -V 2>&1 | sed 5q` in
8941 *Sun\ C*) # Sun C 5.9
8942 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'
8943 compiler_needs_object=yes
8944 tmp_sharedflag='-G' ;;
8945 *Sun\ F*) # Sun Fortran 8.3
8946 tmp_sharedflag='-G' ;;
8948 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 if test "x$supports_anon_versioning" = xyes; then
8951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953 echo "local: *; };" >> $output_objdir/$libname.ver~
8954 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8957 case $cc_basename in
8958 xlf* | bgf* | bgxlf* | mpixlf*)
8959 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8960 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8962 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008 case `$LD -v 2>&1` in
9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems. Therefore, libtool
9015 *** is disabling shared libraries support. We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9023 # For security reasons, it is highly recommended that you always
9024 # use absolute paths for naming shared libraries, and exclude the
9025 # DT_RUNPATH tag from executables and libraries. But doing so
9026 # requires that you compile everything twice, which is a pain.
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9042 hardcode_shlibpath_var=no
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055 if test "$ld_shlibs" = no; then
9057 hardcode_libdir_flag_spec=
9058 export_dynamic_flag_spec=
9059 whole_archive_flag_spec=
9062 # PORTME fill in a description of your system's linker (not GNU ld)
9065 allow_undefined_flag=unsupported
9066 always_export_symbols=yes
9067 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'
9068 # Note: this linker hardcodes the directories in LIBPATH if there
9069 # are no directories specified by -L.
9070 hardcode_minus_L=yes
9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072 # Neither direct hardcoding nor static linking is supported with a
9074 hardcode_direct=unsupported
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9086 # If we're using GNU nm, then we don't want the "-C" option.
9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088 # Also, AIX nm treats weak defined symbols like other global
9089 # defined symbols, whereas GNU nm marks them as "W".
9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9093 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9095 aix_use_runtimelinking=no
9097 # Test if we are trying to use run time linking or normal
9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099 # need to do runtime linking.
9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101 for ld_flag in $LDFLAGS; do
9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103 aix_use_runtimelinking=yes
9110 exp_sym_flag='-bexport'
9111 no_entry_flag='-bnoentry'
9114 # When large executables or shared objects are built, AIX ld can
9115 # have problems creating the table of contents. If linking a library
9116 # or program results in "error TOC overflow" add -mminimal-toc to
9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9122 hardcode_direct_absolute=yes
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 file_list_spec='${wl}-f,'
9127 if test "$GCC" = yes; then
9128 case $host_os in aix4.[012]|aix4.[012].*)
9129 # We only want to do this on AIX 4.2 and lower, the check
9130 # below for broken collect2 doesn't work under 4.3+
9131 collect2name=`${CC} -print-prog-name=collect2`
9132 if test -f "$collect2name" &&
9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9135 # We have reworked collect2
9138 # We have old collect2
9139 hardcode_direct=unsupported
9140 # It fails to find uninstalled libraries when the uninstalled
9141 # path is not listed in the libpath. Setting hardcode_minus_L
9142 # to unsupported forces relinking
9143 hardcode_minus_L=yes
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_libdir_separator=
9149 shared_flag='-shared'
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag="$shared_flag "'${wl}-G'
9155 if test "$host_cpu" = ia64; then
9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157 # chokes on -Wl,-G. The following line is correct:
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag='${wl}-G'
9163 shared_flag='${wl}-bM:SRE'
9168 export_dynamic_flag_spec='${wl}-bexpall'
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag='-berok'
9176 # Determine the default libpath from the value encoded in an
9178 if test "${lt_cv_aix_libpath+set}" = set; then
9179 aix_libpath=$lt_cv_aix_libpath
9181 if ${lt_cv_aix_libpath_+:} false; then :
9182 $as_echo_n "(cached) " >&6
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9195 if ac_fn_c_try_link "$LINENO"; then :
9197 lt_aix_libpath_sed='
9198 /Import File Strings/,/^$/ {
9200 s/^0 *\([^ ]*\) *$/\1/
9204 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9205 # Check for a 64-bit object if we didn't find anything.
9206 if test -z "$lt_cv_aix_libpath_"; then
9207 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 if test -z "$lt_cv_aix_libpath_"; then
9213 lt_cv_aix_libpath_="/usr/lib:/lib"
9218 aix_libpath=$lt_cv_aix_libpath_
9221 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9222 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9224 if test "$host_cpu" = ia64; then
9225 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9226 allow_undefined_flag="-z nodefs"
9227 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"
9229 # Determine the default libpath from the value encoded in an
9231 if test "${lt_cv_aix_libpath+set}" = set; then
9232 aix_libpath=$lt_cv_aix_libpath
9234 if ${lt_cv_aix_libpath_+:} false; then :
9235 $as_echo_n "(cached) " >&6
9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9248 if ac_fn_c_try_link "$LINENO"; then :
9250 lt_aix_libpath_sed='
9251 /Import File Strings/,/^$/ {
9253 s/^0 *\([^ ]*\) *$/\1/
9257 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9258 # Check for a 64-bit object if we didn't find anything.
9259 if test -z "$lt_cv_aix_libpath_"; then
9260 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263 rm -f core conftest.err conftest.$ac_objext \
9264 conftest$ac_exeext conftest.$ac_ext
9265 if test -z "$lt_cv_aix_libpath_"; then
9266 lt_cv_aix_libpath_="/usr/lib:/lib"
9271 aix_libpath=$lt_cv_aix_libpath_
9274 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9275 # Warning - without using the other run time loading flags,
9276 # -berok will link without error, but may produce a broken library.
9277 no_undefined_flag=' ${wl}-bernotok'
9278 allow_undefined_flag=' ${wl}-berok'
9279 if test "$with_gnu_ld" = yes; then
9280 # We only use this code for GNU lds that support --whole-archive.
9281 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283 # Exported symbols can be pulled into shared objects from archives
9284 whole_archive_flag_spec='$convenience'
9286 archive_cmds_need_lc=yes
9287 # This is similar to how AIX traditionally builds its shared libraries.
9288 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9296 # see comment about AmigaOS4 .so support
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 archive_expsym_cmds=''
9301 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)'
9302 hardcode_libdir_flag_spec='-L$libdir'
9303 hardcode_minus_L=yes
9309 export_dynamic_flag_spec=-rdynamic
9312 cygwin* | mingw* | pw32* | cegcc*)
9313 # When not using gcc, we currently assume that we are using
9314 # Microsoft Visual C++.
9315 # hardcode_libdir_flag_spec is actually meaningless, as there is
9316 # no search path for DLLs.
9317 case $cc_basename in
9320 hardcode_libdir_flag_spec=' '
9321 allow_undefined_flag=unsupported
9322 always_export_symbols=yes
9324 # Tell ltmain to make .lib files, not .a files.
9326 # Tell ltmain to make .dll files, not .so files.
9328 # FIXME: Setting linknames here is a bad hack.
9329 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9331 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9333 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9335 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9337 # The linker will not automatically build a static lib if we build a DLL.
9338 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9339 enable_shared_with_static_runtimes=yes
9340 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9341 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9343 old_postinstall_cmds='chmod 644 $oldlib'
9344 postlink_cmds='lt_outputfile="@OUTPUT@"~
9345 lt_tool_outputfile="@TOOL_OUTPUT@"~
9346 case $lt_outputfile in
9349 lt_outputfile="$lt_outputfile.exe"
9350 lt_tool_outputfile="$lt_tool_outputfile.exe"
9353 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9354 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9355 $RM "$lt_outputfile.manifest";
9359 # Assume MSVC wrapper
9360 hardcode_libdir_flag_spec=' '
9361 allow_undefined_flag=unsupported
9362 # Tell ltmain to make .lib files, not .a files.
9364 # Tell ltmain to make .dll files, not .so files.
9366 # FIXME: Setting linknames here is a bad hack.
9367 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9368 # The linker will automatically build a .lib file if we build a DLL.
9369 old_archive_from_new_cmds='true'
9370 # FIXME: Should let the user specify the lib program.
9371 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9372 enable_shared_with_static_runtimes=yes
9377 darwin* | rhapsody*)
9380 archive_cmds_need_lc=no
9382 hardcode_automatic=yes
9383 hardcode_shlibpath_var=unsupported
9384 if test "$lt_cv_ld_force_load" = "yes"; then
9385 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\"`'
9388 whole_archive_flag_spec=''
9390 link_all_deplibs=yes
9391 allow_undefined_flag="$_lt_dar_allow_undefined"
9392 case $cc_basename in
9393 ifort*) _lt_dar_can_shared=yes ;;
9394 *) _lt_dar_can_shared=$GCC ;;
9396 if test "$_lt_dar_can_shared" = "yes"; then
9397 output_verbose_link_cmd=func_echo_all
9398 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9399 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9400 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}"
9401 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}"
9410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_shlibpath_var=no
9415 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9416 # support. Future versions do this automatically, but an explicit c++rt0.o
9417 # does not break anything, and helps significantly (at the cost of a little
9420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9421 hardcode_libdir_flag_spec='-R$libdir'
9423 hardcode_shlibpath_var=no
9426 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9430 hardcode_minus_L=yes
9431 hardcode_shlibpath_var=no
9434 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9435 freebsd* | dragonfly*)
9436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9437 hardcode_libdir_flag_spec='-R$libdir'
9439 hardcode_shlibpath_var=no
9443 if test "$GCC" = yes; then
9444 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9446 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9448 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449 hardcode_libdir_separator=:
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9455 export_dynamic_flag_spec='${wl}-E'
9459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9460 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9464 if test "$with_gnu_ld" = no; then
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator=:
9468 hardcode_direct_absolute=yes
9469 export_dynamic_flag_spec='${wl}-E'
9470 # hardcode_minus_L: Not really in the search PATH,
9471 # but as the default location of the library.
9472 hardcode_minus_L=yes
9477 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9480 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9499 # Older versions of the 11.00 compiler do not understand -b yet
9500 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9502 $as_echo_n "checking if $CC understands -b... " >&6; }
9503 if ${lt_cv_prog_compiler__b+:} false; then :
9504 $as_echo_n "(cached) " >&6
9506 lt_cv_prog_compiler__b=no
9507 save_LDFLAGS="$LDFLAGS"
9508 LDFLAGS="$LDFLAGS -b"
9509 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9511 # The linker can only warn and ignore the option if not recognized
9512 # So say no if there are warnings
9513 if test -s conftest.err; then
9514 # Append any errors to the config.log.
9515 cat conftest.err 1>&5
9516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9518 if diff conftest.exp conftest.er2 >/dev/null; then
9519 lt_cv_prog_compiler__b=yes
9522 lt_cv_prog_compiler__b=yes
9526 LDFLAGS="$save_LDFLAGS"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9530 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9532 if test x"$lt_cv_prog_compiler__b" = xyes; then
9533 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9541 if test "$with_gnu_ld" = no; then
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9548 hardcode_shlibpath_var=no
9552 hardcode_direct_absolute=yes
9553 export_dynamic_flag_spec='${wl}-E'
9555 # hardcode_minus_L: Not really in the search PATH,
9556 # but as the default location of the library.
9557 hardcode_minus_L=yes
9563 irix5* | irix6* | nonstopux*)
9564 if test "$GCC" = yes; then
9565 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'
9566 # Try to use the -exported_symbol ld option, if it does not
9567 # work, assume that -exports_file does not work either and
9568 # implicitly export all symbols.
9569 # This should be the same for all languages, so no per-tag cache variable.
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9571 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9572 if ${lt_cv_irix_exported_symbol+:} false; then :
9573 $as_echo_n "(cached) " >&6
9575 save_LDFLAGS="$LDFLAGS"
9576 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9579 int foo (void) { return 0; }
9581 if ac_fn_c_try_link "$LINENO"; then :
9582 lt_cv_irix_exported_symbol=yes
9584 lt_cv_irix_exported_symbol=no
9586 rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588 LDFLAGS="$save_LDFLAGS"
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9591 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9592 if test "$lt_cv_irix_exported_symbol" = yes; then
9593 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'
9596 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'
9597 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'
9599 archive_cmds_need_lc='no'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9603 link_all_deplibs=yes
9607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9610 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9612 hardcode_libdir_flag_spec='-R$libdir'
9614 hardcode_shlibpath_var=no
9618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9621 hardcode_libdir_separator=:
9622 hardcode_shlibpath_var=no
9629 if test -f /usr/libexec/ld.so; then
9631 hardcode_shlibpath_var=no
9632 hardcode_direct_absolute=yes
9633 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9637 export_dynamic_flag_spec='${wl}-E'
9640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_libdir_flag_spec='-R$libdir'
9645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_minus_L=yes
9658 allow_undefined_flag=unsupported
9659 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9660 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9664 if test "$GCC" = yes; then
9665 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9666 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'
9668 allow_undefined_flag=' -expect_unresolved \*'
9669 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'
9671 archive_cmds_need_lc='no'
9672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9673 hardcode_libdir_separator=:
9676 osf4* | osf5*) # as osf3* with the addition of -msym flag
9677 if test "$GCC" = yes; then
9678 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9679 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'
9680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9682 allow_undefined_flag=' -expect_unresolved \*'
9683 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'
9684 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~
9685 $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'
9687 # Both c and cxx compiler support -rpath directly
9688 hardcode_libdir_flag_spec='-rpath $libdir'
9690 archive_cmds_need_lc='no'
9691 hardcode_libdir_separator=:
9695 no_undefined_flag=' -z defs'
9696 if test "$GCC" = yes; then
9698 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9700 $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'
9702 case `$CC -V 2>&1` in
9705 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9707 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9711 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9713 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9717 hardcode_libdir_flag_spec='-R$libdir'
9718 hardcode_shlibpath_var=no
9720 solaris2.[0-5] | solaris2.[0-5].*) ;;
9722 # The compiler driver will combine and reorder linker options,
9723 # but understands `-z linker_flag'. GCC discards it without `$wl',
9724 # but is careful enough not to reorder.
9725 # Supported since Solaris 2.6 (maybe 2.5.1?)
9726 if test "$GCC" = yes; then
9727 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9729 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9733 link_all_deplibs=yes
9737 if test "x$host_vendor" = xsequent; then
9738 # Use $CC to link under sequent, because it throws in some extra .o
9739 # files that make .init and .fini sections work.
9740 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='-L$libdir'
9746 hardcode_minus_L=yes
9747 hardcode_shlibpath_var=no
9751 case $host_vendor in
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_direct=yes # is this really true???
9757 ## LD is ld it makes a PLAMLIB
9758 ## CC just makes a GrossModule.
9759 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760 reload_cmds='$CC -r -o $output$reload_objs'
9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9768 runpath_var='LD_RUN_PATH'
9769 hardcode_shlibpath_var=no
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_shlibpath_var=no
9775 export_dynamic_flag_spec='-Bexport'
9779 if test -d /usr/nec; then
9780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_shlibpath_var=no
9782 runpath_var=LD_RUN_PATH
9783 hardcode_runpath_var=yes
9788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9789 no_undefined_flag='${wl}-z,text'
9790 archive_cmds_need_lc=no
9791 hardcode_shlibpath_var=no
9792 runpath_var='LD_RUN_PATH'
9794 if test "$GCC" = yes; then
9795 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9803 sysv5* | sco3.2v5* | sco5v6*)
9804 # Note: We can NOT use -z defs as we might desire, because we do not
9805 # link with -lc, and that would cause any symbols used from libc to
9806 # always be unresolved, which means just about no library would
9807 # ever link correctly. If we're not using GNU ld we use -z text
9808 # though, which does catch some bad symbols but isn't as heavy-handed
9810 no_undefined_flag='${wl}-z,text'
9811 allow_undefined_flag='${wl}-z,nodefs'
9812 archive_cmds_need_lc=no
9813 hardcode_shlibpath_var=no
9814 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9815 hardcode_libdir_separator=':'
9816 link_all_deplibs=yes
9817 export_dynamic_flag_spec='${wl}-Bexport'
9818 runpath_var='LD_RUN_PATH'
9820 if test "$GCC" = yes; then
9821 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_shlibpath_var=no
9840 if test x$host_vendor = xsni; then
9842 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9843 export_dynamic_flag_spec='${wl}-Blargedynsym'
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9850 $as_echo "$ld_shlibs" >&6; }
9851 test "$ld_shlibs" = no && can_build_shared=no
9853 with_gnu_ld=$with_gnu_ld
9870 # Do we need to explicitly link libc?
9872 case "x$archive_cmds_need_lc" in
9874 # Assume -lc should be added
9875 archive_cmds_need_lc=yes
9877 if test "$enable_shared" = yes && test "$GCC" = yes; then
9878 case $archive_cmds in
9880 # FIXME: we may have to deal with multi-command sequences.
9883 # Test whether the compiler implicitly links with -lc since on some
9884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9885 # to ld, don't add -lc before -lgcc.
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9888 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9889 $as_echo_n "(cached) " >&6
9892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9895 (eval $ac_compile) 2>&5
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; } 2>conftest.err; then
9901 libobjs=conftest.$ac_objext
9903 wl=$lt_prog_compiler_wl
9904 pic_flag=$lt_prog_compiler_pic
9910 lt_save_allow_undefined_flag=$allow_undefined_flag
9911 allow_undefined_flag=
9912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9913 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9916 test $ac_status = 0; }
9918 lt_cv_archive_cmds_need_lc=no
9920 lt_cv_archive_cmds_need_lc=yes
9922 allow_undefined_flag=$lt_save_allow_undefined_flag
9924 cat conftest.err 1>&5
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9930 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9931 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10090 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10092 if test "$GCC" = yes; then
10094 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10095 *) lt_awk_arg="/^libraries:/" ;;
10098 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10099 *) lt_sed_strip_eq="s,=/,/,g" ;;
10101 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10102 case $lt_search_path_spec in
10104 # if the path contains ";" then we assume it to be the separator
10105 # otherwise default to the standard path separator (i.e. ":") - it is
10106 # assumed that no part of a normal pathname contains ";" but that should
10107 # okay in the real world where ";" in dirpaths is itself problematic.
10108 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10114 # Ok, now we have the path, separated by spaces, we can step through it
10115 # and add multilib dir if necessary.
10116 lt_tmp_lt_search_path_spec=
10117 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10118 for lt_sys_path in $lt_search_path_spec; do
10119 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10122 test -d "$lt_sys_path" && \
10123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10126 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10127 BEGIN {RS=" "; FS="/|\n";} {
10130 for (lt_i = NF; lt_i > 0; lt_i--) {
10131 if ($lt_i != "" && $lt_i != ".") {
10132 if ($lt_i == "..") {
10135 if (lt_count == 0) {
10136 lt_foo="/" $lt_i lt_foo;
10143 if (lt_foo != "") { lt_freq[lt_foo]++; }
10144 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10146 # AWK program above erroneously prepends '/' to C:/dos/paths
10149 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10150 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10152 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10156 library_names_spec=
10157 libname_spec='lib$name'
10161 postuninstall_cmds=
10165 shlibpath_overrides_runpath=unknown
10167 dynamic_linker="$host_os ld.so"
10168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10169 need_lib_prefix=unknown
10170 hardcode_into_libs=no
10172 # when you set need_version to no, make sure it does not cause -set_version
10173 # flags to be left without arguments
10174 need_version=unknown
10178 version_type=linux # correct to gnu/linux during the next big refactor
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10180 shlibpath_var=LIBPATH
10182 # AIX 3 has no versioning support, so we append a major version to the name.
10183 soname_spec='${libname}${release}${shared_ext}$major'
10187 version_type=linux # correct to gnu/linux during the next big refactor
10190 hardcode_into_libs=yes
10191 if test "$host_cpu" = ia64; then
10192 # AIX 5 supports IA64
10193 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10194 shlibpath_var=LD_LIBRARY_PATH
10196 # With GCC up to 2.95.x, collect2 would create an import file
10197 # for dependence libraries. The import file would start with
10198 # the line `#! .'. This would cause the generated library to
10199 # depend on `.', always an invalid library. This was fixed in
10200 # development snapshots of GCC prior to 3.0.
10202 aix4 | aix4.[01] | aix4.[01].*)
10203 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10205 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10208 can_build_shared=no
10212 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10213 # soname into executable. Probably we can add versioning support to
10214 # collect2, so additional links can be useful in future.
10215 if test "$aix_use_runtimelinking" = yes; then
10216 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10217 # instead of lib<name>.a to let people know that these are not
10218 # typical AIX shared libraries.
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 # We preserve .a as extension for shared libraries through AIX4.2
10222 # and later when we are not doing run time linking.
10223 library_names_spec='${libname}${release}.a $libname.a'
10224 soname_spec='${libname}${release}${shared_ext}$major'
10226 shlibpath_var=LIBPATH
10233 # Since July 2007 AmigaOS4 officially supports .so libraries.
10234 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 library_names_spec='$libname.ixlibrary $libname.a'
10239 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10240 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10246 library_names_spec='${libname}${shared_ext}'
10247 dynamic_linker="$host_os ld.so"
10248 shlibpath_var=LIBRARY_PATH
10252 version_type=linux # correct to gnu/linux during the next big refactor
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10259 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10260 # the default ld.so.conf also contains /usr/contrib/lib and
10261 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10262 # libtool to hard-code these into programs
10265 cygwin* | mingw* | pw32* | cegcc*)
10266 version_type=windows
10271 case $GCC,$cc_basename in
10274 library_names_spec='$libname.dll.a'
10275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10276 postinstall_cmds='base_file=`basename \${file}`~
10277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10278 dldir=$destdir/`dirname \$dlpath`~
10279 test -d \$dldir || mkdir -p \$dldir~
10280 $install_prog $dir/$dlname \$dldir/$dlname~
10281 chmod a+x \$dldir/$dlname~
10282 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10283 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10285 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10286 dlpath=$dir/\$dldll~
10288 shlibpath_overrides_runpath=yes
10292 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10293 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10295 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10298 # MinGW DLLs use traditional 'lib' prefix
10299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10302 # pw32 DLLs use 'pw' prefix rather than 'lib'
10303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10306 dynamic_linker='Win32 ld.exe'
10311 libname_spec='$name'
10312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10313 library_names_spec='${libname}.dll.lib'
10317 sys_lib_search_path_spec=
10320 for lt_path in $LIB
10323 # Let DOS variable expansion print the short 8.3 style file name.
10324 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10325 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10328 # Convert to MSYS style.
10329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10332 # Convert to unix form, then to dos form, then back to unix form
10333 # but this time dos style (no spaces!) so that the unix form looks
10334 # like /cygdrive/c/PROGRA~1:/cygdr...
10335 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10336 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10337 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10340 sys_lib_search_path_spec="$LIB"
10341 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10342 # It is most probably a Windows format PATH.
10343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10345 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10347 # FIXME: find the short name or the path components, as spaces are
10348 # common. (e.g. "Program Files" -> "PROGRA~1")
10352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10353 postinstall_cmds='base_file=`basename \${file}`~
10354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10355 dldir=$destdir/`dirname \$dlpath`~
10356 test -d \$dldir || mkdir -p \$dldir~
10357 $install_prog $dir/$dlname \$dldir/$dlname'
10358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10359 dlpath=$dir/\$dldll~
10361 shlibpath_overrides_runpath=yes
10362 dynamic_linker='Win32 link.exe'
10366 # Assume MSVC wrapper
10367 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10368 dynamic_linker='Win32 ld.exe'
10371 # FIXME: first we should search . and the directory the executable is in
10375 darwin* | rhapsody*)
10376 dynamic_linker="$host_os dyld"
10377 version_type=darwin
10380 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10381 soname_spec='${libname}${release}${major}$shared_ext'
10382 shlibpath_overrides_runpath=yes
10383 shlibpath_var=DYLD_LIBRARY_PATH
10384 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10386 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10387 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10391 version_type=linux # correct to gnu/linux during the next big refactor
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10399 freebsd* | dragonfly*)
10400 # DragonFly does not have aout. When/if they implement a new
10401 # versioning mechanism, adjust this.
10402 if test -x /usr/bin/objformat; then
10403 objformat=`/usr/bin/objformat`
10406 freebsd[23].*) objformat=aout ;;
10407 *) objformat=elf ;;
10410 version_type=freebsd-$objformat
10411 case $version_type in
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10422 shlibpath_var=LD_LIBRARY_PATH
10425 shlibpath_overrides_runpath=yes
10427 freebsd3.[01]* | freebsdelf3.[01]*)
10428 shlibpath_overrides_runpath=yes
10429 hardcode_into_libs=yes
10431 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10432 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10433 shlibpath_overrides_runpath=no
10434 hardcode_into_libs=yes
10436 *) # from 4.6 on, and DragonFly
10437 shlibpath_overrides_runpath=yes
10438 hardcode_into_libs=yes
10444 version_type=linux # correct to gnu/linux during the next big refactor
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=no
10451 hardcode_into_libs=yes
10455 version_type=linux # correct to gnu/linux during the next big refactor
10458 dynamic_linker="$host_os runtime_loader"
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10460 soname_spec='${libname}${release}${shared_ext}$major'
10461 shlibpath_var=LIBRARY_PATH
10462 shlibpath_overrides_runpath=yes
10463 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10464 hardcode_into_libs=yes
10467 hpux9* | hpux10* | hpux11*)
10468 # Give a soname corresponding to the major version so that dld.sl refuses to
10469 # link against other versions.
10476 hardcode_into_libs=yes
10477 dynamic_linker="$host_os dld.so"
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 if test "X$HPUX_IA64_MODE" = X32; then
10483 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10485 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10487 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10491 hardcode_into_libs=yes
10492 dynamic_linker="$host_os dld.sl"
10493 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10498 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10502 dynamic_linker="$host_os dld.sl"
10503 shlibpath_var=SHLIB_PATH
10504 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10509 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10510 postinstall_cmds='chmod 555 $lib'
10511 # or fails outright, so override atomically:
10512 install_override_mode=555
10516 version_type=linux # correct to gnu/linux during the next big refactor
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=no
10524 hardcode_into_libs=yes
10527 irix5* | irix6* | nonstopux*)
10529 nonstopux*) version_type=nonstopux ;;
10531 if test "$lt_cv_prog_gnu_ld" = yes; then
10532 version_type=linux # correct to gnu/linux during the next big refactor
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10542 irix5* | nonstopux*)
10543 libsuff= shlibsuff=
10546 case $LD in # libtool.m4 will add one of these switches to LD
10547 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10548 libsuff= shlibsuff= libmagic=32-bit;;
10549 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10550 libsuff=32 shlibsuff=N32 libmagic=N32;;
10551 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10552 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10553 *) libsuff= shlibsuff= libmagic=never-match;;
10557 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10558 shlibpath_overrides_runpath=no
10559 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10560 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10561 hardcode_into_libs=yes
10564 # No shared lib support for Linux oldld, aout, or coff.
10565 linux*oldld* | linux*aout* | linux*coff*)
10569 # This must be glibc/ELF.
10570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10571 version_type=linux # correct to gnu/linux during the next big refactor
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=no
10580 # Some binutils ld are patched to set DT_RUNPATH
10581 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10582 $as_echo_n "(cached) " >&6
10584 lt_cv_shlibpath_overrides_runpath=no
10585 save_LDFLAGS=$LDFLAGS
10586 save_libdir=$libdir
10587 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10588 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10600 if ac_fn_c_try_link "$LINENO"; then :
10601 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10602 lt_cv_shlibpath_overrides_runpath=yes
10605 rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LDFLAGS=$save_LDFLAGS
10608 libdir=$save_libdir
10612 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10614 # This implies no fast_install, which is unacceptable.
10615 # Some rework will be needed to allow for fast_install
10616 # before this can be enabled.
10617 hardcode_into_libs=yes
10619 # Append ld.so.conf contents to the search path
10620 if test -f /etc/ld.so.conf; then
10621 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' ' '`
10622 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10625 # We used to test for /lib/ld.so.1 and disable shared libraries on
10626 # powerpc, because MkLinux only supported shared libraries with the
10627 # GNU dynamic linker. Since this was broken with cross compilers,
10628 # most powerpc-linux boxes support dynamic linking these days and
10629 # people can always --disable-shared, the test was removed, and we
10630 # assume the GNU/Linux dynamic linker is in use.
10631 dynamic_linker='GNU/Linux ld.so'
10638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641 dynamic_linker='NetBSD (a.out) ld.so'
10643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10644 soname_spec='${libname}${release}${shared_ext}$major'
10645 dynamic_linker='NetBSD ld.elf_so'
10647 shlibpath_var=LD_LIBRARY_PATH
10648 shlibpath_overrides_runpath=yes
10649 hardcode_into_libs=yes
10653 version_type=linux # correct to gnu/linux during the next big refactor
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 shlibpath_overrides_runpath=yes
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=no
10667 hardcode_into_libs=yes
10668 dynamic_linker='ldqnx.so'
10673 sys_lib_dlsearch_path_spec="/usr/lib"
10675 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10677 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10678 *) need_version=no ;;
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10685 openbsd2.[89] | openbsd2.[89].*)
10686 shlibpath_overrides_runpath=no
10689 shlibpath_overrides_runpath=yes
10693 shlibpath_overrides_runpath=yes
10698 libname_spec='$name'
10701 library_names_spec='$libname${shared_ext} $libname.a'
10702 dynamic_linker='OS/2 ld.exe'
10703 shlibpath_var=LIBPATH
10706 osf3* | osf4* | osf5*)
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 shlibpath_var=LD_LIBRARY_PATH
10713 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10714 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10722 version_type=linux # correct to gnu/linux during the next big refactor
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=yes
10729 hardcode_into_libs=yes
10730 # ldd complains unless libraries are executable
10731 postinstall_cmds='chmod +x $lib'
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 shlibpath_overrides_runpath=yes
10740 if test "$with_gnu_ld" = yes; then
10747 version_type=linux # correct to gnu/linux during the next big refactor
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 case $host_vendor in
10753 shlibpath_overrides_runpath=no
10755 runpath_var=LD_RUN_PATH
10763 shlibpath_overrides_runpath=no
10764 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10770 if test -d /usr/nec ;then
10771 version_type=linux # correct to gnu/linux during the next big refactor
10772 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10773 soname_spec='$libname${shared_ext}.$major'
10774 shlibpath_var=LD_LIBRARY_PATH
10778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10779 version_type=freebsd-elf
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 shlibpath_overrides_runpath=yes
10786 hardcode_into_libs=yes
10787 if test "$with_gnu_ld" = yes; then
10788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10790 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10793 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10797 sys_lib_dlsearch_path_spec='/usr/lib'
10801 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10802 version_type=linux # correct to gnu/linux during the next big refactor
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 shlibpath_overrides_runpath=no
10808 hardcode_into_libs=yes
10812 version_type=linux # correct to gnu/linux during the next big refactor
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10823 $as_echo "$dynamic_linker" >&6; }
10824 test "$dynamic_linker" = no && can_build_shared=no
10826 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10827 if test "$GCC" = yes; then
10828 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10831 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10832 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10834 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10835 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10930 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10932 if test -n "$hardcode_libdir_flag_spec" ||
10933 test -n "$runpath_var" ||
10934 test "X$hardcode_automatic" = "Xyes" ; then
10936 # We can hardcode non-existent directories.
10937 if test "$hardcode_direct" != no &&
10938 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10939 # have to relink, otherwise we might link with an installed library
10940 # when we should be linking with a yet-to-be-installed one
10941 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10942 test "$hardcode_minus_L" != no; then
10943 # Linking always hardcodes the temporary library directory.
10944 hardcode_action=relink
10946 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10947 hardcode_action=immediate
10950 # We cannot hardcode anything, or else we can only hardcode existing
10952 hardcode_action=unsupported
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10955 $as_echo "$hardcode_action" >&6; }
10957 if test "$hardcode_action" = relink ||
10958 test "$inherit_rpath" = yes; then
10959 # Fast installation is not supported
10960 enable_fast_install=no
10961 elif test "$shlibpath_overrides_runpath" = yes ||
10962 test "$enable_shared" = no; then
10963 # Fast installation is not necessary
10964 enable_fast_install=needless
10972 if test "x$enable_dlopen" != xyes; then
10973 enable_dlopen=unknown
10974 enable_dlopen_self=unknown
10975 enable_dlopen_self_static=unknown
10982 lt_cv_dlopen="load_add_on"
10984 lt_cv_dlopen_self=yes
10987 mingw* | pw32* | cegcc*)
10988 lt_cv_dlopen="LoadLibrary"
10993 lt_cv_dlopen="dlopen"
10998 # if libdl is installed we need to link against it
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11001 if ${ac_cv_lib_dl_dlopen+:} false; then :
11002 $as_echo_n "(cached) " >&6
11004 ac_check_lib_save_LIBS=$LIBS
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11024 if ac_fn_c_try_link "$LINENO"; then :
11025 ac_cv_lib_dl_dlopen=yes
11027 ac_cv_lib_dl_dlopen=no
11029 rm -f core conftest.err conftest.$ac_objext \
11030 conftest$ac_exeext conftest.$ac_ext
11031 LIBS=$ac_check_lib_save_LIBS
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11039 lt_cv_dlopen="dyld"
11041 lt_cv_dlopen_self=yes
11048 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11049 if test "x$ac_cv_func_shl_load" = xyes; then :
11050 lt_cv_dlopen="shl_load"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11053 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11054 if ${ac_cv_lib_dld_shl_load+:} false; then :
11055 $as_echo_n "(cached) " >&6
11057 ac_check_lib_save_LIBS=$LIBS
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11072 return shl_load ();
11077 if ac_fn_c_try_link "$LINENO"; then :
11078 ac_cv_lib_dld_shl_load=yes
11080 ac_cv_lib_dld_shl_load=no
11082 rm -f core conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11087 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11088 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11089 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11091 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11092 if test "x$ac_cv_func_dlopen" = xyes; then :
11093 lt_cv_dlopen="dlopen"
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11096 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11097 if ${ac_cv_lib_dl_dlopen+:} false; then :
11098 $as_echo_n "(cached) " >&6
11100 ac_check_lib_save_LIBS=$LIBS
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 ac_cv_lib_dl_dlopen=yes
11123 ac_cv_lib_dl_dlopen=no
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11130 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11131 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11132 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11135 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11136 if ${ac_cv_lib_svld_dlopen+:} false; then :
11137 $as_echo_n "(cached) " >&6
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lsvld $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11159 if ac_fn_c_try_link "$LINENO"; then :
11160 ac_cv_lib_svld_dlopen=yes
11162 ac_cv_lib_svld_dlopen=no
11164 rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11169 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11170 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11174 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11175 if ${ac_cv_lib_dld_dld_link+:} false; then :
11176 $as_echo_n "(cached) " >&6
11178 ac_check_lib_save_LIBS=$LIBS
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11193 return dld_link ();
11198 if ac_fn_c_try_link "$LINENO"; then :
11199 ac_cv_lib_dld_dld_link=yes
11201 ac_cv_lib_dld_dld_link=no
11203 rm -f core conftest.err conftest.$ac_objext \
11204 conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11208 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11209 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11210 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11231 if test "x$lt_cv_dlopen" != xno; then
11237 case $lt_cv_dlopen in
11239 save_CPPFLAGS="$CPPFLAGS"
11240 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11242 save_LDFLAGS="$LDFLAGS"
11243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11246 LIBS="$lt_cv_dlopen_libs $LIBS"
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11249 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11250 if ${lt_cv_dlopen_self+:} false; then :
11251 $as_echo_n "(cached) " >&6
11253 if test "$cross_compiling" = yes; then :
11254 lt_cv_dlopen_self=cross
11256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11257 lt_status=$lt_dlunknown
11258 cat > conftest.$ac_ext <<_LT_EOF
11259 #line $LINENO "configure"
11260 #include "confdefs.h"
11269 # define LT_DLGLOBAL RTLD_GLOBAL
11272 # define LT_DLGLOBAL DL_GLOBAL
11274 # define LT_DLGLOBAL 0
11278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11279 find out it does not work in some platform. */
11280 #ifndef LT_DLLAZY_OR_NOW
11282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11285 # define LT_DLLAZY_OR_NOW DL_LAZY
11288 # define LT_DLLAZY_OR_NOW RTLD_NOW
11291 # define LT_DLLAZY_OR_NOW DL_NOW
11293 # define LT_DLLAZY_OR_NOW 0
11300 /* When -fvisbility=hidden is used, assume the code has been annotated
11301 correspondingly for the symbols needed. */
11302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11303 int fnord () __attribute__((visibility("default")));
11306 int fnord () { return 42; }
11309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11310 int status = $lt_dlunknown;
11314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11318 else puts (dlerror ());
11320 /* dlclose (self); */
11328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11329 (eval $ac_link) 2>&5
11331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11333 (./conftest; exit; ) >&5 2>/dev/null
11335 case x$lt_status in
11336 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11337 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11338 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11341 # compilation failed
11342 lt_cv_dlopen_self=no
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11350 $as_echo "$lt_cv_dlopen_self" >&6; }
11352 if test "x$lt_cv_dlopen_self" = xyes; then
11353 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11355 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11356 if ${lt_cv_dlopen_self_static+:} false; then :
11357 $as_echo_n "(cached) " >&6
11359 if test "$cross_compiling" = yes; then :
11360 lt_cv_dlopen_self_static=cross
11362 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11363 lt_status=$lt_dlunknown
11364 cat > conftest.$ac_ext <<_LT_EOF
11365 #line $LINENO "configure"
11366 #include "confdefs.h"
11375 # define LT_DLGLOBAL RTLD_GLOBAL
11378 # define LT_DLGLOBAL DL_GLOBAL
11380 # define LT_DLGLOBAL 0
11384 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11385 find out it does not work in some platform. */
11386 #ifndef LT_DLLAZY_OR_NOW
11388 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11391 # define LT_DLLAZY_OR_NOW DL_LAZY
11394 # define LT_DLLAZY_OR_NOW RTLD_NOW
11397 # define LT_DLLAZY_OR_NOW DL_NOW
11399 # define LT_DLLAZY_OR_NOW 0
11406 /* When -fvisbility=hidden is used, assume the code has been annotated
11407 correspondingly for the symbols needed. */
11408 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11409 int fnord () __attribute__((visibility("default")));
11412 int fnord () { return 42; }
11415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11416 int status = $lt_dlunknown;
11420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11423 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11424 else puts (dlerror ());
11426 /* dlclose (self); */
11434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11435 (eval $ac_link) 2>&5
11437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11439 (./conftest; exit; ) >&5 2>/dev/null
11441 case x$lt_status in
11442 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11443 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11444 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11447 # compilation failed
11448 lt_cv_dlopen_self_static=no
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11459 CPPFLAGS="$save_CPPFLAGS"
11460 LDFLAGS="$save_LDFLAGS"
11465 case $lt_cv_dlopen_self in
11466 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11467 *) enable_dlopen_self=unknown ;;
11470 case $lt_cv_dlopen_self_static in
11471 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11472 *) enable_dlopen_self_static=unknown ;;
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11497 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11498 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11500 $as_echo "yes" >&6; }
11502 # FIXME - insert some real tests, host_os isn't really good enough
11505 if test -n "$STRIP" ; then
11506 striplib="$STRIP -x"
11507 old_striplib="$STRIP -S"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11509 $as_echo "yes" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 $as_echo "no" >&6; }
11533 # Report which library types will actually be built
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11537 $as_echo "$can_build_shared" >&6; }
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11540 $as_echo_n "checking whether to build shared libraries... " >&6; }
11541 test "$can_build_shared" = "no" && enable_shared=no
11543 # On AIX, shared libraries and static libraries use the same namespace, and
11544 # are all built from PIC.
11547 test "$enable_shared" = yes && enable_static=no
11548 if test -n "$RANLIB"; then
11549 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11550 postinstall_cmds='$RANLIB $lib'
11555 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11556 test "$enable_shared" = yes && enable_static=no
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11561 $as_echo "$enable_shared" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11564 $as_echo_n "checking whether to build static libraries... " >&6; }
11565 # Make sure either enable_shared or enable_static is yes.
11566 test "$enable_shared" = yes || enable_static=yes
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11568 $as_echo "$enable_static" >&6; }
11575 ac_cpp='$CPP $CPPFLAGS'
11576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596 ac_config_commands="$ac_config_commands libtool"
11601 # Only expand once:
11604 if test "x$CC" != xcc; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11606 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11609 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11611 set dummy $CC; ac_cc=`$as_echo "$2" |
11612 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11613 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
11614 $as_echo_n "(cached) " >&6
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11627 # Make sure it works both with $CC and with simple cc.
11628 # We do the test twice because some compilers refuse to overwrite an
11629 # existing .o file with -o, though they will create one.
11630 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11632 if { { case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11637 $as_echo "$ac_try_echo"; } >&5
11638 (eval "$ac_try") 2>&5
11640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11641 test $ac_status = 0; } &&
11642 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11647 $as_echo "$ac_try_echo"; } >&5
11648 (eval "$ac_try") 2>&5
11650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11651 test $ac_status = 0; };
11653 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11654 if test "x$CC" != xcc; then
11655 # Test first that cc exists at all.
11656 if { ac_try='cc -c conftest.$ac_ext >&5'
11657 { { case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11662 $as_echo "$ac_try_echo"; } >&5
11663 (eval "$ac_try") 2>&5
11665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11666 test $ac_status = 0; }; }; then
11667 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11669 if { { case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11674 $as_echo "$ac_try_echo"; } >&5
11675 (eval "$ac_try") 2>&5
11677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11678 test $ac_status = 0; } &&
11679 test -f conftest2.$ac_objext && { { case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11684 $as_echo "$ac_try_echo"; } >&5
11685 (eval "$ac_try") 2>&5
11687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11688 test $ac_status = 0; };
11693 # cc exists but doesn't like -o.
11694 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11699 eval ac_cv_prog_cc_${ac_cc}_c_o=no
11701 rm -f core conftest*
11704 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706 $as_echo "yes" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11711 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11715 # FIXME: we rely on the cache variable name because
11716 # there is no other way.
11718 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11719 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11720 if test "$am_t" != yes; then
11721 # Losing compiler, so override with the script.
11722 # FIXME: It is wrong to rewrite CC.
11723 # But if we don't then we get into trouble of one sort or another.
11724 # A longer-term fix would be to have automake use am__CC in this case,
11725 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11726 CC="$am_aux_dir/compile $CC"
11731 # Check whether --enable-silent-rules was given.
11732 if test "${enable_silent_rules+set}" = set; then :
11733 enableval=$enable_silent_rules;
11736 case $enable_silent_rules in # (((
11737 yes) AM_DEFAULT_VERBOSITY=0;;
11738 no) AM_DEFAULT_VERBOSITY=1;;
11739 *) AM_DEFAULT_VERBOSITY=0;;
11741 am_make=${MAKE-make}
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11743 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11744 if ${am_cv_make_support_nested_variables+:} false; then :
11745 $as_echo_n "(cached) " >&6
11747 if $as_echo 'TRUE=$(BAR$(V))
11753 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11754 am_cv_make_support_nested_variables=yes
11756 am_cv_make_support_nested_variables=no
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11760 $as_echo "$am_cv_make_support_nested_variables" >&6; }
11761 if test $am_cv_make_support_nested_variables = yes; then
11763 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11765 AM_V=$AM_DEFAULT_VERBOSITY
11766 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11773 # Check whether --enable-everything was given.
11774 if test "${enable_everything+set}" = set; then :
11775 enableval=$enable_everything; test "${enable_libwebpdecoder+set}" = "set" || enable_libwebpdecoder=$enableval
11776 test "${enable_libwebpdemux+set}" = "set" || enable_libwebpdemux=$enableval
11777 test "${enable_libwebpmux+set}" = "set" || enable_libwebpmux=$enableval
11782 # Check whether --with-pkgconfigdir was given.
11783 if test "${with_pkgconfigdir+set}" = set; then :
11784 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11786 pkgconfigdir='${libdir}/pkgconfig'
11792 SAVED_CFLAGS="$CFLAGS"
11793 CFLAGS="-Werror -Wall"
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall" >&5
11795 $as_echo_n "checking whether $CC supports -Wall... " >&6; }
11796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797 /* end confdefs.h. */
11798 int main(void) { return 0; }
11800 if ac_fn_c_try_compile "$LINENO"; then :
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 as_fn_append AM_CFLAGS " -Wall"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 $as_echo "no" >&6; }
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 CFLAGS="$SAVED_CFLAGS"
11810 SAVED_CFLAGS="$CFLAGS"
11811 CFLAGS="-Werror -Wdeclaration-after-statement"
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
11813 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 int main(void) { return 0; }
11818 if ac_fn_c_try_compile "$LINENO"; then :
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820 $as_echo "yes" >&6; }
11821 as_fn_append AM_CFLAGS " -Wdeclaration-after-statement"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 CFLAGS="$SAVED_CFLAGS"
11828 SAVED_CFLAGS="$CFLAGS"
11829 CFLAGS="-Werror -Wextra"
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra" >&5
11831 $as_echo_n "checking whether $CC supports -Wextra... " >&6; }
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 int main(void) { return 0; }
11836 if ac_fn_c_try_compile "$LINENO"; then :
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11838 $as_echo "yes" >&6; }
11839 as_fn_append AM_CFLAGS " -Wextra"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 CFLAGS="$SAVED_CFLAGS"
11846 SAVED_CFLAGS="$CFLAGS"
11847 CFLAGS="-Werror -Wmissing-declarations"
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations" >&5
11849 $as_echo_n "checking whether $CC supports -Wmissing-declarations... " >&6; }
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 int main(void) { return 0; }
11854 if ac_fn_c_try_compile "$LINENO"; then :
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856 $as_echo "yes" >&6; }
11857 as_fn_append AM_CFLAGS " -Wmissing-declarations"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 CFLAGS="$SAVED_CFLAGS"
11864 SAVED_CFLAGS="$CFLAGS"
11865 CFLAGS="-Werror -Wmissing-prototypes"
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes" >&5
11867 $as_echo_n "checking whether $CC supports -Wmissing-prototypes... " >&6; }
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11870 int main(void) { return 0; }
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11874 $as_echo "yes" >&6; }
11875 as_fn_append AM_CFLAGS " -Wmissing-prototypes"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 CFLAGS="$SAVED_CFLAGS"
11882 SAVED_CFLAGS="$CFLAGS"
11883 CFLAGS="-Werror -Wold-style-definition"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wold-style-definition" >&5
11885 $as_echo_n "checking whether $CC supports -Wold-style-definition... " >&6; }
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 int main(void) { return 0; }
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892 $as_echo "yes" >&6; }
11893 as_fn_append AM_CFLAGS " -Wold-style-definition"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 CFLAGS="$SAVED_CFLAGS"
11900 SAVED_CFLAGS="$CFLAGS"
11901 CFLAGS="-Werror -Wshadow"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow" >&5
11903 $as_echo_n "checking whether $CC supports -Wshadow... " >&6; }
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 int main(void) { return 0; }
11908 if ac_fn_c_try_compile "$LINENO"; then :
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11910 $as_echo "yes" >&6; }
11911 as_fn_append AM_CFLAGS " -Wshadow"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 CFLAGS="$SAVED_CFLAGS"
11918 SAVED_CFLAGS="$CFLAGS"
11919 CFLAGS="-Werror -Wunused-but-set-variable"
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-but-set-variable" >&5
11921 $as_echo_n "checking whether $CC supports -Wunused-but-set-variable... " >&6; }
11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h. */
11924 int main(void) { return 0; }
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11928 $as_echo "yes" >&6; }
11929 as_fn_append AM_CFLAGS " -Wunused-but-set-variable"
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935 CFLAGS="$SAVED_CFLAGS"
11936 SAVED_CFLAGS="$CFLAGS"
11937 CFLAGS="-Werror -Wunused"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused" >&5
11939 $as_echo_n "checking whether $CC supports -Wunused... " >&6; }
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942 int main(void) { return 0; }
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11946 $as_echo "yes" >&6; }
11947 as_fn_append AM_CFLAGS " -Wunused"
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 CFLAGS="$SAVED_CFLAGS"
11954 SAVED_CFLAGS="$CFLAGS"
11955 CFLAGS="-Werror -Wvla"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wvla" >&5
11957 $as_echo_n "checking whether $CC supports -Wvla... " >&6; }
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960 int main(void) { return 0; }
11962 if ac_fn_c_try_compile "$LINENO"; then :
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 as_fn_append AM_CFLAGS " -Wvla"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968 $as_echo "no" >&6; }
11970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11971 CFLAGS="$SAVED_CFLAGS"
11982 # Check whether --enable-threading was given.
11983 if test "${enable_threading+set}" = set; then :
11984 enableval=$enable_threading;
11986 enable_threading=yes
11989 if test "$enable_threading" = "yes"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for threading support..." >&5
11991 $as_echo "$as_me: checking for threading support..." >&6;}
11995 ac_cpp='$CPP $CPPFLAGS'
11996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12002 # We used to check for pthread.h first, but this fails if pthread.h
12003 # requires special compiler flags (e.g. on True64 or Sequent).
12004 # It gets checked for in the link test anyway.
12006 # First of all, check if the user has set any of the PTHREAD_LIBS,
12007 # etcetera environment variables, and if threads linking works using
12009 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12010 save_CFLAGS="$CFLAGS"
12011 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12013 LIBS="$PTHREAD_LIBS $LIBS"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12015 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12025 char pthread_join ();
12029 return pthread_join ();
12034 if ac_fn_c_try_link "$LINENO"; then :
12037 rm -f core conftest.err conftest.$ac_objext \
12038 conftest$ac_exeext conftest.$ac_ext
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12040 $as_echo "$ax_pthread_ok" >&6; }
12041 if test x"$ax_pthread_ok" = xno; then
12046 CFLAGS="$save_CFLAGS"
12049 # We must check for the threads library under a number of different
12050 # names; the ordering is very important because some systems
12051 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12052 # libraries is broken (non-POSIX).
12054 # Create a list of thread flags to try. Items starting with a "-" are
12055 # C compiler flags, and other items are library names, except for "none"
12056 # which indicates that we try without any flags at all, and "pthread-config"
12057 # which is a program returning the flags for the Pth emulation library.
12059 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
12061 # The ordering *is* (sometimes) important. Some notes on the
12062 # individual items follow:
12064 # pthreads: AIX (must check this before -lpthread)
12065 # none: in case threads are in libc; should be tried before -Kthread and
12066 # other compiler flags to prevent continual compiler warnings
12067 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12068 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12069 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12070 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12071 # -pthreads: Solaris/gcc
12072 # -mthreads: Mingw32/gcc, Lynx/gcc
12073 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12074 # doesn't hurt to check since this sometimes defines pthreads too;
12075 # also defines -D_REENTRANT)
12076 # ... -mt is also the pthreads flag for HP/aCC
12077 # pthread: Linux, etcetera
12078 # --thread-safe: KAI C++
12079 # pthread-config: use pthread-config program (for GNU Pth library)
12084 # On Solaris (at least, for some versions), libc contains stubbed
12085 # (non-functional) versions of the pthreads routines, so link-based
12086 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
12087 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12088 # a function called by this macro, so we could check for that, but
12089 # who knows whether they'll stub that too in a future libc.) So,
12090 # we'll just look for -pthreads and -lpthread first:
12092 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
12096 ax_pthread_flags="-pthread $ax_pthread_flags"
12100 if test x"$ax_pthread_ok" = xno; then
12101 for flag in $ax_pthread_flags; do
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12106 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12111 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12112 PTHREAD_CFLAGS="$flag"
12116 # Extract the first word of "pthread-config", so it can be a program name with args.
12117 set dummy pthread-config; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_prog_ax_pthread_config+:} false; then :
12121 $as_echo_n "(cached) " >&6
12123 if test -n "$ax_pthread_config"; then
12124 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $PATH
12130 test -z "$as_dir" && as_dir=.
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_ax_pthread_config="yes"
12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
12144 ax_pthread_config=$ac_cv_prog_ax_pthread_config
12145 if test -n "$ax_pthread_config"; then
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
12147 $as_echo "$ax_pthread_config" >&6; }
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12154 if test x"$ax_pthread_config" = xno; then continue; fi
12155 PTHREAD_CFLAGS="`pthread-config --cflags`"
12156 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12161 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12162 PTHREAD_LIBS="-l$flag"
12167 save_CFLAGS="$CFLAGS"
12168 LIBS="$PTHREAD_LIBS $LIBS"
12169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12171 # Check for various functions. We must include pthread.h,
12172 # since some functions may be macros. (On the Sequent, we
12173 # need a special flag -Kthread to make this header compile.)
12174 # We check for pthread_join because it is in -lpthread on IRIX
12175 # while pthread_create is in libc. We check for pthread_attr_init
12176 # due to DEC craziness with -lpthreads. We check for
12177 # pthread_cleanup_push because it is one of the few pthread
12178 # functions on Solaris that doesn't have a non-functional libc stub.
12179 # We try pthread_create on general principles.
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12182 #include <pthread.h>
12183 static void routine(void *a) { a = 0; }
12184 static void *start_routine(void *a) { return a; }
12188 pthread_t th; pthread_attr_t attr;
12189 pthread_create(&th, 0, start_routine, 0);
12190 pthread_join(th, 0);
12191 pthread_attr_init(&attr);
12192 pthread_cleanup_push(routine, 0);
12193 pthread_cleanup_pop(0) /* ; */
12198 if ac_fn_c_try_link "$LINENO"; then :
12201 rm -f core conftest.err conftest.$ac_objext \
12202 conftest$ac_exeext conftest.$ac_ext
12205 CFLAGS="$save_CFLAGS"
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
12208 $as_echo "$ax_pthread_ok" >&6; }
12209 if test "x$ax_pthread_ok" = xyes; then
12218 # Various other checks:
12219 if test "x$ax_pthread_ok" = xyes; then
12221 LIBS="$PTHREAD_LIBS $LIBS"
12222 save_CFLAGS="$CFLAGS"
12223 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12225 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12227 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12229 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
12230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12232 #include <pthread.h>
12236 int attr = $attr; return attr /* ; */
12241 if ac_fn_c_try_link "$LINENO"; then :
12242 attr_name=$attr; break
12244 rm -f core conftest.err conftest.$ac_objext \
12245 conftest$ac_exeext conftest.$ac_ext
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
12248 $as_echo "$attr_name" >&6; }
12249 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
12251 cat >>confdefs.h <<_ACEOF
12252 #define PTHREAD_CREATE_JOINABLE $attr_name
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12258 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12261 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
12262 osf* | hpux*) flag="-D_REENTRANT";;
12264 if test "$GCC" = "yes"; then
12265 flag="-D_REENTRANT"
12267 flag="-mt -D_REENTRANT"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12272 $as_echo "${flag}" >&6; }
12273 if test "x$flag" != xno; then
12274 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
12278 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
12279 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
12280 $as_echo_n "(cached) " >&6
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12286 #include <pthread.h>
12290 int i = PTHREAD_PRIO_INHERIT;
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ax_cv_PTHREAD_PRIO_INHERIT=yes
12298 ax_cv_PTHREAD_PRIO_INHERIT=no
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
12305 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
12306 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
12308 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
12313 CFLAGS="$save_CFLAGS"
12315 # More AIX lossage: must compile with xlc_r or cc_r
12316 if test x"$GCC" != xyes; then
12317 for ac_prog in xlc_r cc_r
12319 # Extract the first word of "$ac_prog", so it can be a program name with args.
12320 set dummy $ac_prog; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12324 $as_echo_n "(cached) " >&6
12326 if test -n "$PTHREAD_CC"; then
12327 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_prog_PTHREAD_CC="$ac_prog"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12347 if test -n "$PTHREAD_CC"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12349 $as_echo "$PTHREAD_CC" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12356 test -n "$PTHREAD_CC" && break
12358 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
12371 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12372 if test x"$ax_pthread_ok" = xyes; then
12374 $as_echo "#define WEBP_USE_THREAD 1" >>confdefs.h
12376 LIBS="$PTHREAD_LIBS $LIBS"
12377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12383 enable_threading=no
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if threading is enabled... ${enable_threading-no}" >&5
12394 $as_echo "$as_me: checking if threading is enabled... ${enable_threading-no}" >&6;}
12396 GL_INCLUDES=""; GL_LIBS=""
12398 # Check whether --with-glincludedir was given.
12399 if test "${with_glincludedir+set}" = set; then :
12400 withval=$with_glincludedir; GL_INCLUDES="-I$withval"
12404 # Check whether --with-gllibdir was given.
12405 if test "${with_gllibdir+set}" = set; then :
12406 withval=$with_gllibdir; GL_LIBS="-L$withval"
12410 SAVED_CPPFLAGS=$CPPFLAGS
12412 CPPFLAGS="$GL_INCLUDES $CPPFLAGS"
12413 LIBS="$GL_LIBS $LIBS"
12416 glut_ldflags="none"
12419 # Special case for OSX builds. Append these to give the user a chance to
12420 # override with --with-gl*
12421 glut_cflags="$glut_cflags|-framework GLUT -framework OpenGL"
12422 glut_ldflags="$glut_ldflags|-framework GLUT -framework OpenGL"
12426 GLUT_SAVED_CPPFLAGS="$CPPFLAGS"
12429 for flag in $glut_cflags; do
12430 # restore IFS immediately as the autoconf macros may need the default.
12432 unset ac_cv_header_GL_glut_h
12433 unset ac_cv_header_OpenGL_glut_h
12437 *) CPPFLAGS="$flag $CPPFLAGS";;
12439 for ac_header in GL/glut.h GLUT/glut.h OpenGL/glut.h
12441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12442 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12443 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12448 test "$flag" = "none" || GL_INCLUDES="$CPPFLAGS";
12454 CPPFLAGS="$GLUT_SAVED_CPPFLAGS"
12455 test "$glut_headers" = "yes" && break
12459 if test "$glut_headers" = "yes"; then
12461 ac_cpp='$CPP $CPPFLAGS'
12462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12466 GLUT_SAVED_LDFLAGS="$LDFLAGS"
12469 for flag in $glut_ldflags; do
12470 # restore IFS immediately as the autoconf macros may need the default.
12472 unset ac_cv_search_glBegin
12476 *) LDFLAGS="$flag $LDFLAGS";;
12480 GL_SAVED_LIBS="$LIBS"
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glBegin" >&5
12482 $as_echo_n "checking for library containing glBegin... " >&6; }
12483 if ${ac_cv_search_glBegin+:} false; then :
12484 $as_echo_n "(cached) " >&6
12486 ac_func_search_save_LIBS=$LIBS
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12505 for ac_lib in '' GL OpenGL; do
12506 if test -z "$ac_lib"; then
12507 ac_res="none required"
12510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12512 if ac_fn_c_try_link "$LINENO"; then :
12513 ac_cv_search_glBegin=$ac_res
12515 rm -f core conftest.err conftest.$ac_objext \
12517 if ${ac_cv_search_glBegin+:} false; then :
12521 if ${ac_cv_search_glBegin+:} false; then :
12524 ac_cv_search_glBegin=no
12526 rm conftest.$ac_ext
12527 LIBS=$ac_func_search_save_LIBS
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glBegin" >&5
12530 $as_echo "$ac_cv_search_glBegin" >&6; }
12531 ac_res=$ac_cv_search_glBegin
12532 if test "$ac_res" != no; then :
12533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537 LIBS="$GL_SAVED_LIBS"
12539 # A direct link to libGL may not be necessary on e.g., linux.
12540 for lib in "" $ac_cv_search_glBegin; do
12541 unset ac_cv_search_glutMainLoop
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing glutMainLoop" >&5
12543 $as_echo_n "checking for library containing glutMainLoop... " >&6; }
12544 if ${ac_cv_search_glutMainLoop+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_func_search_save_LIBS=$LIBS
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 /* Override any GCC internal prototype to avoid an error.
12552 Use char because int might match the return type of a GCC
12553 builtin and then its argument prototype would still apply. */
12557 char glutMainLoop ();
12561 return glutMainLoop ();
12566 for ac_lib in '' glut; do
12567 if test -z "$ac_lib"; then
12568 ac_res="none required"
12571 LIBS="-l$ac_lib $lib $ac_func_search_save_LIBS"
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_search_glutMainLoop=$ac_res
12576 rm -f core conftest.err conftest.$ac_objext \
12578 if ${ac_cv_search_glutMainLoop+:} false; then :
12582 if ${ac_cv_search_glutMainLoop+:} false; then :
12585 ac_cv_search_glutMainLoop=no
12587 rm conftest.$ac_ext
12588 LIBS=$ac_func_search_save_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_glutMainLoop" >&5
12591 $as_echo "$ac_cv_search_glutMainLoop" >&6; }
12592 ac_res=$ac_cv_search_glutMainLoop
12593 if test "$ac_res" != no; then :
12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12598 if test "$glut_support" = "yes"; then
12600 if test "$ac_cv_search_glutMainLoop" != "none required"; then
12601 GL_LIBS="$GL_LIBS $ac_cv_search_glutMainLoop"
12603 GL_LIBS="$GL_LIBS $lib"
12607 LDFLAGS="$GLUT_SAVED_LDFLAGS"
12608 test "$glut_support" = "yes" && break
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12621 CPPFLAGS=$SAVED_CPPFLAGS
12624 if test "$glut_support" = "yes" -a "$enable_libwebpdemux" = "yes"; then
12627 if test "$build_vwebp" = "yes"; then
12629 BUILD_VWEBP_FALSE='#'
12631 BUILD_VWEBP_TRUE='#'
12637 PNG_INCLUDES=""; PNG_LIBS=""
12638 for ac_prog in libpng-config libpng15-config libpng14-config libpng12-config
12640 # Extract the first word of "$ac_prog", so it can be a program name with args.
12641 set dummy $ac_prog; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if ${ac_cv_path_LIBPNG_CONFIG+:} false; then :
12645 $as_echo_n "(cached) " >&6
12647 case $LIBPNG_CONFIG in
12649 ac_cv_path_LIBPNG_CONFIG="$LIBPNG_CONFIG" # Let the user override the test with a path.
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12659 ac_cv_path_LIBPNG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12670 LIBPNG_CONFIG=$ac_cv_path_LIBPNG_CONFIG
12671 if test -n "$LIBPNG_CONFIG"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPNG_CONFIG" >&5
12673 $as_echo "$LIBPNG_CONFIG" >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12680 test -n "$LIBPNG_CONFIG" && break
12683 if test -n "$LIBPNG_CONFIG"; then
12684 PNG_INCLUDES=`$LIBPNG_CONFIG --cflags`
12685 PNG_PREFIX=`$LIBPNG_CONFIG --prefix`
12686 if test "${PNG_PREFIX}/lib" != "/usr/lib" ; then
12687 PNG_LIBS="-L${PNG_PREFIX}/lib"
12689 PNG_LIBS="$PNG_LIBS `$LIBPNG_CONFIG --libs`"
12693 # Check whether --with-pngincludedir was given.
12694 if test "${with_pngincludedir+set}" = set; then :
12695 withval=$with_pngincludedir; PNG_INCLUDES="-I$withval"
12699 # Check whether --with-pnglibdir was given.
12700 if test "${with_pnglibdir+set}" = set; then :
12701 withval=$with_pnglibdir; PNG_LIBS="-L$withval"
12705 SAVED_CPPFLAGS=$CPPFLAGS
12707 CPPFLAGS="$PNG_INCLUDES $CPPFLAGS"
12708 LIBS="$PNG_LIBS $LIBS"
12709 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12710 if test "x$ac_cv_header_png_h" = xyes; then :
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing png_get_libpng_ver" >&5
12712 $as_echo_n "checking for library containing png_get_libpng_ver... " >&6; }
12713 if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12714 $as_echo_n "(cached) " >&6
12716 ac_func_search_save_LIBS=$LIBS
12717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12718 /* end confdefs.h. */
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12726 char png_get_libpng_ver ();
12730 return png_get_libpng_ver ();
12735 for ac_lib in '' png; do
12736 if test -z "$ac_lib"; then
12737 ac_res="none required"
12740 LIBS="-l$ac_lib $MATH_LIBS $ac_func_search_save_LIBS"
12742 if ac_fn_c_try_link "$LINENO"; then :
12743 ac_cv_search_png_get_libpng_ver=$ac_res
12745 rm -f core conftest.err conftest.$ac_objext \
12747 if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12751 if ${ac_cv_search_png_get_libpng_ver+:} false; then :
12754 ac_cv_search_png_get_libpng_ver=no
12756 rm conftest.$ac_ext
12757 LIBS=$ac_func_search_save_LIBS
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_png_get_libpng_ver" >&5
12760 $as_echo "$ac_cv_search_png_get_libpng_ver" >&6; }
12761 ac_res=$ac_cv_search_png_get_libpng_ver
12762 if test "$ac_res" != no; then :
12763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12764 test "$ac_cv_search_png_get_libpng_ver" = "none required" \
12765 || PNG_LIBS="$PNG_LIBS $ac_cv_search_png_get_libpng_ver"
12766 PNG_INCLUDES="$PNG_INCLUDES -DWEBP_HAVE_PNG"
12768 $as_echo "#define WEBP_HAVE_PNG 1" >>confdefs.h
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional png library not found" >&5
12774 $as_echo "$as_me: WARNING: Optional png library not found" >&2;}
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: png library not available - no png.h" >&5
12782 $as_echo "$as_me: WARNING: png library not available - no png.h" >&2;}
12791 CPPFLAGS=$SAVED_CPPFLAGS
12795 JPEG_INCLUDES=""; JPEG_LIBS=""
12797 # Check whether --with-jpegincludedir was given.
12798 if test "${with_jpegincludedir+set}" = set; then :
12799 withval=$with_jpegincludedir; JPEG_INCLUDES="-I$withval"
12803 # Check whether --with-jpeglibdir was given.
12804 if test "${with_jpeglibdir+set}" = set; then :
12805 withval=$with_jpeglibdir; JPEG_LIBS="-L$withval"
12809 SAVED_CPPFLAGS=$CPPFLAGS
12811 CPPFLAGS="$JPEG_INCLUDES $CPPFLAGS"
12812 LIBS="$JPEG_LIBS $LIBS"
12813 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12814 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_set_defaults in -ljpeg" >&5
12816 $as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
12817 if ${ac_cv_lib_jpeg_jpeg_set_defaults+:} false; then :
12818 $as_echo_n "(cached) " >&6
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-ljpeg $MATH_LIBS $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12831 char jpeg_set_defaults ();
12835 return jpeg_set_defaults ();
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_lib_jpeg_jpeg_set_defaults=yes
12843 ac_cv_lib_jpeg_jpeg_set_defaults=no
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
12850 $as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
12851 if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = xyes; then :
12852 JPEG_LIBS="$JPEG_LIBS -ljpeg"
12853 JPEG_INCLUDES="$JPEG_INCLUDES -DWEBP_HAVE_JPEG"
12855 $as_echo "#define WEBP_HAVE_JPEG 1" >>confdefs.h
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional jpeg library not found" >&5
12861 $as_echo "$as_me: WARNING: Optional jpeg library not found" >&2;}
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: jpeg library not available - no jpeglib.h" >&5
12866 $as_echo "$as_me: WARNING: jpeg library not available - no jpeglib.h" >&2;}
12873 CPPFLAGS=$SAVED_CPPFLAGS
12877 TIFF_INCLUDES=""; TIFF_LIBS=""
12879 # Check whether --with-tiffincludedir was given.
12880 if test "${with_tiffincludedir+set}" = set; then :
12881 withval=$with_tiffincludedir; TIFF_INCLUDES="-I$withval"
12885 # Check whether --with-tifflibdir was given.
12886 if test "${with_tifflibdir+set}" = set; then :
12887 withval=$with_tifflibdir; TIFF_LIBS="-L$withval"
12891 SAVED_CPPFLAGS=$CPPFLAGS
12893 CPPFLAGS="$TIFF_INCLUDES $CPPFLAGS"
12894 LIBS="$TIFF_LIBS $LIBS"
12895 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12896 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12898 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12899 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12900 $as_echo_n "(cached) " >&6
12902 ac_check_lib_save_LIBS=$LIBS
12903 LIBS="-ltiff $MATH_LIBS $LIBS"
12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12913 char TIFFGetVersion ();
12917 return TIFFGetVersion ();
12922 if ac_fn_c_try_link "$LINENO"; then :
12923 ac_cv_lib_tiff_TIFFGetVersion=yes
12925 ac_cv_lib_tiff_TIFFGetVersion=no
12927 rm -f core conftest.err conftest.$ac_objext \
12928 conftest$ac_exeext conftest.$ac_ext
12929 LIBS=$ac_check_lib_save_LIBS
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12932 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12933 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12934 TIFF_LIBS="$TIFF_LIBS -ltiff"
12935 TIFF_INCLUDES="$TIFF_INCLUDES -DWEBP_HAVE_TIFF"
12937 $as_echo "#define WEBP_HAVE_TIFF 1" >>confdefs.h
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional tiff library not found" >&5
12943 $as_echo "$as_me: WARNING: Optional tiff library not found" >&2;}
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: tiff library not available - no tiffio.h" >&5
12948 $as_echo "$as_me: WARNING: tiff library not available - no tiffio.h" >&2;}
12955 CPPFLAGS=$SAVED_CPPFLAGS
12959 GIF_INCLUDES=""; GIF_LIBS=""
12961 # Check whether --with-gifincludedir was given.
12962 if test "${with_gifincludedir+set}" = set; then :
12963 withval=$with_gifincludedir; GIF_INCLUDES="-I$withval"
12967 # Check whether --with-giflibdir was given.
12968 if test "${with_giflibdir+set}" = set; then :
12969 withval=$with_giflibdir; GIF_LIBS="-L$withval"
12973 SAVED_CPPFLAGS=$CPPFLAGS
12975 CPPFLAGS="$GIF_INCLUDES $CPPFLAGS"
12976 LIBS="$GIF_LIBS $LIBS"
12977 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12978 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifOpenFileHandle in -lgif" >&5
12980 $as_echo_n "checking for DGifOpenFileHandle in -lgif... " >&6; }
12981 if ${ac_cv_lib_gif_DGifOpenFileHandle+:} false; then :
12982 $as_echo_n "(cached) " >&6
12984 ac_check_lib_save_LIBS=$LIBS
12985 LIBS="-lgif $MATH_LIBS $LIBS"
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12989 /* Override any GCC internal prototype to avoid an error.
12990 Use char because int might match the return type of a GCC
12991 builtin and then its argument prototype would still apply. */
12995 char DGifOpenFileHandle ();
12999 return DGifOpenFileHandle ();
13004 if ac_fn_c_try_link "$LINENO"; then :
13005 ac_cv_lib_gif_DGifOpenFileHandle=yes
13007 ac_cv_lib_gif_DGifOpenFileHandle=no
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifOpenFileHandle" >&5
13014 $as_echo "$ac_cv_lib_gif_DGifOpenFileHandle" >&6; }
13015 if test "x$ac_cv_lib_gif_DGifOpenFileHandle" = xyes; then :
13016 GIF_LIBS="$GIF_LIBS -lgif"
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Optional gif library not found" >&5
13021 $as_echo "$as_me: WARNING: Optional gif library not found" >&2;}
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gif library not available - no gif_lib.h" >&5
13026 $as_echo "$as_me: WARNING: gif library not available - no gif_lib.h" >&2;}
13033 CPPFLAGS=$SAVED_CPPFLAGS
13036 if test "$gif_support" = "yes" -a \
13037 "$enable_libwebpmux" = "yes"; then
13040 if test "${build_gif2webp}" = "yes"; then
13041 BUILD_GIF2WEBP_TRUE=
13042 BUILD_GIF2WEBP_FALSE='#'
13044 BUILD_GIF2WEBP_TRUE='#'
13045 BUILD_GIF2WEBP_FALSE=
13050 if test "$target_os" = "mingw32"; then
13051 for ac_header in wincodec.h shlwapi.h windows.h
13053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13054 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13056 cat >>confdefs.h <<_ACEOF
13057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13064 if test "$ac_cv_header_wincodec_h" = "yes"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows Imaging Component support" >&5
13066 $as_echo_n "checking for Windows Imaging Component support... " >&6; }
13068 LIBS="-lshlwapi -lole32 $LIBS"
13069 # match include structure from [cd]webp.c
13074 #define _WIN32_IE 0x500
13076 #include <shlwapi.h>
13077 #include <windows.h>
13078 #include <wincodec.h>
13080 # test for functions from each lib and the GUID is created properly
13083 CLSID_WICImagingFactory;
13084 CoInitialize(NULL);
13085 SHCreateStreamOnFile(NULL, 0, NULL);
13090 ac_cpp='$CPP $CPPFLAGS'
13091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13101 if ac_fn_c_try_link "$LINENO"; then :
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13110 ac_cpp='$CPP $CPPFLAGS'
13111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13116 test "$wic_support" = "yes" || LIBS=$SAVED_LIBS
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wic_support-no}" >&5
13118 $as_echo "${wic_support-no}" >&6; }
13123 USE_SWAP_16BIT_CSP=""
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-swap-16bit-csp option is specified" >&5
13125 $as_echo_n "checking if --enable-swap-16bit-csp option is specified... " >&6; }
13126 # Check whether --enable-swap-16bit-csp was given.
13127 if test "${enable_swap_16bit_csp+set}" = set; then :
13128 enableval=$enable_swap_16bit_csp;
13131 if test "$enable_swap_16bit_csp" = "yes"; then
13132 USE_SWAP_16BIT_CSP="-DWEBP_SWAP_16BIT_CSP"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_swap_16bit_csp-no}" >&5
13135 $as_echo "${enable_swap_16bit_csp-no}" >&6; }
13139 USE_EXPERIMENTAL_CODE=""
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-experimental option is specified" >&5
13141 $as_echo_n "checking if --enable-experimental option is specified... " >&6; }
13142 # Check whether --enable-experimental was given.
13143 if test "${enable_experimental+set}" = set; then :
13144 enableval=$enable_experimental;
13147 if test "$enable_experimental" = "yes"; then
13149 $as_echo "#define WEBP_EXPERIMENTAL_FEATURES 1" >>confdefs.h
13151 USE_EXPERIMENTAL_CODE="-DWEBP_EXPERIMENTAL_FEATURES"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_experimental-no}" >&5
13154 $as_echo "${enable_experimental-no}" >&6; }
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libwebpmux is to be built" >&5
13158 $as_echo_n "checking whether libwebpmux is to be built... " >&6; }
13159 # Check whether --enable-libwebpmux was given.
13160 if test "${enable_libwebpmux+set}" = set; then :
13161 enableval=$enable_libwebpmux;
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpmux-no}" >&5
13165 $as_echo "${enable_libwebpmux-no}" >&6; }
13166 if test "$enable_libwebpmux" = "yes"; then
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libwebpdemux is to be built" >&5
13176 $as_echo_n "checking whether libwebpdemux is to be built... " >&6; }
13177 # Check whether --enable-libwebpdemux was given.
13178 if test "${enable_libwebpdemux+set}" = set; then :
13179 enableval=$enable_libwebpdemux;
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdemux-no}" >&5
13183 $as_echo "${enable_libwebpdemux-no}" >&6; }
13184 if test "$enable_libwebpdemux" = "yes"; then
13186 WANT_DEMUX_FALSE='#'
13188 WANT_DEMUX_TRUE='#'
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decoder library is to be built" >&5
13194 $as_echo_n "checking whether decoder library is to be built... " >&6; }
13195 # Check whether --enable-libwebpdecoder was given.
13196 if test "${enable_libwebpdecoder+set}" = set; then :
13197 enableval=$enable_libwebpdecoder;
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_libwebpdecoder-no}" >&5
13201 $as_echo "${enable_libwebpdecoder-no}" >&6; }
13202 if test "$enable_libwebpdecoder" = "yes"; then
13203 BUILD_LIBWEBPDECODER_TRUE=
13204 BUILD_LIBWEBPDECODER_FALSE='#'
13206 BUILD_LIBWEBPDECODER_TRUE='#'
13207 BUILD_LIBWEBPDECODER_FALSE=
13213 ac_config_headers="$ac_config_headers config.h"
13215 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile examples/Makefile src/dec/Makefile src/enc/Makefile src/dsp/Makefile src/demux/Makefile src/mux/Makefile src/utils/Makefile src/libwebp.pc src/libwebpdecoder.pc src/demux/libwebpdemux.pc src/mux/libwebpmux.pc"
13219 cat >confcache <<\_ACEOF
13220 # This file is a shell script that caches the results of configure
13221 # tests run on this system so they can be shared between configure
13222 # scripts and configure runs, see configure's option --config-cache.
13223 # It is not useful on other systems. If it contains results you don't
13224 # want to keep, you may remove or edit it.
13226 # config.status only pays attention to the cache file if you give it
13227 # the --recheck option to rerun configure.
13229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13231 # following values.
13235 # The following way of writing the cache mishandles newlines in values,
13236 # but we know of no workaround that is simple, portable, and efficient.
13237 # So, we kill variables containing newlines.
13238 # Ultrix sh set writes to stderr and can't be redirected directly,
13239 # and sets the high bit in the cache file unless we assign to the vars.
13241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13242 eval ac_val=\$$ac_var
13246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13250 _ | IFS | as_nl) ;; #(
13251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13252 *) { eval $ac_var=; unset $ac_var;} ;;
13258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13259 *${as_nl}ac_space=\ *)
13260 # `set' does not quote correctly, so add quotes: double-quote
13261 # substitution turns \\\\ into \\, and sed turns \\ into \.
13264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13267 # `set' quotes correctly as required by POSIX, so do not add quotes.
13268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13282 if test -w "$cache_file"; then
13283 if test "x$cache_file" != "x/dev/null"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13285 $as_echo "$as_me: updating cache $cache_file" >&6;}
13286 if test ! -f "$cache_file" || test -h "$cache_file"; then
13287 cat confcache >"$cache_file"
13289 case $cache_file in #(
13291 mv -f confcache "$cache_file"$$ &&
13292 mv -f "$cache_file"$$ "$cache_file" ;; #(
13294 mv -f confcache "$cache_file" ;;
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13306 # Let make expand exec_prefix.
13307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13309 DEFS=-DHAVE_CONFIG_H
13314 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13315 # 1. Remove the extension, and $U if already installed.
13316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13319 # will be set to the directory where LIBOBJS objects are built.
13320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13323 LIBOBJS=$ac_libobjs
13325 LTLIBOBJS=$ac_ltlibobjs
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13329 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13330 if test -n "$am_sleep_pid"; then
13331 # Hide warnings about reused PIDs.
13332 wait $am_sleep_pid 2>/dev/null
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13335 $as_echo "done" >&6; }
13336 if test -n "$EXEEXT"; then
13338 am__EXEEXT_FALSE='#'
13340 am__EXEEXT_TRUE='#'
13344 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13345 as_fn_error $? "conditional \"AMDEP\" was never defined.
13346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13349 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13352 if test -z "${BUILD_VWEBP_TRUE}" && test -z "${BUILD_VWEBP_FALSE}"; then
13353 as_fn_error $? "conditional \"BUILD_VWEBP\" was never defined.
13354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13356 if test -z "${BUILD_GIF2WEBP_TRUE}" && test -z "${BUILD_GIF2WEBP_FALSE}"; then
13357 as_fn_error $? "conditional \"BUILD_GIF2WEBP\" was never defined.
13358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13360 if test -z "${WANT_MUX_TRUE}" && test -z "${WANT_MUX_FALSE}"; then
13361 as_fn_error $? "conditional \"WANT_MUX\" was never defined.
13362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13364 if test -z "${WANT_DEMUX_TRUE}" && test -z "${WANT_DEMUX_FALSE}"; then
13365 as_fn_error $? "conditional \"WANT_DEMUX\" was never defined.
13366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13368 if test -z "${BUILD_LIBWEBPDECODER_TRUE}" && test -z "${BUILD_LIBWEBPDECODER_FALSE}"; then
13369 as_fn_error $? "conditional \"BUILD_LIBWEBPDECODER\" was never defined.
13370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13373 : "${CONFIG_STATUS=./config.status}"
13375 ac_clean_files_save=$ac_clean_files
13376 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13378 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13380 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13382 # Generated by $as_me.
13383 # Run this file to recreate the current configuration.
13384 # Compiler output produced by configure, useful for debugging
13385 # configure, is in config.log if it exists.
13388 ac_cs_recheck=false
13391 SHELL=\${CONFIG_SHELL-$SHELL}
13394 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13395 ## -------------------- ##
13396 ## M4sh Initialization. ##
13397 ## -------------------- ##
13399 # Be more Bourne compatible
13400 DUALCASE=1; export DUALCASE # for MKS sh
13401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13405 # is contrary to our usage. Disable this feature.
13406 alias -g '${1+"$@"}'='"$@"'
13407 setopt NO_GLOB_SUBST
13409 case `(set -o) 2>/dev/null` in #(
13421 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13422 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13425 # Prefer a ksh shell builtin over an external printf program on Solaris,
13426 # but without wasting forks for bash or zsh.
13427 if test -z "$BASH_VERSION$ZSH_VERSION" \
13428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13429 as_echo='print -r --'
13430 as_echo_n='print -rn --'
13431 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13432 as_echo='printf %s\n'
13433 as_echo_n='printf %s'
13435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13437 as_echo_n='/usr/ucb/echo -n'
13439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13440 as_echo_n_body='eval
13444 expr "X$arg" : "X\\(.*\\)$as_nl";
13445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13449 export as_echo_n_body
13450 as_echo_n='sh -c $as_echo_n_body as_echo'
13452 export as_echo_body
13453 as_echo='sh -c $as_echo_body as_echo'
13456 # The user is always right.
13457 if test "${PATH_SEPARATOR+set}" != set; then
13459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13467 # We need space, tab and new line, in precisely that order. Quoting is
13468 # there to prevent editors from complaining about space-tab.
13469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13470 # splitting by setting IFS to empty value.)
13473 # Find who we are. Look in the path if we contain no directory separator.
13476 *[\\/]* ) as_myself=$0 ;;
13477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13488 # We did not find ourselves, most probably we were run as `sh COMMAND'
13489 # in which case we are not to be found in the path.
13490 if test "x$as_myself" = x; then
13493 if test ! -f "$as_myself"; then
13494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498 # Unset variables that we do not need and which cause bugs (e.g. in
13499 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13500 # suppresses any "Segmentation fault" message there. '((' could
13501 # trigger a bug in pdksh 5.2.14.
13502 for as_var in BASH_ENV ENV MAIL MAILPATH
13503 do eval test x\${$as_var+set} = xset \
13504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13520 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13521 # ----------------------------------------
13522 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13523 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13524 # script with STATUS, using 1 if that was 0.
13527 as_status=$1; test $as_status -eq 0 && as_status=1
13529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13532 $as_echo "$as_me: error: $2" >&2
13533 as_fn_exit $as_status
13537 # as_fn_set_status STATUS
13538 # -----------------------
13539 # Set $? to STATUS, without forking.
13540 as_fn_set_status ()
13543 } # as_fn_set_status
13545 # as_fn_exit STATUS
13546 # -----------------
13547 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551 as_fn_set_status $1
13557 # Portably unset VAR.
13560 { eval $1=; unset $1;}
13562 as_unset=as_fn_unset
13563 # as_fn_append VAR VALUE
13564 # ----------------------
13565 # Append the text in VALUE to the end of the definition contained in VAR. Take
13566 # advantage of any shell optimizations that allow amortized linear growth over
13567 # repeated appends, instead of the typical quadratic growth present in naive
13569 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13570 eval 'as_fn_append ()
13581 # as_fn_arith ARG...
13582 # ------------------
13583 # Perform arithmetic evaluation on the ARGs, and store the result in the
13584 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13585 # must be portable across $(()) and expr.
13586 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13587 eval 'as_fn_arith ()
13594 as_val=`expr "$@" || test $? -eq 1`
13599 if expr a : '\(a\)' >/dev/null 2>&1 &&
13600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13607 as_basename=basename
13612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13618 as_me=`$as_basename -- "$0" ||
13619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13620 X"$0" : 'X\(//\)$' \| \
13621 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13623 sed '/^.*\/\([^/][^/]*\)\/*$/{
13637 # Avoid depending upon Character Ranges.
13638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13641 as_cr_digits='0123456789'
13642 as_cr_alnum=$as_cr_Letters$as_cr_digits
13644 ECHO_C= ECHO_N= ECHO_T=
13645 case `echo -n x` in #(((((
13647 case `echo 'xy\c'` in
13648 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13657 rm -f conf$$ conf$$.exe conf$$.file
13658 if test -d conf$$.dir; then
13659 rm -f conf$$.dir/conf$$.file
13662 mkdir conf$$.dir 2>/dev/null
13664 if (echo >conf$$.file) 2>/dev/null; then
13665 if ln -s conf$$.file conf$$ 2>/dev/null; then
13667 # ... but there are two gotchas:
13668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13670 # In both cases, we have to default to `cp -pR'.
13671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13673 elif ln conf$$.file conf$$ 2>/dev/null; then
13681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13682 rmdir conf$$.dir 2>/dev/null
13687 # Create "$as_dir" as a directory, including parents if necessary.
13692 -*) as_dir=./$as_dir;;
13694 test -d "$as_dir" || eval $as_mkdir_p || {
13698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13699 *) as_qdir=$as_dir;;
13701 as_dirs="'$as_qdir' $as_dirs"
13702 as_dir=`$as_dirname -- "$as_dir" ||
13703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13704 X"$as_dir" : 'X\(//\)[^/]' \| \
13705 X"$as_dir" : 'X\(//\)$' \| \
13706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13707 $as_echo X"$as_dir" |
13708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712 /^X\(\/\/\)[^/].*/{
13725 test -d "$as_dir" && break
13727 test -z "$as_dirs" || eval "mkdir $as_dirs"
13728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13732 if mkdir -p . 2>/dev/null; then
13733 as_mkdir_p='mkdir -p "$as_dir"'
13735 test -d ./-p && rmdir ./-p
13740 # as_fn_executable_p FILE
13741 # -----------------------
13742 # Test if FILE is an executable regular file.
13743 as_fn_executable_p ()
13745 test -f "$1" && test -x "$1"
13746 } # as_fn_executable_p
13747 as_test_x='test -x'
13748 as_executable_p=as_fn_executable_p
13750 # Sed expression to map a string onto a valid CPP name.
13751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13753 # Sed expression to map a string onto a valid variable name.
13754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13758 ## ----------------------------------- ##
13759 ## Main body of $CONFIG_STATUS script. ##
13760 ## ----------------------------------- ##
13762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765 # Save the log message, to keep $0 and so on meaningful, and to
13766 # report actual input values of CONFIG_FILES etc. instead of their
13767 # values after options handling.
13769 This file was extended by libwebp $as_me 0.3.0, which was
13770 generated by GNU Autoconf 2.69. Invocation command line was
13772 CONFIG_FILES = $CONFIG_FILES
13773 CONFIG_HEADERS = $CONFIG_HEADERS
13774 CONFIG_LINKS = $CONFIG_LINKS
13775 CONFIG_COMMANDS = $CONFIG_COMMANDS
13778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13783 case $ac_config_files in *"
13784 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13787 case $ac_config_headers in *"
13788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 # Files that config.status was made for.
13794 config_files="$ac_config_files"
13795 config_headers="$ac_config_headers"
13796 config_commands="$ac_config_commands"
13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13802 \`$as_me' instantiates files and other configuration actions
13803 from templates according to the current configuration. Unless the files
13804 and actions are specified as TAGs, all are instantiated by default.
13806 Usage: $0 [OPTION]... [TAG]...
13808 -h, --help print this help, then exit
13809 -V, --version print version number and configuration settings, then exit
13810 --config print configuration, then exit
13811 -q, --quiet, --silent
13812 do not print progress messages
13813 -d, --debug don't remove temporary files
13814 --recheck update $as_me by reconfiguring in the same conditions
13815 --file=FILE[:TEMPLATE]
13816 instantiate the configuration file FILE
13817 --header=FILE[:TEMPLATE]
13818 instantiate the configuration header FILE
13820 Configuration files:
13823 Configuration headers:
13826 Configuration commands:
13829 Report bugs to <http://code.google.com/p/webp/issues>.
13830 libwebp home page: <http://developers.google.com/speed/webp>."
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13836 libwebp config.status 0.3.0
13837 configured by $0, generated by GNU Autoconf 2.69,
13838 with options \\"\$ac_cs_config\\"
13840 Copyright (C) 2012 Free Software Foundation, Inc.
13841 This config.status script is free software; the Free Software Foundation
13842 gives unlimited permission to copy, distribute and modify it."
13849 test -n "\$AWK" || AWK=awk
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 # The default lists apply if the user does not specify any file.
13859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13876 # Handling of the options.
13877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13880 $as_echo "$ac_cs_version"; exit ;;
13881 --config | --confi | --conf | --con | --co | --c )
13882 $as_echo "$ac_cs_config"; exit ;;
13883 --debug | --debu | --deb | --de | --d | -d )
13885 --file | --fil | --fi | --f )
13888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13889 '') as_fn_error $? "missing file argument" ;;
13891 as_fn_append CONFIG_FILES " '$ac_optarg'"
13892 ac_need_defaults=false;;
13893 --header | --heade | --head | --hea )
13896 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13898 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13899 ac_need_defaults=false;;
13901 # Conflict between --help and --header
13902 as_fn_error $? "ambiguous option: \`$1'
13903 Try \`$0 --help' for more information.";;
13904 --help | --hel | -h )
13905 $as_echo "$ac_cs_usage"; exit ;;
13906 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13907 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13910 # This is an error.
13911 -*) as_fn_error $? "unrecognized option: \`$1'
13912 Try \`$0 --help' for more information." ;;
13914 *) as_fn_append ac_config_targets " $1"
13915 ac_need_defaults=false ;;
13921 ac_configure_extra_args=
13923 if $ac_cs_silent; then
13925 ac_configure_extra_args="$ac_configure_extra_args --silent"
13929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930 if \$ac_cs_recheck; then
13931 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13933 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13934 CONFIG_SHELL='$SHELL'
13935 export CONFIG_SHELL
13940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13944 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13945 ## Running $as_me. ##
13951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13958 # The HP-UX ksh and POSIX shell print the target directory to stdout
13959 # if CDPATH is set.
13960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13962 sed_quote_subst='$sed_quote_subst'
13963 double_quote_subst='$double_quote_subst'
13964 delay_variable_subst='$delay_variable_subst'
13965 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13966 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13967 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13968 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13969 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13970 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13973 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13974 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13975 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13976 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13977 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13978 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13979 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13980 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13981 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13982 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13983 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13984 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13985 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13986 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13987 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13988 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13989 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13990 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13991 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13992 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13993 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13994 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13995 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13996 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13997 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13999 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14000 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14001 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14002 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14003 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14004 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14005 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14006 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14007 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14008 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14009 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14010 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14011 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14012 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14013 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14014 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14015 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14016 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14017 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14018 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14020 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14021 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"`'
14022 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14023 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14024 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14025 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14026 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14027 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14028 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14029 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14030 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14031 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14032 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14033 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14034 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14035 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14036 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14037 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14038 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14039 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14040 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14041 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14042 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14043 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14044 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14045 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14046 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14047 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14048 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14049 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14050 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14051 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14052 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14053 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14054 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14055 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14056 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14057 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14058 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14059 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14060 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14061 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14062 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14063 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14064 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14065 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14066 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14067 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14068 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14069 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14070 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14071 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14072 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14073 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14074 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14075 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14076 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14077 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14078 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14079 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14080 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14081 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14082 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14083 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14084 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14085 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14086 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14087 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14088 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14089 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14090 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14091 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14092 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14093 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14094 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14097 LTCFLAGS='$LTCFLAGS'
14098 compiler='$compiler_DEFAULT'
14100 # A function that is used when there is no print builtin or printf.
14101 func_fallback_echo ()
14103 eval 'cat <<_LTECHO_EOF
14108 # Quote evaled strings.
14123 deplibs_check_method \
14128 sharedlib_from_linklib_cmd \
14131 archiver_list_spec \
14137 lt_cv_sys_global_symbol_pipe \
14138 lt_cv_sys_global_symbol_to_cdecl \
14139 lt_cv_sys_global_symbol_to_c_name_address \
14140 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14141 nm_file_list_spec \
14142 lt_prog_compiler_no_builtin_flag \
14143 lt_prog_compiler_pic \
14144 lt_prog_compiler_wl \
14145 lt_prog_compiler_static \
14146 lt_cv_prog_compiler_c_o \
14155 export_dynamic_flag_spec \
14156 whole_archive_flag_spec \
14157 compiler_needs_object \
14159 allow_undefined_flag \
14160 no_undefined_flag \
14161 hardcode_libdir_flag_spec \
14162 hardcode_libdir_separator \
14166 variables_saved_for_relink \
14168 library_names_spec \
14170 install_override_mode \
14174 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14175 *[\\\\\\\`\\"\\\$]*)
14176 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14179 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14184 # Double-quote double-evaled strings.
14185 for var in reload_cmds \
14186 old_postinstall_cmds \
14187 old_postuninstall_cmds \
14189 extract_expsyms_cmds \
14190 old_archive_from_new_cmds \
14191 old_archive_from_expsyms_cmds \
14193 archive_expsym_cmds \
14195 module_expsym_cmds \
14196 export_symbols_cmds \
14200 postuninstall_cmds \
14202 sys_lib_search_path_spec \
14203 sys_lib_dlsearch_path_spec; do
14204 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14205 *[\\\\\\\`\\"\\\$]*)
14206 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14209 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14214 ac_aux_dir='$ac_aux_dir'
14215 xsi_shell='$xsi_shell'
14216 lt_shell_append='$lt_shell_append'
14218 # See if we are running on zsh, and set the options which allow our
14219 # commands through without removal of \ escapes INIT.
14220 if test -n "\${ZSH_VERSION+set}" ; then
14221 setopt NO_GLOB_SUBST
14227 TIMESTAMP='$TIMESTAMP'
14236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14238 # Handling of arguments.
14239 for ac_config_target in $ac_config_targets
14241 case $ac_config_target in
14242 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14243 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14244 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14245 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14246 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14247 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14248 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14249 "src/dec/Makefile") CONFIG_FILES="$CONFIG_FILES src/dec/Makefile" ;;
14250 "src/enc/Makefile") CONFIG_FILES="$CONFIG_FILES src/enc/Makefile" ;;
14251 "src/dsp/Makefile") CONFIG_FILES="$CONFIG_FILES src/dsp/Makefile" ;;
14252 "src/demux/Makefile") CONFIG_FILES="$CONFIG_FILES src/demux/Makefile" ;;
14253 "src/mux/Makefile") CONFIG_FILES="$CONFIG_FILES src/mux/Makefile" ;;
14254 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
14255 "src/libwebp.pc") CONFIG_FILES="$CONFIG_FILES src/libwebp.pc" ;;
14256 "src/libwebpdecoder.pc") CONFIG_FILES="$CONFIG_FILES src/libwebpdecoder.pc" ;;
14257 "src/demux/libwebpdemux.pc") CONFIG_FILES="$CONFIG_FILES src/demux/libwebpdemux.pc" ;;
14258 "src/mux/libwebpmux.pc") CONFIG_FILES="$CONFIG_FILES src/mux/libwebpmux.pc" ;;
14260 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14265 # If the user did not use the arguments to specify the items to instantiate,
14266 # then the envvar interface is used. Set only those that are not.
14267 # We use the long form for the default assignment because of an extremely
14268 # bizarre bug on SunOS 4.1.3.
14269 if $ac_need_defaults; then
14270 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14271 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14272 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14275 # Have a temporary directory for convenience. Make it in the build tree
14276 # simply because there is no reason against having it here, and in addition,
14277 # creating and moving files from /tmp can sometimes cause problems.
14278 # Hook for its removal unless debugging.
14279 # Note that there is a small window in which the directory will not be cleaned:
14280 # after its creation but before its name has been assigned to `$tmp'.
14284 trap 'exit_status=$?
14285 : "${ac_tmp:=$tmp}"
14286 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14288 trap 'as_fn_exit 1' 1 2 13 15
14290 # Create a (secure) tmp directory for tmp files.
14293 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14297 tmp=./conf$$-$RANDOM
14298 (umask 077 && mkdir "$tmp")
14299 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14302 # Set up the scripts for CONFIG_FILES section.
14303 # No need to generate them if there are no CONFIG_FILES.
14304 # This happens for instance with `./config.status config.h'.
14305 if test -n "$CONFIG_FILES"; then
14308 ac_cr=`echo X | tr X '\015'`
14309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14310 # But we know of no other shell where ac_cr would be empty at this
14311 # point, so we can use a bashism as a fallback.
14312 if test "x$ac_cr" = x; then
14313 eval ac_cr=\$\'\\r\'
14315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14319 ac_cs_awk_cr=$ac_cr
14322 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14327 echo "cat >conf$$subs.awk <<_ACEOF" &&
14328 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14330 } >conf$$subs.sh ||
14331 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14334 for ac_last_try in false false false false false :; do
14335 . ./conf$$subs.sh ||
14336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14338 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14339 if test $ac_delim_n = $ac_delim_num; then
14341 elif $ac_last_try; then
14342 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14347 rm -f conf$$subs.sh
14349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14354 s/^/S["/; s/!.*/"]=/
14364 s/\(.\{148\}\)..*/\1/
14366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14378 s/\(.\{148\}\)..*/\1/
14380 s/["\\]/\\&/g; s/^/"/; s/$/"/
14384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14389 ' <conf$$subs.awk | sed '
14394 ' >>$CONFIG_STATUS || ac_write_fail=1
14395 rm -f conf$$subs.awk
14396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14398 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14399 for (key in S) S_is_set[key] = 1
14405 nfields = split(line, field, "@")
14407 len = length(field[1])
14408 for (i = 2; i < nfields; i++) {
14410 keylen = length(key)
14411 if (S_is_set[key]) {
14413 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14414 len += length(value) + length(field[++i])
14425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14427 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14430 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14431 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14434 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14435 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14436 # trailing colons and then remove the whole line if VPATH becomes empty
14437 # (actually we leave an empty line to preserve line numbers).
14438 if test "x$srcdir" = x.; then
14439 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14458 fi # test -n "$CONFIG_FILES"
14460 # Set up the scripts for CONFIG_HEADERS section.
14461 # No need to generate them if there are no CONFIG_HEADERS.
14462 # This happens for instance with `./config.status Makefile'.
14463 if test -n "$CONFIG_HEADERS"; then
14464 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14468 # Transform confdefs.h into an awk script `defines.awk', embedded as
14469 # here-document in config.status, that substitutes the proper values into
14470 # config.h.in to produce config.h.
14472 # Create a delimiter string that does not exist in confdefs.h, to ease
14473 # handling of long lines.
14475 for ac_last_try in false false :; do
14476 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14477 if test -z "$ac_tt"; then
14479 elif $ac_last_try; then
14480 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14486 # For the awk script, D is an array of macro values keyed by name,
14487 # likewise P contains macro parameters if any. Preserve backslash
14488 # newline sequences.
14490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14492 s/.\{148\}/&'"$ac_delim"'/g
14495 s/^[ ]*#[ ]*define[ ][ ]*/ /
14502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14504 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14508 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14509 D["\1"]=" \3\\\\\\n"\\/p
14511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14516 s/.\{148\}/&'"$ac_delim"'/g
14521 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14524 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14526 ' <confdefs.h | sed '
14527 s/'"$ac_delim"'/"\\\
14528 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14531 for (key in D) D_is_set[key] = 1
14534 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14536 split(line, arg, " ")
14537 if (arg[1] == "#") {
14541 defundef = substr(arg[1], 2)
14544 split(mac1, mac2, "(") #)
14546 prefix = substr(line, 1, index(line, defundef) - 1)
14547 if (D_is_set[macro]) {
14548 # Preserve the white space surrounding the "#".
14549 print prefix "define", macro P[macro] D[macro]
14552 # Replace #undef with comments. This is necessary, for example,
14553 # in the case of _POSIX_SOURCE, which is predefined and required
14554 # on some systems where configure will not decide to define it.
14555 if (defundef == "undef") {
14556 print "/*", prefix defundef, macro, "*/"
14564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14565 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14566 fi # test -n "$CONFIG_HEADERS"
14569 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14574 :[FHLC]) ac_mode=$ac_tag; continue;;
14576 case $ac_mode$ac_tag in
14578 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14579 :[FH]-) ac_tag=-:-;;
14580 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14597 -) ac_f="$ac_tmp/stdin";;
14598 *) # Look for the file first in the build tree, then in the source tree
14599 # (if the path is not absolute). The absolute path cannot be DOS-style,
14600 # because $ac_f cannot contain `:'.
14604 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14606 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14608 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14609 as_fn_append ac_file_inputs " '$ac_f'"
14612 # Let's still pretend it is `configure' which instantiates (i.e., don't
14613 # use $as_me), people would be surprised to read:
14614 # /* config.h. Generated by config.status. */
14615 configure_input='Generated from '`
14616 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14618 if test x"$ac_file" != x-; then
14619 configure_input="$ac_file. $configure_input"
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14621 $as_echo "$as_me: creating $ac_file" >&6;}
14623 # Neutralize special characters interpreted by sed in replacement strings.
14624 case $configure_input in #(
14625 *\&* | *\|* | *\\* )
14626 ac_sed_conf_input=`$as_echo "$configure_input" |
14627 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14628 *) ac_sed_conf_input=$configure_input;;
14632 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14638 ac_dir=`$as_dirname -- "$ac_file" ||
14639 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14640 X"$ac_file" : 'X\(//\)[^/]' \| \
14641 X"$ac_file" : 'X\(//\)$' \| \
14642 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14643 $as_echo X"$ac_file" |
14644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14648 /^X\(\/\/\)[^/].*/{
14661 as_dir="$ac_dir"; as_fn_mkdir_p
14665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14668 # A ".." for each directory in $ac_dir_suffix.
14669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14670 case $ac_top_builddir_sub in
14671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14675 ac_abs_top_builddir=$ac_pwd
14676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14677 # for backward compatibility:
14678 ac_top_builddir=$ac_top_build_prefix
14681 .) # We are building in place.
14683 ac_top_srcdir=$ac_top_builddir_sub
14684 ac_abs_top_srcdir=$ac_pwd ;;
14685 [\\/]* | ?:[\\/]* ) # Absolute name.
14686 ac_srcdir=$srcdir$ac_dir_suffix;
14687 ac_top_srcdir=$srcdir
14688 ac_abs_top_srcdir=$srcdir ;;
14689 *) # Relative name.
14690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14691 ac_top_srcdir=$ac_top_build_prefix$srcdir
14692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14705 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14707 ac_MKDIR_P=$MKDIR_P
14709 [\\/$]* | ?:[\\/]* ) ;;
14710 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14715 # If the template does not know about datarootdir, expand it.
14716 # FIXME: This hack should be removed a few years after 2.60.
14717 ac_datarootdir_hack=; ac_datarootdir_seen=
14728 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14729 *datarootdir*) ac_datarootdir_seen=yes;;
14730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14732 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14735 ac_datarootdir_hack='
14736 s&@datadir@&$datadir&g
14737 s&@docdir@&$docdir&g
14738 s&@infodir@&$infodir&g
14739 s&@localedir@&$localedir&g
14740 s&@mandir@&$mandir&g
14741 s&\\\${datarootdir}&$datarootdir&g' ;;
14745 # Neutralize VPATH when `$srcdir' = `.'.
14746 # Shell code in configure.ac might set extrasub.
14747 # FIXME: do we really want to maintain this feature?
14748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14749 ac_sed_extra="$ac_vpsub
14752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14755 s|@configure_input@|$ac_sed_conf_input|;t t
14756 s&@top_builddir@&$ac_top_builddir_sub&;t t
14757 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14758 s&@srcdir@&$ac_srcdir&;t t
14759 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14760 s&@top_srcdir@&$ac_top_srcdir&;t t
14761 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14762 s&@builddir@&$ac_builddir&;t t
14763 s&@abs_builddir@&$ac_abs_builddir&;t t
14764 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14765 s&@INSTALL@&$ac_INSTALL&;t t
14766 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14767 $ac_datarootdir_hack
14769 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14770 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14773 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14774 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14775 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14777 which seems to be undefined. Please make sure it is defined" >&5
14778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14779 which seems to be undefined. Please make sure it is defined" >&2;}
14781 rm -f "$ac_tmp/stdin"
14783 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14784 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14792 if test x"$ac_file" != x-; then
14794 $as_echo "/* $configure_input */" \
14795 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14796 } >"$ac_tmp/config.h" \
14797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14798 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14803 mv "$ac_tmp/config.h" "$ac_file" \
14804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14807 $as_echo "/* $configure_input */" \
14808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14809 || as_fn_error $? "could not create -" "$LINENO" 5
14811 # Compute "$ac_file"'s index in $config_headers.
14814 for _am_header in $config_headers :; do
14815 case $_am_header in
14816 $_am_arg | $_am_arg:* )
14819 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14822 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14823 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824 X"$_am_arg" : 'X\(//\)[^/]' \| \
14825 X"$_am_arg" : 'X\(//\)$' \| \
14826 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14827 $as_echo X"$_am_arg" |
14828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14832 /^X\(\/\/\)[^/].*/{
14844 s/.*/./; q'`/stamp-h$_am_stamp_count
14847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14848 $as_echo "$as_me: executing $ac_file commands" >&6;}
14853 case $ac_file$ac_mode in
14854 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14855 # Older Autoconf quotes --file arguments for eval, but not when files
14856 # are listed without --file. Let's play safe and only enable the eval
14857 # if we detect the quoting.
14858 case $CONFIG_FILES in
14859 *\'*) eval set x "$CONFIG_FILES" ;;
14860 *) set x $CONFIG_FILES ;;
14865 # Strip MF so we end up with the name of the file.
14866 mf=`echo "$mf" | sed -e 's/:.*$//'`
14867 # Check whether this is an Automake generated Makefile or not.
14868 # We used to match only the files named 'Makefile.in', but
14869 # some people rename them; so instead we look at the file content.
14870 # Grep'ing the first line is not enough: some people post-process
14871 # each Makefile.in and add a new line on top of each file to say so.
14872 # Grep'ing the whole file is not good either: AIX grep has a line
14873 # limit of 2048, but all sed's we know have understand at least 4000.
14874 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14875 dirpart=`$as_dirname -- "$mf" ||
14876 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14877 X"$mf" : 'X\(//\)[^/]' \| \
14878 X"$mf" : 'X\(//\)$' \| \
14879 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14885 /^X\(\/\/\)[^/].*/{
14901 # Extract the definition of DEPDIR, am__include, and am__quote
14902 # from the Makefile without running 'make'.
14903 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14904 test -z "$DEPDIR" && continue
14905 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14906 test -z "am__include" && continue
14907 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14908 # Find all dependency output files, they are included files with
14909 # $(DEPDIR) in their names. We invoke sed twice because it is the
14910 # simplest approach to changing $(DEPDIR) to its actual value in the
14912 for file in `sed -n "
14913 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14914 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14915 # Make sure the directory exists.
14916 test -f "$dirpart/$file" && continue
14917 fdir=`$as_dirname -- "$file" ||
14918 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14919 X"$file" : 'X\(//\)[^/]' \| \
14920 X"$file" : 'X\(//\)$' \| \
14921 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14922 $as_echo X"$file" |
14923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14927 /^X\(\/\/\)[^/].*/{
14940 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14941 # echo "creating $dirpart/$file"
14942 echo '# dummy' > "$dirpart/$file"
14949 # See if we are running on zsh, and set the options which allow our
14950 # commands through without removal of \ escapes.
14951 if test -n "${ZSH_VERSION+set}" ; then
14952 setopt NO_GLOB_SUBST
14955 cfgfile="${ofile}T"
14956 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14959 cat <<_LT_EOF >> "$cfgfile"
14962 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14963 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14965 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14967 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14968 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14970 # Written by Gordon Matzigkeit, 1996
14972 # This file is part of GNU Libtool.
14974 # GNU Libtool is free software; you can redistribute it and/or
14975 # modify it under the terms of the GNU General Public License as
14976 # published by the Free Software Foundation; either version 2 of
14977 # the License, or (at your option) any later version.
14979 # As a special exception to the GNU General Public License,
14980 # if you distribute this file as part of a program or library that
14981 # is built using GNU Libtool, you may include this file under the
14982 # same distribution terms that you use for the rest of that program.
14984 # GNU Libtool is distributed in the hope that it will be useful,
14985 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14986 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14987 # GNU General Public License for more details.
14989 # You should have received a copy of the GNU General Public License
14990 # along with GNU Libtool; see the file COPYING. If not, a copy
14991 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14992 # obtained by writing to the Free Software Foundation, Inc.,
14993 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14996 # The names of the tagged configurations supported by this script.
14999 # ### BEGIN LIBTOOL CONFIG
15001 # Which release of libtool.m4 was used?
15002 macro_version=$macro_version
15003 macro_revision=$macro_revision
15005 # Whether or not to build shared libraries.
15006 build_libtool_libs=$enable_shared
15008 # Whether or not to build static libraries.
15009 build_old_libs=$enable_static
15011 # What type of objects to build.
15014 # Whether or not to optimize for fast installation.
15015 fast_install=$enable_fast_install
15017 # Shell to use when invoking shell scripts.
15020 # An echo program that protects backslashes.
15023 # The PATH separator for the build system.
15024 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15027 host_alias=$host_alias
15031 # The build system.
15032 build_alias=$build_alias
15036 # A sed program that does not truncate output.
15039 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15040 Xsed="\$SED -e 1s/^X//"
15042 # A grep program that handles long lines.
15048 # A literal string matcher.
15051 # A BSD- or MS-compatible name lister.
15054 # Whether we need soft or hard links.
15057 # What is the maximum length of a command?
15058 max_cmd_len=$max_cmd_len
15060 # Object file suffix (normally "o").
15063 # Executable file suffix (normally "").
15066 # whether the shell understands "unset".
15069 # turn spaces into newlines.
15072 # turn newlines into spaces.
15075 # convert \$build file names to \$host format.
15076 to_host_file_cmd=$lt_cv_to_host_file_cmd
15078 # convert \$build files to toolchain format.
15079 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15081 # An object symbol dumper.
15082 OBJDUMP=$lt_OBJDUMP
15084 # Method to check whether dependent libraries are shared objects.
15085 deplibs_check_method=$lt_deplibs_check_method
15087 # Command to use when deplibs_check_method = "file_magic".
15088 file_magic_cmd=$lt_file_magic_cmd
15090 # How to find potential files when deplibs_check_method = "file_magic".
15091 file_magic_glob=$lt_file_magic_glob
15093 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15094 want_nocaseglob=$lt_want_nocaseglob
15096 # DLL creation program.
15097 DLLTOOL=$lt_DLLTOOL
15099 # Command to associate shared and link libraries.
15100 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15105 # Flags to create an archive.
15106 AR_FLAGS=$lt_AR_FLAGS
15108 # How to feed a file listing to the archiver.
15109 archiver_list_spec=$lt_archiver_list_spec
15111 # A symbol stripping program.
15114 # Commands used to install an old-style archive.
15116 old_postinstall_cmds=$lt_old_postinstall_cmds
15117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15119 # Whether to use a lock for old archive extraction.
15120 lock_old_archive_extraction=$lock_old_archive_extraction
15125 # LTCC compiler flags.
15126 LTCFLAGS=$lt_CFLAGS
15128 # Take the output of nm and produce a listing of raw symbols and C names.
15129 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15131 # Transform the output of nm in a proper C declaration.
15132 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15134 # Transform the output of nm in a C name address pair.
15135 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15137 # Transform the output of nm in a C name address pair when lib prefix is needed.
15138 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15140 # Specify filename containing input files for \$NM.
15141 nm_file_list_spec=$lt_nm_file_list_spec
15143 # The root where to search for dependent libraries,and in which our libraries should be installed.
15144 lt_sysroot=$lt_sysroot
15146 # The name of the directory that contains temporary libtool files.
15149 # Used to examine libraries when file_magic_cmd begins with "file".
15150 MAGIC_CMD=$MAGIC_CMD
15152 # Must we lock files when doing compilation?
15153 need_locks=$lt_need_locks
15156 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15158 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15159 DSYMUTIL=$lt_DSYMUTIL
15161 # Tool to change global to local symbols on Mac OS X.
15164 # Tool to manipulate fat objects and archives on Mac OS X.
15167 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15170 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15171 OTOOL64=$lt_OTOOL64
15173 # Old archive suffix (normally "a").
15176 # Shared library suffix (normally ".so").
15177 shrext_cmds=$lt_shrext_cmds
15179 # The commands to extract the exported symbol list from a shared archive.
15180 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15182 # Variables whose values should be saved in libtool wrapper scripts and
15183 # restored at link time.
15184 variables_saved_for_relink=$lt_variables_saved_for_relink
15186 # Do we need the "lib" prefix for modules?
15187 need_lib_prefix=$need_lib_prefix
15189 # Do we need a version for libraries?
15190 need_version=$need_version
15192 # Library versioning type.
15193 version_type=$version_type
15195 # Shared library runtime path variable.
15196 runpath_var=$runpath_var
15198 # Shared library path variable.
15199 shlibpath_var=$shlibpath_var
15201 # Is shlibpath searched before the hard-coded library search path?
15202 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15204 # Format of library name prefix.
15205 libname_spec=$lt_libname_spec
15207 # List of archive names. First name is the real one, the rest are links.
15208 # The last name is the one that the linker finds with -lNAME
15209 library_names_spec=$lt_library_names_spec
15211 # The coded name of the library, if different from the real name.
15212 soname_spec=$lt_soname_spec
15214 # Permission mode override for installation of shared libraries.
15215 install_override_mode=$lt_install_override_mode
15217 # Command to use after installation of a shared archive.
15218 postinstall_cmds=$lt_postinstall_cmds
15220 # Command to use after uninstallation of a shared archive.
15221 postuninstall_cmds=$lt_postuninstall_cmds
15223 # Commands used to finish a libtool library installation in a directory.
15224 finish_cmds=$lt_finish_cmds
15226 # As "finish_cmds", except a single script fragment to be evaled but
15228 finish_eval=$lt_finish_eval
15230 # Whether we should hardcode library paths into libraries.
15231 hardcode_into_libs=$hardcode_into_libs
15233 # Compile-time system search path for libraries.
15234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15236 # Run-time system search path for libraries.
15237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15239 # Whether dlopen is supported.
15240 dlopen_support=$enable_dlopen
15242 # Whether dlopen of programs is supported.
15243 dlopen_self=$enable_dlopen_self
15245 # Whether dlopen of statically linked programs is supported.
15246 dlopen_self_static=$enable_dlopen_self_static
15248 # Commands to strip libraries.
15249 old_striplib=$lt_old_striplib
15250 striplib=$lt_striplib
15253 # The linker used to build libraries.
15256 # How to create reloadable object files.
15257 reload_flag=$lt_reload_flag
15258 reload_cmds=$lt_reload_cmds
15260 # Commands used to build an old-style archive.
15261 old_archive_cmds=$lt_old_archive_cmds
15263 # A language specific compiler.
15266 # Is the compiler the GNU compiler?
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15272 # Additional compiler flags for building library objects.
15273 pic_flag=$lt_lt_prog_compiler_pic
15275 # How to pass a linker flag through the compiler.
15276 wl=$lt_lt_prog_compiler_wl
15278 # Compiler flag to prevent dynamic linking.
15279 link_static_flag=$lt_lt_prog_compiler_static
15281 # Does compiler simultaneously support -c and -o options?
15282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15284 # Whether or not to add -lc for building shared libraries.
15285 build_libtool_need_lc=$archive_cmds_need_lc
15287 # Whether or not to disallow shared libs when runtime libs are static.
15288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15290 # Compiler flag to allow reflexive dlopens.
15291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15293 # Compiler flag to generate shared objects directly from archives.
15294 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15296 # Whether the compiler copes with passing no objects directly.
15297 compiler_needs_object=$lt_compiler_needs_object
15299 # Create an old-style archive from a shared archive.
15300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15302 # Create a temporary old-style archive to link instead of a shared archive.
15303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15305 # Commands used to build a shared archive.
15306 archive_cmds=$lt_archive_cmds
15307 archive_expsym_cmds=$lt_archive_expsym_cmds
15309 # Commands used to build a loadable module if different from building
15310 # a shared archive.
15311 module_cmds=$lt_module_cmds
15312 module_expsym_cmds=$lt_module_expsym_cmds
15314 # Whether we are building with GNU ld or not.
15315 with_gnu_ld=$lt_with_gnu_ld
15317 # Flag that allows shared libraries with undefined symbols to be built.
15318 allow_undefined_flag=$lt_allow_undefined_flag
15320 # Flag that enforces no undefined symbols.
15321 no_undefined_flag=$lt_no_undefined_flag
15323 # Flag to hardcode \$libdir into a binary during linking.
15324 # This must work even if \$libdir does not exist
15325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15327 # Whether we need a single "-rpath" flag with a separated argument.
15328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15331 # DIR into the resulting binary.
15332 hardcode_direct=$hardcode_direct
15334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15335 # DIR into the resulting binary and the resulting library dependency is
15336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15337 # library is relocated.
15338 hardcode_direct_absolute=$hardcode_direct_absolute
15340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15341 # into the resulting binary.
15342 hardcode_minus_L=$hardcode_minus_L
15344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15345 # into the resulting binary.
15346 hardcode_shlibpath_var=$hardcode_shlibpath_var
15348 # Set to "yes" if building a shared library automatically hardcodes DIR
15349 # into the library and all subsequent libraries and executables linked
15351 hardcode_automatic=$hardcode_automatic
15353 # Set to yes if linker adds runtime paths of dependent libraries
15354 # to runtime path list.
15355 inherit_rpath=$inherit_rpath
15357 # Whether libtool must link a program against all its dependency libraries.
15358 link_all_deplibs=$link_all_deplibs
15360 # Set to "yes" if exported symbols are required.
15361 always_export_symbols=$always_export_symbols
15363 # The commands to list exported symbols.
15364 export_symbols_cmds=$lt_export_symbols_cmds
15366 # Symbols that should not be listed in the preloaded symbols.
15367 exclude_expsyms=$lt_exclude_expsyms
15369 # Symbols that must always be exported.
15370 include_expsyms=$lt_include_expsyms
15372 # Commands necessary for linking programs (against libraries) with templates.
15373 prelink_cmds=$lt_prelink_cmds
15375 # Commands necessary for finishing linking programs.
15376 postlink_cmds=$lt_postlink_cmds
15378 # Specify filename containing input files.
15379 file_list_spec=$lt_file_list_spec
15381 # How to hardcode a shared library path into an executable.
15382 hardcode_action=$hardcode_action
15384 # ### END LIBTOOL CONFIG
15390 cat <<\_LT_EOF >> "$cfgfile"
15391 # AIX sometimes has problems with the GCC collect2 program. For some
15392 # reason, if we set the COLLECT_NAMES environment variable, the problems
15393 # vanish in a puff of smoke.
15394 if test "X${COLLECT_NAMES+set}" != Xset; then
15396 export COLLECT_NAMES
15403 ltmain="$ac_aux_dir/ltmain.sh"
15406 # We use sed instead of cat because bash on DJGPP gets confused if
15407 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15408 # text mode, it properly converts lines to CR/LF. This bash problem
15409 # is reportedly fixed, but why not run on old versions too?
15410 sed '$q' "$ltmain" >> "$cfgfile" \
15411 || (rm -f "$cfgfile"; exit 1)
15413 if test x"$xsi_shell" = xyes; then
15414 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15418 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15419 \ * ) func_dirname_result="${3}" ;;\
15421 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15422 && mv -f "$cfgfile.tmp" "$cfgfile" \
15423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15424 test 0 -eq $? || _lt_function_replace_fail=:
15427 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15430 \ func_basename_result="${1##*/}"\
15431 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15432 && mv -f "$cfgfile.tmp" "$cfgfile" \
15433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15434 test 0 -eq $? || _lt_function_replace_fail=:
15437 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15438 func_dirname_and_basename ()\
15441 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15442 \ * ) func_dirname_result="${3}" ;;\
15444 \ func_basename_result="${1##*/}"\
15445 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15446 && mv -f "$cfgfile.tmp" "$cfgfile" \
15447 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15448 test 0 -eq $? || _lt_function_replace_fail=:
15451 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15454 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15455 \ # positional parameters, so assign one to ordinary parameter first.\
15456 \ func_stripname_result=${3}\
15457 \ func_stripname_result=${func_stripname_result#"${1}"}\
15458 \ func_stripname_result=${func_stripname_result%"${2}"}\
15459 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15460 && mv -f "$cfgfile.tmp" "$cfgfile" \
15461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15462 test 0 -eq $? || _lt_function_replace_fail=:
15465 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15466 func_split_long_opt ()\
15468 \ func_split_long_opt_name=${1%%=*}\
15469 \ func_split_long_opt_arg=${1#*=}\
15470 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15471 && mv -f "$cfgfile.tmp" "$cfgfile" \
15472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15473 test 0 -eq $? || _lt_function_replace_fail=:
15476 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15477 func_split_short_opt ()\
15479 \ func_split_short_opt_arg=${1#??}\
15480 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15481 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15482 && mv -f "$cfgfile.tmp" "$cfgfile" \
15483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15484 test 0 -eq $? || _lt_function_replace_fail=:
15487 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15491 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15492 \ *) func_lo2o_result=${1} ;;\
15494 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15495 && mv -f "$cfgfile.tmp" "$cfgfile" \
15496 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15497 test 0 -eq $? || _lt_function_replace_fail=:
15500 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15503 func_xform_result=${1%.*}.lo\
15504 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15505 && mv -f "$cfgfile.tmp" "$cfgfile" \
15506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15507 test 0 -eq $? || _lt_function_replace_fail=:
15510 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15513 func_arith_result=$(( $* ))\
15514 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15515 && mv -f "$cfgfile.tmp" "$cfgfile" \
15516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15517 test 0 -eq $? || _lt_function_replace_fail=:
15520 sed -e '/^func_len ()$/,/^} # func_len /c\
15523 func_len_result=${#1}\
15524 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15525 && mv -f "$cfgfile.tmp" "$cfgfile" \
15526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15527 test 0 -eq $? || _lt_function_replace_fail=:
15531 if test x"$lt_shell_append" = xyes; then
15532 sed -e '/^func_append ()$/,/^} # func_append /c\
15535 eval "${1}+=\\${2}"\
15536 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15537 && mv -f "$cfgfile.tmp" "$cfgfile" \
15538 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15539 test 0 -eq $? || _lt_function_replace_fail=:
15542 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15543 func_append_quoted ()\
15545 \ func_quote_for_eval "${2}"\
15546 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15547 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15548 && mv -f "$cfgfile.tmp" "$cfgfile" \
15549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15550 test 0 -eq $? || _lt_function_replace_fail=:
15553 # Save a `func_append' function call where possible by direct use of '+='
15554 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15555 && mv -f "$cfgfile.tmp" "$cfgfile" \
15556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15557 test 0 -eq $? || _lt_function_replace_fail=:
15559 # Save a `func_append' function call even when '+=' is not available
15560 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15561 && mv -f "$cfgfile.tmp" "$cfgfile" \
15562 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15563 test 0 -eq $? || _lt_function_replace_fail=:
15566 if test x"$_lt_function_replace_fail" = x":"; then
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15568 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15572 mv -f "$cfgfile" "$ofile" ||
15573 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15584 ac_clean_files=$ac_clean_files_save
15586 test $ac_write_fail = 0 ||
15587 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15590 # configure is writing to config.log, and then calls config.status.
15591 # config.status does its own redirection, appending to config.log.
15592 # Unfortunately, on DOS this fails, as config.log is still kept open
15593 # by configure, so config.status won't be able to write to it; its
15594 # output is simply discarded. So we exec the FD to /dev/null,
15595 # effectively closing config.log, so it can be properly (re)opened and
15596 # appended to by config.status. When coming back to configure, we
15597 # need to make the FD available again.
15598 if test "$no_create" != yes; then
15600 ac_config_status_args=
15601 test "$silent" = yes &&
15602 ac_config_status_args="$ac_config_status_args --quiet"
15604 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15606 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15607 # would make configure fail if this is the last instruction.
15608 $ac_cs_success || as_fn_exit 1
15610 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15612 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15616 { $as_echo "$as_me:${as_lineno-$LINENO}:
15617 WebP Configuration Summary
15618 --------------------------
15620 Shared libraries: ${enable_shared}
15621 Static libraries: ${enable_static}
15622 Threaded decode: ${enable_threading-no}
15624 libwebpdecoder: ${enable_libwebpdecoder-no}
15625 libwebpdemux: ${enable_libwebpdemux-no}
15626 libwebpmux: ${enable_libwebpmux-no}
15630 Input format support
15631 ====================
15632 JPEG : ${jpeg_support-no}
15633 PNG : ${png_support-no}
15634 TIFF : ${tiff_support-no}
15635 WIC : ${wic_support-no}
15637 Output format support
15638 =====================
15639 PNG : ${png_support-no}
15640 WIC : ${wic_support-no}
15641 gif2webp : ${build_gif2webp-no}
15642 webpmux : ${enable_libwebpmux-no}
15643 vwebp : ${build_vwebp-no}
15646 WebP Configuration Summary
15647 --------------------------
15649 Shared libraries: ${enable_shared}
15650 Static libraries: ${enable_static}
15651 Threaded decode: ${enable_threading-no}
15653 libwebpdecoder: ${enable_libwebpdecoder-no}
15654 libwebpdemux: ${enable_libwebpdemux-no}
15655 libwebpmux: ${enable_libwebpmux-no}
15659 Input format support
15660 ====================
15661 JPEG : ${jpeg_support-no}
15662 PNG : ${png_support-no}
15663 TIFF : ${tiff_support-no}
15664 WIC : ${wic_support-no}
15666 Output format support
15667 =====================
15668 PNG : ${png_support-no}
15669 WIC : ${wic_support-no}
15670 gif2webp : ${build_gif2webp-no}
15671 webpmux : ${enable_libwebpmux-no}
15672 vwebp : ${build_vwebp-no}