2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libzip 1.0.1.
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.0.1'
594 PACKAGE_STRING='libzip 1.0.1'
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
702 INSTALL_STRIP_PROGRAM
744 program_transform_name
757 enable_option_checking
759 enable_dependency_tracking
770 ac_precious_vars='build_alias
781 # Initialize some variables set by options.
783 ac_init_version=false
784 ac_unrecognized_opts=
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name=s,x,x,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1088 -site=* | --site=* | --sit=*)
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1144 eval with_$ac_useropt=no ;;
1147 # Obsolete; use --with-x.
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information"
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error $? "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1197 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error $? "working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error $? "pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures libzip 1.0.1 to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking ...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/libzip]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --program-prefix=PREFIX prepend PREFIX to installed program names
1378 --program-suffix=SUFFIX append SUFFIX to installed program names
1379 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1382 --build=BUILD configure for building on BUILD [guessed]
1383 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of libzip 1.0.1:";;
1394 --disable-option-checking ignore unrecognized --enable/--with options
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-silent-rules less verbose build output (undo: "make V=1")
1398 --disable-silent-rules verbose build output (undo: "make V=0")
1399 --enable-dependency-tracking
1400 do not reject slow dependency extractors
1401 --disable-dependency-tracking
1402 speeds up one-time build
1403 --disable-largefile omit support for large files
1404 --enable-shared[=PKGS] build shared libraries [default=yes]
1405 --enable-static[=PKGS] build static libraries [default=yes]
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-zlib=PREFIX specify prefix for ZLIB library
1414 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 --with-sysroot=DIR Search for dependent libraries within DIR
1418 (or the compiler's sysroot if not specified).
1420 Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
1425 LIBS libraries to pass to the linker, e.g. -l<library>
1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1433 Report bugs to <libzip@nih.at>.
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1463 .) # We are building in place.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1496 libzip configure 1.0.1
1497 generated by GNU Autoconf 2.69
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_compile
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 test -x conftest$ac_exeext
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_link
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1611 if ac_fn_c_try_compile "$LINENO"; then :
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623 } # ac_fn_c_check_header_compile
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1696 ac_retval=$ac_status
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1719 #define $2 innocuous_$2
1721 /* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char $2 (); below.
1723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724 <limits.h> exists even on freestanding compilers. */
1727 # include <limits.h>
1729 # include <assert.h>
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1756 if ac_fn_c_try_link "$LINENO"; then :
1761 rm -f core conftest.err conftest.$ac_objext \
1762 conftest$ac_exeext conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 } # ac_fn_c_check_func
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1776 ac_fn_c_check_header_mongrel ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if eval \${$3+:} false; then :
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1789 # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_header_compiler=yes
1800 ac_header_compiler=no
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814 ac_header_preproc=yes
1816 ac_header_preproc=no
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1822 # So? What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ---------------------------- ##
1842 ## Report this to libzip@nih.at ##
1843 ## ---------------------------- ##"
1844 ) | sed "s/^/$as_me: WARNING: /" >&2
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 eval "$3=\$ac_header_compiler"
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 } # ac_fn_c_check_header_mongrel
1862 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863 # -------------------------------------------
1864 # Tests whether TYPE exists after having included INCLUDES, setting cache
1865 # variable VAR accordingly.
1866 ac_fn_c_check_type ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 } # ac_fn_c_check_type
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1921 ac_fn_c_compute_int ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if test "$cross_compiling" = yes; then
1925 # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1934 return test_array [0];
1940 if ac_fn_c_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1949 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1951 return test_array [0];
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 ac_hi=$ac_mid; break
1960 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1961 if test $ac_lo -le $ac_mid; then
1965 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1976 static int test_array [1 - 2 * !(($2) < 0)];
1978 return test_array [0];
1984 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1995 return test_array [0];
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=$ac_mid; break
2004 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005 if test $ac_mid -le $ac_hi; then
2009 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2030 return test_array [0];
2036 if ac_fn_c_try_compile "$LINENO"; then :
2039 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2051 static long int longval () { return $2; }
2052 static unsigned long int ulongval () { return $2; }
2059 FILE *f = fopen ("conftest.val", "w");
2064 long int i = longval ();
2067 fprintf (f, "%ld", i);
2071 unsigned long int i = ulongval ();
2074 fprintf (f, "%lu", i);
2076 /* Do not output a trailing newline, as this causes \r\n confusion
2077 on some platforms. */
2078 return ferror (f) || fclose (f) != 0;
2084 if ac_fn_c_try_run "$LINENO"; then :
2085 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2090 conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 as_fn_set_status $ac_retval
2097 } # ac_fn_c_compute_int
2099 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2100 # ----------------------------------------------------
2101 # Tries to find if the field MEMBER exists in type AGGR, after including
2102 # INCLUDES, setting cache variable VAR accordingly.
2103 ac_fn_c_check_member ()
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2107 $as_echo_n "checking for $2.$3... " >&6; }
2108 if eval \${$4+:} false; then :
2109 $as_echo_n "(cached) " >&6
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"; then :
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2134 if (sizeof ac_aggr.$3)
2140 if ac_fn_c_try_compile "$LINENO"; then :
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154 } # ac_fn_c_check_member
2156 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2157 # ---------------------------------------------
2158 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2160 ac_fn_c_check_decl ()
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 as_decl_name=`echo $2|sed 's/ *(.*//'`
2164 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2166 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2167 if eval \${$3+:} false; then :
2168 $as_echo_n "(cached) " >&6
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2176 #ifndef $as_decl_name
2178 (void) $as_decl_use;
2180 (void) $as_decl_name;
2188 if ac_fn_c_try_compile "$LINENO"; then :
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 } # ac_fn_c_check_decl
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2205 It was created by libzip $as_me 1.0.1, which was
2206 generated by GNU Autoconf 2.69. Invocation command line was
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2228 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2231 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2232 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2233 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 test -z "$as_dir" && as_dir=.
2242 $as_echo "PATH: $as_dir"
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2266 ac_must_keep_next=false
2272 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274 | -silent | --silent | --silen | --sile | --sil)
2277 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 as_fn_append ac_configure_args1 " '$ac_arg'"
2283 if test $ac_must_keep_next = true; then
2284 ac_must_keep_next=false # Got value, back to normal.
2287 *=* | --config-cache | -C | -disable-* | --disable-* \
2288 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290 | -with-* | --with-* | -without-* | --without-* | --x)
2291 case "$ac_configure_args0 " in
2292 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 -* ) ac_must_keep_next=true ;;
2298 as_fn_append ac_configure_args " '$ac_arg'"
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log. We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312 # Save into config.log some information that might help in debugging.
2316 $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2320 # The following way of writing the cache mishandles newlines in values,
2322 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323 eval ac_val=\$$ac_var
2327 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331 _ | IFS | as_nl) ;; #(
2332 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333 *) { eval $ac_var=; unset $ac_var;} ;;
2338 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339 *${as_nl}ac_space=\ *)
2341 "s/'\''/'\''\\\\'\'''\''/g;
2342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352 $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2356 for ac_var in $ac_subst_vars
2358 eval ac_val=\$$ac_var
2360 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 $as_echo "$ac_var='\''$ac_val'\''"
2366 if test -n "$ac_subst_files"; then
2367 $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2371 for ac_var in $ac_subst_files
2373 eval ac_val=\$$ac_var
2375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 $as_echo "$ac_var='\''$ac_val'\''"
2382 if test -s confdefs.h; then
2383 $as_echo "## ----------- ##
2390 test "$ac_signal" != 0 &&
2391 $as_echo "$as_me: caught signal $ac_signal"
2392 $as_echo "$as_me: exit $exit_status"
2394 rm -f core *.core core.conftest.* &&
2395 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398 for ac_signal in 1 2 13 15; do
2399 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2406 $as_echo "/* confdefs.h */" > confdefs.h
2408 # Predefined preprocessor variables.
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2439 if test -n "$CONFIG_SITE"; then
2440 # We do not want a PATH search for config.site.
2441 case $CONFIG_SITE in #((
2442 -*) ac_site_file1=./$CONFIG_SITE;;
2443 */*) ac_site_file1=$CONFIG_SITE;;
2444 *) ac_site_file1=./$CONFIG_SITE;;
2446 elif test "x$prefix" != xNONE; then
2447 ac_site_file1=$prefix/share/config.site
2448 ac_site_file2=$prefix/etc/config.site
2450 ac_site_file1=$ac_default_prefix/share/config.site
2451 ac_site_file2=$ac_default_prefix/etc/config.site
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455 test "x$ac_site_file" = xNONE && continue
2456 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459 sed 's/^/| /' "$ac_site_file" >&5
2461 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2468 if test -r "$cache_file"; then
2469 # Some versions of bash will fail to source /dev/null (special files
2470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476 *) . "./$cache_file";;
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2485 # Check that the precious variables saved in the cache have kept the same
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490 eval ac_new_set=\$ac_env_${ac_var}_set
2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492 eval ac_new_val=\$ac_env_${ac_var}_value
2493 case $ac_old_set,$ac_new_set in
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2504 if test "x$ac_old_val" != "x$ac_new_val"; then
2505 # differences in whitespace do not lead to failure.
2506 ac_old_val_w=`echo x $ac_old_val`
2507 ac_new_val_w=`echo x $ac_new_val`
2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511 ac_cache_corrupted=:
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515 eval $ac_var=\$ac_old_val
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2518 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2523 # Pass precious variables to config.status.
2524 if test "$ac_new_set" = set; then
2526 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 *) ac_arg=$ac_var=$ac_new_val ;;
2529 case " $ac_configure_args " in
2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2535 if $ac_cache_corrupted; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2554 ac_config_headers="$ac_config_headers config.h"
2557 am__api_version='1.14'
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561 if test -f "$ac_dir/install-sh"; then
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2565 elif test -f "$ac_dir/install.sh"; then
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2569 elif test -f "$ac_dir/shtool"; then
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2575 if test -z "$ac_aux_dir"; then
2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2588 # Find a good install program. We prefer a C program (faster),
2589 # so one script is as good as another. But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if ${ac_cv_path_install+:} false; then :
2606 $as_echo_n "(cached) " >&6
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615 ./ | .// | /[cC]/* | \
2616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620 # OSF1 and SCO ODT 3.0 have their own names for install.
2621 # Don't use installbsd from OSF since it installs stuff as root
2623 for ac_prog in ginstall scoinst install; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2626 if test $ac_prog = install &&
2627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628 # AIX install. It has an incompatible calling convention.
2630 elif test $ac_prog = install &&
2631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632 # program-specific install script used by HP pwplus--don't use.
2635 rm -rf conftest.one conftest.two conftest.dir
2636 echo one > conftest.one
2637 echo two > conftest.two
2639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640 test -s conftest.one && test -s conftest.two &&
2641 test -s conftest.dir/conftest.one &&
2642 test -s conftest.dir/conftest.two
2644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 rm -rf conftest.one conftest.two conftest.dir
2660 if test "${ac_cv_path_install+set}" = set; then
2661 INSTALL=$ac_cv_path_install
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for INSTALL within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 INSTALL=$ac_install_sh
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2683 # Reject unsafe characters in $srcdir or the absolute working directory
2684 # name. Accept space and tab only in the latter.
2688 *[\\\"\#\$\&\'\`$am_lf]*)
2689 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2692 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2693 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2696 # Do 'set' in a subshell so we don't clobber the current shell's
2697 # arguments. Must try -L first in case configure is actually a
2698 # symlink; some systems play weird games with the mod time of symlinks
2699 # (eg FreeBSD returns the mod time of the symlink's containing
2703 for am_try in 1 2; do
2704 echo "timestamp, slept: $am_has_slept" > conftest.file
2705 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706 if test "$*" = "X"; then
2708 set X `ls -t "$srcdir/configure" conftest.file`
2710 if test "$*" != "X $srcdir/configure conftest.file" \
2711 && test "$*" != "X conftest.file $srcdir/configure"; then
2713 # If neither matched, then we have a broken ls. This can happen
2714 # if, for instance, CONFIG_SHELL is bash and it inherits a
2715 # broken ls alias from the environment. This has actually
2716 # happened. Such a system could not be considered "sane".
2717 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2718 alias in your environment" "$LINENO" 5
2720 if test "$2" = conftest.file || test $am_try -eq 2; then
2727 test "$2" = conftest.file
2733 as_fn_error $? "newly created file is older than distributed files!
2734 Check your system clock" "$LINENO" 5
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2737 $as_echo "yes" >&6; }
2738 # If we didn't sleep, we still need to ensure time stamps of config.status and
2739 # generated files are strictly newer.
2741 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2748 test "$program_prefix" != NONE &&
2749 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2750 # Use a double $ so make ignores it.
2751 test "$program_suffix" != NONE &&
2752 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2753 # Double any \ or $.
2754 # By default was `s,x,x', remove it if useless.
2755 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2756 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2758 # expand $ac_aux_dir to an absolute path
2759 am_aux_dir=`cd $ac_aux_dir && pwd`
2761 if test x"${MISSING+set}" != xset; then
2764 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2766 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2769 # Use eval to expand $SHELL
2770 if eval "$MISSING --is-lightweight"; then
2771 am_missing_run="$MISSING "
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2775 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2778 if test x"${install_sh}" != xset; then
2781 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2783 install_sh="\${SHELL} $am_aux_dir/install-sh"
2787 # Installed binaries are usually stripped using 'strip' when the user
2788 # run "make install-strip". However 'strip' might not be the right
2789 # tool to use in cross-compilation environments, therefore Automake
2790 # will honor the 'STRIP' environment variable to overrule this program.
2791 if test "$cross_compiling" != no; then
2792 if test -n "$ac_tool_prefix"; then
2793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2794 set dummy ${ac_tool_prefix}strip; ac_word=$2
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796 $as_echo_n "checking for $ac_word... " >&6; }
2797 if ${ac_cv_prog_STRIP+:} false; then :
2798 $as_echo_n "(cached) " >&6
2800 if test -n "$STRIP"; then
2801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 STRIP=$ac_cv_prog_STRIP
2821 if test -n "$STRIP"; then
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2823 $as_echo "$STRIP" >&6; }
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2831 if test -z "$ac_cv_prog_STRIP"; then
2833 # Extract the first word of "strip", so it can be a program name with args.
2834 set dummy strip; ac_word=$2
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836 $as_echo_n "checking for $ac_word... " >&6; }
2837 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 if test -n "$ac_ct_STRIP"; then
2841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 test -z "$as_dir" && as_dir=.
2848 for ac_exec_ext in '' $ac_executable_extensions; do
2849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850 ac_cv_prog_ac_ct_STRIP="strip"
2851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2861 if test -n "$ac_ct_STRIP"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2863 $as_echo "$ac_ct_STRIP" >&6; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2869 if test "x$ac_ct_STRIP" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2876 ac_tool_warned=yes ;;
2881 STRIP="$ac_cv_prog_STRIP"
2885 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2888 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2889 if test -z "$MKDIR_P"; then
2890 if ${ac_cv_path_mkdir+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2897 test -z "$as_dir" && as_dir=.
2898 for ac_prog in mkdir gmkdir; do
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2901 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2902 'mkdir (GNU coreutils) '* | \
2903 'mkdir (coreutils) '* | \
2904 'mkdir (fileutils) '4.1*)
2905 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915 test -d ./--version && rmdir ./--version
2916 if test "${ac_cv_path_mkdir+set}" = set; then
2917 MKDIR_P="$ac_cv_path_mkdir -p"
2919 # As a last resort, use the slow shell script. Don't cache a
2920 # value for MKDIR_P within a source directory, because that will
2921 # break other packages using the cache if that directory is
2922 # removed, or if the value is a relative name.
2923 MKDIR_P="$ac_install_sh -d"
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2927 $as_echo "$MKDIR_P" >&6; }
2929 for ac_prog in gawk mawk nawk awk
2931 # Extract the first word of "$ac_prog", so it can be a program name with args.
2932 set dummy $ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_AWK+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$AWK"; then
2939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_AWK="$ac_prog"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 if test -n "$AWK"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2961 $as_echo "$AWK" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2968 test -n "$AWK" && break
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2975 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2976 $as_echo_n "(cached) " >&6
2978 cat >conftest.make <<\_ACEOF
2981 @echo '@@@%%%=$(MAKE)=@@@%%%'
2983 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2986 eval ac_cv_prog_make_${ac_make}_set=yes;;
2988 eval ac_cv_prog_make_${ac_make}_set=no;;
2992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 SET_MAKE="MAKE=${MAKE-make}"
3002 rm -rf .tst 2>/dev/null
3003 mkdir .tst 2>/dev/null
3004 if test -d .tst; then
3009 rmdir .tst 2>/dev/null
3011 # Check whether --enable-silent-rules was given.
3012 if test "${enable_silent_rules+set}" = set; then :
3013 enableval=$enable_silent_rules;
3016 case $enable_silent_rules in # (((
3017 yes) AM_DEFAULT_VERBOSITY=0;;
3018 no) AM_DEFAULT_VERBOSITY=1;;
3019 *) AM_DEFAULT_VERBOSITY=1;;
3021 am_make=${MAKE-make}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3023 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3024 if ${am_cv_make_support_nested_variables+:} false; then :
3025 $as_echo_n "(cached) " >&6
3027 if $as_echo 'TRUE=$(BAR$(V))
3033 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3034 am_cv_make_support_nested_variables=yes
3036 am_cv_make_support_nested_variables=no
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3040 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3041 if test $am_cv_make_support_nested_variables = yes; then
3043 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3045 AM_V=$AM_DEFAULT_VERBOSITY
3046 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3050 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3051 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3052 # is not polluted with repeated "-I."
3053 am__isrc=' -I$(srcdir)'
3054 # test to see if srcdir already configured
3055 if test -f $srcdir/config.status; then
3056 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3060 # test whether we have cygpath
3061 if test -z "$CYGPATH_W"; then
3062 if (cygpath --version) >/dev/null 2>/dev/null; then
3063 CYGPATH_W='cygpath -w'
3070 # Define the identity of the package.
3075 cat >>confdefs.h <<_ACEOF
3076 #define PACKAGE "$PACKAGE"
3080 cat >>confdefs.h <<_ACEOF
3081 #define VERSION "$VERSION"
3084 # Some tools Automake needs.
3086 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3089 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3092 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3095 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3098 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3100 # For better backward compatibility. To be removed once Automake 1.9.x
3101 # dies out for good. For more background, see:
3102 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3104 mkdir_p='$(MKDIR_P)'
3106 # We need awk for the "check" target. The system "awk" is bad on
3108 # Always define AMTAR for backward compatibility. Yes, it's still used
3109 # in the wild :-( We should find a proper way to deprecate it ...
3113 # We'll loop over all known methods to create a tar archive until one works.
3114 _am_tools='gnutar pax cpio none'
3116 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3123 # POSIX will say in a future version that running "rm -f" with no argument
3124 # is OK; and we want to be able to make that assumption in our Makefile
3125 # recipes. So use an aggressive probe to check that the usage we want is
3126 # actually supported "in the wild" to an acceptable degree.
3127 # See automake bug#10828.
3128 # To make any issue more visible, cause the running configure to be aborted
3129 # by default if the 'rm' program in use doesn't match our expectations; the
3130 # user can still override this though.
3131 if rm -f && rm -fr && rm -rf; then : OK; else
3135 Your 'rm' program seems unable to run without file operands specified
3136 on the command line, even when the '-f' option is present. This is contrary
3137 to the behaviour of most rm programs out there, and not conforming with
3138 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3140 Please tell bug-automake@gnu.org about your system, including the value
3141 of your $PATH and any error possibly output before this message. This
3142 can help us improve future automake versions.
3145 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3146 echo 'Configuration will proceed anyway, since you have set the' >&2
3147 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3151 Aborting the configuration process, to ensure you take notice of the issue.
3153 You can download and install GNU coreutils to get an 'rm' implementation
3154 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3156 If you want to complete the configuration process using your problematic
3157 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3158 to "yes", and re-run configure.
3161 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3165 # Make sure we can run config.sub.
3166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3170 $as_echo_n "checking build system type... " >&6; }
3171 if ${ac_cv_build+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 ac_build_alias=$build_alias
3175 test "x$ac_build_alias" = x &&
3176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3177 test "x$ac_build_alias" = x &&
3178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3184 $as_echo "$ac_cv_build" >&6; }
3185 case $ac_cv_build in
3187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3190 ac_save_IFS=$IFS; IFS='-'
3196 # Remember, the first character of IFS is used to create $*,
3197 # except with old shells:
3200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3204 $as_echo_n "checking host system type... " >&6; }
3205 if ${ac_cv_host+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test "x$host_alias" = x; then
3209 ac_cv_host=$ac_cv_build
3211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3217 $as_echo "$ac_cv_host" >&6; }
3220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3223 ac_save_IFS=$IFS; IFS='-'
3229 # Remember, the first character of IFS is used to create $*,
3230 # except with old shells:
3233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3238 PKG_CONFIG_RPATH=-Wl,-R\${libdir};;
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3289 if test -z "$ac_cv_prog_CC"; then
3291 # Extract the first word of "gcc", so it can be a program name with args.
3292 set dummy gcc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3298 if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_ac_ct_CC="gcc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321 $as_echo "$ac_ct_CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3327 if test "x$ac_ct_CC" = x; then
3330 case $cross_compiling:$ac_tool_warned in
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}cc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3383 if test -z "$CC"; then
3384 # Extract the first word of "cc", so it can be a program name with args.
3385 set dummy cc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3403 ac_prog_rejected=yes
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 if test $ac_prog_rejected = yes; then
3415 # We found a bogon in the path, so make sure we never use it.
3416 set dummy $ac_cv_prog_CC
3418 if test $# != 0; then
3419 # We chose a different compiler from the bogus one.
3420 # However, it has the same basename, so the bogon will be chosen
3421 # first if we set CC to just the basename; use the full file name.
3423 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3429 if test -n "$CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3439 if test -z "$CC"; then
3440 if test -n "$ac_tool_prefix"; then
3441 for ac_prog in cl.exe
3443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3480 test -n "$CC" && break
3483 if test -z "$CC"; then
3485 for ac_prog in cl.exe
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_ac_ct_CC="$ac_prog"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 $as_echo "$ac_ct_CC" >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3524 test -n "$ac_ct_CC" && break
3527 if test "x$ac_ct_CC" = x; then
3530 case $cross_compiling:$ac_tool_warned in
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3543 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details" "$LINENO" 5; }
3548 # Provide some information about the compiler.
3549 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3552 for ac_option in --version -v -V -qversion; do
3553 { { ac_try="$ac_compiler $ac_option >&5"
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3562 if test -s conftest.err; then
3564 ... rest of stderr output deleted ...
3565 10q' conftest.err >conftest.er1
3566 cat conftest.er1 >&5
3568 rm -f conftest.er1 conftest.err
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3584 ac_clean_files_save=$ac_clean_files
3585 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3586 # Try to create an executable without -o first, disregard a.out.
3587 # It will help us diagnose broken compilers, and finding out an intuition
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3593 # The possible output files:
3594 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3597 for ac_file in $ac_files
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3606 if { { ac_try="$ac_link_default"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link_default") 2>&5
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3618 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3619 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3620 # so that the user can short-circuit this test for compilers unknown to
3622 for ac_file in $ac_files ''
3624 test -f "$ac_file" || continue
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3629 # We found the default executable, but exeext='' is most
3633 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637 # We set ac_cv_exeext here because the later test for it is not
3638 # safe: cross compilers may not add the suffix if given an `-o'
3639 # argument, so we may need to know it at that point already.
3640 # Even if this section looks crufty: it has the advantage of
3647 test "$ac_cv_exeext" = no && ac_cv_exeext=
3652 if test -z "$ac_file"; then :
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error 77 "C compiler cannot create executables
3661 See \`config.log' for more details" "$LINENO" 5; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 $as_echo "yes" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667 $as_echo_n "checking for C compiler default output file name... " >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3669 $as_echo "$ac_file" >&6; }
3670 ac_exeext=$ac_cv_exeext
3672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3673 ac_clean_files=$ac_clean_files_save
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3675 $as_echo_n "checking for suffix of executables... " >&6; }
3676 if { { ac_try="$ac_link"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_link") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3688 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3689 # work properly (i.e., refer to `conftest.exe'), while it won't with
3691 for ac_file in conftest.exe conftest conftest.*; do
3692 test -f "$ac_file" || continue
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3704 See \`config.log' for more details" "$LINENO" 5; }
3706 rm -f conftest conftest$ac_cv_exeext
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3708 $as_echo "$ac_cv_exeext" >&6; }
3710 rm -f conftest.$ac_ext
3711 EXEEXT=$ac_cv_exeext
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3719 FILE *f = fopen ("conftest.out", "w");
3720 return ferror (f) || fclose (f) != 0;
3726 ac_clean_files="$ac_clean_files conftest.out"
3727 # Check that the compiler produces executables we can run. If not, either
3728 # the compiler is broken, or we cross compile.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3730 $as_echo_n "checking whether we are cross compiling... " >&6; }
3731 if test "$cross_compiling" != yes; then
3732 { { ac_try="$ac_link"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }
3743 if { ac_try='./conftest$ac_cv_exeext'
3744 { { case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_try") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; }; then
3756 if test "$cross_compiling" = maybe; then
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot run C compiled programs.
3762 If you meant to cross compile, use \`--host'.
3763 See \`config.log' for more details" "$LINENO" 5; }
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3768 $as_echo "$cross_compiling" >&6; }
3770 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3771 ac_clean_files=$ac_clean_files_save
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3773 $as_echo_n "checking for suffix of object files... " >&6; }
3774 if ${ac_cv_objext+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3788 rm -f conftest.o conftest.obj
3789 if { { ac_try="$ac_compile"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_compile") 2>&5
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; then :
3800 for ac_file in conftest.o conftest.obj conftest.*; do
3801 test -f "$ac_file" || continue;
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3809 $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details" "$LINENO" 5; }
3817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3820 $as_echo "$ac_cv_objext" >&6; }
3821 OBJEXT=$ac_cv_objext
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3825 if ${ac_cv_c_compiler_gnu+:} false; then :
3826 $as_echo_n "(cached) " >&6
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3842 if ac_fn_c_try_compile "$LINENO"; then :
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3858 ac_test_CFLAGS=${CFLAGS+set}
3859 ac_save_CFLAGS=$CFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3862 if ${ac_cv_prog_cc_g+:} false; then :
3863 $as_echo_n "(cached) " >&6
3865 ac_save_c_werror_flag=$ac_c_werror_flag
3866 ac_c_werror_flag=yes
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 if ac_fn_c_try_compile "$LINENO"; then :
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_c_werror_flag=$ac_save_c_werror_flag
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3911 if ac_fn_c_try_compile "$LINENO"; then :
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3922 $as_echo "$ac_cv_prog_cc_g" >&6; }
3923 if test "$ac_test_CFLAGS" = set; then
3924 CFLAGS=$ac_save_CFLAGS
3925 elif test $ac_cv_prog_cc_g = yes; then
3926 if test "$GCC" = yes; then
3932 if test "$GCC" = yes; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3940 if ${ac_cv_prog_cc_c89+:} false; then :
3941 $as_echo_n "(cached) " >&6
3943 ac_cv_prog_cc_c89=no
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3951 struct buf { int x; };
3952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3953 static char *e (p, i)
3959 static char *f (char * (*g) (char **, int), char **p, ...)
3964 s = g (p, va_arg (v,int));
3969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3970 function prototypes and stuff, but not '\xHH' hex character constants.
3971 These don't provoke an error unfortunately, instead are silently treated
3972 as 'x'. The following induces an error, until -std is added to get
3973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3974 array size at least. It's necessary to write '\x00'==0 to get something
3975 that's true only with -std. */
3976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3979 inside strings and character constants. */
3981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3983 int test (int i, double x);
3984 struct s1 {int (*f) (int a);};
3985 struct s2 {int (*f) (double a);};
3986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000 CC="$ac_save_CC $ac_arg"
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_prog_cc_c89=$ac_arg
4004 rm -f core conftest.err conftest.$ac_objext
4005 test "x$ac_cv_prog_cc_c89" != "xno" && break
4007 rm -f conftest.$ac_ext
4012 case "x$ac_cv_prog_cc_c89" in
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4015 $as_echo "none needed" >&6; } ;;
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;;
4020 CC="$CC $ac_cv_prog_cc_c89"
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4024 if test "x$ac_cv_prog_cc_c89" != xno; then :
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4040 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4041 if ${am_cv_prog_cc_c_o+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 # Make sure it works both with $CC and with simple cc.
4056 # Following AC_PROG_CC_C_O, we do the test twice because some
4057 # compilers refuse to overwrite an existing .o file with -o,
4058 # though they will create one.
4059 am_cv_prog_cc_c_o=yes
4061 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4062 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } \
4066 && test -f conftest2.$ac_objext; then
4069 am_cv_prog_cc_c_o=no
4073 rm -f core conftest*
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4077 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4078 if test "$am_cv_prog_cc_c_o" != yes; then
4079 # Losing compiler, so override with the script.
4080 # FIXME: It is wrong to rewrite CC.
4081 # But if we don't then we get into trouble of one sort or another.
4082 # A longer-term fix would be to have automake use am__CC in this case,
4083 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4084 CC="$am_aux_dir/compile $CC"
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 DEPDIR="${am__leading_dot}deps"
4094 ac_config_commands="$ac_config_commands depfiles"
4097 am_make=${MAKE-make}
4098 cat > confinc << 'END'
4100 @echo this is the am__doit target
4103 # If we don't find an include directive, just comment out the code.
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4109 # First try GNU make style include.
4110 echo "include confinc" > confmf
4111 # Ignore all kinds of additional output from 'make'.
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4119 # Now try BSD make style include.
4120 if test "$am__include" = "#"; then
4121 echo '.include "confinc"' > confmf
4122 case `$am_make -s -f confmf 2> /dev/null` in #(
4123 *the\ am__doit\ target*)
4124 am__include=.include
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4133 $as_echo "$_am_result" >&6; }
4134 rm -f confinc confmf
4136 # Check whether --enable-dependency-tracking was given.
4137 if test "${enable_dependency_tracking+set}" = set; then :
4138 enableval=$enable_dependency_tracking;
4141 if test "x$enable_dependency_tracking" != xno; then
4142 am_depcomp="$ac_aux_dir/depcomp"
4146 if test "x$enable_dependency_tracking" != xno; then
4156 depcc="$CC" am_compiler_list=
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4159 $as_echo_n "checking dependency style of $depcc... " >&6; }
4160 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4164 # We make a subdir and do the tests there. Otherwise we can end up
4165 # making bogus files that we don't know about and never remove. For
4166 # instance it was reported that on HP-UX the gcc test will end up
4167 # making a dummy file named 'D' -- because '-MD' means "put the output
4171 # Copy depcomp to subdir because otherwise we won't find it if we're
4172 # using a relative directory.
4173 cp "$am_depcomp" conftest.dir
4175 # We will build objects and dependencies in a subdirectory because
4176 # it helps to detect inapplicable dependency modes. For instance
4177 # both Tru64's cc and ICC support -MD to output dependencies as a
4178 # side effect of compilation, but ICC will put the dependencies in
4179 # the current directory while Tru64 will put them in the object
4183 am_cv_CC_dependencies_compiler_type=none
4184 if test "$am_compiler_list" = ""; then
4185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4188 case " $depcc " in #(
4189 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4192 for depmode in $am_compiler_list; do
4193 # Setup a source with many dependencies, because some compilers
4194 # like to wrap large dependency lists on column 80 (with \), and
4195 # we should not choose a depcomp mode which is confused by this.
4197 # We need to recreate these files for each test, as the compiler may
4198 # overwrite some of them when testing with obscure command lines.
4199 # This happens at least with the AIX C compiler.
4201 for i in 1 2 3 4 5 6; do
4202 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4204 # Solaris 10 /bin/sh.
4205 echo '/* dummy */' > sub/conftst$i.h
4207 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4210 # mode. It turns out that the SunPro C++ compiler does not properly
4211 # handle '-M -o', and we need to detect this. Also, some Intel
4212 # versions had trouble with output in subdirs.
4213 am__obj=sub/conftest.${OBJEXT-o}
4214 am__minus_obj="-o $am__obj"
4217 # This depmode causes a compiler race in universal mode.
4218 test "$am__universal" = false || continue
4221 # After this tag, mechanisms are not by side-effect, so they'll
4222 # only be used when explicitly requested.
4223 if test "x$enable_dependency_tracking" = xyes; then
4229 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4230 # This compiler won't grok '-c -o', but also, the minuso test has
4231 # not run yet. These depmodes are late enough in the game, and
4232 # so weak that their functioning should not be impacted.
4233 am__obj=conftest.${OBJEXT-o}
4238 if depmode=$depmode \
4239 source=sub/conftest.c object=$am__obj \
4240 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4241 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4242 >/dev/null 2>conftest.err &&
4243 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247 # icc doesn't choke on unknown options, it will just issue warnings
4248 # or remarks (even with -Werror). So we grep stderr for any message
4249 # that says an option was ignored or not supported.
4250 # When given -MP, icc 7.0 and 7.1 complain thusly:
4251 # icc: Command line warning: ignoring option '-M'; no argument required
4252 # The diagnosis changed in icc 8.0:
4253 # icc: Command line remark: option '-MP' not supported
4254 if (grep 'ignoring option' conftest.err ||
4255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256 am_cv_CC_dependencies_compiler_type=$depmode
4265 am_cv_CC_dependencies_compiler_type=none
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4274 test "x$enable_dependency_tracking" != xno \
4275 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277 am__fastdepCC_FALSE='#'
4279 am__fastdepCC_TRUE='#'
4280 am__fastdepCC_FALSE=
4285 # Check whether --enable-largefile was given.
4286 if test "${enable_largefile+set}" = set; then :
4287 enableval=$enable_largefile;
4290 if test "$enable_largefile" != no; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4293 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4294 if ${ac_cv_sys_largefile_CC+:} false; then :
4295 $as_echo_n "(cached) " >&6
4297 ac_cv_sys_largefile_CC=no
4298 if test "$GCC" != yes; then
4301 # IRIX 6.2 and later do not support large files by default,
4302 # so use the C compiler's -n32 option if that helps.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4305 #include <sys/types.h>
4306 /* Check that off_t can represent 2**63 - 1 correctly.
4307 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4308 since some C++ compilers masquerading as C compilers
4309 incorrectly reject 9223372036854775807. */
4310 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4311 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4312 && LARGE_OFF_T % 2147483647 == 1)
4322 if ac_fn_c_try_compile "$LINENO"; then :
4325 rm -f core conftest.err conftest.$ac_objext
4327 if ac_fn_c_try_compile "$LINENO"; then :
4328 ac_cv_sys_largefile_CC=' -n32'; break
4330 rm -f core conftest.err conftest.$ac_objext
4334 rm -f conftest.$ac_ext
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4338 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4339 if test "$ac_cv_sys_largefile_CC" != no; then
4340 CC=$CC$ac_cv_sys_largefile_CC
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4344 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4345 if ${ac_cv_sys_file_offset_bits+:} false; then :
4346 $as_echo_n "(cached) " >&6
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <sys/types.h>
4352 /* Check that off_t can represent 2**63 - 1 correctly.
4353 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4354 since some C++ compilers masquerading as C compilers
4355 incorrectly reject 9223372036854775807. */
4356 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4358 && LARGE_OFF_T % 2147483647 == 1)
4368 if ac_fn_c_try_compile "$LINENO"; then :
4369 ac_cv_sys_file_offset_bits=no; break
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4374 #define _FILE_OFFSET_BITS 64
4375 #include <sys/types.h>
4376 /* Check that off_t can represent 2**63 - 1 correctly.
4377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4378 since some C++ compilers masquerading as C compilers
4379 incorrectly reject 9223372036854775807. */
4380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4382 && LARGE_OFF_T % 2147483647 == 1)
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_sys_file_offset_bits=64; break
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cv_sys_file_offset_bits=unknown
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4401 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4402 case $ac_cv_sys_file_offset_bits in #(
4405 cat >>confdefs.h <<_ACEOF
4406 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4411 if test $ac_cv_sys_file_offset_bits = unknown; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4413 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4414 if ${ac_cv_sys_large_files+:} false; then :
4415 $as_echo_n "(cached) " >&6
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <sys/types.h>
4421 /* Check that off_t can represent 2**63 - 1 correctly.
4422 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4423 since some C++ compilers masquerading as C compilers
4424 incorrectly reject 9223372036854775807. */
4425 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4427 && LARGE_OFF_T % 2147483647 == 1)
4437 if ac_fn_c_try_compile "$LINENO"; then :
4438 ac_cv_sys_large_files=no; break
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #define _LARGE_FILES 1
4444 #include <sys/types.h>
4445 /* Check that off_t can represent 2**63 - 1 correctly.
4446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4447 since some C++ compilers masquerading as C compilers
4448 incorrectly reject 9223372036854775807. */
4449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4451 && LARGE_OFF_T % 2147483647 == 1)
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_cv_sys_large_files=1; break
4464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4465 ac_cv_sys_large_files=unknown
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4470 $as_echo "$ac_cv_sys_large_files" >&6; }
4471 case $ac_cv_sys_large_files in #(
4474 cat >>confdefs.h <<_ACEOF
4475 #define _LARGE_FILES $ac_cv_sys_large_files
4488 # Check whether --with-zlib was given.
4489 if test "${with_zlib+set}" = set; then :
4496 if test "$with_zlib" != "yes"
4498 if test -f "$with_zlib"/zlib.h
4500 # PREFIX is to uninstalled version in distribution directory
4501 CFLAGS="$CFLAGS -I$with_zlib"
4502 LDFLAGS="$LDFLAGS -L$with_zlib"
4503 else if test -f "$with_zlib"/include/zlib.h
4505 # PREFIX is installation prefix
4506 CFLAGS="$CFLAGS -I$with_zlib/include"
4507 LDFLAGS="$LDFLAGS -L$with_zlib/lib"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
4513 $as_echo_n "checking for main in -lz... " >&6; }
4514 if ${ac_cv_lib_z_main+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 ac_check_lib_save_LIBS=$LIBS
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4531 if ac_fn_c_try_link "$LINENO"; then :
4532 ac_cv_lib_z_main=yes
4536 rm -f core conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext conftest.$ac_ext
4538 LIBS=$ac_check_lib_save_LIBS
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
4541 $as_echo "$ac_cv_lib_z_main" >&6; }
4542 if test "x$ac_cv_lib_z_main" = xyes; then :
4543 cat >>confdefs.h <<_ACEOF
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking new ZLIB version" >&5
4552 $as_echo_n "checking new ZLIB version... " >&6; }
4553 if ${id_cv_lib_zlib_ok+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4562 extern ZEXPORT int unzOpen (const char *path);
4567 if ac_fn_c_try_compile "$LINENO"; then :
4568 id_cv_lib_zlib_ok=yes
4570 id_cv_lib_zlib_ok=no
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $id_cv_lib_zlib_ok" >&5
4575 $as_echo "$id_cv_lib_zlib_ok" >&6; }
4576 if test "$id_cv_lib_zlib_ok" = "no"
4578 as_fn_error $? "ZLIB version too old, please install at least v1.1.2" "$LINENO" 5
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4586 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4591 macro_version='2.4.2'
4592 macro_revision='1.3337'
4606 ltmain="$ac_aux_dir/ltmain.sh"
4608 # Backslashify metacharacters that are still active within
4609 # double-quoted strings.
4610 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4612 # Same as above, but do not quote variable references.
4613 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4615 # Sed substitution to delay expansion of an escaped shell variable in a
4616 # double_quote_subst'ed string.
4617 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4619 # Sed substitution to delay expansion of an escaped single quote.
4620 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4622 # Sed substitution to avoid accidental globbing in evaled expressions
4623 no_glob_subst='s/\*/\\\*/g'
4625 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4627 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4630 $as_echo_n "checking how to print strings... " >&6; }
4631 # Test print first, because it will be a builtin if present.
4632 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4633 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4635 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4638 # Use this function as a fallback that always works.
4639 func_fallback_echo ()
4641 eval 'cat <<_LTECHO_EOF
4645 ECHO='func_fallback_echo'
4648 # func_echo_all arg...
4649 # Invoke $ECHO with all args, space-separated.
4656 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4657 $as_echo "printf" >&6; } ;;
4658 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4659 $as_echo "print -r" >&6; } ;;
4660 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4661 $as_echo "cat" >&6; } ;;
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4679 if ${ac_cv_path_SED+:} false; then :
4680 $as_echo_n "(cached) " >&6
4682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4683 for ac_i in 1 2 3 4 5 6 7; do
4684 ac_script="$ac_script$as_nl$ac_script"
4686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4687 { ac_script=; unset ac_script;}
4688 if test -z "$SED"; then
4689 ac_path_SED_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in sed gsed; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_SED" || continue
4700 # Check for GNU ac_path_SED and select it if it is found.
4701 # Check for GNU $ac_path_SED
4702 case `"$ac_path_SED" --version 2>&1` in
4704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4707 $as_echo_n 0123456789 >"conftest.in"
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo '' >> "conftest.nl"
4714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_SED_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_SED="$ac_path_SED"
4720 ac_path_SED_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4728 $ac_path_SED_found && break 3
4733 if test -z "$ac_cv_path_SED"; then
4734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4742 $as_echo "$ac_cv_path_SED" >&6; }
4743 SED="$ac_cv_path_SED"
4746 test -z "$SED" && SED=sed
4747 Xsed="$SED -e 1s/^X//"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4760 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4761 if ${ac_cv_path_GREP+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -z "$GREP"; then
4765 ac_path_GREP_found=false
4766 # Loop through the user's path and test for each of PROGNAME-LIST
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4771 test -z "$as_dir" && as_dir=.
4772 for ac_prog in grep ggrep; do
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4775 as_fn_executable_p "$ac_path_GREP" || continue
4776 # Check for GNU ac_path_GREP and select it if it is found.
4777 # Check for GNU $ac_path_GREP
4778 case `"$ac_path_GREP" --version 2>&1` in
4780 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4783 $as_echo_n 0123456789 >"conftest.in"
4786 cat "conftest.in" "conftest.in" >"conftest.tmp"
4787 mv "conftest.tmp" "conftest.in"
4788 cp "conftest.in" "conftest.nl"
4789 $as_echo 'GREP' >> "conftest.nl"
4790 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4792 as_fn_arith $ac_count + 1 && ac_count=$as_val
4793 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4794 # Best one so far, save it but keep looking for a better one
4795 ac_cv_path_GREP="$ac_path_GREP"
4796 ac_path_GREP_max=$ac_count
4798 # 10*(2^10) chars as input seems more than enough
4799 test $ac_count -gt 10 && break
4801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804 $ac_path_GREP_found && break 3
4809 if test -z "$ac_cv_path_GREP"; then
4810 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813 ac_cv_path_GREP=$GREP
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4818 $as_echo "$ac_cv_path_GREP" >&6; }
4819 GREP="$ac_cv_path_GREP"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4823 $as_echo_n "checking for egrep... " >&6; }
4824 if ${ac_cv_path_EGREP+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4828 then ac_cv_path_EGREP="$GREP -E"
4830 if test -z "$EGREP"; then
4831 ac_path_EGREP_found=false
4832 # Loop through the user's path and test for each of PROGNAME-LIST
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4837 test -z "$as_dir" && as_dir=.
4838 for ac_prog in egrep; do
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4841 as_fn_executable_p "$ac_path_EGREP" || continue
4842 # Check for GNU ac_path_EGREP and select it if it is found.
4843 # Check for GNU $ac_path_EGREP
4844 case `"$ac_path_EGREP" --version 2>&1` in
4846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4849 $as_echo_n 0123456789 >"conftest.in"
4852 cat "conftest.in" "conftest.in" >"conftest.tmp"
4853 mv "conftest.tmp" "conftest.in"
4854 cp "conftest.in" "conftest.nl"
4855 $as_echo 'EGREP' >> "conftest.nl"
4856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858 as_fn_arith $ac_count + 1 && ac_count=$as_val
4859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4860 # Best one so far, save it but keep looking for a better one
4861 ac_cv_path_EGREP="$ac_path_EGREP"
4862 ac_path_EGREP_max=$ac_count
4864 # 10*(2^10) chars as input seems more than enough
4865 test $ac_count -gt 10 && break
4867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 $ac_path_EGREP_found && break 3
4875 if test -z "$ac_cv_path_EGREP"; then
4876 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4879 ac_cv_path_EGREP=$EGREP
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4885 $as_echo "$ac_cv_path_EGREP" >&6; }
4886 EGREP="$ac_cv_path_EGREP"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4890 $as_echo_n "checking for fgrep... " >&6; }
4891 if ${ac_cv_path_FGREP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4895 then ac_cv_path_FGREP="$GREP -F"
4897 if test -z "$FGREP"; then
4898 ac_path_FGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in fgrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_FGREP" || continue
4909 # Check for GNU ac_path_FGREP and select it if it is found.
4910 # Check for GNU $ac_path_FGREP
4911 case `"$ac_path_FGREP" --version 2>&1` in
4913 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4916 $as_echo_n 0123456789 >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'FGREP' >> "conftest.nl"
4923 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_FGREP="$ac_path_FGREP"
4929 ac_path_FGREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 $ac_path_FGREP_found && break 3
4942 if test -z "$ac_cv_path_FGREP"; then
4943 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946 ac_cv_path_FGREP=$FGREP
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4952 $as_echo "$ac_cv_path_FGREP" >&6; }
4953 FGREP="$ac_cv_path_FGREP"
4956 test -z "$GREP" && GREP=grep
4976 # Check whether --with-gnu-ld was given.
4977 if test "${with_gnu_ld+set}" = set; then :
4978 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4984 if test "$GCC" = yes; then
4985 # Check if gcc -print-prog-name=ld gives a path.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4987 $as_echo_n "checking for ld used by $CC... " >&6; }
4990 # gcc leaves a trailing carriage return which upsets mingw
4991 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4993 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4996 # Accept absolute paths.
4998 re_direlt='/[^/][^/]*/\.\./'
4999 # Canonicalize the pathname of ld
5000 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5001 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5002 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5004 test -z "$LD" && LD="$ac_prog"
5007 # If it fails, then pretend we aren't using GCC.
5011 # If it is relative, then search for the first ld in PATH.
5015 elif test "$with_gnu_ld" = yes; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5017 $as_echo_n "checking for GNU ld... " >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5020 $as_echo_n "checking for non-GNU ld... " >&6; }
5022 if ${lt_cv_path_LD+:} false; then :
5023 $as_echo_n "(cached) " >&6
5025 if test -z "$LD"; then
5026 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5027 for ac_dir in $PATH; do
5029 test -z "$ac_dir" && ac_dir=.
5030 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5031 lt_cv_path_LD="$ac_dir/$ac_prog"
5032 # Check to see if the program is GNU ld. I'd rather use --version,
5033 # but apparently some variants of GNU ld only accept -v.
5034 # Break only if it was the GNU/non-GNU ld that we prefer.
5035 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5036 *GNU* | *'with BFD'*)
5037 test "$with_gnu_ld" != no && break
5040 test "$with_gnu_ld" != yes && break
5047 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5052 if test -n "$LD"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5054 $as_echo "$LD" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5061 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5062 if ${lt_cv_prog_gnu_ld+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5066 case `$LD -v 2>&1 </dev/null` in
5067 *GNU* | *'with BFD'*)
5068 lt_cv_prog_gnu_ld=yes
5071 lt_cv_prog_gnu_ld=no
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5076 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5077 with_gnu_ld=$lt_cv_prog_gnu_ld
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5088 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5089 if ${lt_cv_path_NM+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$NM"; then
5093 # Let the user override the test.
5096 lt_nm_to_check="${ac_tool_prefix}nm"
5097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5098 lt_nm_to_check="$lt_nm_to_check nm"
5100 for lt_tmp_nm in $lt_nm_to_check; do
5101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5104 test -z "$ac_dir" && ac_dir=.
5105 tmp_nm="$ac_dir/$lt_tmp_nm"
5106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5107 # Check to see if the nm accepts a BSD-compat flag.
5108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5109 # nm: unknown option "B" ignored
5110 # Tru64's nm complains that /dev/null is an invalid object file
5111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5112 */dev/null* | *'Invalid file or object type'*)
5113 lt_cv_path_NM="$tmp_nm -B"
5117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5119 lt_cv_path_NM="$tmp_nm -p"
5123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5124 continue # so that we can try to find one that supports BSD flags
5133 : ${lt_cv_path_NM=no}
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5137 $as_echo "$lt_cv_path_NM" >&6; }
5138 if test "$lt_cv_path_NM" != "no"; then
5141 # Didn't find any BSD compatible name lister, look for dumpbin.
5142 if test -n "$DUMPBIN"; then :
5143 # Let the user override the test.
5145 if test -n "$ac_tool_prefix"; then
5146 for ac_prog in dumpbin "link -dump"
5148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_DUMPBIN+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$DUMPBIN"; then
5156 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 DUMPBIN=$ac_cv_prog_DUMPBIN
5176 if test -n "$DUMPBIN"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5178 $as_echo "$DUMPBIN" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5185 test -n "$DUMPBIN" && break
5188 if test -z "$DUMPBIN"; then
5189 ac_ct_DUMPBIN=$DUMPBIN
5190 for ac_prog in dumpbin "link -dump"
5192 # Extract the first word of "$ac_prog", so it can be a program name with args.
5193 set dummy $ac_prog; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 if test -n "$ac_ct_DUMPBIN"; then
5200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5220 if test -n "$ac_ct_DUMPBIN"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5222 $as_echo "$ac_ct_DUMPBIN" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5229 test -n "$ac_ct_DUMPBIN" && break
5232 if test "x$ac_ct_DUMPBIN" = x; then
5235 case $cross_compiling:$ac_tool_warned in
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5239 ac_tool_warned=yes ;;
5241 DUMPBIN=$ac_ct_DUMPBIN
5245 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5247 DUMPBIN="$DUMPBIN -symbols"
5255 if test "$DUMPBIN" != ":"; then
5259 test -z "$NM" && NM=nm
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5267 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5268 if ${lt_cv_nm_interface+:} false; then :
5269 $as_echo_n "(cached) " >&6
5271 lt_cv_nm_interface="BSD nm"
5272 echo "int some_variable = 0;" > conftest.$ac_ext
5273 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5274 (eval "$ac_compile" 2>conftest.err)
5275 cat conftest.err >&5
5276 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5277 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5278 cat conftest.err >&5
5279 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5280 cat conftest.out >&5
5281 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5282 lt_cv_nm_interface="MS dumpbin"
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5287 $as_echo "$lt_cv_nm_interface" >&6; }
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5290 $as_echo_n "checking whether ln -s works... " >&6; }
5292 if test "$LN_S" = "ln -s"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5294 $as_echo "yes" >&6; }
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5297 $as_echo "no, using $LN_S" >&6; }
5300 # find the maximum length of command line arguments
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5302 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5303 if ${lt_cv_sys_max_cmd_len+:} false; then :
5304 $as_echo_n "(cached) " >&6
5311 # On DJGPP, this test can blow up pretty badly due to problems in libc
5312 # (any single argument exceeding 2000 bytes causes a buffer overrun
5313 # during glob expansion). Even if it were fixed, the result of this
5314 # check would be larger than it should be.
5315 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5319 # Under GNU Hurd, this test is not required because there is
5320 # no limit to the length of command line arguments.
5321 # Libtool will interpret -1 as no limit whatsoever
5322 lt_cv_sys_max_cmd_len=-1;
5325 cygwin* | mingw* | cegcc*)
5326 # On Win9x/ME, this test blows up -- it succeeds, but takes
5327 # about 5 minutes as the teststring grows exponentially.
5328 # Worse, since 9x/ME are not pre-emptively multitasking,
5329 # you end up with a "frozen" computer, even though with patience
5330 # the test eventually succeeds (with a max line length of 256k).
5331 # Instead, let's just punt: use the minimum linelength reported by
5332 # all of the supported platforms: 8192 (on NT/2K/XP).
5333 lt_cv_sys_max_cmd_len=8192;
5337 # On MiNT this can take a long time and run out of memory.
5338 lt_cv_sys_max_cmd_len=8192;
5342 # On AmigaOS with pdksh, this test takes hours, literally.
5343 # So we just punt and use a minimum line length of 8192.
5344 lt_cv_sys_max_cmd_len=8192;
5347 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5348 # This has been around since 386BSD, at least. Likely further.
5349 if test -x /sbin/sysctl; then
5350 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5351 elif test -x /usr/sbin/sysctl; then
5352 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5354 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5356 # And add a safety zone
5357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5358 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5362 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5363 lt_cv_sys_max_cmd_len=196608
5367 # The test takes a long time on OS/2.
5368 lt_cv_sys_max_cmd_len=8192
5372 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5373 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5374 # nice to cause kernel panics so lets avoid the loop below.
5375 # First set a reasonable default.
5376 lt_cv_sys_max_cmd_len=16384
5378 if test -x /sbin/sysconfig; then
5379 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5380 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5385 lt_cv_sys_max_cmd_len=102400
5387 sysv5* | sco5v6* | sysv4.2uw2*)
5388 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5389 if test -n "$kargmax"; then
5390 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5392 lt_cv_sys_max_cmd_len=32768
5396 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5397 if test -n "$lt_cv_sys_max_cmd_len"; then
5398 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5401 # Make teststring a little bigger before we do anything with it.
5402 # a 1K string should be a reasonable start.
5403 for i in 1 2 3 4 5 6 7 8 ; do
5404 teststring=$teststring$teststring
5406 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5407 # If test is not a shell built-in, we'll probably end up computing a
5408 # maximum length that is only half of the actual maximum length, but
5410 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5411 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5412 test $i != 17 # 1/2 MB should be enough
5415 teststring=$teststring$teststring
5417 # Only check the string length outside the loop.
5418 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5420 # Add a significant safety factor because C++ compilers can tack on
5421 # massive amounts of additional arguments before passing them to the
5422 # linker. It appears as though 1/2 is a usable value.
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5430 if test -n $lt_cv_sys_max_cmd_len ; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5432 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5435 $as_echo "none" >&6; }
5437 max_cmd_len=$lt_cv_sys_max_cmd_len
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5449 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5450 # Try some XSI features
5453 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5455 && eval 'test $(( 1 + 1 )) -eq 2 \
5456 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5459 $as_echo "$xsi_shell" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5463 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5465 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5467 && lt_shell_append=yes
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5469 $as_echo "$lt_shell_append" >&6; }
5472 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5482 # test EBCDIC or ASCII
5483 case `echo X|tr X '\101'` in
5484 A) # ASCII based system
5485 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5486 lt_SP2NL='tr \040 \012'
5487 lt_NL2SP='tr \015\012 \040\040'
5489 *) # EBCDIC based system
5490 lt_SP2NL='tr \100 \n'
5491 lt_NL2SP='tr \r\n \100\100'
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5504 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5505 if ${lt_cv_to_host_file_cmd+:} false; then :
5506 $as_echo_n "(cached) " >&6
5511 *-*-mingw* ) # actually msys
5512 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5515 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5517 * ) # otherwise, assume *nix
5518 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5524 *-*-mingw* ) # actually msys
5525 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5528 lt_cv_to_host_file_cmd=func_convert_file_noop
5530 * ) # otherwise, assume *nix
5531 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5535 * ) # unhandled hosts (and "normal" native builds)
5536 lt_cv_to_host_file_cmd=func_convert_file_noop
5542 to_host_file_cmd=$lt_cv_to_host_file_cmd
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5544 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5551 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5552 if ${lt_cv_to_tool_file_cmd+:} false; then :
5553 $as_echo_n "(cached) " >&6
5555 #assume ordinary cross tools, or native build.
5556 lt_cv_to_tool_file_cmd=func_convert_file_noop
5560 *-*-mingw* ) # actually msys
5561 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5569 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5571 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5578 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5579 if ${lt_cv_ld_reload_flag+:} false; then :
5580 $as_echo_n "(cached) " >&6
5582 lt_cv_ld_reload_flag='-r'
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5585 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5586 reload_flag=$lt_cv_ld_reload_flag
5587 case $reload_flag in
5589 *) reload_flag=" $reload_flag" ;;
5591 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5593 cygwin* | mingw* | pw32* | cegcc*)
5594 if test "$GCC" != yes; then
5599 if test "$GCC" = yes; then
5600 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5602 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5615 if test -n "$ac_tool_prefix"; then
5616 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_OBJDUMP+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$OBJDUMP"; then
5624 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 OBJDUMP=$ac_cv_prog_OBJDUMP
5644 if test -n "$OBJDUMP"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5646 $as_echo "$OBJDUMP" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5654 if test -z "$ac_cv_prog_OBJDUMP"; then
5655 ac_ct_OBJDUMP=$OBJDUMP
5656 # Extract the first word of "objdump", so it can be a program name with args.
5657 set dummy objdump; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 if test -n "$ac_ct_OBJDUMP"; then
5664 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 test -z "$as_dir" && as_dir=.
5671 for ac_exec_ext in '' $ac_executable_extensions; do
5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5684 if test -n "$ac_ct_OBJDUMP"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5686 $as_echo "$ac_ct_OBJDUMP" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5692 if test "x$ac_ct_OBJDUMP" = x; then
5695 case $cross_compiling:$ac_tool_warned in
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5699 ac_tool_warned=yes ;;
5701 OBJDUMP=$ac_ct_OBJDUMP
5704 OBJDUMP="$ac_cv_prog_OBJDUMP"
5707 test -z "$OBJDUMP" && OBJDUMP=objdump
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5718 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5719 if ${lt_cv_deplibs_check_method+:} false; then :
5720 $as_echo_n "(cached) " >&6
5722 lt_cv_file_magic_cmd='$MAGIC_CMD'
5723 lt_cv_file_magic_test_file=
5724 lt_cv_deplibs_check_method='unknown'
5725 # Need to set the preceding variable on all platforms that support
5726 # interlibrary dependencies.
5727 # 'none' -- dependencies not supported.
5728 # `unknown' -- same as none, but documents that we really don't know.
5729 # 'pass_all' -- all dependencies passed with no checks.
5730 # 'test_compile' -- check by making test program.
5731 # 'file_magic [[regex]]' -- check by looking for files in library path
5732 # which responds to the $file_magic_cmd with a given extended regex.
5733 # If you have `file' or equivalent on your system and you're not sure
5734 # whether `pass_all' will *always* work, you probably want this one.
5738 lt_cv_deplibs_check_method=pass_all
5742 lt_cv_deplibs_check_method=pass_all
5746 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5747 lt_cv_file_magic_cmd='/usr/bin/file -L'
5748 lt_cv_file_magic_test_file=/shlib/libc.so
5752 # func_win32_libid is a shell function defined in ltmain.sh
5753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5754 lt_cv_file_magic_cmd='func_win32_libid'
5758 # Base MSYS/MinGW do not provide the 'file' command needed by
5759 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5760 # unless we find 'file', for example because we are cross-compiling.
5761 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5762 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5763 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5764 lt_cv_file_magic_cmd='func_win32_libid'
5766 # Keep this pattern in sync with the one in func_win32_libid.
5767 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5768 lt_cv_file_magic_cmd='$OBJDUMP -f'
5773 # use the weaker test based on 'objdump'. See mingw*.
5774 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5775 lt_cv_file_magic_cmd='$OBJDUMP -f'
5778 darwin* | rhapsody*)
5779 lt_cv_deplibs_check_method=pass_all
5782 freebsd* | dragonfly*)
5783 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5786 # Not sure whether the presence of OpenBSD here was a mistake.
5787 # Let's accept both of them until this is cleared up.
5788 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5789 lt_cv_file_magic_cmd=/usr/bin/file
5790 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5794 lt_cv_deplibs_check_method=pass_all
5799 lt_cv_deplibs_check_method=pass_all
5803 lt_cv_deplibs_check_method=pass_all
5806 hpux10.20* | hpux11*)
5807 lt_cv_file_magic_cmd=/usr/bin/file
5810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5811 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5814 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]'
5815 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5819 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5825 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5829 irix5* | irix6* | nonstopux*)
5831 *-32|*"-32 ") libmagic=32-bit;;
5832 *-n32|*"-n32 ") libmagic=N32;;
5833 *-64|*"-64 ") libmagic=64-bit;;
5834 *) libmagic=never-match;;
5836 lt_cv_deplibs_check_method=pass_all
5839 # This must be glibc/ELF.
5840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5841 lt_cv_deplibs_check_method=pass_all
5845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5854 lt_cv_file_magic_cmd=/usr/bin/file
5855 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5859 lt_cv_deplibs_check_method=pass_all
5863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5870 osf3* | osf4* | osf5*)
5871 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method=pass_all
5882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5883 lt_cv_deplibs_check_method=pass_all
5887 case $host_vendor in
5889 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]'
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5893 lt_cv_deplibs_check_method=pass_all
5896 lt_cv_file_magic_cmd='/bin/file'
5897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5900 lt_cv_file_magic_cmd='/bin/file'
5901 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5902 lt_cv_file_magic_test_file=/lib/libc.so
5905 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_deplibs_check_method=pass_all
5914 lt_cv_deplibs_check_method=pass_all
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5920 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5924 if test "$build" = "$host"; then
5927 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5930 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5936 file_magic_cmd=$lt_cv_file_magic_cmd
5937 deplibs_check_method=$lt_cv_deplibs_check_method
5938 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5961 if test -n "$ac_tool_prefix"; then
5962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5963 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_prog_DLLTOOL+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 if test -n "$DLLTOOL"; then
5970 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 DLLTOOL=$ac_cv_prog_DLLTOOL
5990 if test -n "$DLLTOOL"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5992 $as_echo "$DLLTOOL" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
6000 if test -z "$ac_cv_prog_DLLTOOL"; then
6001 ac_ct_DLLTOOL=$DLLTOOL
6002 # Extract the first word of "dlltool", so it can be a program name with args.
6003 set dummy dlltool; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 if test -n "$ac_ct_DLLTOOL"; then
6010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 test -z "$as_dir" && as_dir=.
6017 for ac_exec_ext in '' $ac_executable_extensions; do
6018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6030 if test -n "$ac_ct_DLLTOOL"; then
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6032 $as_echo "$ac_ct_DLLTOOL" >&6; }
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6038 if test "x$ac_ct_DLLTOOL" = x; then
6041 case $cross_compiling:$ac_tool_warned in
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6045 ac_tool_warned=yes ;;
6047 DLLTOOL=$ac_ct_DLLTOOL
6050 DLLTOOL="$ac_cv_prog_DLLTOOL"
6053 test -z "$DLLTOOL" && DLLTOOL=dlltool
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6065 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6066 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6067 $as_echo_n "(cached) " >&6
6069 lt_cv_sharedlib_from_linklib_cmd='unknown'
6072 cygwin* | mingw* | pw32* | cegcc*)
6073 # two different shell functions defined in ltmain.sh
6074 # decide which to use based on capabilities of $DLLTOOL
6075 case `$DLLTOOL --help 2>&1` in
6076 *--identify-strict*)
6077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6085 # fallback: assume linklib IS sharedlib
6086 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6092 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6093 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6094 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6102 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if ${ac_cv_prog_AR+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$AR"; then
6113 ac_cv_prog_AR="$AR" # Let the user override the test.
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 if test -n "$AR"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6135 $as_echo "$AR" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6142 test -n "$AR" && break
6145 if test -z "$AR"; then
6149 # Extract the first word of "$ac_prog", so it can be a program name with args.
6150 set dummy $ac_prog; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6154 $as_echo_n "(cached) " >&6
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_ac_ct_AR="$ac_prog"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177 if test -n "$ac_ct_AR"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6179 $as_echo "$ac_ct_AR" >&6; }
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6186 test -n "$ac_ct_AR" && break
6189 if test "x$ac_ct_AR" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6196 ac_tool_warned=yes ;;
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6216 $as_echo_n "checking for archiver @FILE support... " >&6; }
6217 if ${lt_cv_ar_at_file+:} false; then :
6218 $as_echo_n "(cached) " >&6
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 echo conftest.$ac_objext > conftest.lst
6234 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6236 (eval $lt_ar_try) 2>&5
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }
6240 if test "$ac_status" -eq 0; then
6241 # Ensure the archiver fails upon bogus file names.
6242 rm -f conftest.$ac_objext libconftest.a
6243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6244 (eval $lt_ar_try) 2>&5
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }
6248 if test "$ac_status" -ne 0; then
6252 rm -f conftest.* libconftest.a
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6259 $as_echo "$lt_cv_ar_at_file" >&6; }
6261 if test "x$lt_cv_ar_at_file" = xno; then
6264 archiver_list_spec=$lt_cv_ar_at_file
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}strip; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_STRIP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 STRIP=$ac_cv_prog_STRIP
6302 if test -n "$STRIP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304 $as_echo "$STRIP" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_STRIP"; then
6314 # Extract the first word of "strip", so it can be a program name with args.
6315 set dummy strip; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331 ac_cv_prog_ac_ct_STRIP="strip"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342 if test -n "$ac_ct_STRIP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344 $as_echo "$ac_ct_STRIP" >&6; }
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_STRIP" = x; then
6353 case $cross_compiling:$ac_tool_warned in
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6362 STRIP="$ac_cv_prog_STRIP"
6365 test -z "$STRIP" && STRIP=:
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if ${ac_cv_prog_RANLIB+:} false; then :
6378 $as_echo_n "(cached) " >&6
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 RANLIB=$ac_cv_prog_RANLIB
6401 if test -n "$RANLIB"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403 $as_echo "$RANLIB" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6411 if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414 set dummy ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441 if test -n "$ac_ct_RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443 $as_echo "$ac_ct_RANLIB" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6449 if test "x$ac_ct_RANLIB" = x; then
6452 case $cross_compiling:$ac_tool_warned in
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6458 RANLIB=$ac_ct_RANLIB
6461 RANLIB="$ac_cv_prog_RANLIB"
6464 test -z "$RANLIB" && RANLIB=:
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6476 if test -n "$RANLIB"; then
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6490 lock_old_archive_extraction=yes ;;
6492 lock_old_archive_extraction=no ;;
6533 # If no C compiler was specified, use CC.
6536 # If no C compiler flags were specified, use CFLAGS.
6537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6539 # Allow CC to be a program name with arguments.
6543 # Check for command to grab the raw symbol name followed by C symbol from nm.
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6547 $as_echo_n "(cached) " >&6
6550 # These are sane defaults that work on at least a few old systems.
6551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6553 # Character class describing NM global symbol codes.
6554 symcode='[BCDEGRST]'
6556 # Regexp to match symbols that can be accessed directly from C.
6557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559 # Define system-specific variables.
6564 cygwin* | mingw* | pw32* | cegcc*)
6565 symcode='[ABCDGISTW]'
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6573 symcode='[BCDEGRST]'
6576 symcode='[BCDEGQRST]'
6587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6595 # If we're using GNU nm, then use its standard symbol codes.
6596 case `$NM -V 2>&1` in
6597 *GNU* | *'with BFD'*)
6598 symcode='[ABCDGIRSTW]' ;;
6601 # Transform an extracted symbol line into a proper C declaration.
6602 # Some systems (esp. on ia64) link data and code symbols differently,
6603 # so use this general approach.
6604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606 # Transform an extracted symbol line into symbol name and symbol address
6607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6608 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'"
6610 # Handle CRLF in mingw tool chain
6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618 # Try without a prefix underscore, then with it.
6619 for ac_symprfx in "" "_"; do
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6624 # Write the raw and C identifiers.
6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626 # Fake it for dumpbin and say T for any non-static function
6627 # and D for any global variable.
6628 # Also find C++ and __fastcall symbols from MSVC++,
6629 # which start with @ or ?.
6630 lt_cv_sys_global_symbol_pipe="$AWK '"\
6631 " {last_section=section; section=\$ 3};"\
6632 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6633 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6634 " \$ 0!~/External *\|/{next};"\
6635 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6636 " {if(hide[section]) next};"\
6637 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6638 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6639 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6640 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6641 " ' prfx=^$ac_symprfx"
6643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6647 # Check to see that the pipe works correctly.
6651 cat > conftest.$ac_ext <<_LT_EOF
6656 void nm_test_func(void);
6657 void nm_test_func(void){}
6661 int main(){nm_test_var='a';nm_test_func();return(0);}
6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6665 (eval $ac_compile) 2>&5
6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6668 test $ac_status = 0; }; then
6669 # Now try to grab the symbols.
6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; } && test -s "$nlist"; then
6676 # Try sorting and uniquifying the output.
6677 if sort "$nlist" | uniq > "$nlist"T; then
6678 mv -f "$nlist"T "$nlist"
6683 # Make sure that we snagged all the symbols we need.
6684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6686 cat <<_LT_EOF > conftest.$ac_ext
6687 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6688 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6689 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6690 relocations are performed -- see ld's documentation on pseudo-relocs. */
6691 # define LT_DLSYM_CONST
6692 #elif defined(__osf__)
6693 /* This system does not cope well with relocations in const data. */
6694 # define LT_DLSYM_CONST
6696 # define LT_DLSYM_CONST const
6704 # Now generate the symbol file.
6705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6707 cat <<_LT_EOF >> conftest.$ac_ext
6709 /* The mapping between symbol names and symbols. */
6710 LT_DLSYM_CONST struct {
6714 lt__PROGRAM__LTX_preloaded_symbols[] =
6716 { "@PROGRAM@", (void *) 0 },
6718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6719 cat <<\_LT_EOF >> conftest.$ac_ext
6723 /* This works around a problem in FreeBSD linker */
6724 #ifdef FREEBSD_WORKAROUND
6725 static const void *lt_preloaded_setup() {
6726 return lt__PROGRAM__LTX_preloaded_symbols;
6734 # Now try linking the two files.
6735 mv conftest.$ac_objext conftstm.$ac_objext
6736 lt_globsym_save_LIBS=$LIBS
6737 lt_globsym_save_CFLAGS=$CFLAGS
6738 LIBS="conftstm.$ac_objext"
6739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6741 (eval $ac_link) 2>&5
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6747 LIBS=$lt_globsym_save_LIBS
6748 CFLAGS=$lt_globsym_save_CFLAGS
6750 echo "cannot find nm_test_func in $nlist" >&5
6753 echo "cannot find nm_test_var in $nlist" >&5
6756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6759 echo "$progname: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 rm -rf conftest* conftst*
6764 # Do not use the global_symbol_pipe unless it works.
6765 if test "$pipe_works" = yes; then
6768 lt_cv_sys_global_symbol_pipe=
6774 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6775 lt_cv_sys_global_symbol_to_cdecl=
6777 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6779 $as_echo "failed" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6782 $as_echo "ok" >&6; }
6785 # Response file support.
6786 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6787 nm_file_list_spec='@'
6788 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6789 nm_file_list_spec='@'
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6819 $as_echo_n "checking for sysroot... " >&6; }
6821 # Check whether --with-sysroot was given.
6822 if test "${with_sysroot+set}" = set; then :
6823 withval=$with_sysroot;
6830 case ${with_sysroot} in #(
6832 if test "$GCC" = yes; then
6833 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6837 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6843 $as_echo "${with_sysroot}" >&6; }
6844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6849 $as_echo "${lt_sysroot:-no}" >&6; }
6855 # Check whether --enable-libtool-lock was given.
6856 if test "${enable_libtool_lock+set}" = set; then :
6857 enableval=$enable_libtool_lock;
6860 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6862 # Some flags need to be propagated to the compiler or linker for good
6866 # Find out which ABI we are using.
6867 echo 'int i;' > conftest.$ac_ext
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 case `/usr/bin/file conftest.$ac_objext` in
6885 # Find out which ABI we are using.
6886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 if test "$lt_cv_prog_gnu_ld" = yes; then
6893 case `/usr/bin/file conftest.$ac_objext` in
6895 LD="${LD-ld} -melf32bsmip"
6898 LD="${LD-ld} -melf32bmipn32"
6901 LD="${LD-ld} -melf64bmip"
6905 case `/usr/bin/file conftest.$ac_objext` in
6921 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6922 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6923 # Find out which ABI we are using.
6924 echo 'int i;' > conftest.$ac_ext
6925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6926 (eval $ac_compile) 2>&5
6928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6929 test $ac_status = 0; }; then
6930 case `/usr/bin/file conftest.o` in
6933 x86_64-*kfreebsd*-gnu)
6934 LD="${LD-ld} -m elf_i386_fbsd"
6937 LD="${LD-ld} -m elf_i386"
6939 ppc64-*linux*|powerpc64-*linux*)
6940 LD="${LD-ld} -m elf32ppclinux"
6943 LD="${LD-ld} -m elf_s390"
6946 LD="${LD-ld} -m elf32_sparc"
6952 x86_64-*kfreebsd*-gnu)
6953 LD="${LD-ld} -m elf_x86_64_fbsd"
6956 LD="${LD-ld} -m elf_x86_64"
6958 ppc*-*linux*|powerpc*-*linux*)
6959 LD="${LD-ld} -m elf64ppc"
6961 s390*-*linux*|s390*-*tpf*)
6962 LD="${LD-ld} -m elf64_s390"
6965 LD="${LD-ld} -m elf64_sparc"
6975 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6976 SAVE_CFLAGS="$CFLAGS"
6977 CFLAGS="$CFLAGS -belf"
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6979 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6980 if ${lt_cv_cc_needs_belf+:} false; then :
6981 $as_echo_n "(cached) " >&6
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
7000 if ac_fn_c_try_link "$LINENO"; then :
7001 lt_cv_cc_needs_belf=yes
7003 lt_cv_cc_needs_belf=no
7005 rm -f core conftest.err conftest.$ac_objext \
7006 conftest$ac_exeext conftest.$ac_ext
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7015 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7016 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7017 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7018 CFLAGS="$SAVE_CFLAGS"
7022 # Find out which ABI we are using.
7023 echo 'int i;' > conftest.$ac_ext
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7025 (eval $ac_compile) 2>&5
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; }; then
7029 case `/usr/bin/file conftest.o` in
7031 case $lt_cv_prog_gnu_ld in
7035 LD="${LD-ld} -m elf_x86_64"
7038 LD="${LD-ld} -m elf64_sparc"
7041 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7042 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7047 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7059 need_locks="$enable_libtool_lock"
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}mt; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7067 $as_echo_n "(cached) " >&6
7069 if test -n "$MANIFEST_TOOL"; then
7070 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7090 if test -n "$MANIFEST_TOOL"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7092 $as_echo "$MANIFEST_TOOL" >&6; }
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7100 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7101 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7102 # Extract the first word of "mt", so it can be a program name with args.
7103 set dummy mt; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 if test -n "$ac_ct_MANIFEST_TOOL"; then
7110 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7130 if test -n "$ac_ct_MANIFEST_TOOL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7132 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7138 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7141 case $cross_compiling:$ac_tool_warned in
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7145 ac_tool_warned=yes ;;
7147 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7150 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7153 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7155 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7156 if ${lt_cv_path_mainfest_tool+:} false; then :
7157 $as_echo_n "(cached) " >&6
7159 lt_cv_path_mainfest_tool=no
7160 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7161 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7162 cat conftest.err >&5
7163 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7164 lt_cv_path_mainfest_tool=yes
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7169 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7170 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7180 rhapsody* | darwin*)
7181 if test -n "$ac_tool_prefix"; then
7182 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7187 $as_echo_n "(cached) " >&6
7189 if test -n "$DSYMUTIL"; then
7190 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7210 if test -n "$DSYMUTIL"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7212 $as_echo "$DSYMUTIL" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7220 if test -z "$ac_cv_prog_DSYMUTIL"; then
7221 ac_ct_DSYMUTIL=$DSYMUTIL
7222 # Extract the first word of "dsymutil", so it can be a program name with args.
7223 set dummy dsymutil; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$ac_ct_DSYMUTIL"; then
7230 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7250 if test -n "$ac_ct_DSYMUTIL"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7252 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7258 if test "x$ac_ct_DSYMUTIL" = x; then
7261 case $cross_compiling:$ac_tool_warned in
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7267 DSYMUTIL=$ac_ct_DSYMUTIL
7270 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7273 if test -n "$ac_tool_prefix"; then
7274 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7275 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7277 $as_echo_n "checking for $ac_word... " >&6; }
7278 if ${ac_cv_prog_NMEDIT+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test -n "$NMEDIT"; then
7282 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 for ac_exec_ext in '' $ac_executable_extensions; do
7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7291 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 NMEDIT=$ac_cv_prog_NMEDIT
7302 if test -n "$NMEDIT"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7304 $as_echo "$NMEDIT" >&6; }
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7307 $as_echo "no" >&6; }
7312 if test -z "$ac_cv_prog_NMEDIT"; then
7313 ac_ct_NMEDIT=$NMEDIT
7314 # Extract the first word of "nmedit", so it can be a program name with args.
7315 set dummy nmedit; ac_word=$2
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7317 $as_echo_n "checking for $ac_word... " >&6; }
7318 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 if test -n "$ac_ct_NMEDIT"; then
7322 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 test -z "$as_dir" && as_dir=.
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7331 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7342 if test -n "$ac_ct_NMEDIT"; then
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7344 $as_echo "$ac_ct_NMEDIT" >&6; }
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7350 if test "x$ac_ct_NMEDIT" = x; then
7353 case $cross_compiling:$ac_tool_warned in
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7357 ac_tool_warned=yes ;;
7359 NMEDIT=$ac_ct_NMEDIT
7362 NMEDIT="$ac_cv_prog_NMEDIT"
7365 if test -n "$ac_tool_prefix"; then
7366 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_LIPO+:} false; then :
7371 $as_echo_n "(cached) " >&6
7373 if test -n "$LIPO"; then
7374 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 LIPO=$ac_cv_prog_LIPO
7394 if test -n "$LIPO"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7396 $as_echo "$LIPO" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7404 if test -z "$ac_cv_prog_LIPO"; then
7406 # Extract the first word of "lipo", so it can be a program name with args.
7407 set dummy lipo; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7411 $as_echo_n "(cached) " >&6
7413 if test -n "$ac_ct_LIPO"; then
7414 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_ac_ct_LIPO="lipo"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7434 if test -n "$ac_ct_LIPO"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7436 $as_echo "$ac_ct_LIPO" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7442 if test "x$ac_ct_LIPO" = x; then
7445 case $cross_compiling:$ac_tool_warned in
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449 ac_tool_warned=yes ;;
7454 LIPO="$ac_cv_prog_LIPO"
7457 if test -n "$ac_tool_prefix"; then
7458 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7459 set dummy ${ac_tool_prefix}otool; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_OTOOL+:} false; then :
7463 $as_echo_n "(cached) " >&6
7465 if test -n "$OTOOL"; then
7466 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 test -z "$as_dir" && as_dir=.
7473 for ac_exec_ext in '' $ac_executable_extensions; do
7474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 OTOOL=$ac_cv_prog_OTOOL
7486 if test -n "$OTOOL"; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7488 $as_echo "$OTOOL" >&6; }
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7496 if test -z "$ac_cv_prog_OTOOL"; then
7498 # Extract the first word of "otool", so it can be a program name with args.
7499 set dummy otool; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$ac_ct_OTOOL"; then
7506 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_ac_ct_OTOOL="otool"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7526 if test -n "$ac_ct_OTOOL"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7528 $as_echo "$ac_ct_OTOOL" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7534 if test "x$ac_ct_OTOOL" = x; then
7537 case $cross_compiling:$ac_tool_warned in
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7541 ac_tool_warned=yes ;;
7546 OTOOL="$ac_cv_prog_OTOOL"
7549 if test -n "$ac_tool_prefix"; then
7550 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7551 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_OTOOL64+:} false; then :
7555 $as_echo_n "(cached) " >&6
7557 if test -n "$OTOOL64"; then
7558 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 test -z "$as_dir" && as_dir=.
7565 for ac_exec_ext in '' $ac_executable_extensions; do
7566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 OTOOL64=$ac_cv_prog_OTOOL64
7578 if test -n "$OTOOL64"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7580 $as_echo "$OTOOL64" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7588 if test -z "$ac_cv_prog_OTOOL64"; then
7589 ac_ct_OTOOL64=$OTOOL64
7590 # Extract the first word of "otool64", so it can be a program name with args.
7591 set dummy otool64; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7595 $as_echo_n "(cached) " >&6
7597 if test -n "$ac_ct_OTOOL64"; then
7598 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_ac_ct_OTOOL64="otool64"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7618 if test -n "$ac_ct_OTOOL64"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7620 $as_echo "$ac_ct_OTOOL64" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7626 if test "x$ac_ct_OTOOL64" = x; then
7629 case $cross_compiling:$ac_tool_warned in
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7633 ac_tool_warned=yes ;;
7635 OTOOL64=$ac_ct_OTOOL64
7638 OTOOL64="$ac_cv_prog_OTOOL64"
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7668 $as_echo_n "checking for -single_module linker flag... " >&6; }
7669 if ${lt_cv_apple_cc_single_mod+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 lt_cv_apple_cc_single_mod=no
7673 if test -z "${LT_MULTI_MODULE}"; then
7674 # By default we will add the -single_module flag. You can override
7675 # by either setting the environment variable LT_MULTI_MODULE
7676 # non-empty at configure time, or by adding -multi_module to the
7678 rm -rf libconftest.dylib*
7679 echo "int foo(void){return 1;}" > conftest.c
7680 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7681 -dynamiclib -Wl,-single_module conftest.c" >&5
7682 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7683 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7685 # If there is a non-empty error log, and "single_module"
7686 # appears in it, assume the flag caused a linker warning
7687 if test -s conftest.err && $GREP single_module conftest.err; then
7688 cat conftest.err >&5
7689 # Otherwise, if the output was created with a 0 exit code from
7690 # the compiler, it worked.
7691 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7692 lt_cv_apple_cc_single_mod=yes
7694 cat conftest.err >&5
7696 rm -rf libconftest.dylib*
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7701 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7704 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 lt_cv_ld_exported_symbols_list=no
7709 save_LDFLAGS=$LDFLAGS
7710 echo "_main" > conftest.sym
7711 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_ld_exported_symbols_list=yes
7726 lt_cv_ld_exported_symbols_list=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LDFLAGS="$save_LDFLAGS"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7737 $as_echo_n "checking for -force_load linker flag... " >&6; }
7738 if ${lt_cv_ld_force_load+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 lt_cv_ld_force_load=no
7742 cat > conftest.c << _LT_EOF
7743 int forced_loaded() { return 2;}
7745 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7746 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7747 echo "$AR cru libconftest.a conftest.o" >&5
7748 $AR cru libconftest.a conftest.o 2>&5
7749 echo "$RANLIB libconftest.a" >&5
7750 $RANLIB libconftest.a 2>&5
7751 cat > conftest.c << _LT_EOF
7752 int main() { return 0;}
7754 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7755 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7757 if test -s conftest.err && $GREP force_load conftest.err; then
7758 cat conftest.err >&5
7759 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7760 lt_cv_ld_force_load=yes
7762 cat conftest.err >&5
7764 rm -f conftest.err libconftest.a conftest conftest.c
7765 rm -rf conftest.dSYM
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7769 $as_echo "$lt_cv_ld_force_load" >&6; }
7771 rhapsody* | darwin1.[012])
7772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7775 darwin*) # darwin 5.x on
7776 # if running on 10.5 or later, the deployment target defaults
7777 # to the OS version, if on x86, and 10.4, the deployment
7778 # target defaults to 10.4. Don't you love it?
7779 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7780 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7790 _lt_dar_single_mod='$single_module'
7792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7797 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7798 _lt_dsymutil='~$DSYMUTIL $lib || :'
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7812 # On Suns, sometimes $CPP names a directory.
7813 if test -n "$CPP" && test -d "$CPP"; then
7816 if test -z "$CPP"; then
7817 if ${ac_cv_prog_CPP+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 # Double quotes because CPP needs to be expanded
7821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7824 for ac_c_preproc_warn_flag in '' yes
7826 # Use a header file that comes with gcc, so configuring glibc
7827 # with a fresh cross-compiler works.
7828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829 # <limits.h> exists even on freestanding compilers.
7830 # On the NeXT, cc -E runs the code through the compiler's parser,
7831 # not just through cpp. "Syntax error" is here to catch this case.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 # include <limits.h>
7837 # include <assert.h>
7841 if ac_fn_c_try_cpp "$LINENO"; then :
7844 # Broken: fails on valid input.
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7849 # OK, works on sane cases. Now check whether nonexistent headers
7850 # can be detected and how.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <ac_nonexistent.h>
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856 # Broken: success on invalid input.
7859 # Passes both tests.
7863 rm -f conftest.err conftest.i conftest.$ac_ext
7866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7867 rm -f conftest.i conftest.err conftest.$ac_ext
7868 if $ac_preproc_ok; then :
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7881 $as_echo "$CPP" >&6; }
7883 for ac_c_preproc_warn_flag in '' yes
7885 # Use a header file that comes with gcc, so configuring glibc
7886 # with a fresh cross-compiler works.
7887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 # <limits.h> exists even on freestanding compilers.
7889 # On the NeXT, cc -E runs the code through the compiler's parser,
7890 # not just through cpp. "Syntax error" is here to catch this case.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7894 # include <limits.h>
7896 # include <assert.h>
7900 if ac_fn_c_try_cpp "$LINENO"; then :
7903 # Broken: fails on valid input.
7906 rm -f conftest.err conftest.i conftest.$ac_ext
7908 # OK, works on sane cases. Now check whether nonexistent headers
7909 # can be detected and how.
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <ac_nonexistent.h>
7914 if ac_fn_c_try_cpp "$LINENO"; then :
7915 # Broken: success on invalid input.
7918 # Passes both tests.
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7926 rm -f conftest.i conftest.err conftest.$ac_ext
7927 if $ac_preproc_ok; then :
7930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7932 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7933 See \`config.log' for more details" "$LINENO" 5; }
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7944 $as_echo_n "checking for ANSI C header files... " >&6; }
7945 if ${ac_cv_header_stdc+:} false; then :
7946 $as_echo_n "(cached) " >&6
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7963 if ac_fn_c_try_compile "$LINENO"; then :
7964 ac_cv_header_stdc=yes
7966 ac_cv_header_stdc=no
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 if test $ac_cv_header_stdc = yes; then
7971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7978 $EGREP "memchr" >/dev/null 2>&1; then :
7981 ac_cv_header_stdc=no
7987 if test $ac_cv_header_stdc = yes; then
7988 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7995 $EGREP "free" >/dev/null 2>&1; then :
7998 ac_cv_header_stdc=no
8004 if test $ac_cv_header_stdc = yes; then
8005 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8006 if test "$cross_compiling" = yes; then :
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8013 #if ((' ' & 0x0FF) == 0x020)
8014 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8015 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8017 # define ISLOWER(c) \
8018 (('a' <= (c) && (c) <= 'i') \
8019 || ('j' <= (c) && (c) <= 'r') \
8020 || ('s' <= (c) && (c) <= 'z'))
8021 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8024 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8029 for (i = 0; i < 256; i++)
8030 if (XOR (islower (i), ISLOWER (i))
8031 || toupper (i) != TOUPPER (i))
8036 if ac_fn_c_try_run "$LINENO"; then :
8039 ac_cv_header_stdc=no
8041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8042 conftest.$ac_objext conftest.beam conftest.$ac_ext
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8048 $as_echo "$ac_cv_header_stdc" >&6; }
8049 if test $ac_cv_header_stdc = yes; then
8051 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8055 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8057 inttypes.h stdint.h unistd.h
8059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8060 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8063 cat >>confdefs.h <<_ACEOF
8064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8072 for ac_header in dlfcn.h
8074 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8076 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8077 cat >>confdefs.h <<_ACEOF
8078 #define HAVE_DLFCN_H 1
8099 # Check whether --enable-shared was given.
8100 if test "${enable_shared+set}" = set; then :
8101 enableval=$enable_shared; p=${PACKAGE-default}
8103 yes) enable_shared=yes ;;
8104 no) enable_shared=no ;;
8107 # Look at the argument we got. We use all the common list separators.
8108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8109 for pkg in $enableval; do
8111 if test "X$pkg" = "X$p"; then
8130 # Check whether --enable-static was given.
8131 if test "${enable_static+set}" = set; then :
8132 enableval=$enable_static; p=${PACKAGE-default}
8134 yes) enable_static=yes ;;
8135 no) enable_static=no ;;
8138 # Look at the argument we got. We use all the common list separators.
8139 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8140 for pkg in $enableval; do
8142 if test "X$pkg" = "X$p"; then
8162 # Check whether --with-pic was given.
8163 if test "${with_pic+set}" = set; then :
8164 withval=$with_pic; lt_p=${PACKAGE-default}
8166 yes|no) pic_mode=$withval ;;
8169 # Look at the argument we got. We use all the common list separators.
8170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8171 for lt_pkg in $withval; do
8173 if test "X$lt_pkg" = "X$lt_p"; then
8185 test -z "$pic_mode" && pic_mode=default
8193 # Check whether --enable-fast-install was given.
8194 if test "${enable_fast_install+set}" = set; then :
8195 enableval=$enable_fast_install; p=${PACKAGE-default}
8197 yes) enable_fast_install=yes ;;
8198 no) enable_fast_install=no ;;
8200 enable_fast_install=no
8201 # Look at the argument we got. We use all the common list separators.
8202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203 for pkg in $enableval; do
8205 if test "X$pkg" = "X$p"; then
8206 enable_fast_install=yes
8213 enable_fast_install=yes
8226 # This can be used to rebuild libtool when needed
8227 LIBTOOL_DEPS="$ltmain"
8229 # Always use our own libtool.
8230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8261 test -z "$LN_S" && LN_S="ln -s"
8276 if test -n "${ZSH_VERSION+set}" ; then
8277 setopt NO_GLOB_SUBST
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8281 $as_echo_n "checking for objdir... " >&6; }
8282 if ${lt_cv_objdir+:} false; then :
8283 $as_echo_n "(cached) " >&6
8285 rm -f .libs 2>/dev/null
8286 mkdir .libs 2>/dev/null
8287 if test -d .libs; then
8290 # MS-DOS does not allow filenames that begin with a dot.
8293 rmdir .libs 2>/dev/null
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8296 $as_echo "$lt_cv_objdir" >&6; }
8297 objdir=$lt_cv_objdir
8303 cat >>confdefs.h <<_ACEOF
8304 #define LT_OBJDIR "$lt_cv_objdir/"
8312 # AIX sometimes has problems with the GCC collect2 program. For some
8313 # reason, if we set the COLLECT_NAMES environment variable, the problems
8314 # vanish in a puff of smoke.
8315 if test "X${COLLECT_NAMES+set}" != Xset; then
8317 export COLLECT_NAMES
8324 can_build_shared=yes
8326 # All known linkers require a `.a' archive for static linking (except MSVC,
8327 # which needs '.lib').
8330 with_gnu_ld="$lt_cv_prog_gnu_ld"
8333 old_CFLAGS="$CFLAGS"
8335 # Set sane defaults for various variables
8336 test -z "$CC" && CC=cc
8337 test -z "$LTCC" && LTCC=$CC
8338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8339 test -z "$LD" && LD=ld
8340 test -z "$ac_objext" && ac_objext=o
8342 for cc_temp in $compiler""; do
8344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8350 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8353 # Only perform the check for file, if the check method requires it
8354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8355 case $deplibs_check_method in
8357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8359 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8360 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8361 $as_echo_n "(cached) " >&6
8365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8368 lt_save_MAGIC_CMD="$MAGIC_CMD"
8369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8371 for ac_dir in $ac_dummy; do
8373 test -z "$ac_dir" && ac_dir=.
8374 if test -f $ac_dir/${ac_tool_prefix}file; then
8375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8376 if test -n "$file_magic_test_file"; then
8377 case $deplibs_check_method in
8379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8382 $EGREP "$file_magic_regex" > /dev/null; then
8387 *** Warning: the command libtool uses to detect shared libraries,
8388 *** $file_magic_cmd, produces output that libtool cannot recognize.
8389 *** The result is that libtool may fail to recognize shared libraries
8390 *** as such. This will affect the creation of libtool libraries that
8391 *** depend on shared libraries, but programs linked with such libtool
8392 *** libraries will work regardless of this problem. Nevertheless, you
8393 *** may want to report the problem to your system manager and/or to
8394 *** bug-libtool@gnu.org
8404 MAGIC_CMD="$lt_save_MAGIC_CMD"
8409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8410 if test -n "$MAGIC_CMD"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8412 $as_echo "$MAGIC_CMD" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8422 if test -z "$lt_cv_path_MAGIC_CMD"; then
8423 if test -n "$ac_tool_prefix"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8425 $as_echo_n "checking for file... " >&6; }
8426 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8427 $as_echo_n "(cached) " >&6
8431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8434 lt_save_MAGIC_CMD="$MAGIC_CMD"
8435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8437 for ac_dir in $ac_dummy; do
8439 test -z "$ac_dir" && ac_dir=.
8440 if test -f $ac_dir/file; then
8441 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8442 if test -n "$file_magic_test_file"; then
8443 case $deplibs_check_method in
8445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8448 $EGREP "$file_magic_regex" > /dev/null; then
8453 *** Warning: the command libtool uses to detect shared libraries,
8454 *** $file_magic_cmd, produces output that libtool cannot recognize.
8455 *** The result is that libtool may fail to recognize shared libraries
8456 *** as such. This will affect the creation of libtool libraries that
8457 *** depend on shared libraries, but programs linked with such libtool
8458 *** libraries will work regardless of this problem. Nevertheless, you
8459 *** may want to report the problem to your system manager and/or to
8460 *** bug-libtool@gnu.org
8470 MAGIC_CMD="$lt_save_MAGIC_CMD"
8475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476 if test -n "$MAGIC_CMD"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8478 $as_echo "$MAGIC_CMD" >&6; }
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8494 # Use C for the default configuration in the libtool script
8498 ac_cpp='$CPP $CPPFLAGS'
8499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504 # Source file extension for C test sources.
8507 # Object file extension for compiled C test sources.
8511 # Code to be used in simple compile tests
8512 lt_simple_compile_test_code="int some_variable = 0;"
8514 # Code to be used in simple link tests
8515 lt_simple_link_test_code='int main(){return(0);}'
8523 # If no C compiler was specified, use CC.
8526 # If no C compiler flags were specified, use CFLAGS.
8527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8529 # Allow CC to be a program name with arguments.
8532 # Save the default compiler, since it gets overwritten when the other
8533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8534 compiler_DEFAULT=$CC
8536 # save warnings/boilerplate of simple test code
8537 ac_outfile=conftest.$ac_objext
8538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8540 _lt_compiler_boilerplate=`cat conftest.err`
8543 ac_outfile=conftest.$ac_objext
8544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8546 _lt_linker_boilerplate=`cat conftest.err`
8551 ## There is no encapsulation within the following macros, do not change
8552 ## the running order or otherwise move them around unless you know exactly
8553 ## what you are doing...
8554 if test -n "$compiler"; then
8556 lt_prog_compiler_no_builtin_flag=
8558 if test "$GCC" = yes; then
8559 case $cc_basename in
8561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8568 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8569 $as_echo_n "(cached) " >&6
8571 lt_cv_prog_compiler_rtti_exceptions=no
8572 ac_outfile=conftest.$ac_objext
8573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8574 lt_compiler_flag="-fno-rtti -fno-exceptions"
8575 # Insert the option either (1) after the last *FLAGS variable, or
8576 # (2) before a word containing "conftest.", or (3) at the end.
8577 # Note that $ac_compile itself does not contain backslashes and begins
8578 # with a dollar sign (not a hyphen), so the echo should work correctly.
8579 # The option is referenced via a variable to avoid confusing sed.
8580 lt_compile=`echo "$ac_compile" | $SED \
8581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8583 -e 's:$: $lt_compiler_flag:'`
8584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8585 (eval "$lt_compile" 2>conftest.err)
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 if (exit $ac_status) && test -s "$ac_outfile"; then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings other than the usual output.
8592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8595 lt_cv_prog_compiler_rtti_exceptions=yes
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8617 lt_prog_compiler_wl=
8618 lt_prog_compiler_pic=
8619 lt_prog_compiler_static=
8622 if test "$GCC" = yes; then
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_static='-static'
8628 # All AIX code is PIC.
8629 if test "$host_cpu" = ia64; then
8630 # AIX 5 now supports IA64 processor
8631 lt_prog_compiler_static='-Bstatic'
8638 # see comment about AmigaOS4 .so support
8639 lt_prog_compiler_pic='-fPIC'
8642 # FIXME: we need at least 68020 code to build shared libraries, but
8643 # adding the `-m68020' flag to GCC prevents building anything better,
8645 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8651 # PIC is the default for these OSes.
8654 mingw* | cygwin* | pw32* | os2* | cegcc*)
8655 # This hack is so that the source file can tell whether it is being
8656 # built for inclusion in a dll (and should export symbols for example).
8657 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8658 # (--disable-auto-import) libraries
8659 lt_prog_compiler_pic='-DDLL_EXPORT'
8662 darwin* | rhapsody*)
8663 # PIC is the default on this platform
8664 # Common symbols not allowed in MH_DYLIB files
8665 lt_prog_compiler_pic='-fno-common'
8669 # PIC is the default for Haiku.
8670 # The "-static" flag exists, but is broken.
8671 lt_prog_compiler_static=
8675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8677 # sets the default TLS model and affects inlining.
8683 lt_prog_compiler_pic='-fPIC'
8689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8690 # Instead, we relocate shared libraries at runtime.
8694 # Just because we use GCC doesn't mean we suddenly get shared libraries
8695 # on systems that don't support them.
8696 lt_prog_compiler_can_build_shared=no
8701 # QNX uses GNU C++, but need to define -shared option too, otherwise
8703 lt_prog_compiler_pic='-fPIC -shared'
8707 if test -d /usr/nec; then
8708 lt_prog_compiler_pic=-Kconform_pic
8713 lt_prog_compiler_pic='-fPIC'
8717 case $cc_basename in
8718 nvcc*) # Cuda Compiler Driver 2.2
8719 lt_prog_compiler_wl='-Xlinker '
8720 if test -n "$lt_prog_compiler_pic"; then
8721 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8726 # PORTME Check for flag to pass linker flags through the system compiler.
8729 lt_prog_compiler_wl='-Wl,'
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 now supports IA64 processor
8732 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8738 mingw* | cygwin* | pw32* | os2* | cegcc*)
8739 # This hack is so that the source file can tell whether it is being
8740 # built for inclusion in a dll (and should export symbols for example).
8741 lt_prog_compiler_pic='-DDLL_EXPORT'
8744 hpux9* | hpux10* | hpux11*)
8745 lt_prog_compiler_wl='-Wl,'
8746 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8753 lt_prog_compiler_pic='+Z'
8756 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8757 lt_prog_compiler_static='${wl}-a ${wl}archive'
8760 irix5* | irix6* | nonstopux*)
8761 lt_prog_compiler_wl='-Wl,'
8762 # PIC (with -KPIC) is the default.
8763 lt_prog_compiler_static='-non_shared'
8766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8767 case $cc_basename in
8768 # old Intel for x86_64 which still supported -KPIC.
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-KPIC'
8772 lt_prog_compiler_static='-static'
8774 # icc used to be incompatible with GCC.
8775 # ICC 10 doesn't accept -KPIC any more.
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-fPIC'
8779 lt_prog_compiler_static='-static'
8781 # Lahey Fortran 8.1.
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='--shared'
8785 lt_prog_compiler_static='--static'
8788 # NAG Fortran compiler
8789 lt_prog_compiler_wl='-Wl,-Wl,,'
8790 lt_prog_compiler_pic='-PIC'
8791 lt_prog_compiler_static='-Bstatic'
8793 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8794 # Portland Group compilers (*not* the Pentium gcc compiler,
8795 # which looks to be a dead project)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='-fpic'
8798 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_wl='-Wl,'
8802 # All Alpha code is PIC.
8803 lt_prog_compiler_static='-non_shared'
8805 xl* | bgxl* | bgf* | mpixl*)
8806 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-qpic'
8809 lt_prog_compiler_static='-qstaticlink'
8812 case `$CC -V 2>&1 | sed 5q` in
8813 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8814 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-Bstatic'
8817 lt_prog_compiler_wl=''
8819 *Sun\ F* | *Sun*Fortran*)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_wl='-Qoption ld '
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl='-Wl,'
8830 *Intel*\ [CF]*Compiler*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fPIC'
8833 lt_prog_compiler_static='-static'
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-fpic'
8838 lt_prog_compiler_static='-Bstatic'
8846 lt_prog_compiler_pic='-KPIC'
8847 lt_prog_compiler_static='-Bstatic'
8851 # QNX uses GNU C++, but need to define -shared option too, otherwise
8853 lt_prog_compiler_pic='-fPIC -shared'
8856 osf3* | osf4* | osf5*)
8857 lt_prog_compiler_wl='-Wl,'
8858 # All OSF/1 code is PIC.
8859 lt_prog_compiler_static='-non_shared'
8863 lt_prog_compiler_static='-non_shared'
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
8869 case $cc_basename in
8870 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8871 lt_prog_compiler_wl='-Qoption ld ';;
8873 lt_prog_compiler_wl='-Wl,';;
8878 lt_prog_compiler_wl='-Qoption ld '
8879 lt_prog_compiler_pic='-PIC'
8880 lt_prog_compiler_static='-Bstatic'
8883 sysv4 | sysv4.2uw2* | sysv4.3*)
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8890 if test -d /usr/nec ;then
8891 lt_prog_compiler_pic='-Kconform_pic'
8892 lt_prog_compiler_static='-Bstatic'
8896 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_can_build_shared=no
8908 lt_prog_compiler_pic='-pic'
8909 lt_prog_compiler_static='-Bstatic'
8913 lt_prog_compiler_can_build_shared=no
8919 # For platforms which do not support PIC, -DPIC is meaningless:
8921 lt_prog_compiler_pic=
8924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8929 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8930 if ${lt_cv_prog_compiler_pic+:} false; then :
8931 $as_echo_n "(cached) " >&6
8933 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8936 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8937 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8940 # Check to make sure the PIC flag actually works.
8942 if test -n "$lt_prog_compiler_pic"; then
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8944 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8945 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8946 $as_echo_n "(cached) " >&6
8948 lt_cv_prog_compiler_pic_works=no
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8951 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8952 # Insert the option either (1) after the last *FLAGS variable, or
8953 # (2) before a word containing "conftest.", or (3) at the end.
8954 # Note that $ac_compile itself does not contain backslashes and begins
8955 # with a dollar sign (not a hyphen), so the echo should work correctly.
8956 # The option is referenced via a variable to avoid confusing sed.
8957 lt_compile=`echo "$ac_compile" | $SED \
8958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8960 -e 's:$: $lt_compiler_flag:'`
8961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8962 (eval "$lt_compile" 2>conftest.err)
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 if (exit $ac_status) && test -s "$ac_outfile"; then
8967 # The compiler can only warn and ignore the option if not recognized
8968 # So say no if there are warnings other than the usual output.
8969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8972 lt_cv_prog_compiler_pic_works=yes
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8979 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8981 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8982 case $lt_prog_compiler_pic in
8984 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8987 lt_prog_compiler_pic=
8988 lt_prog_compiler_can_build_shared=no
9004 # Check to make sure the static flag actually works.
9006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9008 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9009 if ${lt_cv_prog_compiler_static_works+:} false; then :
9010 $as_echo_n "(cached) " >&6
9012 lt_cv_prog_compiler_static_works=no
9013 save_LDFLAGS="$LDFLAGS"
9014 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9015 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9016 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9017 # The linker can only warn and ignore the option if not recognized
9018 # So say no if there are warnings
9019 if test -s conftest.err; then
9020 # Append any errors to the config.log.
9021 cat conftest.err 1>&5
9022 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9024 if diff conftest.exp conftest.er2 >/dev/null; then
9025 lt_cv_prog_compiler_static_works=yes
9028 lt_cv_prog_compiler_static_works=yes
9032 LDFLAGS="$save_LDFLAGS"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9036 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9038 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9041 lt_prog_compiler_static=
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9051 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9052 if ${lt_cv_prog_compiler_c_o+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 lt_cv_prog_compiler_c_o=no
9056 $RM -r conftest 2>/dev/null
9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062 lt_compiler_flag="-o out/conftest2.$ac_objext"
9063 # Insert the option either (1) after the last *FLAGS variable, or
9064 # (2) before a word containing "conftest.", or (3) at the end.
9065 # Note that $ac_compile itself does not contain backslashes and begins
9066 # with a dollar sign (not a hyphen), so the echo should work correctly.
9067 lt_compile=`echo "$ac_compile" | $SED \
9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070 -e 's:$: $lt_compiler_flag:'`
9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072 (eval "$lt_compile" 2>out/conftest.err)
9074 cat out/conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9078 # The compiler can only warn and ignore the option if not recognized
9079 # So say no if there are warnings
9080 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9081 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9082 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9083 lt_cv_prog_compiler_c_o=yes
9088 # SGI C++ compiler will create directory out/ii_files/ for
9089 # template instantiation
9090 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9091 $RM out/* && rmdir out
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9098 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9107 if ${lt_cv_prog_compiler_c_o+:} false; then :
9108 $as_echo_n "(cached) " >&6
9110 lt_cv_prog_compiler_c_o=no
9111 $RM -r conftest 2>/dev/null
9115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9117 lt_compiler_flag="-o out/conftest2.$ac_objext"
9118 # Insert the option either (1) after the last *FLAGS variable, or
9119 # (2) before a word containing "conftest.", or (3) at the end.
9120 # Note that $ac_compile itself does not contain backslashes and begins
9121 # with a dollar sign (not a hyphen), so the echo should work correctly.
9122 lt_compile=`echo "$ac_compile" | $SED \
9123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9125 -e 's:$: $lt_compiler_flag:'`
9126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9127 (eval "$lt_compile" 2>out/conftest.err)
9129 cat out/conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9133 # The compiler can only warn and ignore the option if not recognized
9134 # So say no if there are warnings
9135 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler_c_o=yes
9143 # SGI C++ compiler will create directory out/ii_files/ for
9144 # template instantiation
9145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9146 $RM out/* && rmdir out
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9158 hard_links="nottested"
9159 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9160 # do not overwrite the value of need_locks provided by the user
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9162 $as_echo_n "checking if we can lock with hard links... " >&6; }
9165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9167 ln conftest.a conftest.b 2>&5 || hard_links=no
9168 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9170 $as_echo "$hard_links" >&6; }
9171 if test "$hard_links" = no; then
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9173 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9186 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9189 allow_undefined_flag=
9190 always_export_symbols=no
9192 archive_expsym_cmds=
9193 compiler_needs_object=no
9194 enable_shared_with_static_runtimes=no
9195 export_dynamic_flag_spec=
9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9197 hardcode_automatic=no
9199 hardcode_direct_absolute=no
9200 hardcode_libdir_flag_spec=
9201 hardcode_libdir_separator=
9203 hardcode_shlibpath_var=unsupported
9205 link_all_deplibs=unknown
9208 old_archive_from_new_cmds=
9209 old_archive_from_expsyms_cmds=
9210 thread_safe_flag_spec=
9211 whole_archive_flag_spec=
9212 # include_expsyms should be a list of space-separated symbols to be *always*
9213 # included in the symbol list
9215 # exclude_expsyms can be an extended regexp of symbols to exclude
9216 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9217 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9218 # as well as any symbol that contains `d'.
9219 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9220 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9221 # platforms (ab)use it in PIC code, but their linkers get confused if
9222 # the symbol is explicitly referenced. Since portable code cannot
9223 # rely on this symbol name, it's probably fine to never include it in
9224 # preloaded symbol tables.
9225 # Exclude shared library initialization/finalization symbols.
9226 extract_expsyms_cmds=
9229 cygwin* | mingw* | pw32* | cegcc*)
9230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9231 # When not using gcc, we currently assume that we are using
9232 # Microsoft Visual C++.
9233 if test "$GCC" != yes; then
9238 # we just hope/assume this is gcc and not c89 (= MSVC++)
9248 # On some targets, GNU ld is compatible enough with the native linker
9249 # that we're better off using the native interface for both.
9250 lt_use_gnu_ld_interface=no
9251 if test "$with_gnu_ld" = yes; then
9254 # The AIX port of GNU ld has always aspired to compatibility
9255 # with the native linker. However, as the warning in the GNU ld
9256 # block says, versions before 2.19.5* couldn't really create working
9257 # shared libraries, regardless of the interface used.
9258 case `$LD -v 2>&1` in
9259 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9260 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9261 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9263 lt_use_gnu_ld_interface=yes
9268 lt_use_gnu_ld_interface=yes
9273 if test "$lt_use_gnu_ld_interface" = yes; then
9274 # If archive_cmds runs LD, not CC, wlarc should be empty
9277 # Set some defaults for GNU ld with shared library support. These
9278 # are reset later if shared libraries are not supported. Putting them
9279 # here allows them to be overridden if necessary.
9280 runpath_var=LD_RUN_PATH
9281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282 export_dynamic_flag_spec='${wl}--export-dynamic'
9283 # ancient GNU ld didn't support --whole-archive et. al.
9284 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9285 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9287 whole_archive_flag_spec=
9289 supports_anon_versioning=no
9290 case `$LD -v 2>&1` in
9291 *GNU\ gold*) supports_anon_versioning=yes ;;
9292 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9295 *\ 2.11.*) ;; # other 2.11 versions
9296 *) supports_anon_versioning=yes ;;
9299 # See if GNU ld supports shared libraries.
9302 # On AIX/PPC, the GNU linker is very broken
9303 if test "$host_cpu" != ia64; then
9307 *** Warning: the GNU linker, at least up to release 2.19, is reported
9308 *** to be unable to reliably create shared libraries on AIX.
9309 *** Therefore, libtool is disabling shared libraries support. If you
9310 *** really care for shared libraries, you may want to install binutils
9311 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9312 *** You will then need to restart the configuration process.
9321 # see comment about AmigaOS4 .so support
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 archive_expsym_cmds=''
9326 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)'
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9335 allow_undefined_flag=unsupported
9336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9337 # support --undefined. This deserves some investigation. FIXME
9338 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9344 cygwin* | mingw* | pw32* | cegcc*)
9345 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9346 # as there is no search path for DLLs.
9347 hardcode_libdir_flag_spec='-L$libdir'
9348 export_dynamic_flag_spec='${wl}--export-all-symbols'
9349 allow_undefined_flag=unsupported
9350 always_export_symbols=no
9351 enable_shared_with_static_runtimes=yes
9352 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'
9353 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9355 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9357 # If the export-symbols file already is a .def file (1st line
9358 # is EXPORTS), use it as is; otherwise, prepend...
9359 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9360 cp $export_symbols $output_objdir/$soname.def;
9362 echo EXPORTS > $output_objdir/$soname.def;
9363 cat $export_symbols >> $output_objdir/$soname.def;
9365 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9373 link_all_deplibs=yes
9378 hardcode_shlibpath_var=no
9379 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9380 export_dynamic_flag_spec='${wl}-E'
9381 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9382 # Instead, shared libraries are loaded at an image base (0x10000000 by
9383 # default) and relocated if they conflict, which is a slow very memory
9384 # consuming and fragmenting process. To avoid this, we pick a random,
9385 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9386 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9388 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'
9391 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9393 if test "$host_os" = linux-dietlibc; then
9394 case $cc_basename in
9395 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9398 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9399 && test "$tmp_diet" = no
9401 tmp_addflag=' $pic_flag'
9402 tmp_sharedflag='-shared'
9403 case $cc_basename,$host_cpu in
9404 pgcc*) # Portland Group C compiler
9405 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'
9406 tmp_addflag=' $pic_flag'
9408 pgf77* | pgf90* | pgf95* | pgfortran*)
9409 # Portland Group f77 and f90 compilers
9410 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'
9411 tmp_addflag=' $pic_flag -Mnomain' ;;
9412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9413 tmp_addflag=' -i_dynamic' ;;
9414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9415 tmp_addflag=' -i_dynamic -nofor_main' ;;
9416 ifc* | ifort*) # Intel Fortran compiler
9417 tmp_addflag=' -nofor_main' ;;
9418 lf95*) # Lahey Fortran 8.1
9419 whole_archive_flag_spec=
9420 tmp_sharedflag='--shared' ;;
9421 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9422 tmp_sharedflag='-qmkshrobj'
9424 nvcc*) # Cuda Compiler Driver 2.2
9425 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'
9426 compiler_needs_object=yes
9429 case `$CC -V 2>&1 | sed 5q` in
9430 *Sun\ C*) # Sun C 5.9
9431 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'
9432 compiler_needs_object=yes
9433 tmp_sharedflag='-G' ;;
9434 *Sun\ F*) # Sun Fortran 8.3
9435 tmp_sharedflag='-G' ;;
9437 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 if test "x$supports_anon_versioning" = xyes; then
9440 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9441 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9442 echo "local: *; };" >> $output_objdir/$libname.ver~
9443 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9446 case $cc_basename in
9447 xlf* | bgf* | bgxlf* | mpixlf*)
9448 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9449 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9452 if test "x$supports_anon_versioning" = xyes; then
9453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455 echo "local: *; };" >> $output_objdir/$libname.ver~
9456 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9470 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9476 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9481 *** create shared libraries on Solaris systems. Therefore, libtool
9482 *** is disabling shared libraries support. We urge you to upgrade GNU
9483 *** binutils to release 2.9.1 or newer. Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9497 case `$LD -v 2>&1` in
9498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9503 *** reliably create shared libraries on SCO systems. Therefore, libtool
9504 *** is disabling shared libraries support. We urge you to upgrade GNU
9505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9506 *** your PATH or compiler configuration so that the native linker is
9507 *** used, and then restart.
9512 # For security reasons, it is highly recommended that you always
9513 # use absolute paths for naming shared libraries, and exclude the
9514 # DT_RUNPATH tag from executables and libraries. But doing so
9515 # requires that you compile everything twice, which is a pain.
9516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_shlibpath_var=no
9535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 if test "$ld_shlibs" = no; then
9546 hardcode_libdir_flag_spec=
9547 export_dynamic_flag_spec=
9548 whole_archive_flag_spec=
9551 # PORTME fill in a description of your system's linker (not GNU ld)
9554 allow_undefined_flag=unsupported
9555 always_export_symbols=yes
9556 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'
9557 # Note: this linker hardcodes the directories in LIBPATH if there
9558 # are no directories specified by -L.
9559 hardcode_minus_L=yes
9560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9561 # Neither direct hardcoding nor static linking is supported with a
9563 hardcode_direct=unsupported
9568 if test "$host_cpu" = ia64; then
9569 # On IA64, the linker does run time linking by default, so we don't
9570 # have to do anything special.
9571 aix_use_runtimelinking=no
9572 exp_sym_flag='-Bexport'
9575 # If we're using GNU nm, then we don't want the "-C" option.
9576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9577 # Also, AIX nm treats weak defined symbols like other global
9578 # defined symbols, whereas GNU nm marks them as "W".
9579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9580 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'
9582 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'
9584 aix_use_runtimelinking=no
9586 # Test if we are trying to use run time linking or normal
9587 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9588 # need to do runtime linking.
9589 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9590 for ld_flag in $LDFLAGS; do
9591 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9592 aix_use_runtimelinking=yes
9599 exp_sym_flag='-bexport'
9600 no_entry_flag='-bnoentry'
9603 # When large executables or shared objects are built, AIX ld can
9604 # have problems creating the table of contents. If linking a library
9605 # or program results in "error TOC overflow" add -mminimal-toc to
9606 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9611 hardcode_direct_absolute=yes
9612 hardcode_libdir_separator=':'
9613 link_all_deplibs=yes
9614 file_list_spec='${wl}-f,'
9616 if test "$GCC" = yes; then
9617 case $host_os in aix4.[012]|aix4.[012].*)
9618 # We only want to do this on AIX 4.2 and lower, the check
9619 # below for broken collect2 doesn't work under 4.3+
9620 collect2name=`${CC} -print-prog-name=collect2`
9621 if test -f "$collect2name" &&
9622 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9624 # We have reworked collect2
9627 # We have old collect2
9628 hardcode_direct=unsupported
9629 # It fails to find uninstalled libraries when the uninstalled
9630 # path is not listed in the libpath. Setting hardcode_minus_L
9631 # to unsupported forces relinking
9632 hardcode_minus_L=yes
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_libdir_separator=
9638 shared_flag='-shared'
9639 if test "$aix_use_runtimelinking" = yes; then
9640 shared_flag="$shared_flag "'${wl}-G'
9644 if test "$host_cpu" = ia64; then
9645 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9646 # chokes on -Wl,-G. The following line is correct:
9649 if test "$aix_use_runtimelinking" = yes; then
9650 shared_flag='${wl}-G'
9652 shared_flag='${wl}-bM:SRE'
9657 export_dynamic_flag_spec='${wl}-bexpall'
9658 # It seems that -bexpall does not export symbols beginning with
9659 # underscore (_), so it is better to generate a list of symbols to export.
9660 always_export_symbols=yes
9661 if test "$aix_use_runtimelinking" = yes; then
9662 # Warning - without using the other runtime loading flags (-brtl),
9663 # -berok will link without error, but may produce a broken library.
9664 allow_undefined_flag='-berok'
9665 # Determine the default libpath from the value encoded in an
9667 if test "${lt_cv_aix_libpath+set}" = set; then
9668 aix_libpath=$lt_cv_aix_libpath
9670 if ${lt_cv_aix_libpath_+:} false; then :
9671 $as_echo_n "(cached) " >&6
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9684 if ac_fn_c_try_link "$LINENO"; then :
9686 lt_aix_libpath_sed='
9687 /Import File Strings/,/^$/ {
9689 s/^0 *\([^ ]*\) *$/\1/
9693 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 # Check for a 64-bit object if we didn't find anything.
9695 if test -z "$lt_cv_aix_libpath_"; then
9696 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9699 rm -f core conftest.err conftest.$ac_objext \
9700 conftest$ac_exeext conftest.$ac_ext
9701 if test -z "$lt_cv_aix_libpath_"; then
9702 lt_cv_aix_libpath_="/usr/lib:/lib"
9707 aix_libpath=$lt_cv_aix_libpath_
9710 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9711 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"
9713 if test "$host_cpu" = ia64; then
9714 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9715 allow_undefined_flag="-z nodefs"
9716 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"
9718 # Determine the default libpath from the value encoded in an
9720 if test "${lt_cv_aix_libpath+set}" = set; then
9721 aix_libpath=$lt_cv_aix_libpath
9723 if ${lt_cv_aix_libpath_+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9737 if ac_fn_c_try_link "$LINENO"; then :
9739 lt_aix_libpath_sed='
9740 /Import File Strings/,/^$/ {
9742 s/^0 *\([^ ]*\) *$/\1/
9746 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747 # Check for a 64-bit object if we didn't find anything.
9748 if test -z "$lt_cv_aix_libpath_"; then
9749 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9752 rm -f core conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754 if test -z "$lt_cv_aix_libpath_"; then
9755 lt_cv_aix_libpath_="/usr/lib:/lib"
9760 aix_libpath=$lt_cv_aix_libpath_
9763 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9764 # Warning - without using the other run time loading flags,
9765 # -berok will link without error, but may produce a broken library.
9766 no_undefined_flag=' ${wl}-bernotok'
9767 allow_undefined_flag=' ${wl}-berok'
9768 if test "$with_gnu_ld" = yes; then
9769 # We only use this code for GNU lds that support --whole-archive.
9770 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9772 # Exported symbols can be pulled into shared objects from archives
9773 whole_archive_flag_spec='$convenience'
9775 archive_cmds_need_lc=yes
9776 # This is similar to how AIX traditionally builds its shared libraries.
9777 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'
9785 # see comment about AmigaOS4 .so support
9786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9787 archive_expsym_cmds=''
9790 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)'
9791 hardcode_libdir_flag_spec='-L$libdir'
9792 hardcode_minus_L=yes
9798 export_dynamic_flag_spec=-rdynamic
9801 cygwin* | mingw* | pw32* | cegcc*)
9802 # When not using gcc, we currently assume that we are using
9803 # Microsoft Visual C++.
9804 # hardcode_libdir_flag_spec is actually meaningless, as there is
9805 # no search path for DLLs.
9806 case $cc_basename in
9809 hardcode_libdir_flag_spec=' '
9810 allow_undefined_flag=unsupported
9811 always_export_symbols=yes
9813 # Tell ltmain to make .lib files, not .a files.
9815 # Tell ltmain to make .dll files, not .so files.
9817 # FIXME: Setting linknames here is a bad hack.
9818 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9819 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9820 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9822 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9824 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9826 # The linker will not automatically build a static lib if we build a DLL.
9827 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9828 enable_shared_with_static_runtimes=yes
9829 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9830 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9832 old_postinstall_cmds='chmod 644 $oldlib'
9833 postlink_cmds='lt_outputfile="@OUTPUT@"~
9834 lt_tool_outputfile="@TOOL_OUTPUT@"~
9835 case $lt_outputfile in
9838 lt_outputfile="$lt_outputfile.exe"
9839 lt_tool_outputfile="$lt_tool_outputfile.exe"
9842 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9843 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9844 $RM "$lt_outputfile.manifest";
9848 # Assume MSVC wrapper
9849 hardcode_libdir_flag_spec=' '
9850 allow_undefined_flag=unsupported
9851 # Tell ltmain to make .lib files, not .a files.
9853 # Tell ltmain to make .dll files, not .so files.
9855 # FIXME: Setting linknames here is a bad hack.
9856 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9857 # The linker will automatically build a .lib file if we build a DLL.
9858 old_archive_from_new_cmds='true'
9859 # FIXME: Should let the user specify the lib program.
9860 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9861 enable_shared_with_static_runtimes=yes
9866 darwin* | rhapsody*)
9869 archive_cmds_need_lc=no
9871 hardcode_automatic=yes
9872 hardcode_shlibpath_var=unsupported
9873 if test "$lt_cv_ld_force_load" = "yes"; then
9874 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\"`'
9877 whole_archive_flag_spec=''
9879 link_all_deplibs=yes
9880 allow_undefined_flag="$_lt_dar_allow_undefined"
9881 case $cc_basename in
9882 ifort*) _lt_dar_can_shared=yes ;;
9883 *) _lt_dar_can_shared=$GCC ;;
9885 if test "$_lt_dar_can_shared" = "yes"; then
9886 output_verbose_link_cmd=func_echo_all
9887 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9888 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9889 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}"
9890 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}"
9899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_libdir_flag_spec='-L$libdir'
9901 hardcode_shlibpath_var=no
9904 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9905 # support. Future versions do this automatically, but an explicit c++rt0.o
9906 # does not break anything, and helps significantly (at the cost of a little
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9910 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_shlibpath_var=no
9915 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9917 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_minus_L=yes
9920 hardcode_shlibpath_var=no
9923 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9924 freebsd* | dragonfly*)
9925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9926 hardcode_libdir_flag_spec='-R$libdir'
9928 hardcode_shlibpath_var=no
9932 if test "$GCC" = yes; then
9933 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'
9935 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'
9937 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9938 hardcode_libdir_separator=:
9941 # hardcode_minus_L: Not really in the search PATH,
9942 # but as the default location of the library.
9943 hardcode_minus_L=yes
9944 export_dynamic_flag_spec='${wl}-E'
9948 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9949 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9953 if test "$with_gnu_ld" = no; then
9954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9955 hardcode_libdir_separator=:
9957 hardcode_direct_absolute=yes
9958 export_dynamic_flag_spec='${wl}-E'
9959 # hardcode_minus_L: Not really in the search PATH,
9960 # but as the default location of the library.
9961 hardcode_minus_L=yes
9966 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9969 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9988 # Older versions of the 11.00 compiler do not understand -b yet
9989 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9991 $as_echo_n "checking if $CC understands -b... " >&6; }
9992 if ${lt_cv_prog_compiler__b+:} false; then :
9993 $as_echo_n "(cached) " >&6
9995 lt_cv_prog_compiler__b=no
9996 save_LDFLAGS="$LDFLAGS"
9997 LDFLAGS="$LDFLAGS -b"
9998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10000 # The linker can only warn and ignore the option if not recognized
10001 # So say no if there are warnings
10002 if test -s conftest.err; then
10003 # Append any errors to the config.log.
10004 cat conftest.err 1>&5
10005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10007 if diff conftest.exp conftest.er2 >/dev/null; then
10008 lt_cv_prog_compiler__b=yes
10011 lt_cv_prog_compiler__b=yes
10015 LDFLAGS="$save_LDFLAGS"
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10019 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10021 if test x"$lt_cv_prog_compiler__b" = xyes; then
10022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10030 if test "$with_gnu_ld" = no; then
10031 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10032 hardcode_libdir_separator=:
10037 hardcode_shlibpath_var=no
10040 hardcode_direct=yes
10041 hardcode_direct_absolute=yes
10042 export_dynamic_flag_spec='${wl}-E'
10044 # hardcode_minus_L: Not really in the search PATH,
10045 # but as the default location of the library.
10046 hardcode_minus_L=yes
10052 irix5* | irix6* | nonstopux*)
10053 if test "$GCC" = yes; then
10054 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'
10055 # Try to use the -exported_symbol ld option, if it does not
10056 # work, assume that -exports_file does not work either and
10057 # implicitly export all symbols.
10058 # This should be the same for all languages, so no per-tag cache variable.
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10060 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10061 if ${lt_cv_irix_exported_symbol+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 save_LDFLAGS="$LDFLAGS"
10065 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068 int foo (void) { return 0; }
10070 if ac_fn_c_try_link "$LINENO"; then :
10071 lt_cv_irix_exported_symbol=yes
10073 lt_cv_irix_exported_symbol=no
10075 rm -f core conftest.err conftest.$ac_objext \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LDFLAGS="$save_LDFLAGS"
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10080 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10081 if test "$lt_cv_irix_exported_symbol" = yes; then
10082 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'
10085 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'
10086 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'
10088 archive_cmds_need_lc='no'
10089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090 hardcode_libdir_separator=:
10092 link_all_deplibs=yes
10096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10099 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10101 hardcode_libdir_flag_spec='-R$libdir'
10102 hardcode_direct=yes
10103 hardcode_shlibpath_var=no
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_direct=yes
10109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10110 hardcode_libdir_separator=:
10111 hardcode_shlibpath_var=no
10118 if test -f /usr/libexec/ld.so; then
10119 hardcode_direct=yes
10120 hardcode_shlibpath_var=no
10121 hardcode_direct_absolute=yes
10122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10123 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10125 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126 export_dynamic_flag_spec='${wl}-E'
10129 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_libdir_flag_spec='-R$libdir'
10134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10145 hardcode_libdir_flag_spec='-L$libdir'
10146 hardcode_minus_L=yes
10147 allow_undefined_flag=unsupported
10148 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'
10149 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10153 if test "$GCC" = yes; then
10154 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10155 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'
10157 allow_undefined_flag=' -expect_unresolved \*'
10158 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'
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 hardcode_libdir_separator=:
10165 osf4* | osf5*) # as osf3* with the addition of -msym flag
10166 if test "$GCC" = yes; then
10167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10168 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'
10169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10171 allow_undefined_flag=' -expect_unresolved \*'
10172 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'
10173 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~
10174 $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'
10176 # Both c and cxx compiler support -rpath directly
10177 hardcode_libdir_flag_spec='-rpath $libdir'
10179 archive_cmds_need_lc='no'
10180 hardcode_libdir_separator=:
10184 no_undefined_flag=' -z defs'
10185 if test "$GCC" = yes; then
10187 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10189 $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'
10191 case `$CC -V 2>&1` in
10194 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10200 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10202 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10206 hardcode_libdir_flag_spec='-R$libdir'
10207 hardcode_shlibpath_var=no
10209 solaris2.[0-5] | solaris2.[0-5].*) ;;
10211 # The compiler driver will combine and reorder linker options,
10212 # but understands `-z linker_flag'. GCC discards it without `$wl',
10213 # but is careful enough not to reorder.
10214 # Supported since Solaris 2.6 (maybe 2.5.1?)
10215 if test "$GCC" = yes; then
10216 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10218 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10222 link_all_deplibs=yes
10226 if test "x$host_vendor" = xsequent; then
10227 # Use $CC to link under sequent, because it throws in some extra .o
10228 # files that make .init and .fini sections work.
10229 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_libdir_flag_spec='-L$libdir'
10234 hardcode_direct=yes
10235 hardcode_minus_L=yes
10236 hardcode_shlibpath_var=no
10240 case $host_vendor in
10242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_direct=yes # is this really true???
10246 ## LD is ld it makes a PLAMLIB
10247 ## CC just makes a GrossModule.
10248 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10249 reload_cmds='$CC -r -o $output$reload_objs'
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10257 runpath_var='LD_RUN_PATH'
10258 hardcode_shlibpath_var=no
10262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10263 hardcode_shlibpath_var=no
10264 export_dynamic_flag_spec='-Bexport'
10268 if test -d /usr/nec; then
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_shlibpath_var=no
10271 runpath_var=LD_RUN_PATH
10272 hardcode_runpath_var=yes
10277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10278 no_undefined_flag='${wl}-z,text'
10279 archive_cmds_need_lc=no
10280 hardcode_shlibpath_var=no
10281 runpath_var='LD_RUN_PATH'
10283 if test "$GCC" = yes; then
10284 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 sysv5* | sco3.2v5* | sco5v6*)
10293 # Note: We can NOT use -z defs as we might desire, because we do not
10294 # link with -lc, and that would cause any symbols used from libc to
10295 # always be unresolved, which means just about no library would
10296 # ever link correctly. If we're not using GNU ld we use -z text
10297 # though, which does catch some bad symbols but isn't as heavy-handed
10299 no_undefined_flag='${wl}-z,text'
10300 allow_undefined_flag='${wl}-z,nodefs'
10301 archive_cmds_need_lc=no
10302 hardcode_shlibpath_var=no
10303 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10304 hardcode_libdir_separator=':'
10305 link_all_deplibs=yes
10306 export_dynamic_flag_spec='${wl}-Bexport'
10307 runpath_var='LD_RUN_PATH'
10309 if test "$GCC" = yes; then
10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10320 hardcode_libdir_flag_spec='-L$libdir'
10321 hardcode_shlibpath_var=no
10329 if test x$host_vendor = xsni; then
10331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10332 export_dynamic_flag_spec='${wl}-Blargedynsym'
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10339 $as_echo "$ld_shlibs" >&6; }
10340 test "$ld_shlibs" = no && can_build_shared=no
10342 with_gnu_ld=$with_gnu_ld
10359 # Do we need to explicitly link libc?
10361 case "x$archive_cmds_need_lc" in
10363 # Assume -lc should be added
10364 archive_cmds_need_lc=yes
10366 if test "$enable_shared" = yes && test "$GCC" = yes; then
10367 case $archive_cmds in
10369 # FIXME: we may have to deal with multi-command sequences.
10372 # Test whether the compiler implicitly links with -lc since on some
10373 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10374 # to ld, don't add -lc before -lgcc.
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10376 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10377 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10378 $as_echo_n "(cached) " >&6
10381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10384 (eval $ac_compile) 2>&5
10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387 test $ac_status = 0; } 2>conftest.err; then
10390 libobjs=conftest.$ac_objext
10392 wl=$lt_prog_compiler_wl
10393 pic_flag=$lt_prog_compiler_pic
10399 lt_save_allow_undefined_flag=$allow_undefined_flag
10400 allow_undefined_flag=
10401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10402 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10405 test $ac_status = 0; }
10407 lt_cv_archive_cmds_need_lc=no
10409 lt_cv_archive_cmds_need_lc=yes
10411 allow_undefined_flag=$lt_save_allow_undefined_flag
10413 cat conftest.err 1>&5
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10419 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10420 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10579 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10581 if test "$GCC" = yes; then
10583 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10584 *) lt_awk_arg="/^libraries:/" ;;
10587 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10588 *) lt_sed_strip_eq="s,=/,/,g" ;;
10590 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10591 case $lt_search_path_spec in
10593 # if the path contains ";" then we assume it to be the separator
10594 # otherwise default to the standard path separator (i.e. ":") - it is
10595 # assumed that no part of a normal pathname contains ";" but that should
10596 # okay in the real world where ";" in dirpaths is itself problematic.
10597 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10600 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10603 # Ok, now we have the path, separated by spaces, we can step through it
10604 # and add multilib dir if necessary.
10605 lt_tmp_lt_search_path_spec=
10606 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10607 for lt_sys_path in $lt_search_path_spec; do
10608 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10609 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10611 test -d "$lt_sys_path" && \
10612 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10615 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10616 BEGIN {RS=" "; FS="/|\n";} {
10619 for (lt_i = NF; lt_i > 0; lt_i--) {
10620 if ($lt_i != "" && $lt_i != ".") {
10621 if ($lt_i == "..") {
10624 if (lt_count == 0) {
10625 lt_foo="/" $lt_i lt_foo;
10632 if (lt_foo != "") { lt_freq[lt_foo]++; }
10633 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10635 # AWK program above erroneously prepends '/' to C:/dos/paths
10638 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10639 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10641 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10645 library_names_spec=
10646 libname_spec='lib$name'
10650 postuninstall_cmds=
10654 shlibpath_overrides_runpath=unknown
10656 dynamic_linker="$host_os ld.so"
10657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10658 need_lib_prefix=unknown
10659 hardcode_into_libs=no
10661 # when you set need_version to no, make sure it does not cause -set_version
10662 # flags to be left without arguments
10663 need_version=unknown
10667 version_type=linux # correct to gnu/linux during the next big refactor
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10669 shlibpath_var=LIBPATH
10671 # AIX 3 has no versioning support, so we append a major version to the name.
10672 soname_spec='${libname}${release}${shared_ext}$major'
10676 version_type=linux # correct to gnu/linux during the next big refactor
10679 hardcode_into_libs=yes
10680 if test "$host_cpu" = ia64; then
10681 # AIX 5 supports IA64
10682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10683 shlibpath_var=LD_LIBRARY_PATH
10685 # With GCC up to 2.95.x, collect2 would create an import file
10686 # for dependence libraries. The import file would start with
10687 # the line `#! .'. This would cause the generated library to
10688 # depend on `.', always an invalid library. This was fixed in
10689 # development snapshots of GCC prior to 3.0.
10691 aix4 | aix4.[01] | aix4.[01].*)
10692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10694 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10697 can_build_shared=no
10701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10702 # soname into executable. Probably we can add versioning support to
10703 # collect2, so additional links can be useful in future.
10704 if test "$aix_use_runtimelinking" = yes; then
10705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10706 # instead of lib<name>.a to let people know that these are not
10707 # typical AIX shared libraries.
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710 # We preserve .a as extension for shared libraries through AIX4.2
10711 # and later when we are not doing run time linking.
10712 library_names_spec='${libname}${release}.a $libname.a'
10713 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LIBPATH
10722 # Since July 2007 AmigaOS4 officially supports .so libraries.
10723 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 library_names_spec='$libname.ixlibrary $libname.a'
10728 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10729 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'
10735 library_names_spec='${libname}${shared_ext}'
10736 dynamic_linker="$host_os ld.so"
10737 shlibpath_var=LIBRARY_PATH
10741 version_type=linux # correct to gnu/linux during the next big refactor
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10748 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10749 # the default ld.so.conf also contains /usr/contrib/lib and
10750 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10751 # libtool to hard-code these into programs
10754 cygwin* | mingw* | pw32* | cegcc*)
10755 version_type=windows
10760 case $GCC,$cc_basename in
10763 library_names_spec='$libname.dll.a'
10764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10765 postinstall_cmds='base_file=`basename \${file}`~
10766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10767 dldir=$destdir/`dirname \$dlpath`~
10768 test -d \$dldir || mkdir -p \$dldir~
10769 $install_prog $dir/$dlname \$dldir/$dlname~
10770 chmod a+x \$dldir/$dlname~
10771 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10772 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10775 dlpath=$dir/\$dldll~
10777 shlibpath_overrides_runpath=yes
10781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10787 # MinGW DLLs use traditional 'lib' prefix
10788 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10791 # pw32 DLLs use 'pw' prefix rather than 'lib'
10792 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10795 dynamic_linker='Win32 ld.exe'
10800 libname_spec='$name'
10801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10802 library_names_spec='${libname}.dll.lib'
10806 sys_lib_search_path_spec=
10809 for lt_path in $LIB
10812 # Let DOS variable expansion print the short 8.3 style file name.
10813 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10814 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10817 # Convert to MSYS style.
10818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10821 # Convert to unix form, then to dos form, then back to unix form
10822 # but this time dos style (no spaces!) so that the unix form looks
10823 # like /cygdrive/c/PROGRA~1:/cygdr...
10824 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10825 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10826 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10829 sys_lib_search_path_spec="$LIB"
10830 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10831 # It is most probably a Windows format PATH.
10832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10834 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10836 # FIXME: find the short name or the path components, as spaces are
10837 # common. (e.g. "Program Files" -> "PROGRA~1")
10841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842 postinstall_cmds='base_file=`basename \${file}`~
10843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10844 dldir=$destdir/`dirname \$dlpath`~
10845 test -d \$dldir || mkdir -p \$dldir~
10846 $install_prog $dir/$dlname \$dldir/$dlname'
10847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10848 dlpath=$dir/\$dldll~
10850 shlibpath_overrides_runpath=yes
10851 dynamic_linker='Win32 link.exe'
10855 # Assume MSVC wrapper
10856 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10857 dynamic_linker='Win32 ld.exe'
10860 # FIXME: first we should search . and the directory the executable is in
10864 darwin* | rhapsody*)
10865 dynamic_linker="$host_os dyld"
10866 version_type=darwin
10869 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10870 soname_spec='${libname}${release}${major}$shared_ext'
10871 shlibpath_overrides_runpath=yes
10872 shlibpath_var=DYLD_LIBRARY_PATH
10873 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10875 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10876 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10880 version_type=linux # correct to gnu/linux during the next big refactor
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 shlibpath_var=LD_LIBRARY_PATH
10888 freebsd* | dragonfly*)
10889 # DragonFly does not have aout. When/if they implement a new
10890 # versioning mechanism, adjust this.
10891 if test -x /usr/bin/objformat; then
10892 objformat=`/usr/bin/objformat`
10895 freebsd[23].*) objformat=aout ;;
10896 *) objformat=elf ;;
10899 version_type=freebsd-$objformat
10900 case $version_type in
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10911 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10916 freebsd3.[01]* | freebsdelf3.[01]*)
10917 shlibpath_overrides_runpath=yes
10918 hardcode_into_libs=yes
10920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10922 shlibpath_overrides_runpath=no
10923 hardcode_into_libs=yes
10925 *) # from 4.6 on, and DragonFly
10926 shlibpath_overrides_runpath=yes
10927 hardcode_into_libs=yes
10933 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10939 shlibpath_overrides_runpath=no
10940 hardcode_into_libs=yes
10944 version_type=linux # correct to gnu/linux during the next big refactor
10947 dynamic_linker="$host_os runtime_loader"
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 shlibpath_var=LIBRARY_PATH
10951 shlibpath_overrides_runpath=yes
10952 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10953 hardcode_into_libs=yes
10956 hpux9* | hpux10* | hpux11*)
10957 # Give a soname corresponding to the major version so that dld.sl refuses to
10958 # link against other versions.
10965 hardcode_into_libs=yes
10966 dynamic_linker="$host_os dld.so"
10967 shlibpath_var=LD_LIBRARY_PATH
10968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 if test "X$HPUX_IA64_MODE" = X32; then
10972 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10974 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980 hardcode_into_libs=yes
10981 dynamic_linker="$host_os dld.sl"
10982 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10991 dynamic_linker="$host_os dld.sl"
10992 shlibpath_var=SHLIB_PATH
10993 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10998 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10999 postinstall_cmds='chmod 555 $lib'
11000 # or fails outright, so override atomically:
11001 install_override_mode=555
11005 version_type=linux # correct to gnu/linux during the next big refactor
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11009 soname_spec='${libname}${release}${shared_ext}$major'
11010 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=no
11013 hardcode_into_libs=yes
11016 irix5* | irix6* | nonstopux*)
11018 nonstopux*) version_type=nonstopux ;;
11020 if test "$lt_cv_prog_gnu_ld" = yes; then
11021 version_type=linux # correct to gnu/linux during the next big refactor
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11031 irix5* | nonstopux*)
11032 libsuff= shlibsuff=
11035 case $LD in # libtool.m4 will add one of these switches to LD
11036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11037 libsuff= shlibsuff= libmagic=32-bit;;
11038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11039 libsuff=32 shlibsuff=N32 libmagic=N32;;
11040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11042 *) libsuff= shlibsuff= libmagic=never-match;;
11046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11047 shlibpath_overrides_runpath=no
11048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11050 hardcode_into_libs=yes
11053 # No shared lib support for Linux oldld, aout, or coff.
11054 linux*oldld* | linux*aout* | linux*coff*)
11058 # This must be glibc/ELF.
11059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11060 version_type=linux # correct to gnu/linux during the next big refactor
11063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064 soname_spec='${libname}${release}${shared_ext}$major'
11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11066 shlibpath_var=LD_LIBRARY_PATH
11067 shlibpath_overrides_runpath=no
11069 # Some binutils ld are patched to set DT_RUNPATH
11070 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11071 $as_echo_n "(cached) " >&6
11073 lt_cv_shlibpath_overrides_runpath=no
11074 save_LDFLAGS=$LDFLAGS
11075 save_libdir=$libdir
11076 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11077 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11089 if ac_fn_c_try_link "$LINENO"; then :
11090 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11091 lt_cv_shlibpath_overrides_runpath=yes
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LDFLAGS=$save_LDFLAGS
11097 libdir=$save_libdir
11101 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11103 # This implies no fast_install, which is unacceptable.
11104 # Some rework will be needed to allow for fast_install
11105 # before this can be enabled.
11106 hardcode_into_libs=yes
11108 # Append ld.so.conf contents to the search path
11109 if test -f /etc/ld.so.conf; then
11110 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' ' '`
11111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11114 # We used to test for /lib/ld.so.1 and disable shared libraries on
11115 # powerpc, because MkLinux only supported shared libraries with the
11116 # GNU dynamic linker. Since this was broken with cross compilers,
11117 # most powerpc-linux boxes support dynamic linking these days and
11118 # people can always --disable-shared, the test was removed, and we
11119 # assume the GNU/Linux dynamic linker is in use.
11120 dynamic_linker='GNU/Linux ld.so'
11127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11130 dynamic_linker='NetBSD (a.out) ld.so'
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11133 soname_spec='${libname}${release}${shared_ext}$major'
11134 dynamic_linker='NetBSD ld.elf_so'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 hardcode_into_libs=yes
11142 version_type=linux # correct to gnu/linux during the next big refactor
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=no
11156 hardcode_into_libs=yes
11157 dynamic_linker='ldqnx.so'
11162 sys_lib_dlsearch_path_spec="/usr/lib"
11164 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11166 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11167 *) need_version=no ;;
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11174 openbsd2.[89] | openbsd2.[89].*)
11175 shlibpath_overrides_runpath=no
11178 shlibpath_overrides_runpath=yes
11182 shlibpath_overrides_runpath=yes
11187 libname_spec='$name'
11190 library_names_spec='$libname${shared_ext} $libname.a'
11191 dynamic_linker='OS/2 ld.exe'
11192 shlibpath_var=LIBPATH
11195 osf3* | osf4* | osf5*)
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11211 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=yes
11218 hardcode_into_libs=yes
11219 # ldd complains unless libraries are executable
11220 postinstall_cmds='chmod +x $lib'
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 if test "$with_gnu_ld" = yes; then
11236 version_type=linux # correct to gnu/linux during the next big refactor
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 case $host_vendor in
11242 shlibpath_overrides_runpath=no
11244 runpath_var=LD_RUN_PATH
11252 shlibpath_overrides_runpath=no
11253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11259 if test -d /usr/nec ;then
11260 version_type=linux # correct to gnu/linux during the next big refactor
11261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11262 soname_spec='$libname${shared_ext}.$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11268 version_type=freebsd-elf
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes
11275 hardcode_into_libs=yes
11276 if test "$with_gnu_ld" = yes; then
11277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11286 sys_lib_dlsearch_path_spec='/usr/lib'
11290 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11291 version_type=linux # correct to gnu/linux during the next big refactor
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 shlibpath_var=LD_LIBRARY_PATH
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11312 $as_echo "$dynamic_linker" >&6; }
11313 test "$dynamic_linker" = no && can_build_shared=no
11315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11316 if test "$GCC" = yes; then
11317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11320 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11321 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11323 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11324 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11419 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11421 if test -n "$hardcode_libdir_flag_spec" ||
11422 test -n "$runpath_var" ||
11423 test "X$hardcode_automatic" = "Xyes" ; then
11425 # We can hardcode non-existent directories.
11426 if test "$hardcode_direct" != no &&
11427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11428 # have to relink, otherwise we might link with an installed library
11429 # when we should be linking with a yet-to-be-installed one
11430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11431 test "$hardcode_minus_L" != no; then
11432 # Linking always hardcodes the temporary library directory.
11433 hardcode_action=relink
11435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11436 hardcode_action=immediate
11439 # We cannot hardcode anything, or else we can only hardcode existing
11441 hardcode_action=unsupported
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11444 $as_echo "$hardcode_action" >&6; }
11446 if test "$hardcode_action" = relink ||
11447 test "$inherit_rpath" = yes; then
11448 # Fast installation is not supported
11449 enable_fast_install=no
11450 elif test "$shlibpath_overrides_runpath" = yes ||
11451 test "$enable_shared" = no; then
11452 # Fast installation is not necessary
11453 enable_fast_install=needless
11461 if test "x$enable_dlopen" != xyes; then
11462 enable_dlopen=unknown
11463 enable_dlopen_self=unknown
11464 enable_dlopen_self_static=unknown
11471 lt_cv_dlopen="load_add_on"
11473 lt_cv_dlopen_self=yes
11476 mingw* | pw32* | cegcc*)
11477 lt_cv_dlopen="LoadLibrary"
11482 lt_cv_dlopen="dlopen"
11487 # if libdl is installed we need to link against it
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11490 if ${ac_cv_lib_dl_dlopen+:} false; then :
11491 $as_echo_n "(cached) " >&6
11493 ac_check_lib_save_LIBS=$LIBS
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_lib_dl_dlopen=yes
11516 ac_cv_lib_dl_dlopen=no
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LIBS=$ac_check_lib_save_LIBS
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11524 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11528 lt_cv_dlopen="dyld"
11530 lt_cv_dlopen_self=yes
11537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11538 if test "x$ac_cv_func_shl_load" = xyes; then :
11539 lt_cv_dlopen="shl_load"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11542 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11543 if ${ac_cv_lib_dld_shl_load+:} false; then :
11544 $as_echo_n "(cached) " >&6
11546 ac_check_lib_save_LIBS=$LIBS
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11561 return shl_load ();
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_dld_shl_load=yes
11569 ac_cv_lib_dld_shl_load=no
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11576 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11577 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11578 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11580 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11581 if test "x$ac_cv_func_dlopen" = xyes; then :
11582 lt_cv_dlopen="dlopen"
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11586 if ${ac_cv_lib_dl_dlopen+:} false; then :
11587 $as_echo_n "(cached) " >&6
11589 ac_check_lib_save_LIBS=$LIBS
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_dl_dlopen=yes
11612 ac_cv_lib_dl_dlopen=no
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11620 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11624 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11625 if ${ac_cv_lib_svld_dlopen+:} false; then :
11626 $as_echo_n "(cached) " >&6
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lsvld $LIBS"
11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11648 if ac_fn_c_try_link "$LINENO"; then :
11649 ac_cv_lib_svld_dlopen=yes
11651 ac_cv_lib_svld_dlopen=no
11653 rm -f core conftest.err conftest.$ac_objext \
11654 conftest$ac_exeext conftest.$ac_ext
11655 LIBS=$ac_check_lib_save_LIBS
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11658 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11659 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11663 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11664 if ${ac_cv_lib_dld_dld_link+:} false; then :
11665 $as_echo_n "(cached) " >&6
11667 ac_check_lib_save_LIBS=$LIBS
11669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11672 /* Override any GCC internal prototype to avoid an error.
11673 Use char because int might match the return type of a GCC
11674 builtin and then its argument prototype would still apply. */
11682 return dld_link ();
11687 if ac_fn_c_try_link "$LINENO"; then :
11688 ac_cv_lib_dld_dld_link=yes
11690 ac_cv_lib_dld_dld_link=no
11692 rm -f core conftest.err conftest.$ac_objext \
11693 conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11697 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11698 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11720 if test "x$lt_cv_dlopen" != xno; then
11726 case $lt_cv_dlopen in
11728 save_CPPFLAGS="$CPPFLAGS"
11729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11731 save_LDFLAGS="$LDFLAGS"
11732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11735 LIBS="$lt_cv_dlopen_libs $LIBS"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11738 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11739 if ${lt_cv_dlopen_self+:} false; then :
11740 $as_echo_n "(cached) " >&6
11742 if test "$cross_compiling" = yes; then :
11743 lt_cv_dlopen_self=cross
11745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11746 lt_status=$lt_dlunknown
11747 cat > conftest.$ac_ext <<_LT_EOF
11748 #line $LINENO "configure"
11749 #include "confdefs.h"
11758 # define LT_DLGLOBAL RTLD_GLOBAL
11761 # define LT_DLGLOBAL DL_GLOBAL
11763 # define LT_DLGLOBAL 0
11767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11768 find out it does not work in some platform. */
11769 #ifndef LT_DLLAZY_OR_NOW
11771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11774 # define LT_DLLAZY_OR_NOW DL_LAZY
11777 # define LT_DLLAZY_OR_NOW RTLD_NOW
11780 # define LT_DLLAZY_OR_NOW DL_NOW
11782 # define LT_DLLAZY_OR_NOW 0
11789 /* When -fvisbility=hidden is used, assume the code has been annotated
11790 correspondingly for the symbols needed. */
11791 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11792 int fnord () __attribute__((visibility("default")));
11795 int fnord () { return 42; }
11798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11799 int status = $lt_dlunknown;
11803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11807 else puts (dlerror ());
11809 /* dlclose (self); */
11817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11818 (eval $ac_link) 2>&5
11820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11821 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11822 (./conftest; exit; ) >&5 2>/dev/null
11824 case x$lt_status in
11825 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11830 # compilation failed
11831 lt_cv_dlopen_self=no
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11839 $as_echo "$lt_cv_dlopen_self" >&6; }
11841 if test "x$lt_cv_dlopen_self" = xyes; then
11842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11844 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11845 if ${lt_cv_dlopen_self_static+:} false; then :
11846 $as_echo_n "(cached) " >&6
11848 if test "$cross_compiling" = yes; then :
11849 lt_cv_dlopen_self_static=cross
11851 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852 lt_status=$lt_dlunknown
11853 cat > conftest.$ac_ext <<_LT_EOF
11854 #line $LINENO "configure"
11855 #include "confdefs.h"
11864 # define LT_DLGLOBAL RTLD_GLOBAL
11867 # define LT_DLGLOBAL DL_GLOBAL
11869 # define LT_DLGLOBAL 0
11873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874 find out it does not work in some platform. */
11875 #ifndef LT_DLLAZY_OR_NOW
11877 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11880 # define LT_DLLAZY_OR_NOW DL_LAZY
11883 # define LT_DLLAZY_OR_NOW RTLD_NOW
11886 # define LT_DLLAZY_OR_NOW DL_NOW
11888 # define LT_DLLAZY_OR_NOW 0
11895 /* When -fvisbility=hidden is used, assume the code has been annotated
11896 correspondingly for the symbols needed. */
11897 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11898 int fnord () __attribute__((visibility("default")));
11901 int fnord () { return 42; }
11904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11905 int status = $lt_dlunknown;
11909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11912 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11913 else puts (dlerror ());
11915 /* dlclose (self); */
11923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11924 (eval $ac_link) 2>&5
11926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11927 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11928 (./conftest; exit; ) >&5 2>/dev/null
11930 case x$lt_status in
11931 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11932 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11933 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11936 # compilation failed
11937 lt_cv_dlopen_self_static=no
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11945 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11948 CPPFLAGS="$save_CPPFLAGS"
11949 LDFLAGS="$save_LDFLAGS"
11954 case $lt_cv_dlopen_self in
11955 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11956 *) enable_dlopen_self=unknown ;;
11959 case $lt_cv_dlopen_self_static in
11960 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11961 *) enable_dlopen_self_static=unknown ;;
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11984 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11985 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989 $as_echo "yes" >&6; }
11991 # FIXME - insert some real tests, host_os isn't really good enough
11994 if test -n "$STRIP" ; then
11995 striplib="$STRIP -x"
11996 old_striplib="$STRIP -S"
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11998 $as_echo "yes" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001 $as_echo "no" >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12022 # Report which library types will actually be built
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12024 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12026 $as_echo "$can_build_shared" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12029 $as_echo_n "checking whether to build shared libraries... " >&6; }
12030 test "$can_build_shared" = "no" && enable_shared=no
12032 # On AIX, shared libraries and static libraries use the same namespace, and
12033 # are all built from PIC.
12036 test "$enable_shared" = yes && enable_static=no
12037 if test -n "$RANLIB"; then
12038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12039 postinstall_cmds='$RANLIB $lib'
12044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12045 test "$enable_shared" = yes && enable_static=no
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12050 $as_echo "$enable_shared" >&6; }
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12053 $as_echo_n "checking whether to build static libraries... " >&6; }
12054 # Make sure either enable_shared or enable_static is yes.
12055 test "$enable_shared" = yes || enable_static=yes
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12057 $as_echo "$enable_static" >&6; }
12064 ac_cpp='$CPP $CPPFLAGS'
12065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12085 ac_config_commands="$ac_config_commands libtool"
12090 # Only expand once:
12094 for ac_func in _close _dup _fdopen _fileno _open _snprintf _strdup _stricmp fseeko ftello getopt open snprintf strcasecmp strdup
12096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12098 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12099 cat >>confdefs.h <<_ACEOF
12100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12106 for ac_func in mkstemp
12108 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12109 if test "x$ac_cv_func_mkstemp" = xyes; then :
12110 cat >>confdefs.h <<_ACEOF
12111 #define HAVE_MKSTEMP 1
12115 case " $LIBOBJS " in
12116 *" mkstemp.$ac_objext "* ) ;;
12117 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MoveFileExA" >&5
12126 $as_echo_n "checking MoveFileExA... " >&6; }
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129 #include <windows.h>
12133 MoveFileExA("", "", 0);
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12140 $as_echo "yes" >&6; }
12142 $as_echo "#define HAVE_MOVEFILEEXA 1" >>confdefs.h
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146 $as_echo "no" >&6; }
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12151 for ac_header in fts.h stdbool.h strings.h unistd.h
12153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12154 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12155 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12156 cat >>confdefs.h <<_ACEOF
12157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12165 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
12166 if test "x$ac_cv_type_int8_t" = xyes; then :
12168 cat >>confdefs.h <<_ACEOF
12169 #define HAVE_INT8_T 1
12175 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
12176 if test "x$ac_cv_type_int16_t" = xyes; then :
12178 cat >>confdefs.h <<_ACEOF
12179 #define HAVE_INT16_T 1
12185 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12186 if test "x$ac_cv_type_int32_t" = xyes; then :
12188 cat >>confdefs.h <<_ACEOF
12189 #define HAVE_INT32_T 1
12195 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12196 if test "x$ac_cv_type_int64_t" = xyes; then :
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_INT64_T 1
12205 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12206 if test "x$ac_cv_type_uint8_t" = xyes; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define HAVE_UINT8_T 1
12215 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12216 if test "x$ac_cv_type_uint16_t" = xyes; then :
12218 cat >>confdefs.h <<_ACEOF
12219 #define HAVE_UINT16_T 1
12225 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12226 if test "x$ac_cv_type_uint32_t" = xyes; then :
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_UINT32_T 1
12235 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12236 if test "x$ac_cv_type_uint64_t" = xyes; then :
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_UINT64_T 1
12245 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12246 if test "x$ac_cv_type_ssize_t" = xyes; then :
12248 cat >>confdefs.h <<_ACEOF
12249 #define HAVE_SSIZE_T 1
12256 # The cast to long int works around a bug in the HP C Compiler
12257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12259 # This bug is HP SR number 8606223364.
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12261 $as_echo_n "checking size of short... " >&6; }
12262 if ${ac_cv_sizeof_short+:} false; then :
12263 $as_echo_n "(cached) " >&6
12265 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12268 if test "$ac_cv_type_short" = yes; then
12269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12271 as_fn_error 77 "cannot compute sizeof (short)
12272 See \`config.log' for more details" "$LINENO" 5; }
12274 ac_cv_sizeof_short=0
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12280 $as_echo "$ac_cv_sizeof_short" >&6; }
12284 cat >>confdefs.h <<_ACEOF
12285 #define SIZEOF_SHORT $ac_cv_sizeof_short
12289 # The cast to long int works around a bug in the HP C Compiler
12290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12292 # This bug is HP SR number 8606223364.
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12294 $as_echo_n "checking size of int... " >&6; }
12295 if ${ac_cv_sizeof_int+:} false; then :
12296 $as_echo_n "(cached) " >&6
12298 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12301 if test "$ac_cv_type_int" = yes; then
12302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12304 as_fn_error 77 "cannot compute sizeof (int)
12305 See \`config.log' for more details" "$LINENO" 5; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12313 $as_echo "$ac_cv_sizeof_int" >&6; }
12317 cat >>confdefs.h <<_ACEOF
12318 #define SIZEOF_INT $ac_cv_sizeof_int
12322 # The cast to long int works around a bug in the HP C Compiler
12323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12325 # This bug is HP SR number 8606223364.
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12327 $as_echo_n "checking size of long... " >&6; }
12328 if ${ac_cv_sizeof_long+:} false; then :
12329 $as_echo_n "(cached) " >&6
12331 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12334 if test "$ac_cv_type_long" = yes; then
12335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12337 as_fn_error 77 "cannot compute sizeof (long)
12338 See \`config.log' for more details" "$LINENO" 5; }
12340 ac_cv_sizeof_long=0
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12346 $as_echo "$ac_cv_sizeof_long" >&6; }
12350 cat >>confdefs.h <<_ACEOF
12351 #define SIZEOF_LONG $ac_cv_sizeof_long
12355 # The cast to long int works around a bug in the HP C Compiler
12356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12358 # This bug is HP SR number 8606223364.
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12360 $as_echo_n "checking size of long long... " >&6; }
12361 if ${ac_cv_sizeof_long_long+:} false; then :
12362 $as_echo_n "(cached) " >&6
12364 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12367 if test "$ac_cv_type_long_long" = yes; then
12368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12370 as_fn_error 77 "cannot compute sizeof (long long)
12371 See \`config.log' for more details" "$LINENO" 5; }
12373 ac_cv_sizeof_long_long=0
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12379 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12383 cat >>confdefs.h <<_ACEOF
12384 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12388 # The cast to long int works around a bug in the HP C Compiler
12389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12391 # This bug is HP SR number 8606223364.
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12393 $as_echo_n "checking size of off_t... " >&6; }
12394 if ${ac_cv_sizeof_off_t+:} false; then :
12395 $as_echo_n "(cached) " >&6
12397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12400 if test "$ac_cv_type_off_t" = yes; then
12401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12403 as_fn_error 77 "cannot compute sizeof (off_t)
12404 See \`config.log' for more details" "$LINENO" 5; }
12406 ac_cv_sizeof_off_t=0
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12412 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12416 cat >>confdefs.h <<_ACEOF
12417 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12421 # The cast to long int works around a bug in the HP C Compiler
12422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12424 # This bug is HP SR number 8606223364.
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12426 $as_echo_n "checking size of size_t... " >&6; }
12427 if ${ac_cv_sizeof_size_t+:} false; then :
12428 $as_echo_n "(cached) " >&6
12430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
12433 if test "$ac_cv_type_size_t" = yes; then
12434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12436 as_fn_error 77 "cannot compute sizeof (size_t)
12437 See \`config.log' for more details" "$LINENO" 5; }
12439 ac_cv_sizeof_size_t=0
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12445 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12449 cat >>confdefs.h <<_ACEOF
12450 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12456 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12457 if ${ac_cv_struct_tm+:} false; then :
12458 $as_echo_n "(cached) " >&6
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #include <sys/types.h>
12469 int *p = &tm.tm_sec;
12475 if ac_fn_c_try_compile "$LINENO"; then :
12476 ac_cv_struct_tm=time.h
12478 ac_cv_struct_tm=sys/time.h
12480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12483 $as_echo "$ac_cv_struct_tm" >&6; }
12484 if test $ac_cv_struct_tm = sys/time.h; then
12486 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12490 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12491 #include <$ac_cv_struct_tm>
12494 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_STRUCT_TM_TM_ZONE 1
12503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12505 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12508 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12510 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_DECL_TZNAME $ac_have_decl
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12521 $as_echo_n "checking for tzname... " >&6; }
12522 if ${ac_cv_var_tzname+:} false; then :
12523 $as_echo_n "(cached) " >&6
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12528 #if !HAVE_DECL_TZNAME
12529 extern char *tzname[];
12535 return tzname[0][0];
12540 if ac_fn_c_try_link "$LINENO"; then :
12541 ac_cv_var_tzname=yes
12543 ac_cv_var_tzname=no
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12549 $as_echo "$ac_cv_var_tzname" >&6; }
12550 if test $ac_cv_var_tzname = yes; then
12552 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12560 *bsd*) MANFMT=mdoc;;
12571 if test -n "$GCC"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
12573 $as_echo_n "checking for simple visibility declarations... " >&6; }
12574 if ${gl_cv_cc_visibility+:} false; then :
12575 $as_echo_n "(cached) " >&6
12578 gl_save_CFLAGS="$CFLAGS"
12579 CFLAGS="$CFLAGS -fvisibility=hidden"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h. */
12582 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
12583 extern __attribute__((__visibility__("default"))) int exportedvar;
12584 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
12585 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
12594 if ac_fn_c_try_compile "$LINENO"; then :
12595 gl_cv_cc_visibility=yes
12597 gl_cv_cc_visibility=no
12599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12600 CFLAGS="$gl_save_CFLAGS"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
12604 $as_echo "$gl_cv_cc_visibility" >&6; }
12605 if test $gl_cv_cc_visibility = yes; then
12606 CFLAG_VISIBILITY="-fvisibility=hidden"
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_VISIBILITY $HAVE_VISIBILITY
12619 ac_config_files="$ac_config_files Makefile libzip.pc libzip-uninstalled.pc examples/Makefile man/Makefile lib/Makefile regress/Makefile src/Makefile"
12621 cat >confcache <<\_ACEOF
12622 # This file is a shell script that caches the results of configure
12623 # tests run on this system so they can be shared between configure
12624 # scripts and configure runs, see configure's option --config-cache.
12625 # It is not useful on other systems. If it contains results you don't
12626 # want to keep, you may remove or edit it.
12628 # config.status only pays attention to the cache file if you give it
12629 # the --recheck option to rerun configure.
12631 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12632 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12633 # following values.
12637 # The following way of writing the cache mishandles newlines in values,
12638 # but we know of no workaround that is simple, portable, and efficient.
12639 # So, we kill variables containing newlines.
12640 # Ultrix sh set writes to stderr and can't be redirected directly,
12641 # and sets the high bit in the cache file unless we assign to the vars.
12643 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12644 eval ac_val=\$$ac_var
12648 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12649 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12652 _ | IFS | as_nl) ;; #(
12653 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12654 *) { eval $ac_var=; unset $ac_var;} ;;
12660 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12661 *${as_nl}ac_space=\ *)
12662 # `set' does not quote correctly, so add quotes: double-quote
12663 # substitution turns \\\\ into \\, and sed turns \\ into \.
12666 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12669 # `set' quotes correctly as required by POSIX, so do not add quotes.
12670 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12679 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12681 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12684 if test -w "$cache_file"; then
12685 if test "x$cache_file" != "x/dev/null"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12687 $as_echo "$as_me: updating cache $cache_file" >&6;}
12688 if test ! -f "$cache_file" || test -h "$cache_file"; then
12689 cat confcache >"$cache_file"
12691 case $cache_file in #(
12693 mv -f confcache "$cache_file"$$ &&
12694 mv -f "$cache_file"$$ "$cache_file" ;; #(
12696 mv -f confcache "$cache_file" ;;
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12702 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12707 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12708 # Let make expand exec_prefix.
12709 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12711 DEFS=-DHAVE_CONFIG_H
12716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12717 # 1. Remove the extension, and $U if already installed.
12718 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12719 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12720 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12721 # will be set to the directory where LIBOBJS objects are built.
12722 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12723 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12725 LIBOBJS=$ac_libobjs
12727 LTLIBOBJS=$ac_ltlibobjs
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12731 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12732 if test -n "$am_sleep_pid"; then
12733 # Hide warnings about reused PIDs.
12734 wait $am_sleep_pid 2>/dev/null
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12737 $as_echo "done" >&6; }
12738 if test -n "$EXEEXT"; then
12740 am__EXEEXT_FALSE='#'
12742 am__EXEEXT_TRUE='#'
12746 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12747 as_fn_error $? "conditional \"AMDEP\" was never defined.
12748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12750 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12751 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12755 : "${CONFIG_STATUS=./config.status}"
12757 ac_clean_files_save=$ac_clean_files
12758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12760 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12762 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12764 # Generated by $as_me.
12765 # Run this file to recreate the current configuration.
12766 # Compiler output produced by configure, useful for debugging
12767 # configure, is in config.log if it exists.
12770 ac_cs_recheck=false
12773 SHELL=\${CONFIG_SHELL-$SHELL}
12776 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12777 ## -------------------- ##
12778 ## M4sh Initialization. ##
12779 ## -------------------- ##
12781 # Be more Bourne compatible
12782 DUALCASE=1; export DUALCASE # for MKS sh
12783 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12786 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12787 # is contrary to our usage. Disable this feature.
12788 alias -g '${1+"$@"}'='"$@"'
12789 setopt NO_GLOB_SUBST
12791 case `(set -o) 2>/dev/null` in #(
12803 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12804 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12805 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12807 # Prefer a ksh shell builtin over an external printf program on Solaris,
12808 # but without wasting forks for bash or zsh.
12809 if test -z "$BASH_VERSION$ZSH_VERSION" \
12810 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12811 as_echo='print -r --'
12812 as_echo_n='print -rn --'
12813 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12814 as_echo='printf %s\n'
12815 as_echo_n='printf %s'
12817 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12818 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12819 as_echo_n='/usr/ucb/echo -n'
12821 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12822 as_echo_n_body='eval
12826 expr "X$arg" : "X\\(.*\\)$as_nl";
12827 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12829 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12831 export as_echo_n_body
12832 as_echo_n='sh -c $as_echo_n_body as_echo'
12834 export as_echo_body
12835 as_echo='sh -c $as_echo_body as_echo'
12838 # The user is always right.
12839 if test "${PATH_SEPARATOR+set}" != set; then
12841 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12842 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12849 # We need space, tab and new line, in precisely that order. Quoting is
12850 # there to prevent editors from complaining about space-tab.
12851 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12852 # splitting by setting IFS to empty value.)
12855 # Find who we are. Look in the path if we contain no directory separator.
12858 *[\\/]* ) as_myself=$0 ;;
12859 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860 for as_dir in $PATH
12863 test -z "$as_dir" && as_dir=.
12864 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12870 # We did not find ourselves, most probably we were run as `sh COMMAND'
12871 # in which case we are not to be found in the path.
12872 if test "x$as_myself" = x; then
12875 if test ! -f "$as_myself"; then
12876 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12880 # Unset variables that we do not need and which cause bugs (e.g. in
12881 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12882 # suppresses any "Segmentation fault" message there. '((' could
12883 # trigger a bug in pdksh 5.2.14.
12884 for as_var in BASH_ENV ENV MAIL MAILPATH
12885 do eval test x\${$as_var+set} = xset \
12886 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12899 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12902 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12903 # ----------------------------------------
12904 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12905 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12906 # script with STATUS, using 1 if that was 0.
12909 as_status=$1; test $as_status -eq 0 && as_status=1
12911 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12912 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12914 $as_echo "$as_me: error: $2" >&2
12915 as_fn_exit $as_status
12919 # as_fn_set_status STATUS
12920 # -----------------------
12921 # Set $? to STATUS, without forking.
12922 as_fn_set_status ()
12925 } # as_fn_set_status
12927 # as_fn_exit STATUS
12928 # -----------------
12929 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12933 as_fn_set_status $1
12939 # Portably unset VAR.
12942 { eval $1=; unset $1;}
12944 as_unset=as_fn_unset
12945 # as_fn_append VAR VALUE
12946 # ----------------------
12947 # Append the text in VALUE to the end of the definition contained in VAR. Take
12948 # advantage of any shell optimizations that allow amortized linear growth over
12949 # repeated appends, instead of the typical quadratic growth present in naive
12951 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12952 eval 'as_fn_append ()
12963 # as_fn_arith ARG...
12964 # ------------------
12965 # Perform arithmetic evaluation on the ARGs, and store the result in the
12966 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12967 # must be portable across $(()) and expr.
12968 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12969 eval 'as_fn_arith ()
12976 as_val=`expr "$@" || test $? -eq 1`
12981 if expr a : '\(a\)' >/dev/null 2>&1 &&
12982 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12988 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12989 as_basename=basename
12994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13000 as_me=`$as_basename -- "$0" ||
13001 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13002 X"$0" : 'X\(//\)$' \| \
13003 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13005 sed '/^.*\/\([^/][^/]*\)\/*$/{
13019 # Avoid depending upon Character Ranges.
13020 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13021 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13022 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13023 as_cr_digits='0123456789'
13024 as_cr_alnum=$as_cr_Letters$as_cr_digits
13026 ECHO_C= ECHO_N= ECHO_T=
13027 case `echo -n x` in #(((((
13029 case `echo 'xy\c'` in
13030 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13032 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13039 rm -f conf$$ conf$$.exe conf$$.file
13040 if test -d conf$$.dir; then
13041 rm -f conf$$.dir/conf$$.file
13044 mkdir conf$$.dir 2>/dev/null
13046 if (echo >conf$$.file) 2>/dev/null; then
13047 if ln -s conf$$.file conf$$ 2>/dev/null; then
13049 # ... but there are two gotchas:
13050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13052 # In both cases, we have to default to `cp -pR'.
13053 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13055 elif ln conf$$.file conf$$ 2>/dev/null; then
13063 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13064 rmdir conf$$.dir 2>/dev/null
13069 # Create "$as_dir" as a directory, including parents if necessary.
13074 -*) as_dir=./$as_dir;;
13076 test -d "$as_dir" || eval $as_mkdir_p || {
13080 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13081 *) as_qdir=$as_dir;;
13083 as_dirs="'$as_qdir' $as_dirs"
13084 as_dir=`$as_dirname -- "$as_dir" ||
13085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13086 X"$as_dir" : 'X\(//\)[^/]' \| \
13087 X"$as_dir" : 'X\(//\)$' \| \
13088 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13089 $as_echo X"$as_dir" |
13090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13094 /^X\(\/\/\)[^/].*/{
13107 test -d "$as_dir" && break
13109 test -z "$as_dirs" || eval "mkdir $as_dirs"
13110 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13114 if mkdir -p . 2>/dev/null; then
13115 as_mkdir_p='mkdir -p "$as_dir"'
13117 test -d ./-p && rmdir ./-p
13122 # as_fn_executable_p FILE
13123 # -----------------------
13124 # Test if FILE is an executable regular file.
13125 as_fn_executable_p ()
13127 test -f "$1" && test -x "$1"
13128 } # as_fn_executable_p
13129 as_test_x='test -x'
13130 as_executable_p=as_fn_executable_p
13132 # Sed expression to map a string onto a valid CPP name.
13133 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13135 # Sed expression to map a string onto a valid variable name.
13136 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13140 ## ----------------------------------- ##
13141 ## Main body of $CONFIG_STATUS script. ##
13142 ## ----------------------------------- ##
13144 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147 # Save the log message, to keep $0 and so on meaningful, and to
13148 # report actual input values of CONFIG_FILES etc. instead of their
13149 # values after options handling.
13151 This file was extended by libzip $as_me 1.0.1, which was
13152 generated by GNU Autoconf 2.69. Invocation command line was
13154 CONFIG_FILES = $CONFIG_FILES
13155 CONFIG_HEADERS = $CONFIG_HEADERS
13156 CONFIG_LINKS = $CONFIG_LINKS
13157 CONFIG_COMMANDS = $CONFIG_COMMANDS
13160 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13165 case $ac_config_files in *"
13166 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13169 case $ac_config_headers in *"
13170 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 # Files that config.status was made for.
13176 config_files="$ac_config_files"
13177 config_headers="$ac_config_headers"
13178 config_commands="$ac_config_commands"
13182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13184 \`$as_me' instantiates files and other configuration actions
13185 from templates according to the current configuration. Unless the files
13186 and actions are specified as TAGs, all are instantiated by default.
13188 Usage: $0 [OPTION]... [TAG]...
13190 -h, --help print this help, then exit
13191 -V, --version print version number and configuration settings, then exit
13192 --config print configuration, then exit
13193 -q, --quiet, --silent
13194 do not print progress messages
13195 -d, --debug don't remove temporary files
13196 --recheck update $as_me by reconfiguring in the same conditions
13197 --file=FILE[:TEMPLATE]
13198 instantiate the configuration file FILE
13199 --header=FILE[:TEMPLATE]
13200 instantiate the configuration header FILE
13202 Configuration files:
13205 Configuration headers:
13208 Configuration commands:
13211 Report bugs to <libzip@nih.at>."
13214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13217 libzip config.status 1.0.1
13218 configured by $0, generated by GNU Autoconf 2.69,
13219 with options \\"\$ac_cs_config\\"
13221 Copyright (C) 2012 Free Software Foundation, Inc.
13222 This config.status script is free software; the Free Software Foundation
13223 gives unlimited permission to copy, distribute and modify it."
13230 test -n "\$AWK" || AWK=awk
13233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13234 # The default lists apply if the user does not specify any file.
13240 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13241 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13257 # Handling of the options.
13258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13261 $as_echo "$ac_cs_version"; exit ;;
13262 --config | --confi | --conf | --con | --co | --c )
13263 $as_echo "$ac_cs_config"; exit ;;
13264 --debug | --debu | --deb | --de | --d | -d )
13266 --file | --fil | --fi | --f )
13269 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13270 '') as_fn_error $? "missing file argument" ;;
13272 as_fn_append CONFIG_FILES " '$ac_optarg'"
13273 ac_need_defaults=false;;
13274 --header | --heade | --head | --hea )
13277 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13279 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13280 ac_need_defaults=false;;
13282 # Conflict between --help and --header
13283 as_fn_error $? "ambiguous option: \`$1'
13284 Try \`$0 --help' for more information.";;
13285 --help | --hel | -h )
13286 $as_echo "$ac_cs_usage"; exit ;;
13287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13288 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13291 # This is an error.
13292 -*) as_fn_error $? "unrecognized option: \`$1'
13293 Try \`$0 --help' for more information." ;;
13295 *) as_fn_append ac_config_targets " $1"
13296 ac_need_defaults=false ;;
13302 ac_configure_extra_args=
13304 if $ac_cs_silent; then
13306 ac_configure_extra_args="$ac_configure_extra_args --silent"
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 if \$ac_cs_recheck; then
13312 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13314 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13315 CONFIG_SHELL='$SHELL'
13316 export CONFIG_SHELL
13321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13325 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13326 ## Running $as_me. ##
13332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13336 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13339 # The HP-UX ksh and POSIX shell print the target directory to stdout
13340 # if CDPATH is set.
13341 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13343 sed_quote_subst='$sed_quote_subst'
13344 double_quote_subst='$double_quote_subst'
13345 delay_variable_subst='$delay_variable_subst'
13346 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13347 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13348 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13349 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13350 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13351 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13352 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13353 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13354 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13355 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13356 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13357 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13358 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13359 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13360 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13361 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13362 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13363 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13364 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13365 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13366 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13367 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13368 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13369 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13370 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13371 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13372 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13373 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13374 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13375 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13376 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13377 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13378 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13379 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13380 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13381 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13382 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13383 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13384 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13385 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13386 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13387 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13388 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13389 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13390 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13391 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13392 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13393 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13394 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13395 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13396 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13397 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13398 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13399 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13400 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13401 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13402 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"`'
13403 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13404 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13405 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13406 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13407 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13408 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13409 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13410 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13411 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13412 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13413 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13414 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13415 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13416 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13417 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13418 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13419 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13420 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13421 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13422 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13423 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13424 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13425 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13426 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13427 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13428 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13429 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13430 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13431 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13432 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13433 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13434 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13435 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13436 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13437 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13438 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13439 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13440 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13441 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13442 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13443 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13444 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13445 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13446 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13447 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13448 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13449 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13450 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13451 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13452 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13453 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13454 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13455 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13456 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13457 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13458 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13459 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13460 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13461 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13462 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13463 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13464 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13465 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13466 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13467 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13468 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13469 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13470 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13471 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13472 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13473 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13474 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13475 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13478 LTCFLAGS='$LTCFLAGS'
13479 compiler='$compiler_DEFAULT'
13481 # A function that is used when there is no print builtin or printf.
13482 func_fallback_echo ()
13484 eval 'cat <<_LTECHO_EOF
13489 # Quote evaled strings.
13504 deplibs_check_method \
13509 sharedlib_from_linklib_cmd \
13512 archiver_list_spec \
13518 lt_cv_sys_global_symbol_pipe \
13519 lt_cv_sys_global_symbol_to_cdecl \
13520 lt_cv_sys_global_symbol_to_c_name_address \
13521 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13522 nm_file_list_spec \
13523 lt_prog_compiler_no_builtin_flag \
13524 lt_prog_compiler_pic \
13525 lt_prog_compiler_wl \
13526 lt_prog_compiler_static \
13527 lt_cv_prog_compiler_c_o \
13536 export_dynamic_flag_spec \
13537 whole_archive_flag_spec \
13538 compiler_needs_object \
13540 allow_undefined_flag \
13541 no_undefined_flag \
13542 hardcode_libdir_flag_spec \
13543 hardcode_libdir_separator \
13547 variables_saved_for_relink \
13549 library_names_spec \
13551 install_override_mode \
13555 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13556 *[\\\\\\\`\\"\\\$]*)
13557 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13560 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13565 # Double-quote double-evaled strings.
13566 for var in reload_cmds \
13567 old_postinstall_cmds \
13568 old_postuninstall_cmds \
13570 extract_expsyms_cmds \
13571 old_archive_from_new_cmds \
13572 old_archive_from_expsyms_cmds \
13574 archive_expsym_cmds \
13576 module_expsym_cmds \
13577 export_symbols_cmds \
13581 postuninstall_cmds \
13583 sys_lib_search_path_spec \
13584 sys_lib_dlsearch_path_spec; do
13585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13586 *[\\\\\\\`\\"\\\$]*)
13587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13595 ac_aux_dir='$ac_aux_dir'
13596 xsi_shell='$xsi_shell'
13597 lt_shell_append='$lt_shell_append'
13599 # See if we are running on zsh, and set the options which allow our
13600 # commands through without removal of \ escapes INIT.
13601 if test -n "\${ZSH_VERSION+set}" ; then
13602 setopt NO_GLOB_SUBST
13608 TIMESTAMP='$TIMESTAMP'
13617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13619 # Handling of arguments.
13620 for ac_config_target in $ac_config_targets
13622 case $ac_config_target in
13623 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13624 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13625 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13626 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13627 "libzip.pc") CONFIG_FILES="$CONFIG_FILES libzip.pc" ;;
13628 "libzip-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libzip-uninstalled.pc" ;;
13629 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13630 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13631 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13632 "regress/Makefile") CONFIG_FILES="$CONFIG_FILES regress/Makefile" ;;
13633 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13635 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13640 # If the user did not use the arguments to specify the items to instantiate,
13641 # then the envvar interface is used. Set only those that are not.
13642 # We use the long form for the default assignment because of an extremely
13643 # bizarre bug on SunOS 4.1.3.
13644 if $ac_need_defaults; then
13645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13650 # Have a temporary directory for convenience. Make it in the build tree
13651 # simply because there is no reason against having it here, and in addition,
13652 # creating and moving files from /tmp can sometimes cause problems.
13653 # Hook for its removal unless debugging.
13654 # Note that there is a small window in which the directory will not be cleaned:
13655 # after its creation but before its name has been assigned to `$tmp'.
13659 trap 'exit_status=$?
13660 : "${ac_tmp:=$tmp}"
13661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13663 trap 'as_fn_exit 1' 1 2 13 15
13665 # Create a (secure) tmp directory for tmp files.
13668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13672 tmp=./conf$$-$RANDOM
13673 (umask 077 && mkdir "$tmp")
13674 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13677 # Set up the scripts for CONFIG_FILES section.
13678 # No need to generate them if there are no CONFIG_FILES.
13679 # This happens for instance with `./config.status config.h'.
13680 if test -n "$CONFIG_FILES"; then
13683 ac_cr=`echo X | tr X '\015'`
13684 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13685 # But we know of no other shell where ac_cr would be empty at this
13686 # point, so we can use a bashism as a fallback.
13687 if test "x$ac_cr" = x; then
13688 eval ac_cr=\$\'\\r\'
13690 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13691 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13694 ac_cs_awk_cr=$ac_cr
13697 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13702 echo "cat >conf$$subs.awk <<_ACEOF" &&
13703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13705 } >conf$$subs.sh ||
13706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13707 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13709 for ac_last_try in false false false false false :; do
13710 . ./conf$$subs.sh ||
13711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13714 if test $ac_delim_n = $ac_delim_num; then
13716 elif $ac_last_try; then
13717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13722 rm -f conf$$subs.sh
13724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13725 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13729 s/^/S["/; s/!.*/"]=/
13739 s/\(.\{148\}\)..*/\1/
13741 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13753 s/\(.\{148\}\)..*/\1/
13755 s/["\\]/\\&/g; s/^/"/; s/$/"/
13759 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13764 ' <conf$$subs.awk | sed '
13769 ' >>$CONFIG_STATUS || ac_write_fail=1
13770 rm -f conf$$subs.awk
13771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13773 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13774 for (key in S) S_is_set[key] = 1
13780 nfields = split(line, field, "@")
13782 len = length(field[1])
13783 for (i = 2; i < nfields; i++) {
13785 keylen = length(key)
13786 if (S_is_set[key]) {
13788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13789 len += length(value) + length(field[++i])
13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13801 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13805 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13809 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13810 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13811 # trailing colons and then remove the whole line if VPATH becomes empty
13812 # (actually we leave an empty line to preserve line numbers).
13813 if test "x$srcdir" = x.; then
13814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13833 fi # test -n "$CONFIG_FILES"
13835 # Set up the scripts for CONFIG_HEADERS section.
13836 # No need to generate them if there are no CONFIG_HEADERS.
13837 # This happens for instance with `./config.status Makefile'.
13838 if test -n "$CONFIG_HEADERS"; then
13839 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13843 # Transform confdefs.h into an awk script `defines.awk', embedded as
13844 # here-document in config.status, that substitutes the proper values into
13845 # config.h.in to produce config.h.
13847 # Create a delimiter string that does not exist in confdefs.h, to ease
13848 # handling of long lines.
13850 for ac_last_try in false false :; do
13851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13852 if test -z "$ac_tt"; then
13854 elif $ac_last_try; then
13855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13861 # For the awk script, D is an array of macro values keyed by name,
13862 # likewise P contains macro parameters if any. Preserve backslash
13863 # newline sequences.
13865 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13867 s/.\{148\}/&'"$ac_delim"'/g
13870 s/^[ ]*#[ ]*define[ ][ ]*/ /
13877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13883 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13884 D["\1"]=" \3\\\\\\n"\\/p
13886 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13891 s/.\{148\}/&'"$ac_delim"'/g
13896 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13899 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13901 ' <confdefs.h | sed '
13902 s/'"$ac_delim"'/"\\\
13903 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13906 for (key in D) D_is_set[key] = 1
13909 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13911 split(line, arg, " ")
13912 if (arg[1] == "#") {
13916 defundef = substr(arg[1], 2)
13919 split(mac1, mac2, "(") #)
13921 prefix = substr(line, 1, index(line, defundef) - 1)
13922 if (D_is_set[macro]) {
13923 # Preserve the white space surrounding the "#".
13924 print prefix "define", macro P[macro] D[macro]
13927 # Replace #undef with comments. This is necessary, for example,
13928 # in the case of _POSIX_SOURCE, which is predefined and required
13929 # on some systems where configure will not decide to define it.
13930 if (defundef == "undef") {
13931 print "/*", prefix defundef, macro, "*/"
13939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13941 fi # test -n "$CONFIG_HEADERS"
13944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13949 :[FHLC]) ac_mode=$ac_tag; continue;;
13951 case $ac_mode$ac_tag in
13953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13954 :[FH]-) ac_tag=-:-;;
13955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13972 -) ac_f="$ac_tmp/stdin";;
13973 *) # Look for the file first in the build tree, then in the source tree
13974 # (if the path is not absolute). The absolute path cannot be DOS-style,
13975 # because $ac_f cannot contain `:'.
13979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13984 as_fn_append ac_file_inputs " '$ac_f'"
13987 # Let's still pretend it is `configure' which instantiates (i.e., don't
13988 # use $as_me), people would be surprised to read:
13989 # /* config.h. Generated by config.status. */
13990 configure_input='Generated from '`
13991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13993 if test x"$ac_file" != x-; then
13994 configure_input="$ac_file. $configure_input"
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13996 $as_echo "$as_me: creating $ac_file" >&6;}
13998 # Neutralize special characters interpreted by sed in replacement strings.
13999 case $configure_input in #(
14000 *\&* | *\|* | *\\* )
14001 ac_sed_conf_input=`$as_echo "$configure_input" |
14002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14003 *) ac_sed_conf_input=$configure_input;;
14007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14013 ac_dir=`$as_dirname -- "$ac_file" ||
14014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14015 X"$ac_file" : 'X\(//\)[^/]' \| \
14016 X"$ac_file" : 'X\(//\)$' \| \
14017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14018 $as_echo X"$ac_file" |
14019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14023 /^X\(\/\/\)[^/].*/{
14036 as_dir="$ac_dir"; as_fn_mkdir_p
14040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14043 # A ".." for each directory in $ac_dir_suffix.
14044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14045 case $ac_top_builddir_sub in
14046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14050 ac_abs_top_builddir=$ac_pwd
14051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14052 # for backward compatibility:
14053 ac_top_builddir=$ac_top_build_prefix
14056 .) # We are building in place.
14058 ac_top_srcdir=$ac_top_builddir_sub
14059 ac_abs_top_srcdir=$ac_pwd ;;
14060 [\\/]* | ?:[\\/]* ) # Absolute name.
14061 ac_srcdir=$srcdir$ac_dir_suffix;
14062 ac_top_srcdir=$srcdir
14063 ac_abs_top_srcdir=$srcdir ;;
14064 *) # Relative name.
14065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14066 ac_top_srcdir=$ac_top_build_prefix$srcdir
14067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14082 ac_MKDIR_P=$MKDIR_P
14084 [\\/$]* | ?:[\\/]* ) ;;
14085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14090 # If the template does not know about datarootdir, expand it.
14091 # FIXME: This hack should be removed a few years after 2.60.
14092 ac_datarootdir_hack=; ac_datarootdir_seen=
14103 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14104 *datarootdir*) ac_datarootdir_seen=yes;;
14105 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14107 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14110 ac_datarootdir_hack='
14111 s&@datadir@&$datadir&g
14112 s&@docdir@&$docdir&g
14113 s&@infodir@&$infodir&g
14114 s&@localedir@&$localedir&g
14115 s&@mandir@&$mandir&g
14116 s&\\\${datarootdir}&$datarootdir&g' ;;
14120 # Neutralize VPATH when `$srcdir' = `.'.
14121 # Shell code in configure.ac might set extrasub.
14122 # FIXME: do we really want to maintain this feature?
14123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14124 ac_sed_extra="$ac_vpsub
14127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14130 s|@configure_input@|$ac_sed_conf_input|;t t
14131 s&@top_builddir@&$ac_top_builddir_sub&;t t
14132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14133 s&@srcdir@&$ac_srcdir&;t t
14134 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14135 s&@top_srcdir@&$ac_top_srcdir&;t t
14136 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14137 s&@builddir@&$ac_builddir&;t t
14138 s&@abs_builddir@&$ac_abs_builddir&;t t
14139 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14140 s&@INSTALL@&$ac_INSTALL&;t t
14141 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14142 $ac_datarootdir_hack
14144 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14152 which seems to be undefined. Please make sure it is defined" >&5
14153 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14154 which seems to be undefined. Please make sure it is defined" >&2;}
14156 rm -f "$ac_tmp/stdin"
14158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14167 if test x"$ac_file" != x-; then
14169 $as_echo "/* $configure_input */" \
14170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14171 } >"$ac_tmp/config.h" \
14172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14173 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14175 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14178 mv "$ac_tmp/config.h" "$ac_file" \
14179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14182 $as_echo "/* $configure_input */" \
14183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14184 || as_fn_error $? "could not create -" "$LINENO" 5
14186 # Compute "$ac_file"'s index in $config_headers.
14189 for _am_header in $config_headers :; do
14190 case $_am_header in
14191 $_am_arg | $_am_arg:* )
14194 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14197 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14198 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14199 X"$_am_arg" : 'X\(//\)[^/]' \| \
14200 X"$_am_arg" : 'X\(//\)$' \| \
14201 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14202 $as_echo X"$_am_arg" |
14203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14207 /^X\(\/\/\)[^/].*/{
14219 s/.*/./; q'`/stamp-h$_am_stamp_count
14222 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14223 $as_echo "$as_me: executing $ac_file commands" >&6;}
14228 case $ac_file$ac_mode in
14229 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14230 # Older Autoconf quotes --file arguments for eval, but not when files
14231 # are listed without --file. Let's play safe and only enable the eval
14232 # if we detect the quoting.
14233 case $CONFIG_FILES in
14234 *\'*) eval set x "$CONFIG_FILES" ;;
14235 *) set x $CONFIG_FILES ;;
14240 # Strip MF so we end up with the name of the file.
14241 mf=`echo "$mf" | sed -e 's/:.*$//'`
14242 # Check whether this is an Automake generated Makefile or not.
14243 # We used to match only the files named 'Makefile.in', but
14244 # some people rename them; so instead we look at the file content.
14245 # Grep'ing the first line is not enough: some people post-process
14246 # each Makefile.in and add a new line on top of each file to say so.
14247 # Grep'ing the whole file is not good either: AIX grep has a line
14248 # limit of 2048, but all sed's we know have understand at least 4000.
14249 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14250 dirpart=`$as_dirname -- "$mf" ||
14251 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252 X"$mf" : 'X\(//\)[^/]' \| \
14253 X"$mf" : 'X\(//\)$' \| \
14254 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14260 /^X\(\/\/\)[^/].*/{
14276 # Extract the definition of DEPDIR, am__include, and am__quote
14277 # from the Makefile without running 'make'.
14278 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14279 test -z "$DEPDIR" && continue
14280 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14281 test -z "$am__include" && continue
14282 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14283 # Find all dependency output files, they are included files with
14284 # $(DEPDIR) in their names. We invoke sed twice because it is the
14285 # simplest approach to changing $(DEPDIR) to its actual value in the
14287 for file in `sed -n "
14288 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14289 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14290 # Make sure the directory exists.
14291 test -f "$dirpart/$file" && continue
14292 fdir=`$as_dirname -- "$file" ||
14293 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14294 X"$file" : 'X\(//\)[^/]' \| \
14295 X"$file" : 'X\(//\)$' \| \
14296 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14297 $as_echo X"$file" |
14298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14302 /^X\(\/\/\)[^/].*/{
14315 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14316 # echo "creating $dirpart/$file"
14317 echo '# dummy' > "$dirpart/$file"
14324 # See if we are running on zsh, and set the options which allow our
14325 # commands through without removal of \ escapes.
14326 if test -n "${ZSH_VERSION+set}" ; then
14327 setopt NO_GLOB_SUBST
14330 cfgfile="${ofile}T"
14331 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14334 cat <<_LT_EOF >> "$cfgfile"
14337 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14338 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14342 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14343 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14345 # Written by Gordon Matzigkeit, 1996
14347 # This file is part of GNU Libtool.
14349 # GNU Libtool is free software; you can redistribute it and/or
14350 # modify it under the terms of the GNU General Public License as
14351 # published by the Free Software Foundation; either version 2 of
14352 # the License, or (at your option) any later version.
14354 # As a special exception to the GNU General Public License,
14355 # if you distribute this file as part of a program or library that
14356 # is built using GNU Libtool, you may include this file under the
14357 # same distribution terms that you use for the rest of that program.
14359 # GNU Libtool is distributed in the hope that it will be useful,
14360 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14361 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14362 # GNU General Public License for more details.
14364 # You should have received a copy of the GNU General Public License
14365 # along with GNU Libtool; see the file COPYING. If not, a copy
14366 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14367 # obtained by writing to the Free Software Foundation, Inc.,
14368 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14371 # The names of the tagged configurations supported by this script.
14374 # ### BEGIN LIBTOOL CONFIG
14376 # Which release of libtool.m4 was used?
14377 macro_version=$macro_version
14378 macro_revision=$macro_revision
14380 # Whether or not to build shared libraries.
14381 build_libtool_libs=$enable_shared
14383 # Whether or not to build static libraries.
14384 build_old_libs=$enable_static
14386 # What type of objects to build.
14389 # Whether or not to optimize for fast installation.
14390 fast_install=$enable_fast_install
14392 # Shell to use when invoking shell scripts.
14395 # An echo program that protects backslashes.
14398 # The PATH separator for the build system.
14399 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14402 host_alias=$host_alias
14406 # The build system.
14407 build_alias=$build_alias
14411 # A sed program that does not truncate output.
14414 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14415 Xsed="\$SED -e 1s/^X//"
14417 # A grep program that handles long lines.
14423 # A literal string matcher.
14426 # A BSD- or MS-compatible name lister.
14429 # Whether we need soft or hard links.
14432 # What is the maximum length of a command?
14433 max_cmd_len=$max_cmd_len
14435 # Object file suffix (normally "o").
14438 # Executable file suffix (normally "").
14441 # whether the shell understands "unset".
14444 # turn spaces into newlines.
14447 # turn newlines into spaces.
14450 # convert \$build file names to \$host format.
14451 to_host_file_cmd=$lt_cv_to_host_file_cmd
14453 # convert \$build files to toolchain format.
14454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14456 # An object symbol dumper.
14457 OBJDUMP=$lt_OBJDUMP
14459 # Method to check whether dependent libraries are shared objects.
14460 deplibs_check_method=$lt_deplibs_check_method
14462 # Command to use when deplibs_check_method = "file_magic".
14463 file_magic_cmd=$lt_file_magic_cmd
14465 # How to find potential files when deplibs_check_method = "file_magic".
14466 file_magic_glob=$lt_file_magic_glob
14468 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14469 want_nocaseglob=$lt_want_nocaseglob
14471 # DLL creation program.
14472 DLLTOOL=$lt_DLLTOOL
14474 # Command to associate shared and link libraries.
14475 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14480 # Flags to create an archive.
14481 AR_FLAGS=$lt_AR_FLAGS
14483 # How to feed a file listing to the archiver.
14484 archiver_list_spec=$lt_archiver_list_spec
14486 # A symbol stripping program.
14489 # Commands used to install an old-style archive.
14491 old_postinstall_cmds=$lt_old_postinstall_cmds
14492 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14494 # Whether to use a lock for old archive extraction.
14495 lock_old_archive_extraction=$lock_old_archive_extraction
14500 # LTCC compiler flags.
14501 LTCFLAGS=$lt_CFLAGS
14503 # Take the output of nm and produce a listing of raw symbols and C names.
14504 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14506 # Transform the output of nm in a proper C declaration.
14507 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14509 # Transform the output of nm in a C name address pair.
14510 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14512 # Transform the output of nm in a C name address pair when lib prefix is needed.
14513 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14515 # Specify filename containing input files for \$NM.
14516 nm_file_list_spec=$lt_nm_file_list_spec
14518 # The root where to search for dependent libraries,and in which our libraries should be installed.
14519 lt_sysroot=$lt_sysroot
14521 # The name of the directory that contains temporary libtool files.
14524 # Used to examine libraries when file_magic_cmd begins with "file".
14525 MAGIC_CMD=$MAGIC_CMD
14527 # Must we lock files when doing compilation?
14528 need_locks=$lt_need_locks
14531 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14533 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14534 DSYMUTIL=$lt_DSYMUTIL
14536 # Tool to change global to local symbols on Mac OS X.
14539 # Tool to manipulate fat objects and archives on Mac OS X.
14542 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14545 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14546 OTOOL64=$lt_OTOOL64
14548 # Old archive suffix (normally "a").
14551 # Shared library suffix (normally ".so").
14552 shrext_cmds=$lt_shrext_cmds
14554 # The commands to extract the exported symbol list from a shared archive.
14555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14557 # Variables whose values should be saved in libtool wrapper scripts and
14558 # restored at link time.
14559 variables_saved_for_relink=$lt_variables_saved_for_relink
14561 # Do we need the "lib" prefix for modules?
14562 need_lib_prefix=$need_lib_prefix
14564 # Do we need a version for libraries?
14565 need_version=$need_version
14567 # Library versioning type.
14568 version_type=$version_type
14570 # Shared library runtime path variable.
14571 runpath_var=$runpath_var
14573 # Shared library path variable.
14574 shlibpath_var=$shlibpath_var
14576 # Is shlibpath searched before the hard-coded library search path?
14577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14579 # Format of library name prefix.
14580 libname_spec=$lt_libname_spec
14582 # List of archive names. First name is the real one, the rest are links.
14583 # The last name is the one that the linker finds with -lNAME
14584 library_names_spec=$lt_library_names_spec
14586 # The coded name of the library, if different from the real name.
14587 soname_spec=$lt_soname_spec
14589 # Permission mode override for installation of shared libraries.
14590 install_override_mode=$lt_install_override_mode
14592 # Command to use after installation of a shared archive.
14593 postinstall_cmds=$lt_postinstall_cmds
14595 # Command to use after uninstallation of a shared archive.
14596 postuninstall_cmds=$lt_postuninstall_cmds
14598 # Commands used to finish a libtool library installation in a directory.
14599 finish_cmds=$lt_finish_cmds
14601 # As "finish_cmds", except a single script fragment to be evaled but
14603 finish_eval=$lt_finish_eval
14605 # Whether we should hardcode library paths into libraries.
14606 hardcode_into_libs=$hardcode_into_libs
14608 # Compile-time system search path for libraries.
14609 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14611 # Run-time system search path for libraries.
14612 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14614 # Whether dlopen is supported.
14615 dlopen_support=$enable_dlopen
14617 # Whether dlopen of programs is supported.
14618 dlopen_self=$enable_dlopen_self
14620 # Whether dlopen of statically linked programs is supported.
14621 dlopen_self_static=$enable_dlopen_self_static
14623 # Commands to strip libraries.
14624 old_striplib=$lt_old_striplib
14625 striplib=$lt_striplib
14628 # The linker used to build libraries.
14631 # How to create reloadable object files.
14632 reload_flag=$lt_reload_flag
14633 reload_cmds=$lt_reload_cmds
14635 # Commands used to build an old-style archive.
14636 old_archive_cmds=$lt_old_archive_cmds
14638 # A language specific compiler.
14641 # Is the compiler the GNU compiler?
14644 # Compiler flag to turn off builtin functions.
14645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14647 # Additional compiler flags for building library objects.
14648 pic_flag=$lt_lt_prog_compiler_pic
14650 # How to pass a linker flag through the compiler.
14651 wl=$lt_lt_prog_compiler_wl
14653 # Compiler flag to prevent dynamic linking.
14654 link_static_flag=$lt_lt_prog_compiler_static
14656 # Does compiler simultaneously support -c and -o options?
14657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14659 # Whether or not to add -lc for building shared libraries.
14660 build_libtool_need_lc=$archive_cmds_need_lc
14662 # Whether or not to disallow shared libs when runtime libs are static.
14663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14665 # Compiler flag to allow reflexive dlopens.
14666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14668 # Compiler flag to generate shared objects directly from archives.
14669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14671 # Whether the compiler copes with passing no objects directly.
14672 compiler_needs_object=$lt_compiler_needs_object
14674 # Create an old-style archive from a shared archive.
14675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14677 # Create a temporary old-style archive to link instead of a shared archive.
14678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14680 # Commands used to build a shared archive.
14681 archive_cmds=$lt_archive_cmds
14682 archive_expsym_cmds=$lt_archive_expsym_cmds
14684 # Commands used to build a loadable module if different from building
14685 # a shared archive.
14686 module_cmds=$lt_module_cmds
14687 module_expsym_cmds=$lt_module_expsym_cmds
14689 # Whether we are building with GNU ld or not.
14690 with_gnu_ld=$lt_with_gnu_ld
14692 # Flag that allows shared libraries with undefined symbols to be built.
14693 allow_undefined_flag=$lt_allow_undefined_flag
14695 # Flag that enforces no undefined symbols.
14696 no_undefined_flag=$lt_no_undefined_flag
14698 # Flag to hardcode \$libdir into a binary during linking.
14699 # This must work even if \$libdir does not exist
14700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14702 # Whether we need a single "-rpath" flag with a separated argument.
14703 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14706 # DIR into the resulting binary.
14707 hardcode_direct=$hardcode_direct
14709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14710 # DIR into the resulting binary and the resulting library dependency is
14711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14712 # library is relocated.
14713 hardcode_direct_absolute=$hardcode_direct_absolute
14715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14716 # into the resulting binary.
14717 hardcode_minus_L=$hardcode_minus_L
14719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14720 # into the resulting binary.
14721 hardcode_shlibpath_var=$hardcode_shlibpath_var
14723 # Set to "yes" if building a shared library automatically hardcodes DIR
14724 # into the library and all subsequent libraries and executables linked
14726 hardcode_automatic=$hardcode_automatic
14728 # Set to yes if linker adds runtime paths of dependent libraries
14729 # to runtime path list.
14730 inherit_rpath=$inherit_rpath
14732 # Whether libtool must link a program against all its dependency libraries.
14733 link_all_deplibs=$link_all_deplibs
14735 # Set to "yes" if exported symbols are required.
14736 always_export_symbols=$always_export_symbols
14738 # The commands to list exported symbols.
14739 export_symbols_cmds=$lt_export_symbols_cmds
14741 # Symbols that should not be listed in the preloaded symbols.
14742 exclude_expsyms=$lt_exclude_expsyms
14744 # Symbols that must always be exported.
14745 include_expsyms=$lt_include_expsyms
14747 # Commands necessary for linking programs (against libraries) with templates.
14748 prelink_cmds=$lt_prelink_cmds
14750 # Commands necessary for finishing linking programs.
14751 postlink_cmds=$lt_postlink_cmds
14753 # Specify filename containing input files.
14754 file_list_spec=$lt_file_list_spec
14756 # How to hardcode a shared library path into an executable.
14757 hardcode_action=$hardcode_action
14759 # ### END LIBTOOL CONFIG
14765 cat <<\_LT_EOF >> "$cfgfile"
14766 # AIX sometimes has problems with the GCC collect2 program. For some
14767 # reason, if we set the COLLECT_NAMES environment variable, the problems
14768 # vanish in a puff of smoke.
14769 if test "X${COLLECT_NAMES+set}" != Xset; then
14771 export COLLECT_NAMES
14778 ltmain="$ac_aux_dir/ltmain.sh"
14781 # We use sed instead of cat because bash on DJGPP gets confused if
14782 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14783 # text mode, it properly converts lines to CR/LF. This bash problem
14784 # is reportedly fixed, but why not run on old versions too?
14785 sed '$q' "$ltmain" >> "$cfgfile" \
14786 || (rm -f "$cfgfile"; exit 1)
14788 if test x"$xsi_shell" = xyes; then
14789 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14793 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14794 \ * ) func_dirname_result="${3}" ;;\
14796 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14797 && mv -f "$cfgfile.tmp" "$cfgfile" \
14798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14799 test 0 -eq $? || _lt_function_replace_fail=:
14802 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14805 \ func_basename_result="${1##*/}"\
14806 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14807 && mv -f "$cfgfile.tmp" "$cfgfile" \
14808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14809 test 0 -eq $? || _lt_function_replace_fail=:
14812 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14813 func_dirname_and_basename ()\
14816 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14817 \ * ) func_dirname_result="${3}" ;;\
14819 \ func_basename_result="${1##*/}"\
14820 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14821 && mv -f "$cfgfile.tmp" "$cfgfile" \
14822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14823 test 0 -eq $? || _lt_function_replace_fail=:
14826 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14829 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14830 \ # positional parameters, so assign one to ordinary parameter first.\
14831 \ func_stripname_result=${3}\
14832 \ func_stripname_result=${func_stripname_result#"${1}"}\
14833 \ func_stripname_result=${func_stripname_result%"${2}"}\
14834 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14835 && mv -f "$cfgfile.tmp" "$cfgfile" \
14836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14837 test 0 -eq $? || _lt_function_replace_fail=:
14840 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14841 func_split_long_opt ()\
14843 \ func_split_long_opt_name=${1%%=*}\
14844 \ func_split_long_opt_arg=${1#*=}\
14845 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14846 && mv -f "$cfgfile.tmp" "$cfgfile" \
14847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14848 test 0 -eq $? || _lt_function_replace_fail=:
14851 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14852 func_split_short_opt ()\
14854 \ func_split_short_opt_arg=${1#??}\
14855 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14856 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14857 && mv -f "$cfgfile.tmp" "$cfgfile" \
14858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14859 test 0 -eq $? || _lt_function_replace_fail=:
14862 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14866 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14867 \ *) func_lo2o_result=${1} ;;\
14869 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14870 && mv -f "$cfgfile.tmp" "$cfgfile" \
14871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14872 test 0 -eq $? || _lt_function_replace_fail=:
14875 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14878 func_xform_result=${1%.*}.lo\
14879 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14880 && mv -f "$cfgfile.tmp" "$cfgfile" \
14881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14882 test 0 -eq $? || _lt_function_replace_fail=:
14885 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14888 func_arith_result=$(( $* ))\
14889 } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
14898 func_len_result=${#1}\
14899 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14900 && mv -f "$cfgfile.tmp" "$cfgfile" \
14901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902 test 0 -eq $? || _lt_function_replace_fail=:
14906 if test x"$lt_shell_append" = xyes; then
14907 sed -e '/^func_append ()$/,/^} # func_append /c\
14910 eval "${1}+=\\${2}"\
14911 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14912 && mv -f "$cfgfile.tmp" "$cfgfile" \
14913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14914 test 0 -eq $? || _lt_function_replace_fail=:
14917 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14918 func_append_quoted ()\
14920 \ func_quote_for_eval "${2}"\
14921 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14922 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14923 && mv -f "$cfgfile.tmp" "$cfgfile" \
14924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14925 test 0 -eq $? || _lt_function_replace_fail=:
14928 # Save a `func_append' function call where possible by direct use of '+='
14929 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14930 && mv -f "$cfgfile.tmp" "$cfgfile" \
14931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14932 test 0 -eq $? || _lt_function_replace_fail=:
14934 # Save a `func_append' function call even when '+=' is not available
14935 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14936 && mv -f "$cfgfile.tmp" "$cfgfile" \
14937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14938 test 0 -eq $? || _lt_function_replace_fail=:
14941 if test x"$_lt_function_replace_fail" = x":"; then
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14943 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14947 mv -f "$cfgfile" "$ofile" ||
14948 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14959 ac_clean_files=$ac_clean_files_save
14961 test $ac_write_fail = 0 ||
14962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14965 # configure is writing to config.log, and then calls config.status.
14966 # config.status does its own redirection, appending to config.log.
14967 # Unfortunately, on DOS this fails, as config.log is still kept open
14968 # by configure, so config.status won't be able to write to it; its
14969 # output is simply discarded. So we exec the FD to /dev/null,
14970 # effectively closing config.log, so it can be properly (re)opened and
14971 # appended to by config.status. When coming back to configure, we
14972 # need to make the FD available again.
14973 if test "$no_create" != yes; then
14975 ac_config_status_args=
14976 test "$silent" = yes &&
14977 ac_config_status_args="$ac_config_status_args --quiet"
14979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14982 # would make configure fail if this is the last instruction.
14983 $ac_cs_success || as_fn_exit 1
14985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}