2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libzip 1.1.3.
5 # Report bugs to <libzip@nih.at>.
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 libzip@nih.at
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
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='libzip'
592 PACKAGE_TARNAME='libzip'
593 PACKAGE_VERSION='1.1.3'
594 PACKAGE_STRING='libzip 1.1.3'
595 PACKAGE_BUGREPORT='libzip@nih.at'
598 ac_unique_file="lib/zip_add.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
704 INSTALL_STRIP_PROGRAM
746 program_transform_name
759 enable_option_checking
761 enable_dependency_tracking
772 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 ac_unrecognized_opts=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=\$ac_optarg ;;
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1217 # Be sure to have absolute directory names.
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 elif test "x$build_alias" != "x$host_alias"; then
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error $? "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error $? "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures libzip 1.1.3 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking ...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libzip]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1389 if test -n "$ac_init_help"; then
1390 case $ac_init_help in
1391 short | recursive ) echo "Configuration of libzip 1.1.3:";;
1396 --disable-option-checking ignore unrecognized --enable/--with options
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-silent-rules less verbose build output (undo: "make V=1")
1400 --disable-silent-rules verbose build output (undo: "make V=0")
1401 --enable-dependency-tracking
1402 do not reject slow dependency extractors
1403 --disable-dependency-tracking
1404 speeds up one-time build
1405 --disable-largefile omit support for large files
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
1410 --disable-libtool-lock avoid locking (might break parallel builds)
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-zlib=PREFIX specify prefix for ZLIB library
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 Report bugs to <libzip@nih.at>.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1498 libzip configure 1.1.3
1499 generated by GNU Autoconf 2.69
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1548 } # ac_fn_c_try_compile
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_link
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1613 if ac_fn_c_try_compile "$LINENO"; then :
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 } # ac_fn_c_check_header_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1729 # include <limits.h>
1731 # include <assert.h>
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1758 if ac_fn_c_try_link "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 } # ac_fn_c_check_func
1773 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1774 # -------------------------------------------------------
1775 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1776 # the include files in INCLUDES and setting the cache variable VAR
1778 ac_fn_c_check_header_mongrel ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 if eval \${$3+:} false; then :
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1791 # Is the header compilable?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1793 $as_echo_n "checking $2 usability... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 ac_header_compiler=yes
1802 ac_header_compiler=no
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1806 $as_echo "$ac_header_compiler" >&6; }
1808 # Is the header present?
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1810 $as_echo_n "checking $2 presence... " >&6; }
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1815 if ac_fn_c_try_cpp "$LINENO"; then :
1816 ac_header_preproc=yes
1818 ac_header_preproc=no
1820 rm -f conftest.err conftest.i conftest.$ac_ext
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1822 $as_echo "$ac_header_preproc" >&6; }
1824 # So? What about this header?
1825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1828 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1834 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1836 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1838 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1840 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ( $as_echo "## ---------------------------- ##
1844 ## Report this to libzip@nih.at ##
1845 ## ---------------------------- ##"
1846 ) | sed "s/^/$as_me: WARNING: /" >&2
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1865 # -------------------------------------------
1866 # Tests whether TYPE exists after having included INCLUDES, setting cache
1867 # variable VAR accordingly.
1868 ac_fn_c_check_type ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1902 if ac_fn_c_try_compile "$LINENO"; then :
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 } # ac_fn_c_check_type
1918 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1919 # --------------------------------------------
1920 # Tries to find the compile-time value of EXPR in a program that includes
1921 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1923 ac_fn_c_compute_int ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if test "$cross_compiling" = yes; then
1927 # Depending upon the size, compute the lo and hi bounds.
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) >= 0)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"; then :
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1951 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953 return test_array [0];
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid; break
1962 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1963 if test $ac_lo -le $ac_mid; then
1967 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) < 0)];
1980 return test_array [0];
1986 if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1995 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1997 return test_array [0];
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_lo=$ac_mid; break
2006 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2007 if test $ac_mid -le $ac_hi; then
2011 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 # Binary search between lo and hi bounds.
2022 while test "x$ac_lo" != "x$ac_hi"; do
2023 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2030 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2032 return test_array [0];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2041 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2053 static long int longval () { return $2; }
2054 static unsigned long int ulongval () { return $2; }
2061 FILE *f = fopen ("conftest.val", "w");
2066 long int i = longval ();
2069 fprintf (f, "%ld", i);
2073 unsigned long int i = ulongval ();
2076 fprintf (f, "%lu", i);
2078 /* Do not output a trailing newline, as this causes \r\n confusion
2079 on some platforms. */
2080 return ferror (f) || fclose (f) != 0;
2086 if ac_fn_c_try_run "$LINENO"; then :
2087 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2092 conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_c_compute_int
2101 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2102 # ----------------------------------------------------
2103 # Tries to find if the field MEMBER exists in type AGGR, after including
2104 # INCLUDES, setting cache variable VAR accordingly.
2105 ac_fn_c_check_member ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2109 $as_echo_n "checking for $2.$3... " >&6; }
2110 if eval \${$4+:} false; then :
2111 $as_echo_n "(cached) " >&6
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2136 if (sizeof ac_aggr.$3)
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_member
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 ac_fn_c_check_decl ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 #ifndef $as_decl_name
2180 (void) $as_decl_use;
2182 (void) $as_decl_name;
2190 if ac_fn_c_try_compile "$LINENO"; then :
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 } # ac_fn_c_check_decl
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2207 It was created by libzip $as_me 1.1.3, which was
2208 generated by GNU Autoconf 2.69. Invocation command line was
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2268 ac_must_keep_next=false
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297 -* ) ac_must_keep_next=true ;;
2300 as_fn_append ac_configure_args " '$ac_arg'"
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2318 $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2322 # The following way of writing the cache mishandles newlines in values,
2324 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325 eval ac_val=\$$ac_var
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 _ | IFS | as_nl) ;; #(
2334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335 *) { eval $ac_var=; unset $ac_var;} ;;
2340 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341 *${as_nl}ac_space=\ *)
2343 "s/'\''/'\''\\\\'\'''\''/g;
2344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2354 $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2358 for ac_var in $ac_subst_vars
2360 eval ac_val=\$$ac_var
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 $as_echo "$ac_var='\''$ac_val'\''"
2368 if test -n "$ac_subst_files"; then
2369 $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2373 for ac_var in $ac_subst_files
2375 eval ac_val=\$$ac_var
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 $as_echo "$ac_var='\''$ac_val'\''"
2384 if test -s confdefs.h; then
2385 $as_echo "## ----------- ##
2392 test "$ac_signal" != 0 &&
2393 $as_echo "$as_me: caught signal $ac_signal"
2394 $as_echo "$as_me: exit $exit_status"
2396 rm -f core *.core core.conftest.* &&
2397 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400 for ac_signal in 1 2 13 15; do
2401 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2408 $as_echo "/* confdefs.h */" > confdefs.h
2410 # Predefined preprocessor variables.
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2441 if test -n "$CONFIG_SITE"; then
2442 # We do not want a PATH search for config.site.
2443 case $CONFIG_SITE in #((
2444 -*) ac_site_file1=./$CONFIG_SITE;;
2445 */*) ac_site_file1=$CONFIG_SITE;;
2446 *) ac_site_file1=./$CONFIG_SITE;;
2448 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461 sed 's/^/| /' "$ac_site_file" >&5
2463 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5; }
2470 if test -r "$cache_file"; then
2471 # Some versions of bash will fail to source /dev/null (special files
2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2477 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478 *) . "./$cache_file";;
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2487 # Check that the precious variables saved in the cache have kept the same
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492 eval ac_new_set=\$ac_env_${ac_var}_set
2493 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494 eval ac_new_val=\$ac_env_${ac_var}_value
2495 case $ac_old_set,$ac_new_set in
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499 ac_cache_corrupted=: ;;
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503 ac_cache_corrupted=: ;;
2506 if test "x$ac_old_val" != "x$ac_new_val"; then
2507 # differences in whitespace do not lead to failure.
2508 ac_old_val_w=`echo x $ac_old_val`
2509 ac_new_val_w=`echo x $ac_new_val`
2510 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513 ac_cache_corrupted=:
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517 eval $ac_var=\$ac_old_val
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2520 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2525 # Pass precious variables to config.status.
2526 if test "$ac_new_set" = set; then
2528 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529 *) ac_arg=$ac_var=$ac_new_val ;;
2531 case " $ac_configure_args " in
2532 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2533 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2537 if $ac_cache_corrupted; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556 ac_config_headers="$ac_config_headers config.h"
2559 am__api_version='1.15'
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659 rm -rf conftest.one conftest.two conftest.dir
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name. Accept space and tab only in the latter.
2690 *[\\\"\#\$\&\'\`$am_lf]*)
2691 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2694 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2695 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments. Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2705 for am_try in 1 2; do
2706 echo "timestamp, slept: $am_has_slept" > conftest.file
2707 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708 if test "$*" = "X"; then
2710 set X `ls -t "$srcdir/configure" conftest.file`
2712 if test "$*" != "X $srcdir/configure conftest.file" \
2713 && test "$*" != "X conftest.file $srcdir/configure"; then
2715 # If neither matched, then we have a broken ls. This can happen
2716 # if, for instance, CONFIG_SHELL is bash and it inherits a
2717 # broken ls alias from the environment. This has actually
2718 # happened. Such a system could not be considered "sane".
2719 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2720 alias in your environment" "$LINENO" 5
2722 if test "$2" = conftest.file || test $am_try -eq 2; then
2729 test "$2" = conftest.file
2735 as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2750 test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2763 if test x"${MISSING+set}" != xset; then
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --is-lightweight"; then
2773 am_missing_run="$MISSING "
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2780 if test x"${install_sh+set}" != xset; then
2783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2785 install_sh="\${SHELL} $am_aux_dir/install-sh"
2789 # Installed binaries are usually stripped using 'strip' when the user
2790 # run "make install-strip". However 'strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the 'STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$ac_cv_prog_STRIP"; then
2835 # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2871 if test "x$ac_ct_STRIP" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2883 STRIP="$ac_cv_prog_STRIP"
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if ${ac_cv_path_mkdir+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899 test -z "$as_dir" && as_dir=.
2900 for ac_prog in mkdir gmkdir; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2917 test -d ./--version && rmdir ./--version
2918 if test "${ac_cv_path_mkdir+set}" = set; then
2919 MKDIR_P="$ac_cv_path_mkdir -p"
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for MKDIR_P within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 MKDIR_P="$ac_install_sh -d"
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2931 for ac_prog in gawk mawk nawk awk
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$AWK"; then
2941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2970 test -n "$AWK" && break
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 cat >conftest.make <<\_ACEOF
2983 @echo '@@@%%%=$(MAKE)=@@@%%%'
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988 eval ac_cv_prog_make_${ac_make}_set=yes;;
2990 eval ac_cv_prog_make_${ac_make}_set=no;;
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 SET_MAKE="MAKE=${MAKE-make}"
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3011 rmdir .tst 2>/dev/null
3013 # Check whether --enable-silent-rules was given.
3014 if test "${enable_silent_rules+set}" = set; then :
3015 enableval=$enable_silent_rules;
3018 case $enable_silent_rules in # (((
3019 yes) AM_DEFAULT_VERBOSITY=0;;
3020 no) AM_DEFAULT_VERBOSITY=1;;
3021 *) AM_DEFAULT_VERBOSITY=1;;
3023 am_make=${MAKE-make}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3025 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3026 if ${am_cv_make_support_nested_variables+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if $as_echo 'TRUE=$(BAR$(V))
3035 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3036 am_cv_make_support_nested_variables=yes
3038 am_cv_make_support_nested_variables=no
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3042 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3043 if test $am_cv_make_support_nested_variables = yes; then
3045 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3047 AM_V=$AM_DEFAULT_VERBOSITY
3048 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3052 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3053 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3054 # is not polluted with repeated "-I."
3055 am__isrc=' -I$(srcdir)'
3056 # test to see if srcdir already configured
3057 if test -f $srcdir/config.status; then
3058 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3062 # test whether we have cygpath
3063 if test -z "$CYGPATH_W"; then
3064 if (cygpath --version) >/dev/null 2>/dev/null; then
3065 CYGPATH_W='cygpath -w'
3072 # Define the identity of the package.
3077 cat >>confdefs.h <<_ACEOF
3078 #define PACKAGE "$PACKAGE"
3082 cat >>confdefs.h <<_ACEOF
3083 #define VERSION "$VERSION"
3086 # Some tools Automake needs.
3088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3102 # For better backward compatibility. To be removed once Automake 1.9.x
3103 # dies out for good. For more background, see:
3104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3105 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3106 mkdir_p='$(MKDIR_P)'
3108 # We need awk for the "check" target (and possibly the TAP driver). The
3109 # system "awk" is bad on some platforms.
3110 # Always define AMTAR for backward compatibility. Yes, it's still used
3111 # in the wild :-( We should find a proper way to deprecate it ...
3115 # We'll loop over all known methods to create a tar archive until one works.
3116 _am_tools='gnutar pax cpio none'
3118 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3125 # POSIX will say in a future version that running "rm -f" with no argument
3126 # is OK; and we want to be able to make that assumption in our Makefile
3127 # recipes. So use an aggressive probe to check that the usage we want is
3128 # actually supported "in the wild" to an acceptable degree.
3129 # See automake bug#10828.
3130 # To make any issue more visible, cause the running configure to be aborted
3131 # by default if the 'rm' program in use doesn't match our expectations; the
3132 # user can still override this though.
3133 if rm -f && rm -fr && rm -rf; then : OK; else
3137 Your 'rm' program seems unable to run without file operands specified
3138 on the command line, even when the '-f' option is present. This is contrary
3139 to the behaviour of most rm programs out there, and not conforming with
3140 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3142 Please tell bug-automake@gnu.org about your system, including the value
3143 of your $PATH and any error possibly output before this message. This
3144 can help us improve future automake versions.
3147 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3148 echo 'Configuration will proceed anyway, since you have set the' >&2
3149 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3153 Aborting the configuration process, to ensure you take notice of the issue.
3155 You can download and install GNU coreutils to get an 'rm' implementation
3156 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3158 If you want to complete the configuration process using your problematic
3159 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3160 to "yes", and re-run configure.
3163 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3168 # Make sure we can run config.sub.
3169 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3170 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3173 $as_echo_n "checking build system type... " >&6; }
3174 if ${ac_cv_build+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 ac_build_alias=$build_alias
3178 test "x$ac_build_alias" = x &&
3179 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3180 test "x$ac_build_alias" = x &&
3181 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3182 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3183 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3187 $as_echo "$ac_cv_build" >&6; }
3188 case $ac_cv_build in
3190 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3193 ac_save_IFS=$IFS; IFS='-'
3199 # Remember, the first character of IFS is used to create $*,
3200 # except with old shells:
3203 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3207 $as_echo_n "checking host system type... " >&6; }
3208 if ${ac_cv_host+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 if test "x$host_alias" = x; then
3212 ac_cv_host=$ac_cv_build
3214 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3215 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3220 $as_echo "$ac_cv_host" >&6; }
3223 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3226 ac_save_IFS=$IFS; IFS='-'
3232 # Remember, the first character of IFS is used to create $*,
3233 # except with old shells:
3236 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3241 PKG_CONFIG_RPATH=-Wl,-R\${libdir};;
3249 ac_cpp='$CPP $CPPFLAGS'
3250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3292 if test -z "$ac_cv_prog_CC"; then
3294 # Extract the first word of "gcc", so it can be a program name with args.
3295 set dummy gcc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$ac_ct_CC"; then
3302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC="gcc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 $as_echo "$ac_ct_CC" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3330 if test "x$ac_ct_CC" = x; then
3333 case $cross_compiling:$ac_tool_warned in
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned=yes ;;
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC="${ac_tool_prefix}cc"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected=yes
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog in cl.exe
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_CC+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3483 test -n "$CC" && break
3486 if test -z "$CC"; then
3488 for ac_prog in cl.exe
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_CC="$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$ac_ct_CC" && break
3530 if test "x$ac_ct_CC" = x; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3546 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "no acceptable C compiler found in \$PATH
3549 See \`config.log' for more details" "$LINENO" 5; }
3551 # Provide some information about the compiler.
3552 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 for ac_option in --version -v -V -qversion; do
3556 { { ac_try="$ac_compiler $ac_option >&5"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3565 if test -s conftest.err; then
3567 ... rest of stderr output deleted ...
3568 10q' conftest.err >conftest.er1
3569 cat conftest.er1 >&5
3571 rm -f conftest.er1 conftest.err
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 ac_clean_files_save=$ac_clean_files
3588 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589 # Try to create an executable without -o first, disregard a.out.
3590 # It will help us diagnose broken compilers, and finding out an intuition
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593 $as_echo_n "checking whether the C compiler works... " >&6; }
3594 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3596 # The possible output files:
3597 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600 for ac_file in $ac_files
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609 if { { ac_try="$ac_link_default"
3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link_default") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3621 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3622 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3623 # so that the user can short-circuit this test for compilers unknown to
3625 for ac_file in $ac_files ''
3627 test -f "$ac_file" || continue
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3632 # We found the default executable, but exeext='' is most
3636 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3638 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640 # We set ac_cv_exeext here because the later test for it is not
3641 # safe: cross compilers may not add the suffix if given an `-o'
3642 # argument, so we may need to know it at that point already.
3643 # Even if this section looks crufty: it has the advantage of
3650 test "$ac_cv_exeext" = no && ac_cv_exeext=
3655 if test -z "$ac_file"; then :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error 77 "C compiler cannot create executables
3664 See \`config.log' for more details" "$LINENO" 5; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672 $as_echo "$ac_file" >&6; }
3673 ac_exeext=$ac_cv_exeext
3675 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try="$ac_link"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3694 for ac_file in conftest.exe conftest conftest.*; do
3695 test -f "$ac_file" || continue
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details" "$LINENO" 5; }
3709 rm -f conftest conftest$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3713 rm -f conftest.$ac_ext
3714 EXEEXT=$ac_cv_exeext
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3722 FILE *f = fopen ("conftest.out", "w");
3723 return ferror (f) || fclose (f) != 0;
3729 ac_clean_files="$ac_clean_files conftest.out"
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733 $as_echo_n "checking whether we are cross compiling... " >&6; }
3734 if test "$cross_compiling" != yes; then
3735 { { ac_try="$ac_link"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 if { ac_try='./conftest$ac_cv_exeext'
3747 { { case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_try") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; }; then
3759 if test "$cross_compiling" = maybe; then
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $? "cannot run C compiled programs.
3765 If you meant to cross compile, use \`--host'.
3766 See \`config.log' for more details" "$LINENO" 5; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771 $as_echo "$cross_compiling" >&6; }
3773 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3774 ac_clean_files=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776 $as_echo_n "checking for suffix of object files... " >&6; }
3777 if ${ac_cv_objext+:} false; then :
3778 $as_echo_n "(cached) " >&6
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 rm -f conftest.o conftest.obj
3792 if { { ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_compile") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details" "$LINENO" 5; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823 $as_echo "$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828 if ${ac_cv_c_compiler_gnu+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856 if test $ac_compiler_gnu = yes; then
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3865 if ${ac_cv_prog_cc_g+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 ac_save_c_werror_flag=$ac_c_werror_flag
3869 ac_c_werror_flag=yes
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3914 if ac_fn_c_try_compile "$LINENO"; then :
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925 $as_echo "$ac_cv_prog_cc_g" >&6; }
3926 if test "$ac_test_CFLAGS" = set; then
3927 CFLAGS=$ac_save_CFLAGS
3928 elif test $ac_cv_prog_cc_g = yes; then
3929 if test "$GCC" = yes; then
3935 if test "$GCC" = yes; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943 if ${ac_cv_prog_cc_c89+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 ac_cv_prog_cc_c89=no
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3954 struct buf { int x; };
3955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956 static char *e (p, i)
3962 static char *f (char * (*g) (char **, int), char **p, ...)
3967 s = g (p, va_arg (v,int));
3972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3973 function prototypes and stuff, but not '\xHH' hex character constants.
3974 These don't provoke an error unfortunately, instead are silently treated
3975 as 'x'. The following induces an error, until -std is added to get
3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3977 array size at least. It's necessary to write '\x00'==0 to get something
3978 that's true only with -std. */
3979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982 inside strings and character constants. */
3984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3986 int test (int i, double x);
3987 struct s1 {int (*f) (int a);};
3988 struct s2 {int (*f) (double a);};
3989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_c89=$ac_arg
4007 rm -f core conftest.err conftest.$ac_objext
4008 test "x$ac_cv_prog_cc_c89" != "xno" && break
4010 rm -f conftest.$ac_ext
4015 case "x$ac_cv_prog_cc_c89" in
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 $as_echo "none needed" >&6; } ;;
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;;
4023 CC="$CC $ac_cv_prog_cc_c89"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4027 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044 if ${am_cv_prog_cc_c_o+:} false; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4058 # Make sure it works both with $CC and with simple cc.
4059 # Following AC_PROG_CC_C_O, we do the test twice because some
4060 # compilers refuse to overwrite an existing .o file with -o,
4061 # though they will create one.
4062 am_cv_prog_cc_c_o=yes
4064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } \
4069 && test -f conftest2.$ac_objext; then
4072 am_cv_prog_cc_c_o=no
4076 rm -f core conftest*
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4081 if test "$am_cv_prog_cc_c_o" != yes; then
4082 # Losing compiler, so override with the script.
4083 # FIXME: It is wrong to rewrite CC.
4084 # But if we don't then we get into trouble of one sort or another.
4085 # A longer-term fix would be to have automake use am__CC in this case,
4086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087 CC="$am_aux_dir/compile $CC"
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 DEPDIR="${am__leading_dot}deps"
4097 ac_config_commands="$ac_config_commands depfiles"
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4103 @echo this is the am__doit target
4106 # If we don't find an include directive, just comment out the code.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # Ignore all kinds of additional output from 'make'.
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4122 # Now try BSD make style include.
4123 if test "$am__include" = "#"; then
4124 echo '.include "confinc"' > confmf
4125 case `$am_make -s -f confmf 2> /dev/null` in #(
4126 *the\ am__doit\ target*)
4127 am__include=.include
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4136 $as_echo "$_am_result" >&6; }
4137 rm -f confinc confmf
4139 # Check whether --enable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then :
4141 enableval=$enable_dependency_tracking;
4144 if test "x$enable_dependency_tracking" != xno; then
4145 am_depcomp="$ac_aux_dir/depcomp"
4149 if test "x$enable_dependency_tracking" != xno; then
4159 depcc="$CC" am_compiler_list=
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4162 $as_echo_n "checking dependency style of $depcc... " >&6; }
4163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167 # We make a subdir and do the tests there. Otherwise we can end up
4168 # making bogus files that we don't know about and never remove. For
4169 # instance it was reported that on HP-UX the gcc test will end up
4170 # making a dummy file named 'D' -- because '-MD' means "put the output
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4207 # Solaris 10 /bin/sh.
4208 echo '/* dummy */' > sub/conftst$i.h
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4212 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle '-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs.
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4224 # After this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested.
4226 if test "x$enable_dependency_tracking" = xyes; then
4232 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4233 # This compiler won't grok '-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4241 if depmode=$depmode \
4242 source=sub/conftest.c object=$am__obj \
4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245 >/dev/null 2>conftest.err &&
4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4268 am_cv_CC_dependencies_compiler_type=none
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4280 am__fastdepCC_FALSE='#'
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
4288 # Check whether --enable-largefile was given.
4289 if test "${enable_largefile+set}" = set; then :
4290 enableval=$enable_largefile;
4293 if test "$enable_largefile" != no; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4296 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4297 if ${ac_cv_sys_largefile_CC+:} false; then :
4298 $as_echo_n "(cached) " >&6
4300 ac_cv_sys_largefile_CC=no
4301 if test "$GCC" != yes; then
4304 # IRIX 6.2 and later do not support large files by default,
4305 # so use the C compiler's -n32 option if that helps.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <sys/types.h>
4309 /* Check that off_t can represent 2**63 - 1 correctly.
4310 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4311 since some C++ compilers masquerading as C compilers
4312 incorrectly reject 9223372036854775807. */
4313 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4315 && LARGE_OFF_T % 2147483647 == 1)
4325 if ac_fn_c_try_compile "$LINENO"; then :
4328 rm -f core conftest.err conftest.$ac_objext
4330 if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_sys_largefile_CC=' -n32'; break
4333 rm -f core conftest.err conftest.$ac_objext
4337 rm -f conftest.$ac_ext
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4341 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4342 if test "$ac_cv_sys_largefile_CC" != no; then
4343 CC=$CC$ac_cv_sys_largefile_CC
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4347 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4348 if ${ac_cv_sys_file_offset_bits+:} false; then :
4349 $as_echo_n "(cached) " >&6
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <sys/types.h>
4355 /* Check that off_t can represent 2**63 - 1 correctly.
4356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4357 since some C++ compilers masquerading as C compilers
4358 incorrectly reject 9223372036854775807. */
4359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4361 && LARGE_OFF_T % 2147483647 == 1)
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_sys_file_offset_bits=no; break
4374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #define _FILE_OFFSET_BITS 64
4378 #include <sys/types.h>
4379 /* Check that off_t can represent 2**63 - 1 correctly.
4380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381 since some C++ compilers masquerading as C compilers
4382 incorrectly reject 9223372036854775807. */
4383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385 && LARGE_OFF_T % 2147483647 == 1)
4395 if ac_fn_c_try_compile "$LINENO"; then :
4396 ac_cv_sys_file_offset_bits=64; break
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 ac_cv_sys_file_offset_bits=unknown
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4404 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4405 case $ac_cv_sys_file_offset_bits in #(
4408 cat >>confdefs.h <<_ACEOF
4409 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4414 if test $ac_cv_sys_file_offset_bits = unknown; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4416 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4417 if ${ac_cv_sys_large_files+:} false; then :
4418 $as_echo_n "(cached) " >&6
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4423 #include <sys/types.h>
4424 /* Check that off_t can represent 2**63 - 1 correctly.
4425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4426 since some C++ compilers masquerading as C compilers
4427 incorrectly reject 9223372036854775807. */
4428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4430 && LARGE_OFF_T % 2147483647 == 1)
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 ac_cv_sys_large_files=no; break
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #define _LARGE_FILES 1
4447 #include <sys/types.h>
4448 /* Check that off_t can represent 2**63 - 1 correctly.
4449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4450 since some C++ compilers masquerading as C compilers
4451 incorrectly reject 9223372036854775807. */
4452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4454 && LARGE_OFF_T % 2147483647 == 1)
4464 if ac_fn_c_try_compile "$LINENO"; then :
4465 ac_cv_sys_large_files=1; break
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 ac_cv_sys_large_files=unknown
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4473 $as_echo "$ac_cv_sys_large_files" >&6; }
4474 case $ac_cv_sys_large_files in #(
4477 cat >>confdefs.h <<_ACEOF
4478 #define _LARGE_FILES $ac_cv_sys_large_files
4491 # Check whether --with-zlib was given.
4492 if test "${with_zlib+set}" = set; then :
4499 if test "$with_zlib" != "yes"
4501 if test -f "$with_zlib"/zlib.h
4503 # PREFIX is to uninstalled version in distribution directory
4504 CFLAGS="$CFLAGS -I$with_zlib"
4505 LDFLAGS="$LDFLAGS -L$with_zlib"
4506 else if test -f "$with_zlib"/include/zlib.h
4508 # PREFIX is installation prefix
4509 CFLAGS="$CFLAGS -I$with_zlib/include"
4510 LDFLAGS="$LDFLAGS -L$with_zlib/lib"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
4516 $as_echo_n "checking for main in -lz... " >&6; }
4517 if ${ac_cv_lib_z_main+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 ac_check_lib_save_LIBS=$LIBS
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4534 if ac_fn_c_try_link "$LINENO"; then :
4535 ac_cv_lib_z_main=yes
4539 rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext conftest.$ac_ext
4541 LIBS=$ac_check_lib_save_LIBS
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
4544 $as_echo "$ac_cv_lib_z_main" >&6; }
4545 if test "x$ac_cv_lib_z_main" = xyes; then :
4546 cat >>confdefs.h <<_ACEOF
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking new ZLIB version" >&5
4555 $as_echo_n "checking new ZLIB version... " >&6; }
4556 if ${id_cv_lib_zlib_ok+:} false; then :
4557 $as_echo_n "(cached) " >&6
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4565 extern ZEXPORT int unzOpen (const char *path);
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 id_cv_lib_zlib_ok=yes
4573 id_cv_lib_zlib_ok=no
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id_cv_lib_zlib_ok" >&5
4578 $as_echo "$id_cv_lib_zlib_ok" >&6; }
4579 if test "$id_cv_lib_zlib_ok" = "no"
4581 as_fn_error $? "ZLIB version too old, please install at least v1.1.2" "$LINENO" 5
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4589 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4594 macro_version='2.4.2'
4595 macro_revision='1.3337'
4609 ltmain="$ac_aux_dir/ltmain.sh"
4611 # Backslashify metacharacters that are still active within
4612 # double-quoted strings.
4613 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4615 # Same as above, but do not quote variable references.
4616 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4618 # Sed substitution to delay expansion of an escaped shell variable in a
4619 # double_quote_subst'ed string.
4620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4622 # Sed substitution to delay expansion of an escaped single quote.
4623 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4625 # Sed substitution to avoid accidental globbing in evaled expressions
4626 no_glob_subst='s/\*/\\\*/g'
4628 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4633 $as_echo_n "checking how to print strings... " >&6; }
4634 # Test print first, because it will be a builtin if present.
4635 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4636 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4638 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4641 # Use this function as a fallback that always works.
4642 func_fallback_echo ()
4644 eval 'cat <<_LTECHO_EOF
4648 ECHO='func_fallback_echo'
4651 # func_echo_all arg...
4652 # Invoke $ECHO with all args, space-separated.
4659 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4660 $as_echo "printf" >&6; } ;;
4661 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4662 $as_echo "print -r" >&6; } ;;
4663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4664 $as_echo "cat" >&6; } ;;
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4682 if ${ac_cv_path_SED+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4686 for ac_i in 1 2 3 4 5 6 7; do
4687 ac_script="$ac_script$as_nl$ac_script"
4689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4690 { ac_script=; unset ac_script;}
4691 if test -z "$SED"; then
4692 ac_path_SED_found=false
4693 # Loop through the user's path and test for each of PROGNAME-LIST
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_prog in sed gsed; do
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4702 as_fn_executable_p "$ac_path_SED" || continue
4703 # Check for GNU ac_path_SED and select it if it is found.
4704 # Check for GNU $ac_path_SED
4705 case `"$ac_path_SED" --version 2>&1` in
4707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4710 $as_echo_n 0123456789 >"conftest.in"
4713 cat "conftest.in" "conftest.in" >"conftest.tmp"
4714 mv "conftest.tmp" "conftest.in"
4715 cp "conftest.in" "conftest.nl"
4716 $as_echo '' >> "conftest.nl"
4717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719 as_fn_arith $ac_count + 1 && ac_count=$as_val
4720 if test $ac_count -gt ${ac_path_SED_max-0}; then
4721 # Best one so far, save it but keep looking for a better one
4722 ac_cv_path_SED="$ac_path_SED"
4723 ac_path_SED_max=$ac_count
4725 # 10*(2^10) chars as input seems more than enough
4726 test $ac_count -gt 10 && break
4728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 $ac_path_SED_found && break 3
4736 if test -z "$ac_cv_path_SED"; then
4737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4745 $as_echo "$ac_cv_path_SED" >&6; }
4746 SED="$ac_cv_path_SED"
4749 test -z "$SED" && SED=sed
4750 Xsed="$SED -e 1s/^X//"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4764 if ${ac_cv_path_GREP+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -z "$GREP"; then
4768 ac_path_GREP_found=false
4769 # Loop through the user's path and test for each of PROGNAME-LIST
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4774 test -z "$as_dir" && as_dir=.
4775 for ac_prog in grep ggrep; do
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4778 as_fn_executable_p "$ac_path_GREP" || continue
4779 # Check for GNU ac_path_GREP and select it if it is found.
4780 # Check for GNU $ac_path_GREP
4781 case `"$ac_path_GREP" --version 2>&1` in
4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4786 $as_echo_n 0123456789 >"conftest.in"
4789 cat "conftest.in" "conftest.in" >"conftest.tmp"
4790 mv "conftest.tmp" "conftest.in"
4791 cp "conftest.in" "conftest.nl"
4792 $as_echo 'GREP' >> "conftest.nl"
4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795 as_fn_arith $ac_count + 1 && ac_count=$as_val
4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4797 # Best one so far, save it but keep looking for a better one
4798 ac_cv_path_GREP="$ac_path_GREP"
4799 ac_path_GREP_max=$ac_count
4801 # 10*(2^10) chars as input seems more than enough
4802 test $ac_count -gt 10 && break
4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4807 $ac_path_GREP_found && break 3
4812 if test -z "$ac_cv_path_GREP"; then
4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4816 ac_cv_path_GREP=$GREP
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4821 $as_echo "$ac_cv_path_GREP" >&6; }
4822 GREP="$ac_cv_path_GREP"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4826 $as_echo_n "checking for egrep... " >&6; }
4827 if ${ac_cv_path_EGREP+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4831 then ac_cv_path_EGREP="$GREP -E"
4833 if test -z "$EGREP"; then
4834 ac_path_EGREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in egrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_EGREP" || continue
4845 # Check for GNU ac_path_EGREP and select it if it is found.
4846 # Check for GNU $ac_path_EGREP
4847 case `"$ac_path_EGREP" --version 2>&1` in
4849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4852 $as_echo_n 0123456789 >"conftest.in"
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'EGREP' >> "conftest.nl"
4859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_EGREP="$ac_path_EGREP"
4865 ac_path_EGREP_max=$ac_count
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 $ac_path_EGREP_found && break 3
4878 if test -z "$ac_cv_path_EGREP"; then
4879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 ac_cv_path_EGREP=$EGREP
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4888 $as_echo "$ac_cv_path_EGREP" >&6; }
4889 EGREP="$ac_cv_path_EGREP"
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4893 $as_echo_n "checking for fgrep... " >&6; }
4894 if ${ac_cv_path_FGREP+:} false; then :
4895 $as_echo_n "(cached) " >&6
4897 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4898 then ac_cv_path_FGREP="$GREP -F"
4900 if test -z "$FGREP"; then
4901 ac_path_FGREP_found=false
4902 # Loop through the user's path and test for each of PROGNAME-LIST
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4907 test -z "$as_dir" && as_dir=.
4908 for ac_prog in fgrep; do
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4911 as_fn_executable_p "$ac_path_FGREP" || continue
4912 # Check for GNU ac_path_FGREP and select it if it is found.
4913 # Check for GNU $ac_path_FGREP
4914 case `"$ac_path_FGREP" --version 2>&1` in
4916 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4919 $as_echo_n 0123456789 >"conftest.in"
4922 cat "conftest.in" "conftest.in" >"conftest.tmp"
4923 mv "conftest.tmp" "conftest.in"
4924 cp "conftest.in" "conftest.nl"
4925 $as_echo 'FGREP' >> "conftest.nl"
4926 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4928 as_fn_arith $ac_count + 1 && ac_count=$as_val
4929 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4930 # Best one so far, save it but keep looking for a better one
4931 ac_cv_path_FGREP="$ac_path_FGREP"
4932 ac_path_FGREP_max=$ac_count
4934 # 10*(2^10) chars as input seems more than enough
4935 test $ac_count -gt 10 && break
4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4940 $ac_path_FGREP_found && break 3
4945 if test -z "$ac_cv_path_FGREP"; then
4946 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4949 ac_cv_path_FGREP=$FGREP
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4955 $as_echo "$ac_cv_path_FGREP" >&6; }
4956 FGREP="$ac_cv_path_FGREP"
4959 test -z "$GREP" && GREP=grep
4979 # Check whether --with-gnu-ld was given.
4980 if test "${with_gnu_ld+set}" = set; then :
4981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4987 if test "$GCC" = yes; then
4988 # Check if gcc -print-prog-name=ld gives a path.
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4990 $as_echo_n "checking for ld used by $CC... " >&6; }
4993 # gcc leaves a trailing carriage return which upsets mingw
4994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4999 # Accept absolute paths.
5001 re_direlt='/[^/][^/]*/\.\./'
5002 # Canonicalize the pathname of ld
5003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5007 test -z "$LD" && LD="$ac_prog"
5010 # If it fails, then pretend we aren't using GCC.
5014 # If it is relative, then search for the first ld in PATH.
5018 elif test "$with_gnu_ld" = yes; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5020 $as_echo_n "checking for GNU ld... " >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5023 $as_echo_n "checking for non-GNU ld... " >&6; }
5025 if ${lt_cv_path_LD+:} false; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -z "$LD"; then
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH; do
5032 test -z "$ac_dir" && ac_dir=.
5033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5034 lt_cv_path_LD="$ac_dir/$ac_prog"
5035 # Check to see if the program is GNU ld. I'd rather use --version,
5036 # but apparently some variants of GNU ld only accept -v.
5037 # Break only if it was the GNU/non-GNU ld that we prefer.
5038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5039 *GNU* | *'with BFD'*)
5040 test "$with_gnu_ld" != no && break
5043 test "$with_gnu_ld" != yes && break
5050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5055 if test -n "$LD"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5057 $as_echo "$LD" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5062 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5065 if ${lt_cv_prog_gnu_ld+:} false; then :
5066 $as_echo_n "(cached) " >&6
5068 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5069 case `$LD -v 2>&1 </dev/null` in
5070 *GNU* | *'with BFD'*)
5071 lt_cv_prog_gnu_ld=yes
5074 lt_cv_prog_gnu_ld=no
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5079 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5080 with_gnu_ld=$lt_cv_prog_gnu_ld
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5091 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5092 if ${lt_cv_path_NM+:} false; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$NM"; then
5096 # Let the user override the test.
5099 lt_nm_to_check="${ac_tool_prefix}nm"
5100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5101 lt_nm_to_check="$lt_nm_to_check nm"
5103 for lt_tmp_nm in $lt_nm_to_check; do
5104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5107 test -z "$ac_dir" && ac_dir=.
5108 tmp_nm="$ac_dir/$lt_tmp_nm"
5109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5110 # Check to see if the nm accepts a BSD-compat flag.
5111 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5112 # nm: unknown option "B" ignored
5113 # Tru64's nm complains that /dev/null is an invalid object file
5114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5115 */dev/null* | *'Invalid file or object type'*)
5116 lt_cv_path_NM="$tmp_nm -B"
5120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5122 lt_cv_path_NM="$tmp_nm -p"
5126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5127 continue # so that we can try to find one that supports BSD flags
5136 : ${lt_cv_path_NM=no}
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5140 $as_echo "$lt_cv_path_NM" >&6; }
5141 if test "$lt_cv_path_NM" != "no"; then
5144 # Didn't find any BSD compatible name lister, look for dumpbin.
5145 if test -n "$DUMPBIN"; then :
5146 # Let the user override the test.
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in dumpbin "link -dump"
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_DUMPBIN+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$DUMPBIN"; then
5159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 DUMPBIN=$ac_cv_prog_DUMPBIN
5179 if test -n "$DUMPBIN"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5181 $as_echo "$DUMPBIN" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$DUMPBIN" && break
5191 if test -z "$DUMPBIN"; then
5192 ac_ct_DUMPBIN=$DUMPBIN
5193 for ac_prog in dumpbin "link -dump"
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196 set dummy $ac_prog; ac_word=$2
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 $as_echo_n "checking for $ac_word... " >&6; }
5199 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 if test -n "$ac_ct_DUMPBIN"; then
5203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5223 if test -n "$ac_ct_DUMPBIN"; then
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5225 $as_echo "$ac_ct_DUMPBIN" >&6; }
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228 $as_echo "no" >&6; }
5232 test -n "$ac_ct_DUMPBIN" && break
5235 if test "x$ac_ct_DUMPBIN" = x; then
5238 case $cross_compiling:$ac_tool_warned in
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242 ac_tool_warned=yes ;;
5244 DUMPBIN=$ac_ct_DUMPBIN
5248 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5250 DUMPBIN="$DUMPBIN -symbols"
5258 if test "$DUMPBIN" != ":"; then
5262 test -z "$NM" && NM=nm
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5270 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5271 if ${lt_cv_nm_interface+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 lt_cv_nm_interface="BSD nm"
5275 echo "int some_variable = 0;" > conftest.$ac_ext
5276 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5277 (eval "$ac_compile" 2>conftest.err)
5278 cat conftest.err >&5
5279 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5281 cat conftest.err >&5
5282 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5283 cat conftest.out >&5
5284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5285 lt_cv_nm_interface="MS dumpbin"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5290 $as_echo "$lt_cv_nm_interface" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5293 $as_echo_n "checking whether ln -s works... " >&6; }
5295 if test "$LN_S" = "ln -s"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5297 $as_echo "yes" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5300 $as_echo "no, using $LN_S" >&6; }
5303 # find the maximum length of command line arguments
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5305 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5306 if ${lt_cv_sys_max_cmd_len+:} false; then :
5307 $as_echo_n "(cached) " >&6
5314 # On DJGPP, this test can blow up pretty badly due to problems in libc
5315 # (any single argument exceeding 2000 bytes causes a buffer overrun
5316 # during glob expansion). Even if it were fixed, the result of this
5317 # check would be larger than it should be.
5318 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5322 # Under GNU Hurd, this test is not required because there is
5323 # no limit to the length of command line arguments.
5324 # Libtool will interpret -1 as no limit whatsoever
5325 lt_cv_sys_max_cmd_len=-1;
5328 cygwin* | mingw* | cegcc*)
5329 # On Win9x/ME, this test blows up -- it succeeds, but takes
5330 # about 5 minutes as the teststring grows exponentially.
5331 # Worse, since 9x/ME are not pre-emptively multitasking,
5332 # you end up with a "frozen" computer, even though with patience
5333 # the test eventually succeeds (with a max line length of 256k).
5334 # Instead, let's just punt: use the minimum linelength reported by
5335 # all of the supported platforms: 8192 (on NT/2K/XP).
5336 lt_cv_sys_max_cmd_len=8192;
5340 # On MiNT this can take a long time and run out of memory.
5341 lt_cv_sys_max_cmd_len=8192;
5345 # On AmigaOS with pdksh, this test takes hours, literally.
5346 # So we just punt and use a minimum line length of 8192.
5347 lt_cv_sys_max_cmd_len=8192;
5350 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5351 # This has been around since 386BSD, at least. Likely further.
5352 if test -x /sbin/sysctl; then
5353 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5354 elif test -x /usr/sbin/sysctl; then
5355 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5357 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5359 # And add a safety zone
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5366 lt_cv_sys_max_cmd_len=196608
5370 # The test takes a long time on OS/2.
5371 lt_cv_sys_max_cmd_len=8192
5375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5377 # nice to cause kernel panics so lets avoid the loop below.
5378 # First set a reasonable default.
5379 lt_cv_sys_max_cmd_len=16384
5381 if test -x /sbin/sysconfig; then
5382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5383 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5388 lt_cv_sys_max_cmd_len=102400
5390 sysv5* | sco5v6* | sysv4.2uw2*)
5391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5392 if test -n "$kargmax"; then
5393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5395 lt_cv_sys_max_cmd_len=32768
5399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5400 if test -n "$lt_cv_sys_max_cmd_len"; then
5401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5404 # Make teststring a little bigger before we do anything with it.
5405 # a 1K string should be a reasonable start.
5406 for i in 1 2 3 4 5 6 7 8 ; do
5407 teststring=$teststring$teststring
5409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5410 # If test is not a shell built-in, we'll probably end up computing a
5411 # maximum length that is only half of the actual maximum length, but
5413 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5414 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5415 test $i != 17 # 1/2 MB should be enough
5418 teststring=$teststring$teststring
5420 # Only check the string length outside the loop.
5421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5423 # Add a significant safety factor because C++ compilers can tack on
5424 # massive amounts of additional arguments before passing them to the
5425 # linker. It appears as though 1/2 is a usable value.
5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5435 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5438 $as_echo "none" >&6; }
5440 max_cmd_len=$lt_cv_sys_max_cmd_len
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5452 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5453 # Try some XSI features
5456 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5458 && eval 'test $(( 1 + 1 )) -eq 2 \
5459 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5462 $as_echo "$xsi_shell" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5466 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5468 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5470 && lt_shell_append=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5472 $as_echo "$lt_shell_append" >&6; }
5475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5485 # test EBCDIC or ASCII
5486 case `echo X|tr X '\101'` in
5487 A) # ASCII based system
5488 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5489 lt_SP2NL='tr \040 \012'
5490 lt_NL2SP='tr \015\012 \040\040'
5492 *) # EBCDIC based system
5493 lt_SP2NL='tr \100 \n'
5494 lt_NL2SP='tr \r\n \100\100'
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5507 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5508 if ${lt_cv_to_host_file_cmd+:} false; then :
5509 $as_echo_n "(cached) " >&6
5514 *-*-mingw* ) # actually msys
5515 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5518 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5520 * ) # otherwise, assume *nix
5521 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5527 *-*-mingw* ) # actually msys
5528 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5531 lt_cv_to_host_file_cmd=func_convert_file_noop
5533 * ) # otherwise, assume *nix
5534 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5538 * ) # unhandled hosts (and "normal" native builds)
5539 lt_cv_to_host_file_cmd=func_convert_file_noop
5545 to_host_file_cmd=$lt_cv_to_host_file_cmd
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5547 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5554 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5555 if ${lt_cv_to_tool_file_cmd+:} false; then :
5556 $as_echo_n "(cached) " >&6
5558 #assume ordinary cross tools, or native build.
5559 lt_cv_to_tool_file_cmd=func_convert_file_noop
5563 *-*-mingw* ) # actually msys
5564 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5572 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5574 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5581 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5582 if ${lt_cv_ld_reload_flag+:} false; then :
5583 $as_echo_n "(cached) " >&6
5585 lt_cv_ld_reload_flag='-r'
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5588 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5589 reload_flag=$lt_cv_ld_reload_flag
5590 case $reload_flag in
5592 *) reload_flag=" $reload_flag" ;;
5594 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5596 cygwin* | mingw* | pw32* | cegcc*)
5597 if test "$GCC" != yes; then
5602 if test "$GCC" = yes; then
5603 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5618 if test -n "$ac_tool_prefix"; then
5619 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5620 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_OBJDUMP+:} false; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$OBJDUMP"; then
5627 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 OBJDUMP=$ac_cv_prog_OBJDUMP
5647 if test -n "$OBJDUMP"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5649 $as_echo "$OBJDUMP" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5657 if test -z "$ac_cv_prog_OBJDUMP"; then
5658 ac_ct_OBJDUMP=$OBJDUMP
5659 # Extract the first word of "objdump", so it can be a program name with args.
5660 set dummy objdump; ac_word=$2
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5662 $as_echo_n "checking for $ac_word... " >&6; }
5663 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 if test -n "$ac_ct_OBJDUMP"; then
5667 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5687 if test -n "$ac_ct_OBJDUMP"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5689 $as_echo "$ac_ct_OBJDUMP" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5695 if test "x$ac_ct_OBJDUMP" = x; then
5698 case $cross_compiling:$ac_tool_warned in
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5702 ac_tool_warned=yes ;;
5704 OBJDUMP=$ac_ct_OBJDUMP
5707 OBJDUMP="$ac_cv_prog_OBJDUMP"
5710 test -z "$OBJDUMP" && OBJDUMP=objdump
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5721 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5722 if ${lt_cv_deplibs_check_method+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 lt_cv_file_magic_cmd='$MAGIC_CMD'
5726 lt_cv_file_magic_test_file=
5727 lt_cv_deplibs_check_method='unknown'
5728 # Need to set the preceding variable on all platforms that support
5729 # interlibrary dependencies.
5730 # 'none' -- dependencies not supported.
5731 # `unknown' -- same as none, but documents that we really don't know.
5732 # 'pass_all' -- all dependencies passed with no checks.
5733 # 'test_compile' -- check by making test program.
5734 # 'file_magic [[regex]]' -- check by looking for files in library path
5735 # which responds to the $file_magic_cmd with a given extended regex.
5736 # If you have `file' or equivalent on your system and you're not sure
5737 # whether `pass_all' will *always* work, you probably want this one.
5741 lt_cv_deplibs_check_method=pass_all
5745 lt_cv_deplibs_check_method=pass_all
5749 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5750 lt_cv_file_magic_cmd='/usr/bin/file -L'
5751 lt_cv_file_magic_test_file=/shlib/libc.so
5755 # func_win32_libid is a shell function defined in ltmain.sh
5756 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5757 lt_cv_file_magic_cmd='func_win32_libid'
5761 # Base MSYS/MinGW do not provide the 'file' command needed by
5762 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5763 # unless we find 'file', for example because we are cross-compiling.
5764 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5765 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5767 lt_cv_file_magic_cmd='func_win32_libid'
5769 # Keep this pattern in sync with the one in func_win32_libid.
5770 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5771 lt_cv_file_magic_cmd='$OBJDUMP -f'
5776 # use the weaker test based on 'objdump'. See mingw*.
5777 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5778 lt_cv_file_magic_cmd='$OBJDUMP -f'
5781 darwin* | rhapsody*)
5782 lt_cv_deplibs_check_method=pass_all
5785 freebsd* | dragonfly*)
5786 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5789 # Not sure whether the presence of OpenBSD here was a mistake.
5790 # Let's accept both of them until this is cleared up.
5791 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5792 lt_cv_file_magic_cmd=/usr/bin/file
5793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5797 lt_cv_deplibs_check_method=pass_all
5802 lt_cv_deplibs_check_method=pass_all
5806 lt_cv_deplibs_check_method=pass_all
5809 hpux10.20* | hpux11*)
5810 lt_cv_file_magic_cmd=/usr/bin/file
5813 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5814 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5817 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]'
5818 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5821 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5822 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5828 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5832 irix5* | irix6* | nonstopux*)
5834 *-32|*"-32 ") libmagic=32-bit;;
5835 *-n32|*"-n32 ") libmagic=N32;;
5836 *-64|*"-64 ") libmagic=64-bit;;
5837 *) libmagic=never-match;;
5839 lt_cv_deplibs_check_method=pass_all
5842 # This must be glibc/ELF.
5843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5844 lt_cv_deplibs_check_method=pass_all
5848 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5849 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5857 lt_cv_file_magic_cmd=/usr/bin/file
5858 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5862 lt_cv_deplibs_check_method=pass_all
5866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5873 osf3* | osf4* | osf5*)
5874 lt_cv_deplibs_check_method=pass_all
5878 lt_cv_deplibs_check_method=pass_all
5882 lt_cv_deplibs_check_method=pass_all
5885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5886 lt_cv_deplibs_check_method=pass_all
5890 case $host_vendor in
5892 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]'
5893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5896 lt_cv_deplibs_check_method=pass_all
5899 lt_cv_file_magic_cmd='/bin/file'
5900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5903 lt_cv_file_magic_cmd='/bin/file'
5904 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5905 lt_cv_file_magic_test_file=/lib/libc.so
5908 lt_cv_deplibs_check_method=pass_all
5911 lt_cv_deplibs_check_method=pass_all
5917 lt_cv_deplibs_check_method=pass_all
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5923 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5927 if test "$build" = "$host"; then
5930 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5933 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5939 file_magic_cmd=$lt_cv_file_magic_cmd
5940 deplibs_check_method=$lt_cv_deplibs_check_method
5941 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5964 if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5966 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_DLLTOOL+:} false; then :
5970 $as_echo_n "(cached) " >&6
5972 if test -n "$DLLTOOL"; then
5973 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 test -z "$as_dir" && as_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 DLLTOOL=$ac_cv_prog_DLLTOOL
5993 if test -n "$DLLTOOL"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5995 $as_echo "$DLLTOOL" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6003 if test -z "$ac_cv_prog_DLLTOOL"; then
6004 ac_ct_DLLTOOL=$DLLTOOL
6005 # Extract the first word of "dlltool", so it can be a program name with args.
6006 set dummy dlltool; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6010 $as_echo_n "(cached) " >&6
6012 if test -n "$ac_ct_DLLTOOL"; then
6013 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6033 if test -n "$ac_ct_DLLTOOL"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6035 $as_echo "$ac_ct_DLLTOOL" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6041 if test "x$ac_ct_DLLTOOL" = x; then
6044 case $cross_compiling:$ac_tool_warned in
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6048 ac_tool_warned=yes ;;
6050 DLLTOOL=$ac_ct_DLLTOOL
6053 DLLTOOL="$ac_cv_prog_DLLTOOL"
6056 test -z "$DLLTOOL" && DLLTOOL=dlltool
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6068 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6069 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6070 $as_echo_n "(cached) " >&6
6072 lt_cv_sharedlib_from_linklib_cmd='unknown'
6075 cygwin* | mingw* | pw32* | cegcc*)
6076 # two different shell functions defined in ltmain.sh
6077 # decide which to use based on capabilities of $DLLTOOL
6078 case `$DLLTOOL --help 2>&1` in
6079 *--identify-strict*)
6080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6083 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6088 # fallback: assume linklib IS sharedlib
6089 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6095 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6096 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6097 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6105 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_AR+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$AR"; then
6116 ac_cv_prog_AR="$AR" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 if test -n "$AR"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6138 $as_echo "$AR" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6145 test -n "$AR" && break
6148 if test -z "$AR"; then
6152 # Extract the first word of "$ac_prog", so it can be a program name with args.
6153 set dummy $ac_prog; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$ac_ct_AR"; then
6160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_ac_ct_AR="$ac_prog"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6180 if test -n "$ac_ct_AR"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6182 $as_echo "$ac_ct_AR" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6189 test -n "$ac_ct_AR" && break
6192 if test "x$ac_ct_AR" = x; then
6195 case $cross_compiling:$ac_tool_warned in
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6219 $as_echo_n "checking for archiver @FILE support... " >&6; }
6220 if ${lt_cv_ar_at_file+:} false; then :
6221 $as_echo_n "(cached) " >&6
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236 echo conftest.$ac_objext > conftest.lst
6237 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6239 (eval $lt_ar_try) 2>&5
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; }
6243 if test "$ac_status" -eq 0; then
6244 # Ensure the archiver fails upon bogus file names.
6245 rm -f conftest.$ac_objext libconftest.a
6246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6247 (eval $lt_ar_try) 2>&5
6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6250 test $ac_status = 0; }
6251 if test "$ac_status" -ne 0; then
6255 rm -f conftest.* libconftest.a
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6262 $as_echo "$lt_cv_ar_at_file" >&6; }
6264 if test "x$lt_cv_ar_at_file" = xno; then
6267 archiver_list_spec=$lt_cv_ar_at_file
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}strip; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_STRIP+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$STRIP"; then
6285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 STRIP=$ac_cv_prog_STRIP
6305 if test -n "$STRIP"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6307 $as_echo "$STRIP" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6315 if test -z "$ac_cv_prog_STRIP"; then
6317 # Extract the first word of "strip", so it can be a program name with args.
6318 set dummy strip; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6322 $as_echo_n "(cached) " >&6
6324 if test -n "$ac_ct_STRIP"; then
6325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_ac_ct_STRIP="strip"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6345 if test -n "$ac_ct_STRIP"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6347 $as_echo "$ac_ct_STRIP" >&6; }
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6353 if test "x$ac_ct_STRIP" = x; then
6356 case $cross_compiling:$ac_tool_warned in
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6360 ac_tool_warned=yes ;;
6365 STRIP="$ac_cv_prog_STRIP"
6368 test -z "$STRIP" && STRIP=:
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6377 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_RANLIB+:} false; then :
6381 $as_echo_n "(cached) " >&6
6383 if test -n "$RANLIB"; then
6384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 RANLIB=$ac_cv_prog_RANLIB
6404 if test -n "$RANLIB"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6406 $as_echo "$RANLIB" >&6; }
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6414 if test -z "$ac_cv_prog_RANLIB"; then
6415 ac_ct_RANLIB=$RANLIB
6416 # Extract the first word of "ranlib", so it can be a program name with args.
6417 set dummy ranlib; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_RANLIB"; then
6424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6433 ac_cv_prog_ac_ct_RANLIB="ranlib"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6444 if test -n "$ac_ct_RANLIB"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6446 $as_echo "$ac_ct_RANLIB" >&6; }
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449 $as_echo "no" >&6; }
6452 if test "x$ac_ct_RANLIB" = x; then
6455 case $cross_compiling:$ac_tool_warned in
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459 ac_tool_warned=yes ;;
6461 RANLIB=$ac_ct_RANLIB
6464 RANLIB="$ac_cv_prog_RANLIB"
6467 test -z "$RANLIB" && RANLIB=:
6474 # Determine commands to create old-style static archives.
6475 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6476 old_postinstall_cmds='chmod 644 $oldlib'
6477 old_postuninstall_cmds=
6479 if test -n "$RANLIB"; then
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6493 lock_old_archive_extraction=yes ;;
6495 lock_old_archive_extraction=no ;;
6536 # If no C compiler was specified, use CC.
6539 # If no C compiler flags were specified, use CFLAGS.
6540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6542 # Allow CC to be a program name with arguments.
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6548 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6549 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6550 $as_echo_n "(cached) " >&6
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562 # Define system-specific variables.
6567 cygwin* | mingw* | pw32* | cegcc*)
6568 symcode='[ABCDGISTW]'
6571 if test "$host_cpu" = ia64; then
6572 symcode='[ABCDEGRST]'
6576 symcode='[BCDEGRST]'
6579 symcode='[BCDEGQRST]'
6590 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6598 # If we're using GNU nm, then use its standard symbol codes.
6599 case `$NM -V 2>&1` in
6600 *GNU* | *'with BFD'*)
6601 symcode='[ABCDGIRSTW]' ;;
6604 # Transform an extracted symbol line into a proper C declaration.
6605 # Some systems (esp. on ia64) link data and code symbols differently,
6606 # so use this general approach.
6607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609 # Transform an extracted symbol line into symbol name and symbol address
6610 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6611 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'"
6613 # Handle CRLF in mingw tool chain
6617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6621 # Try without a prefix underscore, then with it.
6622 for ac_symprfx in "" "_"; do
6624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6625 symxfrm="\\1 $ac_symprfx\\2 \\2"
6627 # Write the raw and C identifiers.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629 # Fake it for dumpbin and say T for any non-static function
6630 # and D for any global variable.
6631 # Also find C++ and __fastcall symbols from MSVC++,
6632 # which start with @ or ?.
6633 lt_cv_sys_global_symbol_pipe="$AWK '"\
6634 " {last_section=section; section=\$ 3};"\
6635 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6636 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 " \$ 0!~/External *\|/{next};"\
6638 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 " {if(hide[section]) next};"\
6640 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 " ' prfx=^$ac_symprfx"
6646 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6648 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6650 # Check to see that the pipe works correctly.
6654 cat > conftest.$ac_ext <<_LT_EOF
6659 void nm_test_func(void);
6660 void nm_test_func(void){}
6664 int main(){nm_test_var='a';nm_test_func();return(0);}
6667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6668 (eval $ac_compile) 2>&5
6670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671 test $ac_status = 0; }; then
6672 # Now try to grab the symbols.
6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6675 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6678 test $ac_status = 0; } && test -s "$nlist"; then
6679 # Try sorting and uniquifying the output.
6680 if sort "$nlist" | uniq > "$nlist"T; then
6681 mv -f "$nlist"T "$nlist"
6686 # Make sure that we snagged all the symbols we need.
6687 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6688 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6689 cat <<_LT_EOF > conftest.$ac_ext
6690 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6691 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6692 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6693 relocations are performed -- see ld's documentation on pseudo-relocs. */
6694 # define LT_DLSYM_CONST
6695 #elif defined(__osf__)
6696 /* This system does not cope well with relocations in const data. */
6697 # define LT_DLSYM_CONST
6699 # define LT_DLSYM_CONST const
6707 # Now generate the symbol file.
6708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6710 cat <<_LT_EOF >> conftest.$ac_ext
6712 /* The mapping between symbol names and symbols. */
6713 LT_DLSYM_CONST struct {
6717 lt__PROGRAM__LTX_preloaded_symbols[] =
6719 { "@PROGRAM@", (void *) 0 },
6721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6722 cat <<\_LT_EOF >> conftest.$ac_ext
6726 /* This works around a problem in FreeBSD linker */
6727 #ifdef FREEBSD_WORKAROUND
6728 static const void *lt_preloaded_setup() {
6729 return lt__PROGRAM__LTX_preloaded_symbols;
6737 # Now try linking the two files.
6738 mv conftest.$ac_objext conftstm.$ac_objext
6739 lt_globsym_save_LIBS=$LIBS
6740 lt_globsym_save_CFLAGS=$CFLAGS
6741 LIBS="conftstm.$ac_objext"
6742 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6744 (eval $ac_link) 2>&5
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6750 LIBS=$lt_globsym_save_LIBS
6751 CFLAGS=$lt_globsym_save_CFLAGS
6753 echo "cannot find nm_test_func in $nlist" >&5
6756 echo "cannot find nm_test_var in $nlist" >&5
6759 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6762 echo "$progname: failed program was:" >&5
6763 cat conftest.$ac_ext >&5
6765 rm -rf conftest* conftst*
6767 # Do not use the global_symbol_pipe unless it works.
6768 if test "$pipe_works" = yes; then
6771 lt_cv_sys_global_symbol_pipe=
6777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6778 lt_cv_sys_global_symbol_to_cdecl=
6780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6782 $as_echo "failed" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6785 $as_echo "ok" >&6; }
6788 # Response file support.
6789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6790 nm_file_list_spec='@'
6791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6792 nm_file_list_spec='@'
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6822 $as_echo_n "checking for sysroot... " >&6; }
6824 # Check whether --with-sysroot was given.
6825 if test "${with_sysroot+set}" = set; then :
6826 withval=$with_sysroot;
6833 case ${with_sysroot} in #(
6835 if test "$GCC" = yes; then
6836 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6840 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6846 $as_echo "${with_sysroot}" >&6; }
6847 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6852 $as_echo "${lt_sysroot:-no}" >&6; }
6858 # Check whether --enable-libtool-lock was given.
6859 if test "${enable_libtool_lock+set}" = set; then :
6860 enableval=$enable_libtool_lock;
6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865 # Some flags need to be propagated to the compiler or linker for good
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 case `/usr/bin/file conftest.$ac_objext` in
6888 # Find out which ABI we are using.
6889 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891 (eval $ac_compile) 2>&5
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }; then
6895 if test "$lt_cv_prog_gnu_ld" = yes; then
6896 case `/usr/bin/file conftest.$ac_objext` in
6898 LD="${LD-ld} -melf32bsmip"
6901 LD="${LD-ld} -melf32bmipn32"
6904 LD="${LD-ld} -melf64bmip"
6908 case `/usr/bin/file conftest.$ac_objext` in
6924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.o` in
6936 x86_64-*kfreebsd*-gnu)
6937 LD="${LD-ld} -m elf_i386_fbsd"
6940 LD="${LD-ld} -m elf_i386"
6942 ppc64-*linux*|powerpc64-*linux*)
6943 LD="${LD-ld} -m elf32ppclinux"
6946 LD="${LD-ld} -m elf_s390"
6949 LD="${LD-ld} -m elf32_sparc"
6955 x86_64-*kfreebsd*-gnu)
6956 LD="${LD-ld} -m elf_x86_64_fbsd"
6959 LD="${LD-ld} -m elf_x86_64"
6961 ppc*-*linux*|powerpc*-*linux*)
6962 LD="${LD-ld} -m elf64ppc"
6964 s390*-*linux*|s390*-*tpf*)
6965 LD="${LD-ld} -m elf64_s390"
6968 LD="${LD-ld} -m elf64_sparc"
6978 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6979 SAVE_CFLAGS="$CFLAGS"
6980 CFLAGS="$CFLAGS -belf"
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6982 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6983 if ${lt_cv_cc_needs_belf+:} false; then :
6984 $as_echo_n "(cached) " >&6
6987 ac_cpp='$CPP $CPPFLAGS'
6988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
7003 if ac_fn_c_try_link "$LINENO"; then :
7004 lt_cv_cc_needs_belf=yes
7006 lt_cv_cc_needs_belf=no
7008 rm -f core conftest.err conftest.$ac_objext \
7009 conftest$ac_exeext conftest.$ac_ext
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7018 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7019 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7020 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7021 CFLAGS="$SAVE_CFLAGS"
7025 # Find out which ABI we are using.
7026 echo 'int i;' > conftest.$ac_ext
7027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7028 (eval $ac_compile) 2>&5
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031 test $ac_status = 0; }; then
7032 case `/usr/bin/file conftest.o` in
7034 case $lt_cv_prog_gnu_ld in
7038 LD="${LD-ld} -m elf_x86_64"
7041 LD="${LD-ld} -m elf64_sparc"
7044 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7045 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7050 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7062 need_locks="$enable_libtool_lock"
7064 if test -n "$ac_tool_prefix"; then
7065 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7066 set dummy ${ac_tool_prefix}mt; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -n "$MANIFEST_TOOL"; then
7073 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7093 if test -n "$MANIFEST_TOOL"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7095 $as_echo "$MANIFEST_TOOL" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7103 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7104 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7105 # Extract the first word of "mt", so it can be a program name with args.
7106 set dummy mt; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 if test -n "$ac_ct_MANIFEST_TOOL"; then
7113 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7133 if test -n "$ac_ct_MANIFEST_TOOL"; then
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7135 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7141 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7144 case $cross_compiling:$ac_tool_warned in
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7148 ac_tool_warned=yes ;;
7150 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7153 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7156 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7158 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7159 if ${lt_cv_path_mainfest_tool+:} false; then :
7160 $as_echo_n "(cached) " >&6
7162 lt_cv_path_mainfest_tool=no
7163 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7164 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7165 cat conftest.err >&5
7166 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7167 lt_cv_path_mainfest_tool=yes
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7172 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7173 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7183 rhapsody* | darwin*)
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 if test -n "$DSYMUTIL"; then
7193 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7213 if test -n "$DSYMUTIL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7215 $as_echo "$DSYMUTIL" >&6; }
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7223 if test -z "$ac_cv_prog_DSYMUTIL"; then
7224 ac_ct_DSYMUTIL=$DSYMUTIL
7225 # Extract the first word of "dsymutil", so it can be a program name with args.
7226 set dummy dsymutil; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$ac_ct_DSYMUTIL"; then
7233 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7253 if test -n "$ac_ct_DSYMUTIL"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7255 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7261 if test "x$ac_ct_DSYMUTIL" = x; then
7264 case $cross_compiling:$ac_tool_warned in
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7270 DSYMUTIL=$ac_ct_DSYMUTIL
7273 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_NMEDIT+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 if test -n "$NMEDIT"; then
7285 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 NMEDIT=$ac_cv_prog_NMEDIT
7305 if test -n "$NMEDIT"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7307 $as_echo "$NMEDIT" >&6; }
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7315 if test -z "$ac_cv_prog_NMEDIT"; then
7316 ac_ct_NMEDIT=$NMEDIT
7317 # Extract the first word of "nmedit", so it can be a program name with args.
7318 set dummy nmedit; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$ac_ct_NMEDIT"; then
7325 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345 if test -n "$ac_ct_NMEDIT"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7347 $as_echo "$ac_ct_NMEDIT" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7353 if test "x$ac_ct_NMEDIT" = x; then
7356 case $cross_compiling:$ac_tool_warned in
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7362 NMEDIT=$ac_ct_NMEDIT
7365 NMEDIT="$ac_cv_prog_NMEDIT"
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_LIPO+:} false; then :
7374 $as_echo_n "(cached) " >&6
7376 if test -n "$LIPO"; then
7377 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 LIPO=$ac_cv_prog_LIPO
7397 if test -n "$LIPO"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7399 $as_echo "$LIPO" >&6; }
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7407 if test -z "$ac_cv_prog_LIPO"; then
7409 # Extract the first word of "lipo", so it can be a program name with args.
7410 set dummy lipo; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7414 $as_echo_n "(cached) " >&6
7416 if test -n "$ac_ct_LIPO"; then
7417 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_ac_ct_LIPO="lipo"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7437 if test -n "$ac_ct_LIPO"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7439 $as_echo "$ac_ct_LIPO" >&6; }
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7445 if test "x$ac_ct_LIPO" = x; then
7448 case $cross_compiling:$ac_tool_warned in
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7457 LIPO="$ac_cv_prog_LIPO"
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}otool; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_OTOOL+:} false; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$OTOOL"; then
7469 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 OTOOL=$ac_cv_prog_OTOOL
7489 if test -n "$OTOOL"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7491 $as_echo "$OTOOL" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7499 if test -z "$ac_cv_prog_OTOOL"; then
7501 # Extract the first word of "otool", so it can be a program name with args.
7502 set dummy otool; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$ac_ct_OTOOL"; then
7509 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_OTOOL="otool"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7529 if test -n "$ac_ct_OTOOL"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7531 $as_echo "$ac_ct_OTOOL" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7537 if test "x$ac_ct_OTOOL" = x; then
7540 case $cross_compiling:$ac_tool_warned in
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7549 OTOOL="$ac_cv_prog_OTOOL"
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_OTOOL64+:} false; then :
7558 $as_echo_n "(cached) " >&6
7560 if test -n "$OTOOL64"; then
7561 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 OTOOL64=$ac_cv_prog_OTOOL64
7581 if test -n "$OTOOL64"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7583 $as_echo "$OTOOL64" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_OTOOL64"; then
7592 ac_ct_OTOOL64=$OTOOL64
7593 # Extract the first word of "otool64", so it can be a program name with args.
7594 set dummy otool64; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$ac_ct_OTOOL64"; then
7601 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_ac_ct_OTOOL64="otool64"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7621 if test -n "$ac_ct_OTOOL64"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7623 $as_echo "$ac_ct_OTOOL64" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_OTOOL64" = x; then
7632 case $cross_compiling:$ac_tool_warned in
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7638 OTOOL64=$ac_ct_OTOOL64
7641 OTOOL64="$ac_cv_prog_OTOOL64"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7671 $as_echo_n "checking for -single_module linker flag... " >&6; }
7672 if ${lt_cv_apple_cc_single_mod+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 lt_cv_apple_cc_single_mod=no
7676 if test -z "${LT_MULTI_MODULE}"; then
7677 # By default we will add the -single_module flag. You can override
7678 # by either setting the environment variable LT_MULTI_MODULE
7679 # non-empty at configure time, or by adding -multi_module to the
7681 rm -rf libconftest.dylib*
7682 echo "int foo(void){return 1;}" > conftest.c
7683 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c" >&5
7685 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7688 # If there is a non-empty error log, and "single_module"
7689 # appears in it, assume the flag caused a linker warning
7690 if test -s conftest.err && $GREP single_module conftest.err; then
7691 cat conftest.err >&5
7692 # Otherwise, if the output was created with a 0 exit code from
7693 # the compiler, it worked.
7694 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7695 lt_cv_apple_cc_single_mod=yes
7697 cat conftest.err >&5
7699 rm -rf libconftest.dylib*
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7704 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7707 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7708 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7709 $as_echo_n "(cached) " >&6
7711 lt_cv_ld_exported_symbols_list=no
7712 save_LDFLAGS=$LDFLAGS
7713 echo "_main" > conftest.sym
7714 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 lt_cv_ld_exported_symbols_list=yes
7729 lt_cv_ld_exported_symbols_list=no
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733 LDFLAGS="$save_LDFLAGS"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7737 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7740 $as_echo_n "checking for -force_load linker flag... " >&6; }
7741 if ${lt_cv_ld_force_load+:} false; then :
7742 $as_echo_n "(cached) " >&6
7744 lt_cv_ld_force_load=no
7745 cat > conftest.c << _LT_EOF
7746 int forced_loaded() { return 2;}
7748 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7749 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7750 echo "$AR cru libconftest.a conftest.o" >&5
7751 $AR cru libconftest.a conftest.o 2>&5
7752 echo "$RANLIB libconftest.a" >&5
7753 $RANLIB libconftest.a 2>&5
7754 cat > conftest.c << _LT_EOF
7755 int main() { return 0;}
7757 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7758 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7760 if test -s conftest.err && $GREP force_load conftest.err; then
7761 cat conftest.err >&5
7762 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7763 lt_cv_ld_force_load=yes
7765 cat conftest.err >&5
7767 rm -f conftest.err libconftest.a conftest conftest.c
7768 rm -rf conftest.dSYM
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7772 $as_echo "$lt_cv_ld_force_load" >&6; }
7774 rhapsody* | darwin1.[012])
7775 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7777 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7778 darwin*) # darwin 5.x on
7779 # if running on 10.5 or later, the deployment target defaults
7780 # to the OS version, if on x86, and 10.4, the deployment
7781 # target defaults to 10.4. Don't you love it?
7782 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7783 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7784 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7788 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7793 _lt_dar_single_mod='$single_module'
7795 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7796 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7798 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7800 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7801 _lt_dsymutil='~$DSYMUTIL $lib || :'
7809 ac_cpp='$CPP $CPPFLAGS'
7810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7815 # On Suns, sometimes $CPP names a directory.
7816 if test -n "$CPP" && test -d "$CPP"; then
7819 if test -z "$CPP"; then
7820 if ${ac_cv_prog_CPP+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 # Double quotes because CPP needs to be expanded
7824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7827 for ac_c_preproc_warn_flag in '' yes
7829 # Use a header file that comes with gcc, so configuring glibc
7830 # with a fresh cross-compiler works.
7831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7832 # <limits.h> exists even on freestanding compilers.
7833 # On the NeXT, cc -E runs the code through the compiler's parser,
7834 # not just through cpp. "Syntax error" is here to catch this case.
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7838 # include <limits.h>
7840 # include <assert.h>
7844 if ac_fn_c_try_cpp "$LINENO"; then :
7847 # Broken: fails on valid input.
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7852 # OK, works on sane cases. Now check whether nonexistent headers
7853 # can be detected and how.
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 #include <ac_nonexistent.h>
7858 if ac_fn_c_try_cpp "$LINENO"; then :
7859 # Broken: success on invalid input.
7862 # Passes both tests.
7866 rm -f conftest.err conftest.i conftest.$ac_ext
7869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7870 rm -f conftest.i conftest.err conftest.$ac_ext
7871 if $ac_preproc_ok; then :
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7884 $as_echo "$CPP" >&6; }
7886 for ac_c_preproc_warn_flag in '' yes
7888 # Use a header file that comes with gcc, so configuring glibc
7889 # with a fresh cross-compiler works.
7890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7891 # <limits.h> exists even on freestanding compilers.
7892 # On the NeXT, cc -E runs the code through the compiler's parser,
7893 # not just through cpp. "Syntax error" is here to catch this case.
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7897 # include <limits.h>
7899 # include <assert.h>
7903 if ac_fn_c_try_cpp "$LINENO"; then :
7906 # Broken: fails on valid input.
7909 rm -f conftest.err conftest.i conftest.$ac_ext
7911 # OK, works on sane cases. Now check whether nonexistent headers
7912 # can be detected and how.
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 #include <ac_nonexistent.h>
7917 if ac_fn_c_try_cpp "$LINENO"; then :
7918 # Broken: success on invalid input.
7921 # Passes both tests.
7925 rm -f conftest.err conftest.i conftest.$ac_ext
7928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7929 rm -f conftest.i conftest.err conftest.$ac_ext
7930 if $ac_preproc_ok; then :
7933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7936 See \`config.log' for more details" "$LINENO" 5; }
7940 ac_cpp='$CPP $CPPFLAGS'
7941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7947 $as_echo_n "checking for ANSI C header files... " >&6; }
7948 if ${ac_cv_header_stdc+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 ac_cv_header_stdc=yes
7969 ac_cv_header_stdc=no
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 if test $ac_cv_header_stdc = yes; then
7974 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "memchr" >/dev/null 2>&1; then :
7984 ac_cv_header_stdc=no
7990 if test $ac_cv_header_stdc = yes; then
7991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7998 $EGREP "free" >/dev/null 2>&1; then :
8001 ac_cv_header_stdc=no
8007 if test $ac_cv_header_stdc = yes; then
8008 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8009 if test "$cross_compiling" = yes; then :
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8016 #if ((' ' & 0x0FF) == 0x020)
8017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8020 # define ISLOWER(c) \
8021 (('a' <= (c) && (c) <= 'i') \
8022 || ('j' <= (c) && (c) <= 'r') \
8023 || ('s' <= (c) && (c) <= 'z'))
8024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8032 for (i = 0; i < 256; i++)
8033 if (XOR (islower (i), ISLOWER (i))
8034 || toupper (i) != TOUPPER (i))
8039 if ac_fn_c_try_run "$LINENO"; then :
8042 ac_cv_header_stdc=no
8044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8045 conftest.$ac_objext conftest.beam conftest.$ac_ext
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8051 $as_echo "$ac_cv_header_stdc" >&6; }
8052 if test $ac_cv_header_stdc = yes; then
8054 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8060 inttypes.h stdint.h unistd.h
8062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8066 cat >>confdefs.h <<_ACEOF
8067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075 for ac_header in dlfcn.h
8077 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8079 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DLFCN_H 1
8102 # Check whether --enable-shared was given.
8103 if test "${enable_shared+set}" = set; then :
8104 enableval=$enable_shared; p=${PACKAGE-default}
8106 yes) enable_shared=yes ;;
8107 no) enable_shared=no ;;
8110 # Look at the argument we got. We use all the common list separators.
8111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112 for pkg in $enableval; do
8114 if test "X$pkg" = "X$p"; then
8133 # Check whether --enable-static was given.
8134 if test "${enable_static+set}" = set; then :
8135 enableval=$enable_static; p=${PACKAGE-default}
8137 yes) enable_static=yes ;;
8138 no) enable_static=no ;;
8141 # Look at the argument we got. We use all the common list separators.
8142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8143 for pkg in $enableval; do
8145 if test "X$pkg" = "X$p"; then
8165 # Check whether --with-pic was given.
8166 if test "${with_pic+set}" = set; then :
8167 withval=$with_pic; lt_p=${PACKAGE-default}
8169 yes|no) pic_mode=$withval ;;
8172 # Look at the argument we got. We use all the common list separators.
8173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8174 for lt_pkg in $withval; do
8176 if test "X$lt_pkg" = "X$lt_p"; then
8188 test -z "$pic_mode" && pic_mode=default
8196 # Check whether --enable-fast-install was given.
8197 if test "${enable_fast_install+set}" = set; then :
8198 enableval=$enable_fast_install; p=${PACKAGE-default}
8200 yes) enable_fast_install=yes ;;
8201 no) enable_fast_install=no ;;
8203 enable_fast_install=no
8204 # Look at the argument we got. We use all the common list separators.
8205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8206 for pkg in $enableval; do
8208 if test "X$pkg" = "X$p"; then
8209 enable_fast_install=yes
8216 enable_fast_install=yes
8229 # This can be used to rebuild libtool when needed
8230 LIBTOOL_DEPS="$ltmain"
8232 # Always use our own libtool.
8233 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8264 test -z "$LN_S" && LN_S="ln -s"
8279 if test -n "${ZSH_VERSION+set}" ; then
8280 setopt NO_GLOB_SUBST
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8284 $as_echo_n "checking for objdir... " >&6; }
8285 if ${lt_cv_objdir+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 rm -f .libs 2>/dev/null
8289 mkdir .libs 2>/dev/null
8290 if test -d .libs; then
8293 # MS-DOS does not allow filenames that begin with a dot.
8296 rmdir .libs 2>/dev/null
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8299 $as_echo "$lt_cv_objdir" >&6; }
8300 objdir=$lt_cv_objdir
8306 cat >>confdefs.h <<_ACEOF
8307 #define LT_OBJDIR "$lt_cv_objdir/"
8315 # AIX sometimes has problems with the GCC collect2 program. For some
8316 # reason, if we set the COLLECT_NAMES environment variable, the problems
8317 # vanish in a puff of smoke.
8318 if test "X${COLLECT_NAMES+set}" != Xset; then
8320 export COLLECT_NAMES
8327 can_build_shared=yes
8329 # All known linkers require a `.a' archive for static linking (except MSVC,
8330 # which needs '.lib').
8333 with_gnu_ld="$lt_cv_prog_gnu_ld"
8336 old_CFLAGS="$CFLAGS"
8338 # Set sane defaults for various variables
8339 test -z "$CC" && CC=cc
8340 test -z "$LTCC" && LTCC=$CC
8341 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8342 test -z "$LD" && LD=ld
8343 test -z "$ac_objext" && ac_objext=o
8345 for cc_temp in $compiler""; do
8347 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8348 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8353 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8356 # Only perform the check for file, if the check method requires it
8357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8358 case $deplibs_check_method in
8360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364 $as_echo_n "(cached) " >&6
8368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8371 lt_save_MAGIC_CMD="$MAGIC_CMD"
8372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374 for ac_dir in $ac_dummy; do
8376 test -z "$ac_dir" && ac_dir=.
8377 if test -f $ac_dir/${ac_tool_prefix}file; then
8378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8379 if test -n "$file_magic_test_file"; then
8380 case $deplibs_check_method in
8382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385 $EGREP "$file_magic_regex" > /dev/null; then
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such. This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem. Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8407 MAGIC_CMD="$lt_save_MAGIC_CMD"
8412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413 if test -n "$MAGIC_CMD"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8425 if test -z "$lt_cv_path_MAGIC_CMD"; then
8426 if test -n "$ac_tool_prefix"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8428 $as_echo_n "checking for file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430 $as_echo_n "(cached) " >&6
8434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8437 lt_save_MAGIC_CMD="$MAGIC_CMD"
8438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/file; then
8444 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8473 MAGIC_CMD="$lt_save_MAGIC_CMD"
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8497 # Use C for the default configuration in the libtool script
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8507 # Source file extension for C test sources.
8510 # Object file extension for compiled C test sources.
8514 # Code to be used in simple compile tests
8515 lt_simple_compile_test_code="int some_variable = 0;"
8517 # Code to be used in simple link tests
8518 lt_simple_link_test_code='int main(){return(0);}'
8526 # If no C compiler was specified, use CC.
8529 # If no C compiler flags were specified, use CFLAGS.
8530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8532 # Allow CC to be a program name with arguments.
8535 # Save the default compiler, since it gets overwritten when the other
8536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8537 compiler_DEFAULT=$CC
8539 # save warnings/boilerplate of simple test code
8540 ac_outfile=conftest.$ac_objext
8541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8543 _lt_compiler_boilerplate=`cat conftest.err`
8546 ac_outfile=conftest.$ac_objext
8547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8549 _lt_linker_boilerplate=`cat conftest.err`
8554 ## There is no encapsulation within the following macros, do not change
8555 ## the running order or otherwise move them around unless you know exactly
8556 ## what you are doing...
8557 if test -n "$compiler"; then
8559 lt_prog_compiler_no_builtin_flag=
8561 if test "$GCC" = yes; then
8562 case $cc_basename in
8564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 lt_cv_prog_compiler_rtti_exceptions=no
8575 ac_outfile=conftest.$ac_objext
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577 lt_compiler_flag="-fno-rtti -fno-exceptions"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 # The option is referenced via a variable to avoid confusing sed.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588 (eval "$lt_compile" 2>conftest.err)
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 if (exit $ac_status) && test -s "$ac_outfile"; then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings other than the usual output.
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_rtti_exceptions=yes
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8620 lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8625 if test "$GCC" = yes; then
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_static='-static'
8631 # All AIX code is PIC.
8632 if test "$host_cpu" = ia64; then
8633 # AIX 5 now supports IA64 processor
8634 lt_prog_compiler_static='-Bstatic'
8641 # see comment about AmigaOS4 .so support
8642 lt_prog_compiler_pic='-fPIC'
8645 # FIXME: we need at least 68020 code to build shared libraries, but
8646 # adding the `-m68020' flag to GCC prevents building anything better,
8648 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8654 # PIC is the default for these OSes.
8657 mingw* | cygwin* | pw32* | os2* | cegcc*)
8658 # This hack is so that the source file can tell whether it is being
8659 # built for inclusion in a dll (and should export symbols for example).
8660 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8661 # (--disable-auto-import) libraries
8662 lt_prog_compiler_pic='-DDLL_EXPORT'
8665 darwin* | rhapsody*)
8666 # PIC is the default on this platform
8667 # Common symbols not allowed in MH_DYLIB files
8668 lt_prog_compiler_pic='-fno-common'
8672 # PIC is the default for Haiku.
8673 # The "-static" flag exists, but is broken.
8674 lt_prog_compiler_static=
8678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8680 # sets the default TLS model and affects inlining.
8686 lt_prog_compiler_pic='-fPIC'
8692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8693 # Instead, we relocate shared libraries at runtime.
8697 # Just because we use GCC doesn't mean we suddenly get shared libraries
8698 # on systems that don't support them.
8699 lt_prog_compiler_can_build_shared=no
8704 # QNX uses GNU C++, but need to define -shared option too, otherwise
8706 lt_prog_compiler_pic='-fPIC -shared'
8710 if test -d /usr/nec; then
8711 lt_prog_compiler_pic=-Kconform_pic
8716 lt_prog_compiler_pic='-fPIC'
8720 case $cc_basename in
8721 nvcc*) # Cuda Compiler Driver 2.2
8722 lt_prog_compiler_wl='-Xlinker '
8723 if test -n "$lt_prog_compiler_pic"; then
8724 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8729 # PORTME Check for flag to pass linker flags through the system compiler.
8732 lt_prog_compiler_wl='-Wl,'
8733 if test "$host_cpu" = ia64; then
8734 # AIX 5 now supports IA64 processor
8735 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8741 mingw* | cygwin* | pw32* | os2* | cegcc*)
8742 # This hack is so that the source file can tell whether it is being
8743 # built for inclusion in a dll (and should export symbols for example).
8744 lt_prog_compiler_pic='-DDLL_EXPORT'
8747 hpux9* | hpux10* | hpux11*)
8748 lt_prog_compiler_wl='-Wl,'
8749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8756 lt_prog_compiler_pic='+Z'
8759 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8760 lt_prog_compiler_static='${wl}-a ${wl}archive'
8763 irix5* | irix6* | nonstopux*)
8764 lt_prog_compiler_wl='-Wl,'
8765 # PIC (with -KPIC) is the default.
8766 lt_prog_compiler_static='-non_shared'
8769 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8770 case $cc_basename in
8771 # old Intel for x86_64 which still supported -KPIC.
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-static'
8777 # icc used to be incompatible with GCC.
8778 # ICC 10 doesn't accept -KPIC any more.
8780 lt_prog_compiler_wl='-Wl,'
8781 lt_prog_compiler_pic='-fPIC'
8782 lt_prog_compiler_static='-static'
8784 # Lahey Fortran 8.1.
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='--shared'
8788 lt_prog_compiler_static='--static'
8791 # NAG Fortran compiler
8792 lt_prog_compiler_wl='-Wl,-Wl,,'
8793 lt_prog_compiler_pic='-PIC'
8794 lt_prog_compiler_static='-Bstatic'
8796 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8797 # Portland Group compilers (*not* the Pentium gcc compiler,
8798 # which looks to be a dead project)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-fpic'
8801 lt_prog_compiler_static='-Bstatic'
8804 lt_prog_compiler_wl='-Wl,'
8805 # All Alpha code is PIC.
8806 lt_prog_compiler_static='-non_shared'
8808 xl* | bgxl* | bgf* | mpixl*)
8809 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8810 lt_prog_compiler_wl='-Wl,'
8811 lt_prog_compiler_pic='-qpic'
8812 lt_prog_compiler_static='-qstaticlink'
8815 case `$CC -V 2>&1 | sed 5q` in
8816 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8817 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8818 lt_prog_compiler_pic='-KPIC'
8819 lt_prog_compiler_static='-Bstatic'
8820 lt_prog_compiler_wl=''
8822 *Sun\ F* | *Sun*Fortran*)
8823 lt_prog_compiler_pic='-KPIC'
8824 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_wl='-Qoption ld '
8829 lt_prog_compiler_pic='-KPIC'
8830 lt_prog_compiler_static='-Bstatic'
8831 lt_prog_compiler_wl='-Wl,'
8833 *Intel*\ [CF]*Compiler*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-fPIC'
8836 lt_prog_compiler_static='-static'
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-fpic'
8841 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8854 # QNX uses GNU C++, but need to define -shared option too, otherwise
8856 lt_prog_compiler_pic='-fPIC -shared'
8859 osf3* | osf4* | osf5*)
8860 lt_prog_compiler_wl='-Wl,'
8861 # All OSF/1 code is PIC.
8862 lt_prog_compiler_static='-non_shared'
8866 lt_prog_compiler_static='-non_shared'
8870 lt_prog_compiler_pic='-KPIC'
8871 lt_prog_compiler_static='-Bstatic'
8872 case $cc_basename in
8873 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8874 lt_prog_compiler_wl='-Qoption ld ';;
8876 lt_prog_compiler_wl='-Wl,';;
8881 lt_prog_compiler_wl='-Qoption ld '
8882 lt_prog_compiler_pic='-PIC'
8883 lt_prog_compiler_static='-Bstatic'
8886 sysv4 | sysv4.2uw2* | sysv4.3*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-Bstatic'
8893 if test -d /usr/nec ;then
8894 lt_prog_compiler_pic='-Kconform_pic'
8895 lt_prog_compiler_static='-Bstatic'
8899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8906 lt_prog_compiler_wl='-Wl,'
8907 lt_prog_compiler_can_build_shared=no
8911 lt_prog_compiler_pic='-pic'
8912 lt_prog_compiler_static='-Bstatic'
8916 lt_prog_compiler_can_build_shared=no
8922 # For platforms which do not support PIC, -DPIC is meaningless:
8924 lt_prog_compiler_pic=
8927 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8933 if ${lt_cv_prog_compiler_pic+:} false; then :
8934 $as_echo_n "(cached) " >&6
8936 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8940 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8943 # Check to make sure the PIC flag actually works.
8945 if test -n "$lt_prog_compiler_pic"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8947 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8948 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8949 $as_echo_n "(cached) " >&6
8951 lt_cv_prog_compiler_pic_works=no
8952 ac_outfile=conftest.$ac_objext
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8954 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 # The option is referenced via a variable to avoid confusing sed.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>conftest.err)
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 if (exit $ac_status) && test -s "$ac_outfile"; then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings other than the usual output.
8972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_pic_works=yes
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8984 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8985 case $lt_prog_compiler_pic in
8987 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8990 lt_prog_compiler_pic=
8991 lt_prog_compiler_can_build_shared=no
9007 # Check to make sure the static flag actually works.
9009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9011 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9012 if ${lt_cv_prog_compiler_static_works+:} false; then :
9013 $as_echo_n "(cached) " >&6
9015 lt_cv_prog_compiler_static_works=no
9016 save_LDFLAGS="$LDFLAGS"
9017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9018 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9020 # The linker can only warn and ignore the option if not recognized
9021 # So say no if there are warnings
9022 if test -s conftest.err; then
9023 # Append any errors to the config.log.
9024 cat conftest.err 1>&5
9025 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027 if diff conftest.exp conftest.er2 >/dev/null; then
9028 lt_cv_prog_compiler_static_works=yes
9031 lt_cv_prog_compiler_static_works=yes
9035 LDFLAGS="$save_LDFLAGS"
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9039 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9041 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9044 lt_prog_compiler_static=
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 lt_cv_prog_compiler_c_o=no
9059 $RM -r conftest 2>/dev/null
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-o out/conftest2.$ac_objext"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>out/conftest.err)
9077 cat out/conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_c_o=yes
9091 # SGI C++ compiler will create directory out/ii_files/ for
9092 # template instantiation
9093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094 $RM out/* && rmdir out
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9110 if ${lt_cv_prog_compiler_c_o+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 lt_cv_prog_compiler_c_o=no
9114 $RM -r conftest 2>/dev/null
9118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9120 lt_compiler_flag="-o out/conftest2.$ac_objext"
9121 # Insert the option either (1) after the last *FLAGS variable, or
9122 # (2) before a word containing "conftest.", or (3) at the end.
9123 # Note that $ac_compile itself does not contain backslashes and begins
9124 # with a dollar sign (not a hyphen), so the echo should work correctly.
9125 lt_compile=`echo "$ac_compile" | $SED \
9126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9128 -e 's:$: $lt_compiler_flag:'`
9129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9130 (eval "$lt_compile" 2>out/conftest.err)
9132 cat out/conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 # The compiler can only warn and ignore the option if not recognized
9137 # So say no if there are warnings
9138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9141 lt_cv_prog_compiler_c_o=yes
9146 # SGI C++ compiler will create directory out/ii_files/ for
9147 # template instantiation
9148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9149 $RM out/* && rmdir out
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9161 hard_links="nottested"
9162 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9163 # do not overwrite the value of need_locks provided by the user
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9165 $as_echo_n "checking if we can lock with hard links... " >&6; }
9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9170 ln conftest.a conftest.b 2>&5 || hard_links=no
9171 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9173 $as_echo "$hard_links" >&6; }
9174 if test "$hard_links" = no; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9176 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9189 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9192 allow_undefined_flag=
9193 always_export_symbols=no
9195 archive_expsym_cmds=
9196 compiler_needs_object=no
9197 enable_shared_with_static_runtimes=no
9198 export_dynamic_flag_spec=
9199 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9200 hardcode_automatic=no
9202 hardcode_direct_absolute=no
9203 hardcode_libdir_flag_spec=
9204 hardcode_libdir_separator=
9206 hardcode_shlibpath_var=unsupported
9208 link_all_deplibs=unknown
9211 old_archive_from_new_cmds=
9212 old_archive_from_expsyms_cmds=
9213 thread_safe_flag_spec=
9214 whole_archive_flag_spec=
9215 # include_expsyms should be a list of space-separated symbols to be *always*
9216 # included in the symbol list
9218 # exclude_expsyms can be an extended regexp of symbols to exclude
9219 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9220 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9221 # as well as any symbol that contains `d'.
9222 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9223 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9224 # platforms (ab)use it in PIC code, but their linkers get confused if
9225 # the symbol is explicitly referenced. Since portable code cannot
9226 # rely on this symbol name, it's probably fine to never include it in
9227 # preloaded symbol tables.
9228 # Exclude shared library initialization/finalization symbols.
9229 extract_expsyms_cmds=
9232 cygwin* | mingw* | pw32* | cegcc*)
9233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9234 # When not using gcc, we currently assume that we are using
9235 # Microsoft Visual C++.
9236 if test "$GCC" != yes; then
9241 # we just hope/assume this is gcc and not c89 (= MSVC++)
9251 # On some targets, GNU ld is compatible enough with the native linker
9252 # that we're better off using the native interface for both.
9253 lt_use_gnu_ld_interface=no
9254 if test "$with_gnu_ld" = yes; then
9257 # The AIX port of GNU ld has always aspired to compatibility
9258 # with the native linker. However, as the warning in the GNU ld
9259 # block says, versions before 2.19.5* couldn't really create working
9260 # shared libraries, regardless of the interface used.
9261 case `$LD -v 2>&1` in
9262 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9263 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9264 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9266 lt_use_gnu_ld_interface=yes
9271 lt_use_gnu_ld_interface=yes
9276 if test "$lt_use_gnu_ld_interface" = yes; then
9277 # If archive_cmds runs LD, not CC, wlarc should be empty
9280 # Set some defaults for GNU ld with shared library support. These
9281 # are reset later if shared libraries are not supported. Putting them
9282 # here allows them to be overridden if necessary.
9283 runpath_var=LD_RUN_PATH
9284 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 export_dynamic_flag_spec='${wl}--export-dynamic'
9286 # ancient GNU ld didn't support --whole-archive et. al.
9287 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9288 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9290 whole_archive_flag_spec=
9292 supports_anon_versioning=no
9293 case `$LD -v 2>&1` in
9294 *GNU\ gold*) supports_anon_versioning=yes ;;
9295 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9296 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9297 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9298 *\ 2.11.*) ;; # other 2.11 versions
9299 *) supports_anon_versioning=yes ;;
9302 # See if GNU ld supports shared libraries.
9305 # On AIX/PPC, the GNU linker is very broken
9306 if test "$host_cpu" != ia64; then
9310 *** Warning: the GNU linker, at least up to release 2.19, is reported
9311 *** to be unable to reliably create shared libraries on AIX.
9312 *** Therefore, libtool is disabling shared libraries support. If you
9313 *** really care for shared libraries, you may want to install binutils
9314 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9315 *** You will then need to restart the configuration process.
9324 # see comment about AmigaOS4 .so support
9325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9326 archive_expsym_cmds=''
9329 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)'
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338 allow_undefined_flag=unsupported
9339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9340 # support --undefined. This deserves some investigation. FIXME
9341 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9347 cygwin* | mingw* | pw32* | cegcc*)
9348 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9349 # as there is no search path for DLLs.
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 export_dynamic_flag_spec='${wl}--export-all-symbols'
9352 allow_undefined_flag=unsupported
9353 always_export_symbols=no
9354 enable_shared_with_static_runtimes=yes
9355 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'
9356 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9358 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9360 # If the export-symbols file already is a .def file (1st line
9361 # is EXPORTS), use it as is; otherwise, prepend...
9362 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9363 cp $export_symbols $output_objdir/$soname.def;
9365 echo EXPORTS > $output_objdir/$soname.def;
9366 cat $export_symbols >> $output_objdir/$soname.def;
9368 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 link_all_deplibs=yes
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383 export_dynamic_flag_spec='${wl}-E'
9384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9385 # Instead, shared libraries are loaded at an image base (0x10000000 by
9386 # default) and relocated if they conflict, which is a slow very memory
9387 # consuming and fragmenting process. To avoid this, we pick a random,
9388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9390 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9391 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'
9394 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9396 if test "$host_os" = linux-dietlibc; then
9397 case $cc_basename in
9398 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9401 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9402 && test "$tmp_diet" = no
9404 tmp_addflag=' $pic_flag'
9405 tmp_sharedflag='-shared'
9406 case $cc_basename,$host_cpu in
9407 pgcc*) # Portland Group C compiler
9408 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'
9409 tmp_addflag=' $pic_flag'
9411 pgf77* | pgf90* | pgf95* | pgfortran*)
9412 # Portland Group f77 and f90 compilers
9413 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'
9414 tmp_addflag=' $pic_flag -Mnomain' ;;
9415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9416 tmp_addflag=' -i_dynamic' ;;
9417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9418 tmp_addflag=' -i_dynamic -nofor_main' ;;
9419 ifc* | ifort*) # Intel Fortran compiler
9420 tmp_addflag=' -nofor_main' ;;
9421 lf95*) # Lahey Fortran 8.1
9422 whole_archive_flag_spec=
9423 tmp_sharedflag='--shared' ;;
9424 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425 tmp_sharedflag='-qmkshrobj'
9427 nvcc*) # Cuda Compiler Driver 2.2
9428 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9429 compiler_needs_object=yes
9432 case `$CC -V 2>&1 | sed 5q` in
9433 *Sun\ C*) # Sun C 5.9
9434 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9435 compiler_needs_object=yes
9436 tmp_sharedflag='-G' ;;
9437 *Sun\ F*) # Sun Fortran 8.3
9438 tmp_sharedflag='-G' ;;
9440 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9442 if test "x$supports_anon_versioning" = xyes; then
9443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9445 echo "local: *; };" >> $output_objdir/$libname.ver~
9446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9449 case $cc_basename in
9450 xlf* | bgf* | bgxlf* | mpixlf*)
9451 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9452 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9455 if test "x$supports_anon_versioning" = xyes; then
9456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9458 echo "local: *; };" >> $output_objdir/$libname.ver~
9459 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9470 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9479 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9483 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484 *** create shared libraries on Solaris systems. Therefore, libtool
9485 *** is disabling shared libraries support. We urge you to upgrade GNU
9486 *** binutils to release 2.9.1 or newer. Another option is to modify
9487 *** your PATH or compiler configuration so that the native linker is
9488 *** used, and then restart.
9491 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9492 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9499 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500 case `$LD -v 2>&1` in
9501 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9505 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506 *** reliably create shared libraries on SCO systems. Therefore, libtool
9507 *** is disabling shared libraries support. We urge you to upgrade GNU
9508 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9509 *** your PATH or compiler configuration so that the native linker is
9510 *** used, and then restart.
9515 # For security reasons, it is highly recommended that you always
9516 # use absolute paths for naming shared libraries, and exclude the
9517 # DT_RUNPATH tag from executables and libraries. But doing so
9518 # requires that you compile everything twice, which is a pain.
9519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_shlibpath_var=no
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9547 if test "$ld_shlibs" = no; then
9549 hardcode_libdir_flag_spec=
9550 export_dynamic_flag_spec=
9551 whole_archive_flag_spec=
9554 # PORTME fill in a description of your system's linker (not GNU ld)
9557 allow_undefined_flag=unsupported
9558 always_export_symbols=yes
9559 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'
9560 # Note: this linker hardcodes the directories in LIBPATH if there
9561 # are no directories specified by -L.
9562 hardcode_minus_L=yes
9563 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9564 # Neither direct hardcoding nor static linking is supported with a
9566 hardcode_direct=unsupported
9571 if test "$host_cpu" = ia64; then
9572 # On IA64, the linker does run time linking by default, so we don't
9573 # have to do anything special.
9574 aix_use_runtimelinking=no
9575 exp_sym_flag='-Bexport'
9578 # If we're using GNU nm, then we don't want the "-C" option.
9579 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9580 # Also, AIX nm treats weak defined symbols like other global
9581 # defined symbols, whereas GNU nm marks them as "W".
9582 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9583 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'
9585 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'
9587 aix_use_runtimelinking=no
9589 # Test if we are trying to use run time linking or normal
9590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9591 # need to do runtime linking.
9592 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9593 for ld_flag in $LDFLAGS; do
9594 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9595 aix_use_runtimelinking=yes
9602 exp_sym_flag='-bexport'
9603 no_entry_flag='-bnoentry'
9606 # When large executables or shared objects are built, AIX ld can
9607 # have problems creating the table of contents. If linking a library
9608 # or program results in "error TOC overflow" add -mminimal-toc to
9609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9614 hardcode_direct_absolute=yes
9615 hardcode_libdir_separator=':'
9616 link_all_deplibs=yes
9617 file_list_spec='${wl}-f,'
9619 if test "$GCC" = yes; then
9620 case $host_os in aix4.[012]|aix4.[012].*)
9621 # We only want to do this on AIX 4.2 and lower, the check
9622 # below for broken collect2 doesn't work under 4.3+
9623 collect2name=`${CC} -print-prog-name=collect2`
9624 if test -f "$collect2name" &&
9625 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9627 # We have reworked collect2
9630 # We have old collect2
9631 hardcode_direct=unsupported
9632 # It fails to find uninstalled libraries when the uninstalled
9633 # path is not listed in the libpath. Setting hardcode_minus_L
9634 # to unsupported forces relinking
9635 hardcode_minus_L=yes
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_libdir_separator=
9641 shared_flag='-shared'
9642 if test "$aix_use_runtimelinking" = yes; then
9643 shared_flag="$shared_flag "'${wl}-G'
9647 if test "$host_cpu" = ia64; then
9648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9649 # chokes on -Wl,-G. The following line is correct:
9652 if test "$aix_use_runtimelinking" = yes; then
9653 shared_flag='${wl}-G'
9655 shared_flag='${wl}-bM:SRE'
9660 export_dynamic_flag_spec='${wl}-bexpall'
9661 # It seems that -bexpall does not export symbols beginning with
9662 # underscore (_), so it is better to generate a list of symbols to export.
9663 always_export_symbols=yes
9664 if test "$aix_use_runtimelinking" = yes; then
9665 # Warning - without using the other runtime loading flags (-brtl),
9666 # -berok will link without error, but may produce a broken library.
9667 allow_undefined_flag='-berok'
9668 # Determine the default libpath from the value encoded in an
9670 if test "${lt_cv_aix_libpath+set}" = set; then
9671 aix_libpath=$lt_cv_aix_libpath
9673 if ${lt_cv_aix_libpath_+:} false; then :
9674 $as_echo_n "(cached) " >&6
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9687 if ac_fn_c_try_link "$LINENO"; then :
9689 lt_aix_libpath_sed='
9690 /Import File Strings/,/^$/ {
9692 s/^0 *\([^ ]*\) *$/\1/
9696 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9697 # Check for a 64-bit object if we didn't find anything.
9698 if test -z "$lt_cv_aix_libpath_"; then
9699 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 if test -z "$lt_cv_aix_libpath_"; then
9705 lt_cv_aix_libpath_="/usr/lib:/lib"
9710 aix_libpath=$lt_cv_aix_libpath_
9713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714 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"
9716 if test "$host_cpu" = ia64; then
9717 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718 allow_undefined_flag="-z nodefs"
9719 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"
9721 # Determine the default libpath from the value encoded in an
9723 if test "${lt_cv_aix_libpath+set}" = set; then
9724 aix_libpath=$lt_cv_aix_libpath
9726 if ${lt_cv_aix_libpath_+:} false; then :
9727 $as_echo_n "(cached) " >&6
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9740 if ac_fn_c_try_link "$LINENO"; then :
9742 lt_aix_libpath_sed='
9743 /Import File Strings/,/^$/ {
9745 s/^0 *\([^ ]*\) *$/\1/
9749 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9750 # Check for a 64-bit object if we didn't find anything.
9751 if test -z "$lt_cv_aix_libpath_"; then
9752 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 if test -z "$lt_cv_aix_libpath_"; then
9758 lt_cv_aix_libpath_="/usr/lib:/lib"
9763 aix_libpath=$lt_cv_aix_libpath_
9766 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9767 # Warning - without using the other run time loading flags,
9768 # -berok will link without error, but may produce a broken library.
9769 no_undefined_flag=' ${wl}-bernotok'
9770 allow_undefined_flag=' ${wl}-berok'
9771 if test "$with_gnu_ld" = yes; then
9772 # We only use this code for GNU lds that support --whole-archive.
9773 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9775 # Exported symbols can be pulled into shared objects from archives
9776 whole_archive_flag_spec='$convenience'
9778 archive_cmds_need_lc=yes
9779 # This is similar to how AIX traditionally builds its shared libraries.
9780 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'
9788 # see comment about AmigaOS4 .so support
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds=''
9793 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)'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_minus_L=yes
9801 export_dynamic_flag_spec=-rdynamic
9804 cygwin* | mingw* | pw32* | cegcc*)
9805 # When not using gcc, we currently assume that we are using
9806 # Microsoft Visual C++.
9807 # hardcode_libdir_flag_spec is actually meaningless, as there is
9808 # no search path for DLLs.
9809 case $cc_basename in
9812 hardcode_libdir_flag_spec=' '
9813 allow_undefined_flag=unsupported
9814 always_export_symbols=yes
9816 # Tell ltmain to make .lib files, not .a files.
9818 # Tell ltmain to make .dll files, not .so files.
9820 # FIXME: Setting linknames here is a bad hack.
9821 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9822 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9823 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9825 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9827 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9829 # The linker will not automatically build a static lib if we build a DLL.
9830 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9831 enable_shared_with_static_runtimes=yes
9832 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9835 old_postinstall_cmds='chmod 644 $oldlib'
9836 postlink_cmds='lt_outputfile="@OUTPUT@"~
9837 lt_tool_outputfile="@TOOL_OUTPUT@"~
9838 case $lt_outputfile in
9841 lt_outputfile="$lt_outputfile.exe"
9842 lt_tool_outputfile="$lt_tool_outputfile.exe"
9845 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9846 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9847 $RM "$lt_outputfile.manifest";
9851 # Assume MSVC wrapper
9852 hardcode_libdir_flag_spec=' '
9853 allow_undefined_flag=unsupported
9854 # Tell ltmain to make .lib files, not .a files.
9856 # Tell ltmain to make .dll files, not .so files.
9858 # FIXME: Setting linknames here is a bad hack.
9859 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9860 # The linker will automatically build a .lib file if we build a DLL.
9861 old_archive_from_new_cmds='true'
9862 # FIXME: Should let the user specify the lib program.
9863 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9864 enable_shared_with_static_runtimes=yes
9869 darwin* | rhapsody*)
9872 archive_cmds_need_lc=no
9874 hardcode_automatic=yes
9875 hardcode_shlibpath_var=unsupported
9876 if test "$lt_cv_ld_force_load" = "yes"; then
9877 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\"`'
9880 whole_archive_flag_spec=''
9882 link_all_deplibs=yes
9883 allow_undefined_flag="$_lt_dar_allow_undefined"
9884 case $cc_basename in
9885 ifort*) _lt_dar_can_shared=yes ;;
9886 *) _lt_dar_can_shared=$GCC ;;
9888 if test "$_lt_dar_can_shared" = "yes"; then
9889 output_verbose_link_cmd=func_echo_all
9890 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9891 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9892 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}"
9893 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}"
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_shlibpath_var=no
9907 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9908 # support. Future versions do this automatically, but an explicit c++rt0.o
9909 # does not break anything, and helps significantly (at the cost of a little
9912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9913 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9918 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9922 hardcode_minus_L=yes
9923 hardcode_shlibpath_var=no
9926 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9927 freebsd* | dragonfly*)
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_shlibpath_var=no
9935 if test "$GCC" = yes; then
9936 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'
9938 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'
9940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941 hardcode_libdir_separator=:
9944 # hardcode_minus_L: Not really in the search PATH,
9945 # but as the default location of the library.
9946 hardcode_minus_L=yes
9947 export_dynamic_flag_spec='${wl}-E'
9951 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9952 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9956 if test "$with_gnu_ld" = no; then
9957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958 hardcode_libdir_separator=:
9960 hardcode_direct_absolute=yes
9961 export_dynamic_flag_spec='${wl}-E'
9962 # hardcode_minus_L: Not really in the search PATH,
9963 # but as the default location of the library.
9964 hardcode_minus_L=yes
9969 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9972 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9991 # Older versions of the 11.00 compiler do not understand -b yet
9992 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9994 $as_echo_n "checking if $CC understands -b... " >&6; }
9995 if ${lt_cv_prog_compiler__b+:} false; then :
9996 $as_echo_n "(cached) " >&6
9998 lt_cv_prog_compiler__b=no
9999 save_LDFLAGS="$LDFLAGS"
10000 LDFLAGS="$LDFLAGS -b"
10001 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003 # The linker can only warn and ignore the option if not recognized
10004 # So say no if there are warnings
10005 if test -s conftest.err; then
10006 # Append any errors to the config.log.
10007 cat conftest.err 1>&5
10008 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010 if diff conftest.exp conftest.er2 >/dev/null; then
10011 lt_cv_prog_compiler__b=yes
10014 lt_cv_prog_compiler__b=yes
10018 LDFLAGS="$save_LDFLAGS"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10022 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10024 if test x"$lt_cv_prog_compiler__b" = xyes; then
10025 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10033 if test "$with_gnu_ld" = no; then
10034 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10035 hardcode_libdir_separator=:
10040 hardcode_shlibpath_var=no
10043 hardcode_direct=yes
10044 hardcode_direct_absolute=yes
10045 export_dynamic_flag_spec='${wl}-E'
10047 # hardcode_minus_L: Not really in the search PATH,
10048 # but as the default location of the library.
10049 hardcode_minus_L=yes
10055 irix5* | irix6* | nonstopux*)
10056 if test "$GCC" = yes; then
10057 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'
10058 # Try to use the -exported_symbol ld option, if it does not
10059 # work, assume that -exports_file does not work either and
10060 # implicitly export all symbols.
10061 # This should be the same for all languages, so no per-tag cache variable.
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10063 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10064 if ${lt_cv_irix_exported_symbol+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 save_LDFLAGS="$LDFLAGS"
10068 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h. */
10071 int foo (void) { return 0; }
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 lt_cv_irix_exported_symbol=yes
10076 lt_cv_irix_exported_symbol=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LDFLAGS="$save_LDFLAGS"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10083 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10084 if test "$lt_cv_irix_exported_symbol" = yes; then
10085 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'
10088 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'
10089 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'
10091 archive_cmds_need_lc='no'
10092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093 hardcode_libdir_separator=:
10095 link_all_deplibs=yes
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10102 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10104 hardcode_libdir_flag_spec='-R$libdir'
10105 hardcode_direct=yes
10106 hardcode_shlibpath_var=no
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes
10112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator=:
10114 hardcode_shlibpath_var=no
10121 if test -f /usr/libexec/ld.so; then
10122 hardcode_direct=yes
10123 hardcode_shlibpath_var=no
10124 hardcode_direct_absolute=yes
10125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10126 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10128 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10129 export_dynamic_flag_spec='${wl}-E'
10132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_libdir_flag_spec='-R$libdir'
10137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10148 hardcode_libdir_flag_spec='-L$libdir'
10149 hardcode_minus_L=yes
10150 allow_undefined_flag=unsupported
10151 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'
10152 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10156 if test "$GCC" = yes; then
10157 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10158 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'
10160 allow_undefined_flag=' -expect_unresolved \*'
10161 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'
10163 archive_cmds_need_lc='no'
10164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10165 hardcode_libdir_separator=:
10168 osf4* | osf5*) # as osf3* with the addition of -msym flag
10169 if test "$GCC" = yes; then
10170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10171 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'
10172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10174 allow_undefined_flag=' -expect_unresolved \*'
10175 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'
10176 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~
10177 $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'
10179 # Both c and cxx compiler support -rpath directly
10180 hardcode_libdir_flag_spec='-rpath $libdir'
10182 archive_cmds_need_lc='no'
10183 hardcode_libdir_separator=:
10187 no_undefined_flag=' -z defs'
10188 if test "$GCC" = yes; then
10190 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10192 $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'
10194 case `$CC -V 2>&1` in
10197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10198 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10203 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10205 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10209 hardcode_libdir_flag_spec='-R$libdir'
10210 hardcode_shlibpath_var=no
10212 solaris2.[0-5] | solaris2.[0-5].*) ;;
10214 # The compiler driver will combine and reorder linker options,
10215 # but understands `-z linker_flag'. GCC discards it without `$wl',
10216 # but is careful enough not to reorder.
10217 # Supported since Solaris 2.6 (maybe 2.5.1?)
10218 if test "$GCC" = yes; then
10219 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10221 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10225 link_all_deplibs=yes
10229 if test "x$host_vendor" = xsequent; then
10230 # Use $CC to link under sequent, because it throws in some extra .o
10231 # files that make .init and .fini sections work.
10232 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10236 hardcode_libdir_flag_spec='-L$libdir'
10237 hardcode_direct=yes
10238 hardcode_minus_L=yes
10239 hardcode_shlibpath_var=no
10243 case $host_vendor in
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_direct=yes # is this really true???
10249 ## LD is ld it makes a PLAMLIB
10250 ## CC just makes a GrossModule.
10251 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10252 reload_cmds='$CC -r -o $output$reload_objs'
10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10260 runpath_var='LD_RUN_PATH'
10261 hardcode_shlibpath_var=no
10265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_shlibpath_var=no
10267 export_dynamic_flag_spec='-Bexport'
10271 if test -d /usr/nec; then
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_shlibpath_var=no
10274 runpath_var=LD_RUN_PATH
10275 hardcode_runpath_var=yes
10280 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10281 no_undefined_flag='${wl}-z,text'
10282 archive_cmds_need_lc=no
10283 hardcode_shlibpath_var=no
10284 runpath_var='LD_RUN_PATH'
10286 if test "$GCC" = yes; then
10287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 sysv5* | sco3.2v5* | sco5v6*)
10296 # Note: We can NOT use -z defs as we might desire, because we do not
10297 # link with -lc, and that would cause any symbols used from libc to
10298 # always be unresolved, which means just about no library would
10299 # ever link correctly. If we're not using GNU ld we use -z text
10300 # though, which does catch some bad symbols but isn't as heavy-handed
10302 no_undefined_flag='${wl}-z,text'
10303 allow_undefined_flag='${wl}-z,nodefs'
10304 archive_cmds_need_lc=no
10305 hardcode_shlibpath_var=no
10306 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10307 hardcode_libdir_separator=':'
10308 link_all_deplibs=yes
10309 export_dynamic_flag_spec='${wl}-Bexport'
10310 runpath_var='LD_RUN_PATH'
10312 if test "$GCC" = yes; then
10313 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323 hardcode_libdir_flag_spec='-L$libdir'
10324 hardcode_shlibpath_var=no
10332 if test x$host_vendor = xsni; then
10334 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10335 export_dynamic_flag_spec='${wl}-Blargedynsym'
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10342 $as_echo "$ld_shlibs" >&6; }
10343 test "$ld_shlibs" = no && can_build_shared=no
10345 with_gnu_ld=$with_gnu_ld
10362 # Do we need to explicitly link libc?
10364 case "x$archive_cmds_need_lc" in
10366 # Assume -lc should be added
10367 archive_cmds_need_lc=yes
10369 if test "$enable_shared" = yes && test "$GCC" = yes; then
10370 case $archive_cmds in
10372 # FIXME: we may have to deal with multi-command sequences.
10375 # Test whether the compiler implicitly links with -lc since on some
10376 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10377 # to ld, don't add -lc before -lgcc.
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10379 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10380 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10381 $as_echo_n "(cached) " >&6
10384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10387 (eval $ac_compile) 2>&5
10389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10390 test $ac_status = 0; } 2>conftest.err; then
10393 libobjs=conftest.$ac_objext
10395 wl=$lt_prog_compiler_wl
10396 pic_flag=$lt_prog_compiler_pic
10402 lt_save_allow_undefined_flag=$allow_undefined_flag
10403 allow_undefined_flag=
10404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10405 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408 test $ac_status = 0; }
10410 lt_cv_archive_cmds_need_lc=no
10412 lt_cv_archive_cmds_need_lc=yes
10414 allow_undefined_flag=$lt_save_allow_undefined_flag
10416 cat conftest.err 1>&5
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10422 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10423 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10582 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10584 if test "$GCC" = yes; then
10586 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10587 *) lt_awk_arg="/^libraries:/" ;;
10590 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10591 *) lt_sed_strip_eq="s,=/,/,g" ;;
10593 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10594 case $lt_search_path_spec in
10596 # if the path contains ";" then we assume it to be the separator
10597 # otherwise default to the standard path separator (i.e. ":") - it is
10598 # assumed that no part of a normal pathname contains ";" but that should
10599 # okay in the real world where ";" in dirpaths is itself problematic.
10600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10603 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10606 # Ok, now we have the path, separated by spaces, we can step through it
10607 # and add multilib dir if necessary.
10608 lt_tmp_lt_search_path_spec=
10609 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10610 for lt_sys_path in $lt_search_path_spec; do
10611 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10612 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10614 test -d "$lt_sys_path" && \
10615 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10618 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10619 BEGIN {RS=" "; FS="/|\n";} {
10622 for (lt_i = NF; lt_i > 0; lt_i--) {
10623 if ($lt_i != "" && $lt_i != ".") {
10624 if ($lt_i == "..") {
10627 if (lt_count == 0) {
10628 lt_foo="/" $lt_i lt_foo;
10635 if (lt_foo != "") { lt_freq[lt_foo]++; }
10636 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10638 # AWK program above erroneously prepends '/' to C:/dos/paths
10641 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10642 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10644 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10646 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10648 library_names_spec=
10649 libname_spec='lib$name'
10653 postuninstall_cmds=
10657 shlibpath_overrides_runpath=unknown
10659 dynamic_linker="$host_os ld.so"
10660 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10661 need_lib_prefix=unknown
10662 hardcode_into_libs=no
10664 # when you set need_version to no, make sure it does not cause -set_version
10665 # flags to be left without arguments
10666 need_version=unknown
10670 version_type=linux # correct to gnu/linux during the next big refactor
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10672 shlibpath_var=LIBPATH
10674 # AIX 3 has no versioning support, so we append a major version to the name.
10675 soname_spec='${libname}${release}${shared_ext}$major'
10679 version_type=linux # correct to gnu/linux during the next big refactor
10682 hardcode_into_libs=yes
10683 if test "$host_cpu" = ia64; then
10684 # AIX 5 supports IA64
10685 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10688 # With GCC up to 2.95.x, collect2 would create an import file
10689 # for dependence libraries. The import file would start with
10690 # the line `#! .'. This would cause the generated library to
10691 # depend on `.', always an invalid library. This was fixed in
10692 # development snapshots of GCC prior to 3.0.
10694 aix4 | aix4.[01] | aix4.[01].*)
10695 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10697 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10700 can_build_shared=no
10704 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10705 # soname into executable. Probably we can add versioning support to
10706 # collect2, so additional links can be useful in future.
10707 if test "$aix_use_runtimelinking" = yes; then
10708 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10709 # instead of lib<name>.a to let people know that these are not
10710 # typical AIX shared libraries.
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 # We preserve .a as extension for shared libraries through AIX4.2
10714 # and later when we are not doing run time linking.
10715 library_names_spec='${libname}${release}.a $libname.a'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10718 shlibpath_var=LIBPATH
10725 # Since July 2007 AmigaOS4 officially supports .so libraries.
10726 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 library_names_spec='$libname.ixlibrary $libname.a'
10731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10732 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'
10738 library_names_spec='${libname}${shared_ext}'
10739 dynamic_linker="$host_os ld.so"
10740 shlibpath_var=LIBRARY_PATH
10744 version_type=linux # correct to gnu/linux during the next big refactor
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10752 # the default ld.so.conf also contains /usr/contrib/lib and
10753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10754 # libtool to hard-code these into programs
10757 cygwin* | mingw* | pw32* | cegcc*)
10758 version_type=windows
10763 case $GCC,$cc_basename in
10766 library_names_spec='$libname.dll.a'
10767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768 postinstall_cmds='base_file=`basename \${file}`~
10769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770 dldir=$destdir/`dirname \$dlpath`~
10771 test -d \$dldir || mkdir -p \$dldir~
10772 $install_prog $dir/$dlname \$dldir/$dlname~
10773 chmod a+x \$dldir/$dlname~
10774 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10775 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10777 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10778 dlpath=$dir/\$dldll~
10780 shlibpath_overrides_runpath=yes
10784 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10785 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10787 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10790 # MinGW DLLs use traditional 'lib' prefix
10791 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794 # pw32 DLLs use 'pw' prefix rather than 'lib'
10795 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10798 dynamic_linker='Win32 ld.exe'
10803 libname_spec='$name'
10804 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10805 library_names_spec='${libname}.dll.lib'
10809 sys_lib_search_path_spec=
10812 for lt_path in $LIB
10815 # Let DOS variable expansion print the short 8.3 style file name.
10816 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10817 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10820 # Convert to MSYS style.
10821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10824 # Convert to unix form, then to dos form, then back to unix form
10825 # but this time dos style (no spaces!) so that the unix form looks
10826 # like /cygdrive/c/PROGRA~1:/cygdr...
10827 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10828 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10829 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10832 sys_lib_search_path_spec="$LIB"
10833 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10834 # It is most probably a Windows format PATH.
10835 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10837 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10839 # FIXME: find the short name or the path components, as spaces are
10840 # common. (e.g. "Program Files" -> "PROGRA~1")
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname'
10850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10851 dlpath=$dir/\$dldll~
10853 shlibpath_overrides_runpath=yes
10854 dynamic_linker='Win32 link.exe'
10858 # Assume MSVC wrapper
10859 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10860 dynamic_linker='Win32 ld.exe'
10863 # FIXME: first we should search . and the directory the executable is in
10867 darwin* | rhapsody*)
10868 dynamic_linker="$host_os dyld"
10869 version_type=darwin
10872 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10873 soname_spec='${libname}${release}${major}$shared_ext'
10874 shlibpath_overrides_runpath=yes
10875 shlibpath_var=DYLD_LIBRARY_PATH
10876 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10878 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10879 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10883 version_type=linux # correct to gnu/linux during the next big refactor
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 shlibpath_var=LD_LIBRARY_PATH
10891 freebsd* | dragonfly*)
10892 # DragonFly does not have aout. When/if they implement a new
10893 # versioning mechanism, adjust this.
10894 if test -x /usr/bin/objformat; then
10895 objformat=`/usr/bin/objformat`
10898 freebsd[23].*) objformat=aout ;;
10899 *) objformat=elf ;;
10902 version_type=freebsd-$objformat
10903 case $version_type in
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10914 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=yes
10919 freebsd3.[01]* | freebsdelf3.[01]*)
10920 shlibpath_overrides_runpath=yes
10921 hardcode_into_libs=yes
10923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10925 shlibpath_overrides_runpath=no
10926 hardcode_into_libs=yes
10928 *) # from 4.6 on, and DragonFly
10929 shlibpath_overrides_runpath=yes
10930 hardcode_into_libs=yes
10936 version_type=linux # correct to gnu/linux during the next big refactor
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
10943 hardcode_into_libs=yes
10947 version_type=linux # correct to gnu/linux during the next big refactor
10950 dynamic_linker="$host_os runtime_loader"
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10955 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10956 hardcode_into_libs=yes
10959 hpux9* | hpux10* | hpux11*)
10960 # Give a soname corresponding to the major version so that dld.sl refuses to
10961 # link against other versions.
10968 hardcode_into_libs=yes
10969 dynamic_linker="$host_os dld.so"
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 if test "X$HPUX_IA64_MODE" = X32; then
10975 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10983 hardcode_into_libs=yes
10984 dynamic_linker="$host_os dld.sl"
10985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10994 dynamic_linker="$host_os dld.sl"
10995 shlibpath_var=SHLIB_PATH
10996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
11001 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11002 postinstall_cmds='chmod 555 $lib'
11003 # or fails outright, so override atomically:
11004 install_override_mode=555
11008 version_type=linux # correct to gnu/linux during the next big refactor
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=no
11016 hardcode_into_libs=yes
11019 irix5* | irix6* | nonstopux*)
11021 nonstopux*) version_type=nonstopux ;;
11023 if test "$lt_cv_prog_gnu_ld" = yes; then
11024 version_type=linux # correct to gnu/linux during the next big refactor
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11034 irix5* | nonstopux*)
11035 libsuff= shlibsuff=
11038 case $LD in # libtool.m4 will add one of these switches to LD
11039 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11040 libsuff= shlibsuff= libmagic=32-bit;;
11041 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11042 libsuff=32 shlibsuff=N32 libmagic=N32;;
11043 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11044 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11045 *) libsuff= shlibsuff= libmagic=never-match;;
11049 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11050 shlibpath_overrides_runpath=no
11051 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11052 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11053 hardcode_into_libs=yes
11056 # No shared lib support for Linux oldld, aout, or coff.
11057 linux*oldld* | linux*aout* | linux*coff*)
11061 # This must be glibc/ELF.
11062 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11072 # Some binutils ld are patched to set DT_RUNPATH
11073 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11074 $as_echo_n "(cached) " >&6
11076 lt_cv_shlibpath_overrides_runpath=no
11077 save_LDFLAGS=$LDFLAGS
11078 save_libdir=$libdir
11079 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11080 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11092 if ac_fn_c_try_link "$LINENO"; then :
11093 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11094 lt_cv_shlibpath_overrides_runpath=yes
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS=$save_LDFLAGS
11100 libdir=$save_libdir
11104 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11106 # This implies no fast_install, which is unacceptable.
11107 # Some rework will be needed to allow for fast_install
11108 # before this can be enabled.
11109 hardcode_into_libs=yes
11111 # Append ld.so.conf contents to the search path
11112 if test -f /etc/ld.so.conf; then
11113 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' ' '`
11114 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11117 # We used to test for /lib/ld.so.1 and disable shared libraries on
11118 # powerpc, because MkLinux only supported shared libraries with the
11119 # GNU dynamic linker. Since this was broken with cross compilers,
11120 # most powerpc-linux boxes support dynamic linking these days and
11121 # people can always --disable-shared, the test was removed, and we
11122 # assume the GNU/Linux dynamic linker is in use.
11123 dynamic_linker='GNU/Linux ld.so'
11130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11133 dynamic_linker='NetBSD (a.out) ld.so'
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 dynamic_linker='NetBSD ld.elf_so'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11145 version_type=linux # correct to gnu/linux during the next big refactor
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11156 soname_spec='${libname}${release}${shared_ext}$major'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=no
11159 hardcode_into_libs=yes
11160 dynamic_linker='ldqnx.so'
11165 sys_lib_dlsearch_path_spec="/usr/lib"
11167 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11169 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11170 *) need_version=no ;;
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11177 openbsd2.[89] | openbsd2.[89].*)
11178 shlibpath_overrides_runpath=no
11181 shlibpath_overrides_runpath=yes
11185 shlibpath_overrides_runpath=yes
11190 libname_spec='$name'
11193 library_names_spec='$libname${shared_ext} $libname.a'
11194 dynamic_linker='OS/2 ld.exe'
11195 shlibpath_var=LIBPATH
11198 osf3* | osf4* | osf5*)
11202 soname_spec='${libname}${release}${shared_ext}$major'
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11206 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11214 version_type=linux # correct to gnu/linux during the next big refactor
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 hardcode_into_libs=yes
11222 # ldd complains unless libraries are executable
11223 postinstall_cmds='chmod +x $lib'
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11229 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 shlibpath_overrides_runpath=yes
11232 if test "$with_gnu_ld" = yes; then
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 case $host_vendor in
11245 shlibpath_overrides_runpath=no
11247 runpath_var=LD_RUN_PATH
11255 shlibpath_overrides_runpath=no
11256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11262 if test -d /usr/nec ;then
11263 version_type=linux # correct to gnu/linux during the next big refactor
11264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11265 soname_spec='$libname${shared_ext}.$major'
11266 shlibpath_var=LD_LIBRARY_PATH
11270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11271 version_type=freebsd-elf
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 hardcode_into_libs=yes
11279 if test "$with_gnu_ld" = yes; then
11280 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11282 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11285 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11289 sys_lib_dlsearch_path_spec='/usr/lib'
11293 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11294 version_type=linux # correct to gnu/linux during the next big refactor
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11315 $as_echo "$dynamic_linker" >&6; }
11316 test "$dynamic_linker" = no && can_build_shared=no
11318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11319 if test "$GCC" = yes; then
11320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11323 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11324 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11326 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11424 if test -n "$hardcode_libdir_flag_spec" ||
11425 test -n "$runpath_var" ||
11426 test "X$hardcode_automatic" = "Xyes" ; then
11428 # We can hardcode non-existent directories.
11429 if test "$hardcode_direct" != no &&
11430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11431 # have to relink, otherwise we might link with an installed library
11432 # when we should be linking with a yet-to-be-installed one
11433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11434 test "$hardcode_minus_L" != no; then
11435 # Linking always hardcodes the temporary library directory.
11436 hardcode_action=relink
11438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11439 hardcode_action=immediate
11442 # We cannot hardcode anything, or else we can only hardcode existing
11444 hardcode_action=unsupported
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11447 $as_echo "$hardcode_action" >&6; }
11449 if test "$hardcode_action" = relink ||
11450 test "$inherit_rpath" = yes; then
11451 # Fast installation is not supported
11452 enable_fast_install=no
11453 elif test "$shlibpath_overrides_runpath" = yes ||
11454 test "$enable_shared" = no; then
11455 # Fast installation is not necessary
11456 enable_fast_install=needless
11464 if test "x$enable_dlopen" != xyes; then
11465 enable_dlopen=unknown
11466 enable_dlopen_self=unknown
11467 enable_dlopen_self_static=unknown
11474 lt_cv_dlopen="load_add_on"
11476 lt_cv_dlopen_self=yes
11479 mingw* | pw32* | cegcc*)
11480 lt_cv_dlopen="LoadLibrary"
11485 lt_cv_dlopen="dlopen"
11490 # if libdl is installed we need to link against it
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11493 if ${ac_cv_lib_dl_dlopen+:} false; then :
11494 $as_echo_n "(cached) " >&6
11496 ac_check_lib_save_LIBS=$LIBS
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 ac_cv_lib_dl_dlopen=yes
11519 ac_cv_lib_dl_dlopen=no
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_lib_save_LIBS
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11527 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531 lt_cv_dlopen="dyld"
11533 lt_cv_dlopen_self=yes
11540 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11541 if test "x$ac_cv_func_shl_load" = xyes; then :
11542 lt_cv_dlopen="shl_load"
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11546 if ${ac_cv_lib_dld_shl_load+:} false; then :
11547 $as_echo_n "(cached) " >&6
11549 ac_check_lib_save_LIBS=$LIBS
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11564 return shl_load ();
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_lib_dld_shl_load=yes
11572 ac_cv_lib_dld_shl_load=no
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11579 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11580 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11583 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11584 if test "x$ac_cv_func_dlopen" = xyes; then :
11585 lt_cv_dlopen="dlopen"
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11589 if ${ac_cv_lib_dl_dlopen+:} false; then :
11590 $as_echo_n "(cached) " >&6
11592 ac_check_lib_save_LIBS=$LIBS
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h. */
11597 /* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_lib_dl_dlopen=yes
11615 ac_cv_lib_dl_dlopen=no
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11623 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11627 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11628 if ${ac_cv_lib_svld_dlopen+:} false; then :
11629 $as_echo_n "(cached) " >&6
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lsvld $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_lib_svld_dlopen=yes
11654 ac_cv_lib_svld_dlopen=no
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11661 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11662 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11666 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11667 if ${ac_cv_lib_dld_dld_link+:} false; then :
11668 $as_echo_n "(cached) " >&6
11670 ac_check_lib_save_LIBS=$LIBS
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11685 return dld_link ();
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_lib_dld_dld_link=yes
11693 ac_cv_lib_dld_dld_link=no
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11700 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11701 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11702 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11723 if test "x$lt_cv_dlopen" != xno; then
11729 case $lt_cv_dlopen in
11731 save_CPPFLAGS="$CPPFLAGS"
11732 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11734 save_LDFLAGS="$LDFLAGS"
11735 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11738 LIBS="$lt_cv_dlopen_libs $LIBS"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11741 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11742 if ${lt_cv_dlopen_self+:} false; then :
11743 $as_echo_n "(cached) " >&6
11745 if test "$cross_compiling" = yes; then :
11746 lt_cv_dlopen_self=cross
11748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11749 lt_status=$lt_dlunknown
11750 cat > conftest.$ac_ext <<_LT_EOF
11751 #line $LINENO "configure"
11752 #include "confdefs.h"
11761 # define LT_DLGLOBAL RTLD_GLOBAL
11764 # define LT_DLGLOBAL DL_GLOBAL
11766 # define LT_DLGLOBAL 0
11770 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11771 find out it does not work in some platform. */
11772 #ifndef LT_DLLAZY_OR_NOW
11774 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11777 # define LT_DLLAZY_OR_NOW DL_LAZY
11780 # define LT_DLLAZY_OR_NOW RTLD_NOW
11783 # define LT_DLLAZY_OR_NOW DL_NOW
11785 # define LT_DLLAZY_OR_NOW 0
11792 /* When -fvisbility=hidden is used, assume the code has been annotated
11793 correspondingly for the symbols needed. */
11794 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11795 int fnord () __attribute__((visibility("default")));
11798 int fnord () { return 42; }
11801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11802 int status = $lt_dlunknown;
11806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11810 else puts (dlerror ());
11812 /* dlclose (self); */
11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11821 (eval $ac_link) 2>&5
11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11825 (./conftest; exit; ) >&5 2>/dev/null
11827 case x$lt_status in
11828 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11829 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11830 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11833 # compilation failed
11834 lt_cv_dlopen_self=no
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11842 $as_echo "$lt_cv_dlopen_self" >&6; }
11844 if test "x$lt_cv_dlopen_self" = xyes; then
11845 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11847 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11848 if ${lt_cv_dlopen_self_static+:} false; then :
11849 $as_echo_n "(cached) " >&6
11851 if test "$cross_compiling" = yes; then :
11852 lt_cv_dlopen_self_static=cross
11854 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11855 lt_status=$lt_dlunknown
11856 cat > conftest.$ac_ext <<_LT_EOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11867 # define LT_DLGLOBAL RTLD_GLOBAL
11870 # define LT_DLGLOBAL DL_GLOBAL
11872 # define LT_DLGLOBAL 0
11876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11877 find out it does not work in some platform. */
11878 #ifndef LT_DLLAZY_OR_NOW
11880 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11883 # define LT_DLLAZY_OR_NOW DL_LAZY
11886 # define LT_DLLAZY_OR_NOW RTLD_NOW
11889 # define LT_DLLAZY_OR_NOW DL_NOW
11891 # define LT_DLLAZY_OR_NOW 0
11898 /* When -fvisbility=hidden is used, assume the code has been annotated
11899 correspondingly for the symbols needed. */
11900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11901 int fnord () __attribute__((visibility("default")));
11904 int fnord () { return 42; }
11907 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11908 int status = $lt_dlunknown;
11912 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11915 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11916 else puts (dlerror ());
11918 /* dlclose (self); */
11926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11927 (eval $ac_link) 2>&5
11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11931 (./conftest; exit; ) >&5 2>/dev/null
11933 case x$lt_status in
11934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11936 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11939 # compilation failed
11940 lt_cv_dlopen_self_static=no
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11948 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11951 CPPFLAGS="$save_CPPFLAGS"
11952 LDFLAGS="$save_LDFLAGS"
11957 case $lt_cv_dlopen_self in
11958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11959 *) enable_dlopen_self=unknown ;;
11962 case $lt_cv_dlopen_self_static in
11963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11964 *) enable_dlopen_self_static=unknown ;;
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11987 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11988 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11989 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11990 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11992 $as_echo "yes" >&6; }
11994 # FIXME - insert some real tests, host_os isn't really good enough
11997 if test -n "$STRIP" ; then
11998 striplib="$STRIP -x"
11999 old_striplib="$STRIP -S"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12001 $as_echo "yes" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004 $as_echo "no" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12009 $as_echo "no" >&6; }
12025 # Report which library types will actually be built
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12027 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12029 $as_echo "$can_build_shared" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12032 $as_echo_n "checking whether to build shared libraries... " >&6; }
12033 test "$can_build_shared" = "no" && enable_shared=no
12035 # On AIX, shared libraries and static libraries use the same namespace, and
12036 # are all built from PIC.
12039 test "$enable_shared" = yes && enable_static=no
12040 if test -n "$RANLIB"; then
12041 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12042 postinstall_cmds='$RANLIB $lib'
12047 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12048 test "$enable_shared" = yes && enable_static=no
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12053 $as_echo "$enable_shared" >&6; }
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12056 $as_echo_n "checking whether to build static libraries... " >&6; }
12057 # Make sure either enable_shared or enable_static is yes.
12058 test "$enable_shared" = yes || enable_static=yes
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12060 $as_echo "$enable_static" >&6; }
12067 ac_cpp='$CPP $CPPFLAGS'
12068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12088 ac_config_commands="$ac_config_commands libtool"
12093 # Only expand once:
12097 for ac_func in _close _dup _fdopen _fileno _open _setmode _snprintf _strdup _stricmp fileno fseeko ftello getopt getprogname open setmode snprintf strcasecmp strdup stricmp
12099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12100 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12101 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12102 cat >>confdefs.h <<_ACEOF
12103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12109 for ac_func in mkstemp
12111 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12112 if test "x$ac_cv_func_mkstemp" = xyes; then :
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_MKSTEMP 1
12118 case " $LIBOBJS " in
12119 *" mkstemp.$ac_objext "* ) ;;
12120 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libc defines __progname" >&5
12129 $as_echo_n "checking if libc defines __progname... " >&6; }
12130 if ${ac_cv_libc_defines___progname+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12139 extern char *__progname; printf("%s", __progname);
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_libc_defines___progname="yes"
12147 ac_cv_libc_defines___progname="no"
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_defines___progname" >&5
12154 $as_echo "$ac_cv_libc_defines___progname" >&6; }
12155 if test "x$ac_cv_libc_defines___progname" = "xyes" ; then
12157 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5
12162 $as_echo_n "checking whether we are building for a Win32 host... " >&6; }
12163 if ${ac_cv_win32_host+:} false; then :
12164 $as_echo_n "(cached) " >&6
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12173 if ac_fn_c_try_compile "$LINENO"; then :
12174 ac_cv_win32_host=no
12176 ac_cv_win32_host=yes
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_win32_host" >&5
12181 $as_echo "$ac_cv_win32_host" >&6; }
12182 if test "x$ac_cv_win32_host" = "xyes"; then
12184 WIN32_HOST_FALSE='#'
12186 WIN32_HOST_TRUE='#'
12191 for ac_header in fts.h stdbool.h strings.h unistd.h
12193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12194 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12196 cat >>confdefs.h <<_ACEOF
12197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12205 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12206 if test "x$ac_cv_type_int8_t" = xyes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_INT8_T 1
12215 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12216 if test "x$ac_cv_type_int16_t" = xyes; then :
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_INT16_T 1
12225 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12226 if test "x$ac_cv_type_int32_t" = xyes; then :
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_INT32_T 1
12235 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12236 if test "x$ac_cv_type_int64_t" = xyes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_INT64_T 1
12245 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12246 if test "x$ac_cv_type_uint8_t" = xyes; then :
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_UINT8_T 1
12255 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12256 if test "x$ac_cv_type_uint16_t" = xyes; then :
12258 cat >>confdefs.h <<_ACEOF
12259 #define HAVE_UINT16_T 1
12265 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12266 if test "x$ac_cv_type_uint32_t" = xyes; then :
12268 cat >>confdefs.h <<_ACEOF
12269 #define HAVE_UINT32_T 1
12275 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12276 if test "x$ac_cv_type_uint64_t" = xyes; then :
12278 cat >>confdefs.h <<_ACEOF
12279 #define HAVE_UINT64_T 1
12285 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12286 if test "x$ac_cv_type_ssize_t" = xyes; then :
12288 cat >>confdefs.h <<_ACEOF
12289 #define HAVE_SSIZE_T 1
12296 # The cast to long int works around a bug in the HP C Compiler
12297 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12298 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12299 # This bug is HP SR number 8606223364.
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12301 $as_echo_n "checking size of short... " >&6; }
12302 if ${ac_cv_sizeof_short+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12308 if test "$ac_cv_type_short" = yes; then
12309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12311 as_fn_error 77 "cannot compute sizeof (short)
12312 See \`config.log' for more details" "$LINENO" 5; }
12314 ac_cv_sizeof_short=0
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12320 $as_echo "$ac_cv_sizeof_short" >&6; }
12324 cat >>confdefs.h <<_ACEOF
12325 #define SIZEOF_SHORT $ac_cv_sizeof_short
12329 # The cast to long int works around a bug in the HP C Compiler
12330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12332 # This bug is HP SR number 8606223364.
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12334 $as_echo_n "checking size of int... " >&6; }
12335 if ${ac_cv_sizeof_int+:} false; then :
12336 $as_echo_n "(cached) " >&6
12338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12341 if test "$ac_cv_type_int" = yes; then
12342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12344 as_fn_error 77 "cannot compute sizeof (int)
12345 See \`config.log' for more details" "$LINENO" 5; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12353 $as_echo "$ac_cv_sizeof_int" >&6; }
12357 cat >>confdefs.h <<_ACEOF
12358 #define SIZEOF_INT $ac_cv_sizeof_int
12362 # The cast to long int works around a bug in the HP C Compiler
12363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12364 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12365 # This bug is HP SR number 8606223364.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12367 $as_echo_n "checking size of long... " >&6; }
12368 if ${ac_cv_sizeof_long+:} false; then :
12369 $as_echo_n "(cached) " >&6
12371 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12374 if test "$ac_cv_type_long" = yes; then
12375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12377 as_fn_error 77 "cannot compute sizeof (long)
12378 See \`config.log' for more details" "$LINENO" 5; }
12380 ac_cv_sizeof_long=0
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12386 $as_echo "$ac_cv_sizeof_long" >&6; }
12390 cat >>confdefs.h <<_ACEOF
12391 #define SIZEOF_LONG $ac_cv_sizeof_long
12395 # The cast to long int works around a bug in the HP C Compiler
12396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12398 # This bug is HP SR number 8606223364.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12400 $as_echo_n "checking size of long long... " >&6; }
12401 if ${ac_cv_sizeof_long_long+:} false; then :
12402 $as_echo_n "(cached) " >&6
12404 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12407 if test "$ac_cv_type_long_long" = yes; then
12408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12410 as_fn_error 77 "cannot compute sizeof (long long)
12411 See \`config.log' for more details" "$LINENO" 5; }
12413 ac_cv_sizeof_long_long=0
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12419 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12423 cat >>confdefs.h <<_ACEOF
12424 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12428 # The cast to long int works around a bug in the HP C Compiler
12429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12431 # This bug is HP SR number 8606223364.
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12433 $as_echo_n "checking size of off_t... " >&6; }
12434 if ${ac_cv_sizeof_off_t+:} false; then :
12435 $as_echo_n "(cached) " >&6
12437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12440 if test "$ac_cv_type_off_t" = yes; then
12441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12443 as_fn_error 77 "cannot compute sizeof (off_t)
12444 See \`config.log' for more details" "$LINENO" 5; }
12446 ac_cv_sizeof_off_t=0
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12452 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12456 cat >>confdefs.h <<_ACEOF
12457 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12461 # The cast to long int works around a bug in the HP C Compiler
12462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12464 # This bug is HP SR number 8606223364.
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12466 $as_echo_n "checking size of size_t... " >&6; }
12467 if ${ac_cv_sizeof_size_t+:} false; then :
12468 $as_echo_n "(cached) " >&6
12470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12473 if test "$ac_cv_type_size_t" = yes; then
12474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12476 as_fn_error 77 "cannot compute sizeof (size_t)
12477 See \`config.log' for more details" "$LINENO" 5; }
12479 ac_cv_sizeof_size_t=0
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12485 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12489 cat >>confdefs.h <<_ACEOF
12490 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12496 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12497 if ${ac_cv_struct_tm+:} false; then :
12498 $as_echo_n "(cached) " >&6
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12502 #include <sys/types.h>
12509 int *p = &tm.tm_sec;
12515 if ac_fn_c_try_compile "$LINENO"; then :
12516 ac_cv_struct_tm=time.h
12518 ac_cv_struct_tm=sys/time.h
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12523 $as_echo "$ac_cv_struct_tm" >&6; }
12524 if test $ac_cv_struct_tm = sys/time.h; then
12526 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12530 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12531 #include <$ac_cv_struct_tm>
12534 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12536 cat >>confdefs.h <<_ACEOF
12537 #define HAVE_STRUCT_TM_TM_ZONE 1
12543 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12545 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12548 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12550 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_DECL_TZNAME $ac_have_decl
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12561 $as_echo_n "checking for tzname... " >&6; }
12562 if ${ac_cv_var_tzname+:} false; then :
12563 $as_echo_n "(cached) " >&6
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12568 #if !HAVE_DECL_TZNAME
12569 extern char *tzname[];
12575 return tzname[0][0];
12580 if ac_fn_c_try_link "$LINENO"; then :
12581 ac_cv_var_tzname=yes
12583 ac_cv_var_tzname=no
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12589 $as_echo "$ac_cv_var_tzname" >&6; }
12590 if test $ac_cv_var_tzname = yes; then
12592 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12600 *bsd*) MANFMT=mdoc;;
12611 if test -n "$GCC"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12613 $as_echo_n "checking for simple visibility declarations... " >&6; }
12614 if ${gl_cv_cc_visibility+:} false; then :
12615 $as_echo_n "(cached) " >&6
12618 gl_save_CFLAGS="$CFLAGS"
12619 CFLAGS="$CFLAGS -fvisibility=hidden"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12623 extern __attribute__((__visibility__("default"))) int exportedvar;
12624 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12625 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12634 if ac_fn_c_try_compile "$LINENO"; then :
12635 gl_cv_cc_visibility=yes
12637 gl_cv_cc_visibility=no
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 CFLAGS="$gl_save_CFLAGS"
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12644 $as_echo "$gl_cv_cc_visibility" >&6; }
12645 if test $gl_cv_cc_visibility = yes; then
12646 CFLAG_VISIBILITY="-fvisibility=hidden"
12653 cat >>confdefs.h <<_ACEOF
12654 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12659 ac_config_files="$ac_config_files Makefile libzip.pc libzip-uninstalled.pc examples/Makefile man/Makefile lib/Makefile regress/Makefile src/Makefile"
12661 cat >confcache <<\_ACEOF
12662 # This file is a shell script that caches the results of configure
12663 # tests run on this system so they can be shared between configure
12664 # scripts and configure runs, see configure's option --config-cache.
12665 # It is not useful on other systems. If it contains results you don't
12666 # want to keep, you may remove or edit it.
12668 # config.status only pays attention to the cache file if you give it
12669 # the --recheck option to rerun configure.
12671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12673 # following values.
12677 # The following way of writing the cache mishandles newlines in values,
12678 # but we know of no workaround that is simple, portable, and efficient.
12679 # So, we kill variables containing newlines.
12680 # Ultrix sh set writes to stderr and can't be redirected directly,
12681 # and sets the high bit in the cache file unless we assign to the vars.
12683 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12684 eval ac_val=\$$ac_var
12688 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12689 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12692 _ | IFS | as_nl) ;; #(
12693 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12694 *) { eval $ac_var=; unset $ac_var;} ;;
12700 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12701 *${as_nl}ac_space=\ *)
12702 # `set' does not quote correctly, so add quotes: double-quote
12703 # substitution turns \\\\ into \\, and sed turns \\ into \.
12706 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12709 # `set' quotes correctly as required by POSIX, so do not add quotes.
12710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12719 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12721 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12723 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12724 if test -w "$cache_file"; then
12725 if test "x$cache_file" != "x/dev/null"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12727 $as_echo "$as_me: updating cache $cache_file" >&6;}
12728 if test ! -f "$cache_file" || test -h "$cache_file"; then
12729 cat confcache >"$cache_file"
12731 case $cache_file in #(
12733 mv -f confcache "$cache_file"$$ &&
12734 mv -f "$cache_file"$$ "$cache_file" ;; #(
12736 mv -f confcache "$cache_file" ;;
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12742 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12747 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12748 # Let make expand exec_prefix.
12749 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12751 DEFS=-DHAVE_CONFIG_H
12756 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12757 # 1. Remove the extension, and $U if already installed.
12758 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12759 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12760 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12761 # will be set to the directory where LIBOBJS objects are built.
12762 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12763 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12765 LIBOBJS=$ac_libobjs
12767 LTLIBOBJS=$ac_ltlibobjs
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12771 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12772 if test -n "$am_sleep_pid"; then
12773 # Hide warnings about reused PIDs.
12774 wait $am_sleep_pid 2>/dev/null
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12777 $as_echo "done" >&6; }
12778 if test -n "$EXEEXT"; then
12780 am__EXEEXT_FALSE='#'
12782 am__EXEEXT_TRUE='#'
12786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12787 as_fn_error $? "conditional \"AMDEP\" was never defined.
12788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12790 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12791 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794 if test -z "${WIN32_HOST_TRUE}" && test -z "${WIN32_HOST_FALSE}"; then
12795 as_fn_error $? "conditional \"WIN32_HOST\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12799 : "${CONFIG_STATUS=./config.status}"
12801 ac_clean_files_save=$ac_clean_files
12802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12804 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12806 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12808 # Generated by $as_me.
12809 # Run this file to recreate the current configuration.
12810 # Compiler output produced by configure, useful for debugging
12811 # configure, is in config.log if it exists.
12814 ac_cs_recheck=false
12817 SHELL=\${CONFIG_SHELL-$SHELL}
12820 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12821 ## -------------------- ##
12822 ## M4sh Initialization. ##
12823 ## -------------------- ##
12825 # Be more Bourne compatible
12826 DUALCASE=1; export DUALCASE # for MKS sh
12827 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12830 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12831 # is contrary to our usage. Disable this feature.
12832 alias -g '${1+"$@"}'='"$@"'
12833 setopt NO_GLOB_SUBST
12835 case `(set -o) 2>/dev/null` in #(
12847 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12848 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12849 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12850 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12851 # Prefer a ksh shell builtin over an external printf program on Solaris,
12852 # but without wasting forks for bash or zsh.
12853 if test -z "$BASH_VERSION$ZSH_VERSION" \
12854 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12855 as_echo='print -r --'
12856 as_echo_n='print -rn --'
12857 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12858 as_echo='printf %s\n'
12859 as_echo_n='printf %s'
12861 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12862 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12863 as_echo_n='/usr/ucb/echo -n'
12865 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12866 as_echo_n_body='eval
12870 expr "X$arg" : "X\\(.*\\)$as_nl";
12871 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12873 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12875 export as_echo_n_body
12876 as_echo_n='sh -c $as_echo_n_body as_echo'
12878 export as_echo_body
12879 as_echo='sh -c $as_echo_body as_echo'
12882 # The user is always right.
12883 if test "${PATH_SEPARATOR+set}" != set; then
12885 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12886 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12893 # We need space, tab and new line, in precisely that order. Quoting is
12894 # there to prevent editors from complaining about space-tab.
12895 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12896 # splitting by setting IFS to empty value.)
12899 # Find who we are. Look in the path if we contain no directory separator.
12902 *[\\/]* ) as_myself=$0 ;;
12903 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12907 test -z "$as_dir" && as_dir=.
12908 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12914 # We did not find ourselves, most probably we were run as `sh COMMAND'
12915 # in which case we are not to be found in the path.
12916 if test "x$as_myself" = x; then
12919 if test ! -f "$as_myself"; then
12920 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12924 # Unset variables that we do not need and which cause bugs (e.g. in
12925 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12926 # suppresses any "Segmentation fault" message there. '((' could
12927 # trigger a bug in pdksh 5.2.14.
12928 for as_var in BASH_ENV ENV MAIL MAILPATH
12929 do eval test x\${$as_var+set} = xset \
12930 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12943 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12946 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12947 # ----------------------------------------
12948 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12949 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12950 # script with STATUS, using 1 if that was 0.
12953 as_status=$1; test $as_status -eq 0 && as_status=1
12955 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12956 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12958 $as_echo "$as_me: error: $2" >&2
12959 as_fn_exit $as_status
12963 # as_fn_set_status STATUS
12964 # -----------------------
12965 # Set $? to STATUS, without forking.
12966 as_fn_set_status ()
12969 } # as_fn_set_status
12971 # as_fn_exit STATUS
12972 # -----------------
12973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12977 as_fn_set_status $1
12983 # Portably unset VAR.
12986 { eval $1=; unset $1;}
12988 as_unset=as_fn_unset
12989 # as_fn_append VAR VALUE
12990 # ----------------------
12991 # Append the text in VALUE to the end of the definition contained in VAR. Take
12992 # advantage of any shell optimizations that allow amortized linear growth over
12993 # repeated appends, instead of the typical quadratic growth present in naive
12995 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12996 eval 'as_fn_append ()
13007 # as_fn_arith ARG...
13008 # ------------------
13009 # Perform arithmetic evaluation on the ARGs, and store the result in the
13010 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13011 # must be portable across $(()) and expr.
13012 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13013 eval 'as_fn_arith ()
13020 as_val=`expr "$@" || test $? -eq 1`
13025 if expr a : '\(a\)' >/dev/null 2>&1 &&
13026 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13032 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13033 as_basename=basename
13038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13044 as_me=`$as_basename -- "$0" ||
13045 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13046 X"$0" : 'X\(//\)$' \| \
13047 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13049 sed '/^.*\/\([^/][^/]*\)\/*$/{
13063 # Avoid depending upon Character Ranges.
13064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13067 as_cr_digits='0123456789'
13068 as_cr_alnum=$as_cr_Letters$as_cr_digits
13070 ECHO_C= ECHO_N= ECHO_T=
13071 case `echo -n x` in #(((((
13073 case `echo 'xy\c'` in
13074 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13076 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13083 rm -f conf$$ conf$$.exe conf$$.file
13084 if test -d conf$$.dir; then
13085 rm -f conf$$.dir/conf$$.file
13088 mkdir conf$$.dir 2>/dev/null
13090 if (echo >conf$$.file) 2>/dev/null; then
13091 if ln -s conf$$.file conf$$ 2>/dev/null; then
13093 # ... but there are two gotchas:
13094 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13095 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13096 # In both cases, we have to default to `cp -pR'.
13097 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13099 elif ln conf$$.file conf$$ 2>/dev/null; then
13107 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13108 rmdir conf$$.dir 2>/dev/null
13113 # Create "$as_dir" as a directory, including parents if necessary.
13118 -*) as_dir=./$as_dir;;
13120 test -d "$as_dir" || eval $as_mkdir_p || {
13124 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13125 *) as_qdir=$as_dir;;
13127 as_dirs="'$as_qdir' $as_dirs"
13128 as_dir=`$as_dirname -- "$as_dir" ||
13129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13130 X"$as_dir" : 'X\(//\)[^/]' \| \
13131 X"$as_dir" : 'X\(//\)$' \| \
13132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13133 $as_echo X"$as_dir" |
13134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13138 /^X\(\/\/\)[^/].*/{
13151 test -d "$as_dir" && break
13153 test -z "$as_dirs" || eval "mkdir $as_dirs"
13154 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13158 if mkdir -p . 2>/dev/null; then
13159 as_mkdir_p='mkdir -p "$as_dir"'
13161 test -d ./-p && rmdir ./-p
13166 # as_fn_executable_p FILE
13167 # -----------------------
13168 # Test if FILE is an executable regular file.
13169 as_fn_executable_p ()
13171 test -f "$1" && test -x "$1"
13172 } # as_fn_executable_p
13173 as_test_x='test -x'
13174 as_executable_p=as_fn_executable_p
13176 # Sed expression to map a string onto a valid CPP name.
13177 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13179 # Sed expression to map a string onto a valid variable name.
13180 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13184 ## ----------------------------------- ##
13185 ## Main body of $CONFIG_STATUS script. ##
13186 ## ----------------------------------- ##
13188 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191 # Save the log message, to keep $0 and so on meaningful, and to
13192 # report actual input values of CONFIG_FILES etc. instead of their
13193 # values after options handling.
13195 This file was extended by libzip $as_me 1.1.3, which was
13196 generated by GNU Autoconf 2.69. Invocation command line was
13198 CONFIG_FILES = $CONFIG_FILES
13199 CONFIG_HEADERS = $CONFIG_HEADERS
13200 CONFIG_LINKS = $CONFIG_LINKS
13201 CONFIG_COMMANDS = $CONFIG_COMMANDS
13204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13209 case $ac_config_files in *"
13210 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13213 case $ac_config_headers in *"
13214 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13219 # Files that config.status was made for.
13220 config_files="$ac_config_files"
13221 config_headers="$ac_config_headers"
13222 config_commands="$ac_config_commands"
13226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13228 \`$as_me' instantiates files and other configuration actions
13229 from templates according to the current configuration. Unless the files
13230 and actions are specified as TAGs, all are instantiated by default.
13232 Usage: $0 [OPTION]... [TAG]...
13234 -h, --help print this help, then exit
13235 -V, --version print version number and configuration settings, then exit
13236 --config print configuration, then exit
13237 -q, --quiet, --silent
13238 do not print progress messages
13239 -d, --debug don't remove temporary files
13240 --recheck update $as_me by reconfiguring in the same conditions
13241 --file=FILE[:TEMPLATE]
13242 instantiate the configuration file FILE
13243 --header=FILE[:TEMPLATE]
13244 instantiate the configuration header FILE
13246 Configuration files:
13249 Configuration headers:
13252 Configuration commands:
13255 Report bugs to <libzip@nih.at>."
13258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13259 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13261 libzip config.status 1.1.3
13262 configured by $0, generated by GNU Autoconf 2.69,
13263 with options \\"\$ac_cs_config\\"
13265 Copyright (C) 2012 Free Software Foundation, Inc.
13266 This config.status script is free software; the Free Software Foundation
13267 gives unlimited permission to copy, distribute and modify it."
13274 test -n "\$AWK" || AWK=awk
13277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13278 # The default lists apply if the user does not specify any file.
13284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13285 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13289 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13301 # Handling of the options.
13302 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13304 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13305 $as_echo "$ac_cs_version"; exit ;;
13306 --config | --confi | --conf | --con | --co | --c )
13307 $as_echo "$ac_cs_config"; exit ;;
13308 --debug | --debu | --deb | --de | --d | -d )
13310 --file | --fil | --fi | --f )
13313 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13314 '') as_fn_error $? "missing file argument" ;;
13316 as_fn_append CONFIG_FILES " '$ac_optarg'"
13317 ac_need_defaults=false;;
13318 --header | --heade | --head | --hea )
13321 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13323 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13324 ac_need_defaults=false;;
13326 # Conflict between --help and --header
13327 as_fn_error $? "ambiguous option: \`$1'
13328 Try \`$0 --help' for more information.";;
13329 --help | --hel | -h )
13330 $as_echo "$ac_cs_usage"; exit ;;
13331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13332 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13335 # This is an error.
13336 -*) as_fn_error $? "unrecognized option: \`$1'
13337 Try \`$0 --help' for more information." ;;
13339 *) as_fn_append ac_config_targets " $1"
13340 ac_need_defaults=false ;;
13346 ac_configure_extra_args=
13348 if $ac_cs_silent; then
13350 ac_configure_extra_args="$ac_configure_extra_args --silent"
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13355 if \$ac_cs_recheck; then
13356 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13358 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13359 CONFIG_SHELL='$SHELL'
13360 export CONFIG_SHELL
13365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13370 ## Running $as_me. ##
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13383 # The HP-UX ksh and POSIX shell print the target directory to stdout
13384 # if CDPATH is set.
13385 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13387 sed_quote_subst='$sed_quote_subst'
13388 double_quote_subst='$double_quote_subst'
13389 delay_variable_subst='$delay_variable_subst'
13390 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13391 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13392 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13393 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13394 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13395 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13396 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13397 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13398 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13399 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13400 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13401 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13402 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13403 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13404 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13405 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13406 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13407 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13408 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13409 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13410 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13411 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13412 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13413 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13414 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13415 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13416 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13417 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13418 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13419 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13420 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13421 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13422 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13423 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13424 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13425 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13426 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13427 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13428 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13429 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13430 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13431 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13432 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13433 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13434 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13435 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13436 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13437 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13438 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13439 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13440 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13441 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13442 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13443 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13444 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13445 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13446 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"`'
13447 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13448 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13452 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13453 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13457 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13458 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13459 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13460 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13461 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13462 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13463 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13464 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13465 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13466 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13467 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13468 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13469 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13470 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13471 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13472 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13473 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13474 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13475 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13476 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13477 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13478 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13479 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13480 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13489 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13490 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13491 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13492 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13493 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13494 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13513 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13514 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13515 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13516 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13517 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13518 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13519 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13522 LTCFLAGS='$LTCFLAGS'
13523 compiler='$compiler_DEFAULT'
13525 # A function that is used when there is no print builtin or printf.
13526 func_fallback_echo ()
13528 eval 'cat <<_LTECHO_EOF
13533 # Quote evaled strings.
13548 deplibs_check_method \
13553 sharedlib_from_linklib_cmd \
13556 archiver_list_spec \
13562 lt_cv_sys_global_symbol_pipe \
13563 lt_cv_sys_global_symbol_to_cdecl \
13564 lt_cv_sys_global_symbol_to_c_name_address \
13565 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13566 nm_file_list_spec \
13567 lt_prog_compiler_no_builtin_flag \
13568 lt_prog_compiler_pic \
13569 lt_prog_compiler_wl \
13570 lt_prog_compiler_static \
13571 lt_cv_prog_compiler_c_o \
13580 export_dynamic_flag_spec \
13581 whole_archive_flag_spec \
13582 compiler_needs_object \
13584 allow_undefined_flag \
13585 no_undefined_flag \
13586 hardcode_libdir_flag_spec \
13587 hardcode_libdir_separator \
13591 variables_saved_for_relink \
13593 library_names_spec \
13595 install_override_mode \
13599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13600 *[\\\\\\\`\\"\\\$]*)
13601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13609 # Double-quote double-evaled strings.
13610 for var in reload_cmds \
13611 old_postinstall_cmds \
13612 old_postuninstall_cmds \
13614 extract_expsyms_cmds \
13615 old_archive_from_new_cmds \
13616 old_archive_from_expsyms_cmds \
13618 archive_expsym_cmds \
13620 module_expsym_cmds \
13621 export_symbols_cmds \
13625 postuninstall_cmds \
13627 sys_lib_search_path_spec \
13628 sys_lib_dlsearch_path_spec; do
13629 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13630 *[\\\\\\\`\\"\\\$]*)
13631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13639 ac_aux_dir='$ac_aux_dir'
13640 xsi_shell='$xsi_shell'
13641 lt_shell_append='$lt_shell_append'
13643 # See if we are running on zsh, and set the options which allow our
13644 # commands through without removal of \ escapes INIT.
13645 if test -n "\${ZSH_VERSION+set}" ; then
13646 setopt NO_GLOB_SUBST
13652 TIMESTAMP='$TIMESTAMP'
13661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13663 # Handling of arguments.
13664 for ac_config_target in $ac_config_targets
13666 case $ac_config_target in
13667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13668 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13669 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13670 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13671 "libzip.pc") CONFIG_FILES="$CONFIG_FILES libzip.pc" ;;
13672 "libzip-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libzip-uninstalled.pc" ;;
13673 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13674 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13675 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13676 "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
13677 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13679 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13684 # If the user did not use the arguments to specify the items to instantiate,
13685 # then the envvar interface is used. Set only those that are not.
13686 # We use the long form for the default assignment because of an extremely
13687 # bizarre bug on SunOS 4.1.3.
13688 if $ac_need_defaults; then
13689 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13690 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13691 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13694 # Have a temporary directory for convenience. Make it in the build tree
13695 # simply because there is no reason against having it here, and in addition,
13696 # creating and moving files from /tmp can sometimes cause problems.
13697 # Hook for its removal unless debugging.
13698 # Note that there is a small window in which the directory will not be cleaned:
13699 # after its creation but before its name has been assigned to `$tmp'.
13703 trap 'exit_status=$?
13704 : "${ac_tmp:=$tmp}"
13705 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13707 trap 'as_fn_exit 1' 1 2 13 15
13709 # Create a (secure) tmp directory for tmp files.
13712 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13716 tmp=./conf$$-$RANDOM
13717 (umask 077 && mkdir "$tmp")
13718 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13721 # Set up the scripts for CONFIG_FILES section.
13722 # No need to generate them if there are no CONFIG_FILES.
13723 # This happens for instance with `./config.status config.h'.
13724 if test -n "$CONFIG_FILES"; then
13727 ac_cr=`echo X | tr X '\015'`
13728 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13729 # But we know of no other shell where ac_cr would be empty at this
13730 # point, so we can use a bashism as a fallback.
13731 if test "x$ac_cr" = x; then
13732 eval ac_cr=\$\'\\r\'
13734 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13735 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13738 ac_cs_awk_cr=$ac_cr
13741 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13746 echo "cat >conf$$subs.awk <<_ACEOF" &&
13747 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13749 } >conf$$subs.sh ||
13750 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13751 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13753 for ac_last_try in false false false false false :; do
13754 . ./conf$$subs.sh ||
13755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13757 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13758 if test $ac_delim_n = $ac_delim_num; then
13760 elif $ac_last_try; then
13761 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13766 rm -f conf$$subs.sh
13768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13769 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13773 s/^/S["/; s/!.*/"]=/
13783 s/\(.\{148\}\)..*/\1/
13785 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13790 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13797 s/\(.\{148\}\)..*/\1/
13799 s/["\\]/\\&/g; s/^/"/; s/$/"/
13803 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13808 ' <conf$$subs.awk | sed '
13813 ' >>$CONFIG_STATUS || ac_write_fail=1
13814 rm -f conf$$subs.awk
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13817 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13818 for (key in S) S_is_set[key] = 1
13824 nfields = split(line, field, "@")
13826 len = length(field[1])
13827 for (i = 2; i < nfields; i++) {
13829 keylen = length(key)
13830 if (S_is_set[key]) {
13832 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13833 len += length(value) + length(field[++i])
13844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13846 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13849 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13850 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13853 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13854 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13855 # trailing colons and then remove the whole line if VPATH becomes empty
13856 # (actually we leave an empty line to preserve line numbers).
13857 if test "x$srcdir" = x.; then
13858 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13877 fi # test -n "$CONFIG_FILES"
13879 # Set up the scripts for CONFIG_HEADERS section.
13880 # No need to generate them if there are no CONFIG_HEADERS.
13881 # This happens for instance with `./config.status Makefile'.
13882 if test -n "$CONFIG_HEADERS"; then
13883 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13887 # Transform confdefs.h into an awk script `defines.awk', embedded as
13888 # here-document in config.status, that substitutes the proper values into
13889 # config.h.in to produce config.h.
13891 # Create a delimiter string that does not exist in confdefs.h, to ease
13892 # handling of long lines.
13894 for ac_last_try in false false :; do
13895 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13896 if test -z "$ac_tt"; then
13898 elif $ac_last_try; then
13899 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13905 # For the awk script, D is an array of macro values keyed by name,
13906 # likewise P contains macro parameters if any. Preserve backslash
13907 # newline sequences.
13909 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13911 s/.\{148\}/&'"$ac_delim"'/g
13914 s/^[ ]*#[ ]*define[ ][ ]*/ /
13921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13927 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13928 D["\1"]=" \3\\\\\\n"\\/p
13930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13935 s/.\{148\}/&'"$ac_delim"'/g
13940 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13943 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13945 ' <confdefs.h | sed '
13946 s/'"$ac_delim"'/"\\\
13947 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13950 for (key in D) D_is_set[key] = 1
13953 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13955 split(line, arg, " ")
13956 if (arg[1] == "#") {
13960 defundef = substr(arg[1], 2)
13963 split(mac1, mac2, "(") #)
13965 prefix = substr(line, 1, index(line, defundef) - 1)
13966 if (D_is_set[macro]) {
13967 # Preserve the white space surrounding the "#".
13968 print prefix "define", macro P[macro] D[macro]
13971 # Replace #undef with comments. This is necessary, for example,
13972 # in the case of _POSIX_SOURCE, which is predefined and required
13973 # on some systems where configure will not decide to define it.
13974 if (defundef == "undef") {
13975 print "/*", prefix defundef, macro, "*/"
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13985 fi # test -n "$CONFIG_HEADERS"
13988 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13993 :[FHLC]) ac_mode=$ac_tag; continue;;
13995 case $ac_mode$ac_tag in
13997 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13998 :[FH]-) ac_tag=-:-;;
13999 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14016 -) ac_f="$ac_tmp/stdin";;
14017 *) # Look for the file first in the build tree, then in the source tree
14018 # (if the path is not absolute). The absolute path cannot be DOS-style,
14019 # because $ac_f cannot contain `:'.
14023 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14025 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14027 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14028 as_fn_append ac_file_inputs " '$ac_f'"
14031 # Let's still pretend it is `configure' which instantiates (i.e., don't
14032 # use $as_me), people would be surprised to read:
14033 # /* config.h. Generated by config.status. */
14034 configure_input='Generated from '`
14035 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14037 if test x"$ac_file" != x-; then
14038 configure_input="$ac_file. $configure_input"
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14040 $as_echo "$as_me: creating $ac_file" >&6;}
14042 # Neutralize special characters interpreted by sed in replacement strings.
14043 case $configure_input in #(
14044 *\&* | *\|* | *\\* )
14045 ac_sed_conf_input=`$as_echo "$configure_input" |
14046 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14047 *) ac_sed_conf_input=$configure_input;;
14051 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14057 ac_dir=`$as_dirname -- "$ac_file" ||
14058 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14059 X"$ac_file" : 'X\(//\)[^/]' \| \
14060 X"$ac_file" : 'X\(//\)$' \| \
14061 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14062 $as_echo X"$ac_file" |
14063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14067 /^X\(\/\/\)[^/].*/{
14080 as_dir="$ac_dir"; as_fn_mkdir_p
14084 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14086 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14087 # A ".." for each directory in $ac_dir_suffix.
14088 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14089 case $ac_top_builddir_sub in
14090 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14091 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14094 ac_abs_top_builddir=$ac_pwd
14095 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14096 # for backward compatibility:
14097 ac_top_builddir=$ac_top_build_prefix
14100 .) # We are building in place.
14102 ac_top_srcdir=$ac_top_builddir_sub
14103 ac_abs_top_srcdir=$ac_pwd ;;
14104 [\\/]* | ?:[\\/]* ) # Absolute name.
14105 ac_srcdir=$srcdir$ac_dir_suffix;
14106 ac_top_srcdir=$srcdir
14107 ac_abs_top_srcdir=$srcdir ;;
14108 *) # Relative name.
14109 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14110 ac_top_srcdir=$ac_top_build_prefix$srcdir
14111 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14113 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14123 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14124 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14126 ac_MKDIR_P=$MKDIR_P
14128 [\\/$]* | ?:[\\/]* ) ;;
14129 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14134 # If the template does not know about datarootdir, expand it.
14135 # FIXME: This hack should be removed a few years after 2.60.
14136 ac_datarootdir_hack=; ac_datarootdir_seen=
14147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14148 *datarootdir*) ac_datarootdir_seen=yes;;
14149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154 ac_datarootdir_hack='
14155 s&@datadir@&$datadir&g
14156 s&@docdir@&$docdir&g
14157 s&@infodir@&$infodir&g
14158 s&@localedir@&$localedir&g
14159 s&@mandir@&$mandir&g
14160 s&\\\${datarootdir}&$datarootdir&g' ;;
14164 # Neutralize VPATH when `$srcdir' = `.'.
14165 # Shell code in configure.ac might set extrasub.
14166 # FIXME: do we really want to maintain this feature?
14167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14168 ac_sed_extra="$ac_vpsub
14171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14174 s|@configure_input@|$ac_sed_conf_input|;t t
14175 s&@top_builddir@&$ac_top_builddir_sub&;t t
14176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14177 s&@srcdir@&$ac_srcdir&;t t
14178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14179 s&@top_srcdir@&$ac_top_srcdir&;t t
14180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14181 s&@builddir@&$ac_builddir&;t t
14182 s&@abs_builddir@&$ac_abs_builddir&;t t
14183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14184 s&@INSTALL@&$ac_INSTALL&;t t
14185 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14186 $ac_datarootdir_hack
14188 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14189 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14191 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14192 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14194 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14196 which seems to be undefined. Please make sure it is defined" >&5
14197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14198 which seems to be undefined. Please make sure it is defined" >&2;}
14200 rm -f "$ac_tmp/stdin"
14202 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14203 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14211 if test x"$ac_file" != x-; then
14213 $as_echo "/* $configure_input */" \
14214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14215 } >"$ac_tmp/config.h" \
14216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14217 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14219 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14222 mv "$ac_tmp/config.h" "$ac_file" \
14223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14226 $as_echo "/* $configure_input */" \
14227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14228 || as_fn_error $? "could not create -" "$LINENO" 5
14230 # Compute "$ac_file"'s index in $config_headers.
14233 for _am_header in $config_headers :; do
14234 case $_am_header in
14235 $_am_arg | $_am_arg:* )
14238 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14241 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14242 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14243 X"$_am_arg" : 'X\(//\)[^/]' \| \
14244 X"$_am_arg" : 'X\(//\)$' \| \
14245 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14246 $as_echo X"$_am_arg" |
14247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14251 /^X\(\/\/\)[^/].*/{
14263 s/.*/./; q'`/stamp-h$_am_stamp_count
14266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14267 $as_echo "$as_me: executing $ac_file commands" >&6;}
14272 case $ac_file$ac_mode in
14273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14274 # Older Autoconf quotes --file arguments for eval, but not when files
14275 # are listed without --file. Let's play safe and only enable the eval
14276 # if we detect the quoting.
14277 case $CONFIG_FILES in
14278 *\'*) eval set x "$CONFIG_FILES" ;;
14279 *) set x $CONFIG_FILES ;;
14284 # Strip MF so we end up with the name of the file.
14285 mf=`echo "$mf" | sed -e 's/:.*$//'`
14286 # Check whether this is an Automake generated Makefile or not.
14287 # We used to match only the files named 'Makefile.in', but
14288 # some people rename them; so instead we look at the file content.
14289 # Grep'ing the first line is not enough: some people post-process
14290 # each Makefile.in and add a new line on top of each file to say so.
14291 # Grep'ing the whole file is not good either: AIX grep has a line
14292 # limit of 2048, but all sed's we know have understand at least 4000.
14293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14294 dirpart=`$as_dirname -- "$mf" ||
14295 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14296 X"$mf" : 'X\(//\)[^/]' \| \
14297 X"$mf" : 'X\(//\)$' \| \
14298 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14304 /^X\(\/\/\)[^/].*/{
14320 # Extract the definition of DEPDIR, am__include, and am__quote
14321 # from the Makefile without running 'make'.
14322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14323 test -z "$DEPDIR" && continue
14324 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14325 test -z "$am__include" && continue
14326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14327 # Find all dependency output files, they are included files with
14328 # $(DEPDIR) in their names. We invoke sed twice because it is the
14329 # simplest approach to changing $(DEPDIR) to its actual value in the
14331 for file in `sed -n "
14332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14334 # Make sure the directory exists.
14335 test -f "$dirpart/$file" && continue
14336 fdir=`$as_dirname -- "$file" ||
14337 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14338 X"$file" : 'X\(//\)[^/]' \| \
14339 X"$file" : 'X\(//\)$' \| \
14340 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14341 $as_echo X"$file" |
14342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14346 /^X\(\/\/\)[^/].*/{
14359 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14360 # echo "creating $dirpart/$file"
14361 echo '# dummy' > "$dirpart/$file"
14368 # See if we are running on zsh, and set the options which allow our
14369 # commands through without removal of \ escapes.
14370 if test -n "${ZSH_VERSION+set}" ; then
14371 setopt NO_GLOB_SUBST
14374 cfgfile="${ofile}T"
14375 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14378 cat <<_LT_EOF >> "$cfgfile"
14381 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14382 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14386 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14387 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14389 # Written by Gordon Matzigkeit, 1996
14391 # This file is part of GNU Libtool.
14393 # GNU Libtool is free software; you can redistribute it and/or
14394 # modify it under the terms of the GNU General Public License as
14395 # published by the Free Software Foundation; either version 2 of
14396 # the License, or (at your option) any later version.
14398 # As a special exception to the GNU General Public License,
14399 # if you distribute this file as part of a program or library that
14400 # is built using GNU Libtool, you may include this file under the
14401 # same distribution terms that you use for the rest of that program.
14403 # GNU Libtool is distributed in the hope that it will be useful,
14404 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14405 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14406 # GNU General Public License for more details.
14408 # You should have received a copy of the GNU General Public License
14409 # along with GNU Libtool; see the file COPYING. If not, a copy
14410 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14411 # obtained by writing to the Free Software Foundation, Inc.,
14412 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14415 # The names of the tagged configurations supported by this script.
14418 # ### BEGIN LIBTOOL CONFIG
14420 # Which release of libtool.m4 was used?
14421 macro_version=$macro_version
14422 macro_revision=$macro_revision
14424 # Whether or not to build shared libraries.
14425 build_libtool_libs=$enable_shared
14427 # Whether or not to build static libraries.
14428 build_old_libs=$enable_static
14430 # What type of objects to build.
14433 # Whether or not to optimize for fast installation.
14434 fast_install=$enable_fast_install
14436 # Shell to use when invoking shell scripts.
14439 # An echo program that protects backslashes.
14442 # The PATH separator for the build system.
14443 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14446 host_alias=$host_alias
14450 # The build system.
14451 build_alias=$build_alias
14455 # A sed program that does not truncate output.
14458 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14459 Xsed="\$SED -e 1s/^X//"
14461 # A grep program that handles long lines.
14467 # A literal string matcher.
14470 # A BSD- or MS-compatible name lister.
14473 # Whether we need soft or hard links.
14476 # What is the maximum length of a command?
14477 max_cmd_len=$max_cmd_len
14479 # Object file suffix (normally "o").
14482 # Executable file suffix (normally "").
14485 # whether the shell understands "unset".
14488 # turn spaces into newlines.
14491 # turn newlines into spaces.
14494 # convert \$build file names to \$host format.
14495 to_host_file_cmd=$lt_cv_to_host_file_cmd
14497 # convert \$build files to toolchain format.
14498 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14500 # An object symbol dumper.
14501 OBJDUMP=$lt_OBJDUMP
14503 # Method to check whether dependent libraries are shared objects.
14504 deplibs_check_method=$lt_deplibs_check_method
14506 # Command to use when deplibs_check_method = "file_magic".
14507 file_magic_cmd=$lt_file_magic_cmd
14509 # How to find potential files when deplibs_check_method = "file_magic".
14510 file_magic_glob=$lt_file_magic_glob
14512 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14513 want_nocaseglob=$lt_want_nocaseglob
14515 # DLL creation program.
14516 DLLTOOL=$lt_DLLTOOL
14518 # Command to associate shared and link libraries.
14519 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14524 # Flags to create an archive.
14525 AR_FLAGS=$lt_AR_FLAGS
14527 # How to feed a file listing to the archiver.
14528 archiver_list_spec=$lt_archiver_list_spec
14530 # A symbol stripping program.
14533 # Commands used to install an old-style archive.
14535 old_postinstall_cmds=$lt_old_postinstall_cmds
14536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14538 # Whether to use a lock for old archive extraction.
14539 lock_old_archive_extraction=$lock_old_archive_extraction
14544 # LTCC compiler flags.
14545 LTCFLAGS=$lt_CFLAGS
14547 # Take the output of nm and produce a listing of raw symbols and C names.
14548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14550 # Transform the output of nm in a proper C declaration.
14551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14553 # Transform the output of nm in a C name address pair.
14554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14556 # Transform the output of nm in a C name address pair when lib prefix is needed.
14557 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14559 # Specify filename containing input files for \$NM.
14560 nm_file_list_spec=$lt_nm_file_list_spec
14562 # The root where to search for dependent libraries,and in which our libraries should be installed.
14563 lt_sysroot=$lt_sysroot
14565 # The name of the directory that contains temporary libtool files.
14568 # Used to examine libraries when file_magic_cmd begins with "file".
14569 MAGIC_CMD=$MAGIC_CMD
14571 # Must we lock files when doing compilation?
14572 need_locks=$lt_need_locks
14575 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14578 DSYMUTIL=$lt_DSYMUTIL
14580 # Tool to change global to local symbols on Mac OS X.
14583 # Tool to manipulate fat objects and archives on Mac OS X.
14586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14590 OTOOL64=$lt_OTOOL64
14592 # Old archive suffix (normally "a").
14595 # Shared library suffix (normally ".so").
14596 shrext_cmds=$lt_shrext_cmds
14598 # The commands to extract the exported symbol list from a shared archive.
14599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14601 # Variables whose values should be saved in libtool wrapper scripts and
14602 # restored at link time.
14603 variables_saved_for_relink=$lt_variables_saved_for_relink
14605 # Do we need the "lib" prefix for modules?
14606 need_lib_prefix=$need_lib_prefix
14608 # Do we need a version for libraries?
14609 need_version=$need_version
14611 # Library versioning type.
14612 version_type=$version_type
14614 # Shared library runtime path variable.
14615 runpath_var=$runpath_var
14617 # Shared library path variable.
14618 shlibpath_var=$shlibpath_var
14620 # Is shlibpath searched before the hard-coded library search path?
14621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14623 # Format of library name prefix.
14624 libname_spec=$lt_libname_spec
14626 # List of archive names. First name is the real one, the rest are links.
14627 # The last name is the one that the linker finds with -lNAME
14628 library_names_spec=$lt_library_names_spec
14630 # The coded name of the library, if different from the real name.
14631 soname_spec=$lt_soname_spec
14633 # Permission mode override for installation of shared libraries.
14634 install_override_mode=$lt_install_override_mode
14636 # Command to use after installation of a shared archive.
14637 postinstall_cmds=$lt_postinstall_cmds
14639 # Command to use after uninstallation of a shared archive.
14640 postuninstall_cmds=$lt_postuninstall_cmds
14642 # Commands used to finish a libtool library installation in a directory.
14643 finish_cmds=$lt_finish_cmds
14645 # As "finish_cmds", except a single script fragment to be evaled but
14647 finish_eval=$lt_finish_eval
14649 # Whether we should hardcode library paths into libraries.
14650 hardcode_into_libs=$hardcode_into_libs
14652 # Compile-time system search path for libraries.
14653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14655 # Run-time system search path for libraries.
14656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14658 # Whether dlopen is supported.
14659 dlopen_support=$enable_dlopen
14661 # Whether dlopen of programs is supported.
14662 dlopen_self=$enable_dlopen_self
14664 # Whether dlopen of statically linked programs is supported.
14665 dlopen_self_static=$enable_dlopen_self_static
14667 # Commands to strip libraries.
14668 old_striplib=$lt_old_striplib
14669 striplib=$lt_striplib
14672 # The linker used to build libraries.
14675 # How to create reloadable object files.
14676 reload_flag=$lt_reload_flag
14677 reload_cmds=$lt_reload_cmds
14679 # Commands used to build an old-style archive.
14680 old_archive_cmds=$lt_old_archive_cmds
14682 # A language specific compiler.
14685 # Is the compiler the GNU compiler?
14688 # Compiler flag to turn off builtin functions.
14689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14691 # Additional compiler flags for building library objects.
14692 pic_flag=$lt_lt_prog_compiler_pic
14694 # How to pass a linker flag through the compiler.
14695 wl=$lt_lt_prog_compiler_wl
14697 # Compiler flag to prevent dynamic linking.
14698 link_static_flag=$lt_lt_prog_compiler_static
14700 # Does compiler simultaneously support -c and -o options?
14701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14703 # Whether or not to add -lc for building shared libraries.
14704 build_libtool_need_lc=$archive_cmds_need_lc
14706 # Whether or not to disallow shared libs when runtime libs are static.
14707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14709 # Compiler flag to allow reflexive dlopens.
14710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14712 # Compiler flag to generate shared objects directly from archives.
14713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14715 # Whether the compiler copes with passing no objects directly.
14716 compiler_needs_object=$lt_compiler_needs_object
14718 # Create an old-style archive from a shared archive.
14719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14721 # Create a temporary old-style archive to link instead of a shared archive.
14722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14724 # Commands used to build a shared archive.
14725 archive_cmds=$lt_archive_cmds
14726 archive_expsym_cmds=$lt_archive_expsym_cmds
14728 # Commands used to build a loadable module if different from building
14729 # a shared archive.
14730 module_cmds=$lt_module_cmds
14731 module_expsym_cmds=$lt_module_expsym_cmds
14733 # Whether we are building with GNU ld or not.
14734 with_gnu_ld=$lt_with_gnu_ld
14736 # Flag that allows shared libraries with undefined symbols to be built.
14737 allow_undefined_flag=$lt_allow_undefined_flag
14739 # Flag that enforces no undefined symbols.
14740 no_undefined_flag=$lt_no_undefined_flag
14742 # Flag to hardcode \$libdir into a binary during linking.
14743 # This must work even if \$libdir does not exist
14744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14746 # Whether we need a single "-rpath" flag with a separated argument.
14747 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14749 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14750 # DIR into the resulting binary.
14751 hardcode_direct=$hardcode_direct
14753 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14754 # DIR into the resulting binary and the resulting library dependency is
14755 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14756 # library is relocated.
14757 hardcode_direct_absolute=$hardcode_direct_absolute
14759 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14760 # into the resulting binary.
14761 hardcode_minus_L=$hardcode_minus_L
14763 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14764 # into the resulting binary.
14765 hardcode_shlibpath_var=$hardcode_shlibpath_var
14767 # Set to "yes" if building a shared library automatically hardcodes DIR
14768 # into the library and all subsequent libraries and executables linked
14770 hardcode_automatic=$hardcode_automatic
14772 # Set to yes if linker adds runtime paths of dependent libraries
14773 # to runtime path list.
14774 inherit_rpath=$inherit_rpath
14776 # Whether libtool must link a program against all its dependency libraries.
14777 link_all_deplibs=$link_all_deplibs
14779 # Set to "yes" if exported symbols are required.
14780 always_export_symbols=$always_export_symbols
14782 # The commands to list exported symbols.
14783 export_symbols_cmds=$lt_export_symbols_cmds
14785 # Symbols that should not be listed in the preloaded symbols.
14786 exclude_expsyms=$lt_exclude_expsyms
14788 # Symbols that must always be exported.
14789 include_expsyms=$lt_include_expsyms
14791 # Commands necessary for linking programs (against libraries) with templates.
14792 prelink_cmds=$lt_prelink_cmds
14794 # Commands necessary for finishing linking programs.
14795 postlink_cmds=$lt_postlink_cmds
14797 # Specify filename containing input files.
14798 file_list_spec=$lt_file_list_spec
14800 # How to hardcode a shared library path into an executable.
14801 hardcode_action=$hardcode_action
14803 # ### END LIBTOOL CONFIG
14809 cat <<\_LT_EOF >> "$cfgfile"
14810 # AIX sometimes has problems with the GCC collect2 program. For some
14811 # reason, if we set the COLLECT_NAMES environment variable, the problems
14812 # vanish in a puff of smoke.
14813 if test "X${COLLECT_NAMES+set}" != Xset; then
14815 export COLLECT_NAMES
14822 ltmain="$ac_aux_dir/ltmain.sh"
14825 # We use sed instead of cat because bash on DJGPP gets confused if
14826 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14827 # text mode, it properly converts lines to CR/LF. This bash problem
14828 # is reportedly fixed, but why not run on old versions too?
14829 sed '$q' "$ltmain" >> "$cfgfile" \
14830 || (rm -f "$cfgfile"; exit 1)
14832 if test x"$xsi_shell" = xyes; then
14833 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14837 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14838 \ * ) func_dirname_result="${3}" ;;\
14840 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14841 && mv -f "$cfgfile.tmp" "$cfgfile" \
14842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14846 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14849 \ func_basename_result="${1##*/}"\
14850 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14851 && mv -f "$cfgfile.tmp" "$cfgfile" \
14852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14853 test 0 -eq $? || _lt_function_replace_fail=:
14856 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14857 func_dirname_and_basename ()\
14860 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14861 \ * ) func_dirname_result="${3}" ;;\
14863 \ func_basename_result="${1##*/}"\
14864 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14865 && mv -f "$cfgfile.tmp" "$cfgfile" \
14866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14867 test 0 -eq $? || _lt_function_replace_fail=:
14870 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14873 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14874 \ # positional parameters, so assign one to ordinary parameter first.\
14875 \ func_stripname_result=${3}\
14876 \ func_stripname_result=${func_stripname_result#"${1}"}\
14877 \ func_stripname_result=${func_stripname_result%"${2}"}\
14878 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14879 && mv -f "$cfgfile.tmp" "$cfgfile" \
14880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14881 test 0 -eq $? || _lt_function_replace_fail=:
14884 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14885 func_split_long_opt ()\
14887 \ func_split_long_opt_name=${1%%=*}\
14888 \ func_split_long_opt_arg=${1#*=}\
14889 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14890 && mv -f "$cfgfile.tmp" "$cfgfile" \
14891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14895 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14896 func_split_short_opt ()\
14898 \ func_split_short_opt_arg=${1#??}\
14899 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14900 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14901 && mv -f "$cfgfile.tmp" "$cfgfile" \
14902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14903 test 0 -eq $? || _lt_function_replace_fail=:
14906 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14910 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14911 \ *) func_lo2o_result=${1} ;;\
14913 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14914 && mv -f "$cfgfile.tmp" "$cfgfile" \
14915 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14916 test 0 -eq $? || _lt_function_replace_fail=:
14919 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14922 func_xform_result=${1%.*}.lo\
14923 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14924 && mv -f "$cfgfile.tmp" "$cfgfile" \
14925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14926 test 0 -eq $? || _lt_function_replace_fail=:
14929 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14932 func_arith_result=$(( $* ))\
14933 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14934 && mv -f "$cfgfile.tmp" "$cfgfile" \
14935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14936 test 0 -eq $? || _lt_function_replace_fail=:
14939 sed -e '/^func_len ()$/,/^} # func_len /c\
14942 func_len_result=${#1}\
14943 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14944 && mv -f "$cfgfile.tmp" "$cfgfile" \
14945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14946 test 0 -eq $? || _lt_function_replace_fail=:
14950 if test x"$lt_shell_append" = xyes; then
14951 sed -e '/^func_append ()$/,/^} # func_append /c\
14954 eval "${1}+=\\${2}"\
14955 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14956 && mv -f "$cfgfile.tmp" "$cfgfile" \
14957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14958 test 0 -eq $? || _lt_function_replace_fail=:
14961 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14962 func_append_quoted ()\
14964 \ func_quote_for_eval "${2}"\
14965 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14966 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14967 && mv -f "$cfgfile.tmp" "$cfgfile" \
14968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14969 test 0 -eq $? || _lt_function_replace_fail=:
14972 # Save a `func_append' function call where possible by direct use of '+='
14973 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14974 && mv -f "$cfgfile.tmp" "$cfgfile" \
14975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14976 test 0 -eq $? || _lt_function_replace_fail=:
14978 # Save a `func_append' function call even when '+=' is not available
14979 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14980 && mv -f "$cfgfile.tmp" "$cfgfile" \
14981 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14982 test 0 -eq $? || _lt_function_replace_fail=:
14985 if test x"$_lt_function_replace_fail" = x":"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14987 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14991 mv -f "$cfgfile" "$ofile" ||
14992 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15003 ac_clean_files=$ac_clean_files_save
15005 test $ac_write_fail = 0 ||
15006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15009 # configure is writing to config.log, and then calls config.status.
15010 # config.status does its own redirection, appending to config.log.
15011 # Unfortunately, on DOS this fails, as config.log is still kept open
15012 # by configure, so config.status won't be able to write to it; its
15013 # output is simply discarded. So we exec the FD to /dev/null,
15014 # effectively closing config.log, so it can be properly (re)opened and
15015 # appended to by config.status. When coming back to configure, we
15016 # need to make the FD available again.
15017 if test "$no_create" != yes; then
15019 ac_config_status_args=
15020 test "$silent" = yes &&
15021 ac_config_status_args="$ac_config_status_args --quiet"
15023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15026 # would make configure fail if this is the last instruction.
15027 $ac_cs_success || as_fn_exit 1
15029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}