2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libksba 1.3.4.
5 # Report bugs to <http://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libksba'
592 PACKAGE_TARNAME='libksba'
593 PACKAGE_VERSION='1.3.4'
594 PACKAGE_STRING='libksba 1.3.4'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
598 ac_unique_file="src/ksba.h"
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
642 CROSS_COMPILING_FALSE
645 KSBA_CONFIG_API_VERSION
657 HAVE_LD_VERSION_SCRIPT_FALSE
658 HAVE_LD_VERSION_SCRIPT_TRUE
659 HAVE_W32CE_SYSTEM_FALSE
660 HAVE_W32CE_SYSTEM_TRUE
661 HAVE_W32_SYSTEM_FALSE
670 MAINTAINER_MODE_FALSE
733 INSTALL_STRIP_PROGRAM
775 program_transform_name
788 enable_option_checking
790 enable_dependency_tracking
798 enable_maintainer_mode
800 enable_ld_version_script
801 with_libgpg_error_prefix
802 with_gpg_error_prefix
803 enable_valgrind_tests
804 enable_build_timestamp
806 ac_precious_vars='build_alias
820 # Initialize some variables set by options.
822 ac_init_version=false
823 ac_unrecognized_opts=
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=no ;;
1186 # Obsolete; use --with-x.
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1324 ac_srcdir_defaulted=no
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 # Report the --help message.
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1358 \`configure' configures libksba 1.3.4 to adapt to many kinds of systems.
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1365 Defaults for the options are specified in brackets.
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1389 For better control, use the options below.
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/libksba]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of libksba 1.3.4:";;
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-silent-rules less verbose build output (undo: "make V=1")
1437 --disable-silent-rules verbose build output (undo: "make V=0")
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --enable-static[=PKGS] build static libraries [default=no]
1443 --enable-shared[=PKGS] build shared libraries [default=yes]
1444 --enable-fast-install[=PKGS]
1445 optimize for fast installation [default=yes]
1446 --disable-libtool-lock avoid locking (might break parallel builds)
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --disable-optimization disable compiler optimization
1451 --enable-ld-version-script
1452 enable/disable use of linker version script.
1453 (default is system dependent)
1454 --enable-valgrind-tests run self tests under valgrind
1455 --enable-build-timestamp
1456 set an explicit build timestamp for reproducibility.
1457 (default is the current time in ISO-8601 format)
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-libgpg-error-prefix=PFX
1468 prefix where GPG Error is installed (optional)
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1480 YACC The `Yet Another Compiler Compiler' implementation to use.
1481 Defaults to the first program found out of: `bison -y', `byacc',
1483 YFLAGS The list of arguments that will be passed by default to $YACC.
1484 This script will default YFLAGS to the empty string to avoid a
1485 default value of `-d' given by some make applications.
1487 build system C compiler
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1492 Report bugs to <http://bugs.gnupg.org>.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 libksba configure 1.3.4
1556 generated by GNU Autoconf 2.69
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_compile
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1649 ac_fn_c_check_header_mongrel ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1673 ac_header_compiler=no
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1689 ac_header_preproc=no
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ( $as_echo "## ------------------------------------ ##
1715 ## Report this to http://bugs.gnupg.org ##
1716 ## ------------------------------------ ##"
1717 ) | sed "s/^/$as_me: WARNING: /" >&2
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1725 eval "$3=\$ac_header_compiler"
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_mongrel
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=$ac_status
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_header_compile
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1877 # include <limits.h>
1879 # include <assert.h>
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1906 if ac_fn_c_try_link "$LINENO"; then :
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_func
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1926 ac_fn_c_compute_int ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1939 return test_array [0];
1945 if ac_fn_c_try_compile "$LINENO"; then :
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956 return test_array [0];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=$ac_mid; break
1965 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1981 static int test_array [1 - 2 * !(($2) < 0)];
1983 return test_array [0];
1989 if ac_fn_c_try_compile "$LINENO"; then :
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2000 return test_array [0];
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035 return test_array [0];
2041 if ac_fn_c_try_compile "$LINENO"; then :
2044 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2064 FILE *f = fopen ("conftest.val", "w");
2069 long int i = longval ();
2072 fprintf (f, "%ld", i);
2076 unsigned long int i = ulongval ();
2079 fprintf (f, "%lu", i);
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2089 if ac_fn_c_try_run "$LINENO"; then :
2090 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095 conftest.$ac_objext conftest.beam conftest.$ac_ext
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_compute_int
2104 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105 # -------------------------------------------
2106 # Tests whether TYPE exists after having included INCLUDES, setting cache
2107 # variable VAR accordingly.
2108 ac_fn_c_check_type ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 } # ac_fn_c_check_type
2157 cat >config.log <<_ACEOF
2158 This file contains any messages produced by compilers while
2159 running configure, to aid debugging if configure makes a mistake.
2161 It was created by libksba $as_me 1.3.4, which was
2162 generated by GNU Autoconf 2.69. Invocation command line was
2174 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2175 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2176 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2177 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2178 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2180 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2181 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2183 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2184 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2185 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2186 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2187 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2188 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2189 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 $as_echo "PATH: $as_dir"
2214 # Keep a trace of the command line.
2215 # Strip out --no-create and --no-recursion so they do not pile up.
2216 # Strip out --silent because we don't want to record it for future runs.
2217 # Also quote any args containing shell meta-characters.
2218 # Make two passes to allow for proper duplicate-argument suppression.
2222 ac_must_keep_next=false
2228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2230 | -silent | --silent | --silen | --sile | --sil)
2233 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2238 as_fn_append ac_configure_args1 " '$ac_arg'"
2239 if test $ac_must_keep_next = true; then
2240 ac_must_keep_next=false # Got value, back to normal.
2243 *=* | --config-cache | -C | -disable-* | --disable-* \
2244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2246 | -with-* | --with-* | -without-* | --without-* | --x)
2247 case "$ac_configure_args0 " in
2248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 -* ) ac_must_keep_next=true ;;
2254 as_fn_append ac_configure_args " '$ac_arg'"
2259 { ac_configure_args0=; unset ac_configure_args0;}
2260 { ac_configure_args1=; unset ac_configure_args1;}
2262 # When interrupted or exit'd, cleanup temporary files, and complete
2263 # config.log. We remove comments because anyway the quotes in there
2264 # would cause problems or look ugly.
2265 # WARNING: Use '\'' to represent an apostrophe within the trap.
2266 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2267 trap 'exit_status=$?
2268 # Save into config.log some information that might help in debugging.
2272 $as_echo "## ---------------- ##
2273 ## Cache variables. ##
2274 ## ---------------- ##"
2276 # The following way of writing the cache mishandles newlines in values,
2278 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2279 eval ac_val=\$$ac_var
2283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 _ | IFS | as_nl) ;; #(
2288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2289 *) { eval $ac_var=; unset $ac_var;} ;;
2294 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2295 *${as_nl}ac_space=\ *)
2297 "s/'\''/'\''\\\\'\'''\''/g;
2298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 $as_echo "## ----------------- ##
2309 ## Output variables. ##
2310 ## ----------------- ##"
2312 for ac_var in $ac_subst_vars
2314 eval ac_val=\$$ac_var
2316 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 $as_echo "$ac_var='\''$ac_val'\''"
2322 if test -n "$ac_subst_files"; then
2323 $as_echo "## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##"
2327 for ac_var in $ac_subst_files
2329 eval ac_val=\$$ac_var
2331 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 $as_echo "$ac_var='\''$ac_val'\''"
2338 if test -s confdefs.h; then
2339 $as_echo "## ----------- ##
2346 test "$ac_signal" != 0 &&
2347 $as_echo "$as_me: caught signal $ac_signal"
2348 $as_echo "$as_me: exit $exit_status"
2350 rm -f core *.core core.conftest.* &&
2351 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 for ac_signal in 1 2 13 15; do
2355 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2360 rm -f -r conftest* confdefs.h
2362 $as_echo "/* confdefs.h */" > confdefs.h
2364 # Predefined preprocessor variables.
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_URL "$PACKAGE_URL"
2391 # Let the site file select an alternate cache file if it wants to.
2392 # Prefer an explicitly selected file to automatically selected ones.
2395 if test -n "$CONFIG_SITE"; then
2396 # We do not want a PATH search for config.site.
2397 case $CONFIG_SITE in #((
2398 -*) ac_site_file1=./$CONFIG_SITE;;
2399 */*) ac_site_file1=$CONFIG_SITE;;
2400 *) ac_site_file1=./$CONFIG_SITE;;
2402 elif test "x$prefix" != xNONE; then
2403 ac_site_file1=$prefix/share/config.site
2404 ac_site_file2=$prefix/etc/config.site
2406 ac_site_file1=$ac_default_prefix/share/config.site
2407 ac_site_file2=$ac_default_prefix/etc/config.site
2409 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2411 test "x$ac_site_file" = xNONE && continue
2412 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2414 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2415 sed 's/^/| /' "$ac_site_file" >&5
2417 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 as_fn_error $? "failed to load site script $ac_site_file
2420 See \`config.log' for more details" "$LINENO" 5; }
2424 if test -r "$cache_file"; then
2425 # Some versions of bash will fail to source /dev/null (special files
2426 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2427 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2429 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2432 *) . "./$cache_file";;
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2437 $as_echo "$as_me: creating cache $cache_file" >&6;}
2441 # Check that the precious variables saved in the cache have kept the same
2443 ac_cache_corrupted=false
2444 for ac_var in $ac_precious_vars; do
2445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2446 eval ac_new_set=\$ac_env_${ac_var}_set
2447 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2448 eval ac_new_val=\$ac_env_${ac_var}_value
2449 case $ac_old_set,$ac_new_set in
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2460 if test "x$ac_old_val" != "x$ac_new_val"; then
2461 # differences in whitespace do not lead to failure.
2462 ac_old_val_w=`echo x $ac_old_val`
2463 ac_new_val_w=`echo x $ac_new_val`
2464 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2466 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2467 ac_cache_corrupted=:
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2470 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2471 eval $ac_var=\$ac_old_val
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2474 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2476 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 # Pass precious variables to config.status.
2480 if test "$ac_new_set" = set; then
2482 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2483 *) ac_arg=$ac_var=$ac_new_val ;;
2485 case " $ac_configure_args " in
2486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2487 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2491 if $ac_cache_corrupted; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2495 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2496 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2498 ## -------------------- ##
2499 ## Main body of script. ##
2500 ## -------------------- ##
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 # LT Version numbers: Remember to change them just *before* a release.
2511 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
2512 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
2513 # (No interfaces changed: REVISION++)
2514 # Please remember to document interface changes in the NEWS file.
2515 LIBKSBA_LT_CURRENT=19
2517 LIBKSBA_LT_REVISION=5
2518 #-------------------
2519 # If the API is changed in an incompatible way: increment the next counter.
2520 KSBA_CONFIG_API_VERSION=1
2523 NEED_GPG_ERROR_VERSION=1.8
2526 PACKAGE=$PACKAGE_NAME
2527 VERSION=$PACKAGE_VERSION
2530 for ac_dir in build-aux "$srcdir"/build-aux; do
2531 if test -f "$ac_dir/install-sh"; then
2533 ac_install_sh="$ac_aux_dir/install-sh -c"
2535 elif test -f "$ac_dir/install.sh"; then
2537 ac_install_sh="$ac_aux_dir/install.sh -c"
2539 elif test -f "$ac_dir/shtool"; then
2541 ac_install_sh="$ac_aux_dir/shtool install -c"
2545 if test -z "$ac_aux_dir"; then
2546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2559 am__api_version='1.14'
2561 # Find a good install program. We prefer a C program (faster),
2562 # so one script is as good as another. But avoid the broken or
2563 # incompatible versions:
2564 # SysV /etc/install, /usr/sbin/install
2565 # SunOS /usr/etc/install
2566 # IRIX /sbin/install
2568 # AmigaOS /C/install, which installs bootblocks on floppy discs
2569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572 # OS/2's system install, which has a completely different semantic
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 # Reject install programs that cannot install multiple files.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2577 if test -z "$INSTALL"; then
2578 if ${ac_cv_path_install+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 # Account for people who put trailing slashes in PATH elements.
2587 case $as_dir/ in #((
2588 ./ | .// | /[cC]/* | \
2589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2593 # OSF1 and SCO ODT 3.0 have their own names for install.
2594 # Don't use installbsd from OSF since it installs stuff as root
2596 for ac_prog in ginstall scoinst install; do
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599 if test $ac_prog = install &&
2600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601 # AIX install. It has an incompatible calling convention.
2603 elif test $ac_prog = install &&
2604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605 # program-specific install script used by HP pwplus--don't use.
2608 rm -rf conftest.one conftest.two conftest.dir
2609 echo one > conftest.one
2610 echo two > conftest.two
2612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613 test -s conftest.one && test -s conftest.two &&
2614 test -s conftest.dir/conftest.one &&
2615 test -s conftest.dir/conftest.two
2617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2630 rm -rf conftest.one conftest.two conftest.dir
2633 if test "${ac_cv_path_install+set}" = set; then
2634 INSTALL=$ac_cv_path_install
2636 # As a last resort, use the slow shell script. Don't cache a
2637 # value for INSTALL within a source directory, because that will
2638 # break other packages using the cache if that directory is
2639 # removed, or if the value is a relative name.
2640 INSTALL=$ac_install_sh
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644 $as_echo "$INSTALL" >&6; }
2646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647 # It thinks the first close brace ends the variable substitution.
2648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655 $as_echo_n "checking whether build environment is sane... " >&6; }
2656 # Reject unsafe characters in $srcdir or the absolute working directory
2657 # name. Accept space and tab only in the latter.
2661 *[\\\"\#\$\&\'\`$am_lf]*)
2662 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2665 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2666 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2669 # Do 'set' in a subshell so we don't clobber the current shell's
2670 # arguments. Must try -L first in case configure is actually a
2671 # symlink; some systems play weird games with the mod time of symlinks
2672 # (eg FreeBSD returns the mod time of the symlink's containing
2676 for am_try in 1 2; do
2677 echo "timestamp, slept: $am_has_slept" > conftest.file
2678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679 if test "$*" = "X"; then
2681 set X `ls -t "$srcdir/configure" conftest.file`
2683 if test "$*" != "X $srcdir/configure conftest.file" \
2684 && test "$*" != "X conftest.file $srcdir/configure"; then
2686 # If neither matched, then we have a broken ls. This can happen
2687 # if, for instance, CONFIG_SHELL is bash and it inherits a
2688 # broken ls alias from the environment. This has actually
2689 # happened. Such a system could not be considered "sane".
2690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2691 alias in your environment" "$LINENO" 5
2693 if test "$2" = conftest.file || test $am_try -eq 2; then
2700 test "$2" = conftest.file
2706 as_fn_error $? "newly created file is older than distributed files!
2707 Check your system clock" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710 $as_echo "yes" >&6; }
2711 # If we didn't sleep, we still need to ensure time stamps of config.status and
2712 # generated files are strictly newer.
2714 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2721 test "$program_prefix" != NONE &&
2722 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723 # Use a double $ so make ignores it.
2724 test "$program_suffix" != NONE &&
2725 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726 # Double any \ or $.
2727 # By default was `s,x,x', remove it if useless.
2728 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731 # Expand $ac_aux_dir to an absolute path.
2732 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2734 if test x"${MISSING+set}" != xset; then
2737 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2742 # Use eval to expand $SHELL
2743 if eval "$MISSING --is-lightweight"; then
2744 am_missing_run="$MISSING "
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2751 if test x"${install_sh}" != xset; then
2754 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756 install_sh="\${SHELL} $am_aux_dir/install-sh"
2760 # Installed binaries are usually stripped using 'strip' when the user
2761 # run "make install-strip". However 'strip' might not be the right
2762 # tool to use in cross-compilation environments, therefore Automake
2763 # will honor the 'STRIP' environment variable to overrule this program.
2764 if test "$cross_compiling" != no; then
2765 if test -n "$ac_tool_prefix"; then
2766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767 set dummy ${ac_tool_prefix}strip; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if ${ac_cv_prog_STRIP+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 if test -n "$STRIP"; then
2774 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 STRIP=$ac_cv_prog_STRIP
2794 if test -n "$STRIP"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796 $as_echo "$STRIP" >&6; }
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2804 if test -z "$ac_cv_prog_STRIP"; then
2806 # Extract the first word of "strip", so it can be a program name with args.
2807 set dummy strip; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test -n "$ac_ct_STRIP"; then
2814 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_ac_ct_STRIP="strip"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834 if test -n "$ac_ct_STRIP"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836 $as_echo "$ac_ct_STRIP" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2842 if test "x$ac_ct_STRIP" = x; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849 ac_tool_warned=yes ;;
2854 STRIP="$ac_cv_prog_STRIP"
2858 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862 if test -z "$MKDIR_P"; then
2863 if ${ac_cv_path_mkdir+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870 test -z "$as_dir" && as_dir=.
2871 for ac_prog in mkdir gmkdir; do
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875 'mkdir (GNU coreutils) '* | \
2876 'mkdir (coreutils) '* | \
2877 'mkdir (fileutils) '4.1*)
2878 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2888 test -d ./--version && rmdir ./--version
2889 if test "${ac_cv_path_mkdir+set}" = set; then
2890 MKDIR_P="$ac_cv_path_mkdir -p"
2892 # As a last resort, use the slow shell script. Don't cache a
2893 # value for MKDIR_P within a source directory, because that will
2894 # break other packages using the cache if that directory is
2895 # removed, or if the value is a relative name.
2896 MKDIR_P="$ac_install_sh -d"
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900 $as_echo "$MKDIR_P" >&6; }
2902 for ac_prog in gawk mawk nawk awk
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if ${ac_cv_prog_AWK+:} false; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_AWK="$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test -n "$AWK"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934 $as_echo "$AWK" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2941 test -n "$AWK" && break
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 cat >conftest.make <<\_ACEOF
2954 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 eval ac_cv_prog_make_${ac_make}_set=no;;
2965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 SET_MAKE="MAKE=${MAKE-make}"
2975 rm -rf .tst 2>/dev/null
2976 mkdir .tst 2>/dev/null
2977 if test -d .tst; then
2982 rmdir .tst 2>/dev/null
2984 # Check whether --enable-silent-rules was given.
2985 if test "${enable_silent_rules+set}" = set; then :
2986 enableval=$enable_silent_rules;
2989 case $enable_silent_rules in # (((
2990 yes) AM_DEFAULT_VERBOSITY=0;;
2991 no) AM_DEFAULT_VERBOSITY=1;;
2992 *) AM_DEFAULT_VERBOSITY=1;;
2994 am_make=${MAKE-make}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997 if ${am_cv_make_support_nested_variables+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if $as_echo 'TRUE=$(BAR$(V))
3006 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007 am_cv_make_support_nested_variables=yes
3009 am_cv_make_support_nested_variables=no
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3014 if test $am_cv_make_support_nested_variables = yes; then
3016 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 AM_V=$AM_DEFAULT_VERBOSITY
3019 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3023 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025 # is not polluted with repeated "-I."
3026 am__isrc=' -I$(srcdir)'
3027 # test to see if srcdir already configured
3028 if test -f $srcdir/config.status; then
3029 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 # test whether we have cygpath
3034 if test -z "$CYGPATH_W"; then
3035 if (cygpath --version) >/dev/null 2>/dev/null; then
3036 CYGPATH_W='cygpath -w'
3043 # Define the identity of the package.
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE "$PACKAGE"
3053 cat >>confdefs.h <<_ACEOF
3054 #define VERSION "$VERSION"
3057 # Some tools Automake needs.
3059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073 # For better backward compatibility. To be removed once Automake 1.9.x
3074 # dies out for good. For more background, see:
3075 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077 mkdir_p='$(MKDIR_P)'
3079 # We need awk for the "check" target. The system "awk" is bad on
3081 # Always define AMTAR for backward compatibility. Yes, it's still used
3082 # in the wild :-( We should find a proper way to deprecate it ...
3086 # We'll loop over all known methods to create a tar archive until one works.
3087 _am_tools='gnutar pax cpio none'
3089 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3096 # POSIX will say in a future version that running "rm -f" with no argument
3097 # is OK; and we want to be able to make that assumption in our Makefile
3098 # recipes. So use an aggressive probe to check that the usage we want is
3099 # actually supported "in the wild" to an acceptable degree.
3100 # See automake bug#10828.
3101 # To make any issue more visible, cause the running configure to be aborted
3102 # by default if the 'rm' program in use doesn't match our expectations; the
3103 # user can still override this though.
3104 if rm -f && rm -fr && rm -rf; then : OK; else
3108 Your 'rm' program seems unable to run without file operands specified
3109 on the command line, even when the '-f' option is present. This is contrary
3110 to the behaviour of most rm programs out there, and not conforming with
3111 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3113 Please tell bug-automake@gnu.org about your system, including the value
3114 of your $PATH and any error possibly output before this message. This
3115 can help us improve future automake versions.
3118 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3119 echo 'Configuration will proceed anyway, since you have set the' >&2
3120 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3124 Aborting the configuration process, to ensure you take notice of the issue.
3126 You can download and install GNU coreutils to get an 'rm' implementation
3127 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3129 If you want to complete the configuration process using your problematic
3130 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3131 to "yes", and re-run configure.
3134 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3138 ac_config_headers="$ac_config_headers config.h"
3141 # Make sure we can run config.sub.
3142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3143 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3146 $as_echo_n "checking build system type... " >&6; }
3147 if ${ac_cv_build+:} false; then :
3148 $as_echo_n "(cached) " >&6
3150 ac_build_alias=$build_alias
3151 test "x$ac_build_alias" = x &&
3152 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3153 test "x$ac_build_alias" = x &&
3154 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3155 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3156 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3160 $as_echo "$ac_cv_build" >&6; }
3161 case $ac_cv_build in
3163 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3166 ac_save_IFS=$IFS; IFS='-'
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3180 $as_echo_n "checking host system type... " >&6; }
3181 if ${ac_cv_host+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 if test "x$host_alias" = x; then
3185 ac_cv_host=$ac_cv_build
3187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3193 $as_echo "$ac_cv_host" >&6; }
3196 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3199 ac_save_IFS=$IFS; IFS='-'
3205 # Remember, the first character of IFS is used to create $*,
3206 # except with old shells:
3209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3217 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3219 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3221 if test "$hostname"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3223 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3226 date=`date +%Y%m%d-%H%M%S`
3227 if test "$?" != 0; then
3230 if test "$date"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3232 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3236 DEPDIR="${am__leading_dot}deps"
3238 ac_config_commands="$ac_config_commands depfiles"
3241 am_make=${MAKE-make}
3242 cat > confinc << 'END'
3244 @echo this is the am__doit target
3247 # If we don't find an include directive, just comment out the code.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3249 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3253 # First try GNU make style include.
3254 echo "include confinc" > confmf
3255 # Ignore all kinds of additional output from 'make'.
3256 case `$am_make -s -f confmf 2> /dev/null` in #(
3257 *the\ am__doit\ target*)
3263 # Now try BSD make style include.
3264 if test "$am__include" = "#"; then
3265 echo '.include "confinc"' > confmf
3266 case `$am_make -s -f confmf 2> /dev/null` in #(
3267 *the\ am__doit\ target*)
3268 am__include=.include
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3277 $as_echo "$_am_result" >&6; }
3278 rm -f confinc confmf
3280 # Check whether --enable-dependency-tracking was given.
3281 if test "${enable_dependency_tracking+set}" = set; then :
3282 enableval=$enable_dependency_tracking;
3285 if test "x$enable_dependency_tracking" != xno; then
3286 am_depcomp="$ac_aux_dir/depcomp"
3290 if test "x$enable_dependency_tracking" != xno; then
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3306 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test -n "$CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3343 if test -z "$ac_cv_prog_CC"; then
3345 # Extract the first word of "gcc", so it can be a program name with args.
3346 set dummy gcc; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$ac_ct_CC"; then
3353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_ac_ct_CC="gcc"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3373 if test -n "$ac_ct_CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3375 $as_echo "$ac_ct_CC" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3381 if test "x$ac_ct_CC" = x; then
3384 case $cross_compiling:$ac_tool_warned in
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3388 ac_tool_warned=yes ;;
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}cc; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if ${ac_cv_prog_CC+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3415 ac_cv_prog_CC="${ac_tool_prefix}cc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3428 $as_echo "$CC" >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3437 if test -z "$CC"; then
3438 # Extract the first word of "cc", so it can be a program name with args.
3439 set dummy cc; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if ${ac_cv_prog_CC+:} false; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3457 ac_prog_rejected=yes
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test $ac_prog_rejected = yes; then
3469 # We found a bogon in the path, so make sure we never use it.
3470 set dummy $ac_cv_prog_CC
3472 if test $# != 0; then
3473 # We chose a different compiler from the bogus one.
3474 # However, it has the same basename, so the bogon will be chosen
3475 # first if we set CC to just the basename; use the full file name.
3477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 for ac_prog in cl.exe
3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_prog_CC+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 if test -n "$CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3527 $as_echo "$CC" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3534 test -n "$CC" && break
3537 if test -z "$CC"; then
3539 for ac_prog in cl.exe
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_ac_ct_CC="$ac_prog"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3578 test -n "$ac_ct_CC" && break
3581 if test "x$ac_ct_CC" = x; then
3584 case $cross_compiling:$ac_tool_warned in
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3597 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599 as_fn_error $? "no acceptable C compiler found in \$PATH
3600 See \`config.log' for more details" "$LINENO" 5; }
3602 # Provide some information about the compiler.
3603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3606 for ac_option in --version -v -V -qversion; do
3607 { { ac_try="$ac_compiler $ac_option >&5"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3616 if test -s conftest.err; then
3618 ... rest of stderr output deleted ...
3619 10q' conftest.err >conftest.er1
3620 cat conftest.er1 >&5
3622 rm -f conftest.er1 conftest.err
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }
3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h. */
3638 ac_clean_files_save=$ac_clean_files
3639 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3640 # Try to create an executable without -o first, disregard a.out.
3641 # It will help us diagnose broken compilers, and finding out an intuition
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644 $as_echo_n "checking whether the C compiler works... " >&6; }
3645 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3647 # The possible output files:
3648 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3651 for ac_file in $ac_files
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3660 if { { ac_try="$ac_link_default"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_link_default") 2>&5
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3672 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3673 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3674 # so that the user can short-circuit this test for compilers unknown to
3676 for ac_file in $ac_files ''
3678 test -f "$ac_file" || continue
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3683 # We found the default executable, but exeext='' is most
3687 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3689 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3691 # We set ac_cv_exeext here because the later test for it is not
3692 # safe: cross compilers may not add the suffix if given an `-o'
3693 # argument, so we may need to know it at that point already.
3694 # Even if this section looks crufty: it has the advantage of
3701 test "$ac_cv_exeext" = no && ac_cv_exeext=
3706 if test -z "$ac_file"; then :
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error 77 "C compiler cannot create executables
3715 See \`config.log' for more details" "$LINENO" 5; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3721 $as_echo_n "checking for C compiler default output file name... " >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3723 $as_echo "$ac_file" >&6; }
3724 ac_exeext=$ac_cv_exeext
3726 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3727 ac_clean_files=$ac_clean_files_save
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3729 $as_echo_n "checking for suffix of executables... " >&6; }
3730 if { { ac_try="$ac_link"
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link") 2>&5
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3742 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe'), while it won't with
3745 for ac_file in conftest.exe conftest conftest.*; do
3746 test -f "$ac_file" || continue
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3749 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details" "$LINENO" 5; }
3760 rm -f conftest conftest$ac_cv_exeext
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3762 $as_echo "$ac_cv_exeext" >&6; }
3764 rm -f conftest.$ac_ext
3765 EXEEXT=$ac_cv_exeext
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3773 FILE *f = fopen ("conftest.out", "w");
3774 return ferror (f) || fclose (f) != 0;
3780 ac_clean_files="$ac_clean_files conftest.out"
3781 # Check that the compiler produces executables we can run. If not, either
3782 # the compiler is broken, or we cross compile.
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3784 $as_echo_n "checking whether we are cross compiling... " >&6; }
3785 if test "$cross_compiling" != yes; then
3786 { { ac_try="$ac_link"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_link") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 if { ac_try='./conftest$ac_cv_exeext'
3798 { { case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_try") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; }; then
3810 if test "$cross_compiling" = maybe; then
3813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815 as_fn_error $? "cannot run C compiled programs.
3816 If you meant to cross compile, use \`--host'.
3817 See \`config.log' for more details" "$LINENO" 5; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3822 $as_echo "$cross_compiling" >&6; }
3824 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3825 ac_clean_files=$ac_clean_files_save
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3827 $as_echo_n "checking for suffix of object files... " >&6; }
3828 if ${ac_cv_objext+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3842 rm -f conftest.o conftest.obj
3843 if { { ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compile") 2>&5
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; then :
3854 for ac_file in conftest.o conftest.obj conftest.*; do
3855 test -f "$ac_file" || continue;
3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3858 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863 $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "cannot compute suffix of object files: cannot compile
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3874 $as_echo "$ac_cv_objext" >&6; }
3875 OBJEXT=$ac_cv_objext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3878 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3879 if ${ac_cv_c_compiler_gnu+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3896 if ac_fn_c_try_compile "$LINENO"; then :
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3906 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3907 if test $ac_compiler_gnu = yes; then
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3915 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3916 if ${ac_cv_prog_cc_g+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 ac_save_c_werror_flag=$ac_c_werror_flag
3920 ac_c_werror_flag=yes
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_c_werror_flag=$ac_save_c_werror_flag
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 if ac_fn_c_try_compile "$LINENO"; then :
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_c_werror_flag=$ac_save_c_werror_flag
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3976 $as_echo "$ac_cv_prog_cc_g" >&6; }
3977 if test "$ac_test_CFLAGS" = set; then
3978 CFLAGS=$ac_save_CFLAGS
3979 elif test $ac_cv_prog_cc_g = yes; then
3980 if test "$GCC" = yes; then
3986 if test "$GCC" = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3993 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3994 if ${ac_cv_prog_cc_c89+:} false; then :
3995 $as_echo_n "(cached) " >&6
3997 ac_cv_prog_cc_c89=no
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4005 struct buf { int x; };
4006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4007 static char *e (p, i)
4013 static char *f (char * (*g) (char **, int), char **p, ...)
4018 s = g (p, va_arg (v,int));
4023 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4024 function prototypes and stuff, but not '\xHH' hex character constants.
4025 These don't provoke an error unfortunately, instead are silently treated
4026 as 'x'. The following induces an error, until -std is added to get
4027 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4028 array size at least. It's necessary to write '\x00'==0 to get something
4029 that's true only with -std. */
4030 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4032 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4033 inside strings and character constants. */
4035 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4037 int test (int i, double x);
4038 struct s1 {int (*f) (int a);};
4039 struct s2 {int (*f) (double a);};
4040 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4046 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4051 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4052 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4054 CC="$ac_save_CC $ac_arg"
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_c89=$ac_arg
4058 rm -f core conftest.err conftest.$ac_objext
4059 test "x$ac_cv_prog_cc_c89" != "xno" && break
4061 rm -f conftest.$ac_ext
4066 case "x$ac_cv_prog_cc_c89" in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4069 $as_echo "none needed" >&6; } ;;
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4072 $as_echo "unsupported" >&6; } ;;
4074 CC="$CC $ac_cv_prog_cc_c89"
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4076 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4078 if test "x$ac_cv_prog_cc_c89" != xno; then :
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4094 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4095 if ${am_cv_prog_cc_c_o+:} false; then :
4096 $as_echo_n "(cached) " >&6
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 # Make sure it works both with $CC and with simple cc.
4110 # Following AC_PROG_CC_C_O, we do the test twice because some
4111 # compilers refuse to overwrite an existing .o file with -o,
4112 # though they will create one.
4113 am_cv_prog_cc_c_o=yes
4115 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4116 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } \
4120 && test -f conftest2.$ac_objext; then
4123 am_cv_prog_cc_c_o=no
4127 rm -f core conftest*
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4131 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4132 if test "$am_cv_prog_cc_c_o" != yes; then
4133 # Losing compiler, so override with the script.
4134 # FIXME: It is wrong to rewrite CC.
4135 # But if we don't then we get into trouble of one sort or another.
4136 # A longer-term fix would be to have automake use am__CC in this case,
4137 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4138 CC="$am_aux_dir/compile $CC"
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 depcc="$CC" am_compiler_list=
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4150 $as_echo_n "checking dependency style of $depcc... " >&6; }
4151 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4155 # We make a subdir and do the tests there. Otherwise we can end up
4156 # making bogus files that we don't know about and never remove. For
4157 # instance it was reported that on HP-UX the gcc test will end up
4158 # making a dummy file named 'D' -- because '-MD' means "put the output
4162 # Copy depcomp to subdir because otherwise we won't find it if we're
4163 # using a relative directory.
4164 cp "$am_depcomp" conftest.dir
4166 # We will build objects and dependencies in a subdirectory because
4167 # it helps to detect inapplicable dependency modes. For instance
4168 # both Tru64's cc and ICC support -MD to output dependencies as a
4169 # side effect of compilation, but ICC will put the dependencies in
4170 # the current directory while Tru64 will put them in the object
4174 am_cv_CC_dependencies_compiler_type=none
4175 if test "$am_compiler_list" = ""; then
4176 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4179 case " $depcc " in #(
4180 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4183 for depmode in $am_compiler_list; do
4184 # Setup a source with many dependencies, because some compilers
4185 # like to wrap large dependency lists on column 80 (with \), and
4186 # we should not choose a depcomp mode which is confused by this.
4188 # We need to recreate these files for each test, as the compiler may
4189 # overwrite some of them when testing with obscure command lines.
4190 # This happens at least with the AIX C compiler.
4192 for i in 1 2 3 4 5 6; do
4193 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4194 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4195 # Solaris 10 /bin/sh.
4196 echo '/* dummy */' > sub/conftst$i.h
4198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4200 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4201 # mode. It turns out that the SunPro C++ compiler does not properly
4202 # handle '-M -o', and we need to detect this. Also, some Intel
4203 # versions had trouble with output in subdirs.
4204 am__obj=sub/conftest.${OBJEXT-o}
4205 am__minus_obj="-o $am__obj"
4208 # This depmode causes a compiler race in universal mode.
4209 test "$am__universal" = false || continue
4212 # After this tag, mechanisms are not by side-effect, so they'll
4213 # only be used when explicitly requested.
4214 if test "x$enable_dependency_tracking" = xyes; then
4220 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4221 # This compiler won't grok '-c -o', but also, the minuso test has
4222 # not run yet. These depmodes are late enough in the game, and
4223 # so weak that their functioning should not be impacted.
4224 am__obj=conftest.${OBJEXT-o}
4229 if depmode=$depmode \
4230 source=sub/conftest.c object=$am__obj \
4231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4232 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4233 >/dev/null 2>conftest.err &&
4234 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4235 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4236 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4237 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4238 # icc doesn't choke on unknown options, it will just issue warnings
4239 # or remarks (even with -Werror). So we grep stderr for any message
4240 # that says an option was ignored or not supported.
4241 # When given -MP, icc 7.0 and 7.1 complain thusly:
4242 # icc: Command line warning: ignoring option '-M'; no argument required
4243 # The diagnosis changed in icc 8.0:
4244 # icc: Command line remark: option '-MP' not supported
4245 if (grep 'ignoring option' conftest.err ||
4246 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4247 am_cv_CC_dependencies_compiler_type=$depmode
4256 am_cv_CC_dependencies_compiler_type=none
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4261 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4262 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4265 test "x$enable_dependency_tracking" != xno \
4266 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4268 am__fastdepCC_FALSE='#'
4270 am__fastdepCC_TRUE='#'
4271 am__fastdepCC_FALSE=
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4282 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4283 # On Suns, sometimes $CPP names a directory.
4284 if test -n "$CPP" && test -d "$CPP"; then
4287 if test -z "$CPP"; then
4288 if ${ac_cv_prog_CPP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 # Double quotes because CPP needs to be expanded
4292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4295 for ac_c_preproc_warn_flag in '' yes
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
4301 # On the NeXT, cc -E runs the code through the compiler's parser,
4302 # not just through cpp. "Syntax error" is here to catch this case.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4306 # include <limits.h>
4308 # include <assert.h>
4312 if ac_fn_c_try_cpp "$LINENO"; then :
4315 # Broken: fails on valid input.
4318 rm -f conftest.err conftest.i conftest.$ac_ext
4320 # OK, works on sane cases. Now check whether nonexistent headers
4321 # can be detected and how.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324 #include <ac_nonexistent.h>
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: success on invalid input.
4330 # Passes both tests.
4334 rm -f conftest.err conftest.i conftest.$ac_ext
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.i conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then :
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4352 $as_echo "$CPP" >&6; }
4354 for ac_c_preproc_warn_flag in '' yes
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4365 # include <limits.h>
4367 # include <assert.h>
4371 if ac_fn_c_try_cpp "$LINENO"; then :
4374 # Broken: fails on valid input.
4377 rm -f conftest.err conftest.i conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4383 #include <ac_nonexistent.h>
4385 if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: success on invalid input.
4389 # Passes both tests.
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4397 rm -f conftest.i conftest.err conftest.$ac_ext
4398 if $ac_preproc_ok; then :
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404 See \`config.log' for more details" "$LINENO" 5; }
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4415 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4416 if ${ac_cv_path_GREP+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 if test -z "$GREP"; then
4420 ac_path_GREP_found=false
4421 # Loop through the user's path and test for each of PROGNAME-LIST
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4426 test -z "$as_dir" && as_dir=.
4427 for ac_prog in grep ggrep; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4430 as_fn_executable_p "$ac_path_GREP" || continue
4431 # Check for GNU ac_path_GREP and select it if it is found.
4432 # Check for GNU $ac_path_GREP
4433 case `"$ac_path_GREP" --version 2>&1` in
4435 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4438 $as_echo_n 0123456789 >"conftest.in"
4441 cat "conftest.in" "conftest.in" >"conftest.tmp"
4442 mv "conftest.tmp" "conftest.in"
4443 cp "conftest.in" "conftest.nl"
4444 $as_echo 'GREP' >> "conftest.nl"
4445 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4447 as_fn_arith $ac_count + 1 && ac_count=$as_val
4448 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4449 # Best one so far, save it but keep looking for a better one
4450 ac_cv_path_GREP="$ac_path_GREP"
4451 ac_path_GREP_max=$ac_count
4453 # 10*(2^10) chars as input seems more than enough
4454 test $ac_count -gt 10 && break
4456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4459 $ac_path_GREP_found && break 3
4464 if test -z "$ac_cv_path_GREP"; then
4465 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4468 ac_cv_path_GREP=$GREP
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4473 $as_echo "$ac_cv_path_GREP" >&6; }
4474 GREP="$ac_cv_path_GREP"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4478 $as_echo_n "checking for egrep... " >&6; }
4479 if ${ac_cv_path_EGREP+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4483 then ac_cv_path_EGREP="$GREP -E"
4485 if test -z "$EGREP"; then
4486 ac_path_EGREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in egrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4496 as_fn_executable_p "$ac_path_EGREP" || continue
4497 # Check for GNU ac_path_EGREP and select it if it is found.
4498 # Check for GNU $ac_path_EGREP
4499 case `"$ac_path_EGREP" --version 2>&1` in
4501 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4504 $as_echo_n 0123456789 >"conftest.in"
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 $as_echo 'EGREP' >> "conftest.nl"
4511 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 as_fn_arith $ac_count + 1 && ac_count=$as_val
4514 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_EGREP="$ac_path_EGREP"
4517 ac_path_EGREP_max=$ac_count
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4525 $ac_path_EGREP_found && break 3
4530 if test -z "$ac_cv_path_EGREP"; then
4531 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4534 ac_cv_path_EGREP=$EGREP
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4540 $as_echo "$ac_cv_path_EGREP" >&6; }
4541 EGREP="$ac_cv_path_EGREP"
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4545 $as_echo_n "checking for ANSI C header files... " >&6; }
4546 if ${ac_cv_header_stdc+:} false; then :
4547 $as_echo_n "(cached) " >&6
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4564 if ac_fn_c_try_compile "$LINENO"; then :
4565 ac_cv_header_stdc=yes
4567 ac_cv_header_stdc=no
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 if test $ac_cv_header_stdc = yes; then
4572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579 $EGREP "memchr" >/dev/null 2>&1; then :
4582 ac_cv_header_stdc=no
4588 if test $ac_cv_header_stdc = yes; then
4589 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "free" >/dev/null 2>&1; then :
4599 ac_cv_header_stdc=no
4605 if test $ac_cv_header_stdc = yes; then
4606 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4607 if test "$cross_compiling" = yes; then :
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4614 #if ((' ' & 0x0FF) == 0x020)
4615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4618 # define ISLOWER(c) \
4619 (('a' <= (c) && (c) <= 'i') \
4620 || ('j' <= (c) && (c) <= 'r') \
4621 || ('s' <= (c) && (c) <= 'z'))
4622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4630 for (i = 0; i < 256; i++)
4631 if (XOR (islower (i), ISLOWER (i))
4632 || toupper (i) != TOUPPER (i))
4637 if ac_fn_c_try_run "$LINENO"; then :
4640 ac_cv_header_stdc=no
4642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4643 conftest.$ac_objext conftest.beam conftest.$ac_ext
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4649 $as_echo "$ac_cv_header_stdc" >&6; }
4650 if test $ac_cv_header_stdc = yes; then
4652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4656 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4658 inttypes.h stdint.h unistd.h
4660 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4661 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4663 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4664 cat >>confdefs.h <<_ACEOF
4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4675 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4682 if test "$MINIX" = yes; then
4684 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4687 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4690 $as_echo "#define _MINIX 1" >>confdefs.h
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4696 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4697 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4698 $as_echo_n "(cached) " >&6
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4703 # define __EXTENSIONS__ 1
4704 $ac_includes_default
4713 if ac_fn_c_try_compile "$LINENO"; then :
4714 ac_cv_safe_to_define___extensions__=yes
4716 ac_cv_safe_to_define___extensions__=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4721 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4722 test $ac_cv_safe_to_define___extensions__ = yes &&
4723 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4725 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4727 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4729 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4731 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4740 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4745 macro_version='2.4.2'
4746 macro_revision='1.3337'
4760 ltmain="$ac_aux_dir/ltmain.sh"
4762 # Backslashify metacharacters that are still active within
4763 # double-quoted strings.
4764 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4766 # Same as above, but do not quote variable references.
4767 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4769 # Sed substitution to delay expansion of an escaped shell variable in a
4770 # double_quote_subst'ed string.
4771 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4773 # Sed substitution to delay expansion of an escaped single quote.
4774 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4776 # Sed substitution to avoid accidental globbing in evaled expressions
4777 no_glob_subst='s/\*/\\\*/g'
4779 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4781 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4784 $as_echo_n "checking how to print strings... " >&6; }
4785 # Test print first, because it will be a builtin if present.
4786 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4787 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4789 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4792 # Use this function as a fallback that always works.
4793 func_fallback_echo ()
4795 eval 'cat <<_LTECHO_EOF
4799 ECHO='func_fallback_echo'
4802 # func_echo_all arg...
4803 # Invoke $ECHO with all args, space-separated.
4810 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4811 $as_echo "printf" >&6; } ;;
4812 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4813 $as_echo "print -r" >&6; } ;;
4814 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4815 $as_echo "cat" >&6; } ;;
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4832 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4833 if ${ac_cv_path_SED+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4837 for ac_i in 1 2 3 4 5 6 7; do
4838 ac_script="$ac_script$as_nl$ac_script"
4840 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4841 { ac_script=; unset ac_script;}
4842 if test -z "$SED"; then
4843 ac_path_SED_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in sed gsed; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4853 as_fn_executable_p "$ac_path_SED" || continue
4854 # Check for GNU ac_path_SED and select it if it is found.
4855 # Check for GNU $ac_path_SED
4856 case `"$ac_path_SED" --version 2>&1` in
4858 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4861 $as_echo_n 0123456789 >"conftest.in"
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo '' >> "conftest.nl"
4868 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_SED_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_SED="$ac_path_SED"
4874 ac_path_SED_max=$ac_count
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 $ac_path_SED_found && break 3
4887 if test -z "$ac_cv_path_SED"; then
4888 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4896 $as_echo "$ac_cv_path_SED" >&6; }
4897 SED="$ac_cv_path_SED"
4900 test -z "$SED" && SED=sed
4901 Xsed="$SED -e 1s/^X//"
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4914 $as_echo_n "checking for fgrep... " >&6; }
4915 if ${ac_cv_path_FGREP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4919 then ac_cv_path_FGREP="$GREP -F"
4921 if test -z "$FGREP"; then
4922 ac_path_FGREP_found=false
4923 # Loop through the user's path and test for each of PROGNAME-LIST
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4928 test -z "$as_dir" && as_dir=.
4929 for ac_prog in fgrep; do
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4932 as_fn_executable_p "$ac_path_FGREP" || continue
4933 # Check for GNU ac_path_FGREP and select it if it is found.
4934 # Check for GNU $ac_path_FGREP
4935 case `"$ac_path_FGREP" --version 2>&1` in
4937 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4940 $as_echo_n 0123456789 >"conftest.in"
4943 cat "conftest.in" "conftest.in" >"conftest.tmp"
4944 mv "conftest.tmp" "conftest.in"
4945 cp "conftest.in" "conftest.nl"
4946 $as_echo 'FGREP' >> "conftest.nl"
4947 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4949 as_fn_arith $ac_count + 1 && ac_count=$as_val
4950 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4951 # Best one so far, save it but keep looking for a better one
4952 ac_cv_path_FGREP="$ac_path_FGREP"
4953 ac_path_FGREP_max=$ac_count
4955 # 10*(2^10) chars as input seems more than enough
4956 test $ac_count -gt 10 && break
4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4961 $ac_path_FGREP_found && break 3
4966 if test -z "$ac_cv_path_FGREP"; then
4967 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4970 ac_cv_path_FGREP=$FGREP
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4976 $as_echo "$ac_cv_path_FGREP" >&6; }
4977 FGREP="$ac_cv_path_FGREP"
4980 test -z "$GREP" && GREP=grep
5000 # Check whether --with-gnu-ld was given.
5001 if test "${with_gnu_ld+set}" = set; then :
5002 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5008 if test "$GCC" = yes; then
5009 # Check if gcc -print-prog-name=ld gives a path.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5011 $as_echo_n "checking for ld used by $CC... " >&6; }
5014 # gcc leaves a trailing carriage return which upsets mingw
5015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5020 # Accept absolute paths.
5022 re_direlt='/[^/][^/]*/\.\./'
5023 # Canonicalize the pathname of ld
5024 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5025 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5026 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5028 test -z "$LD" && LD="$ac_prog"
5031 # If it fails, then pretend we aren't using GCC.
5035 # If it is relative, then search for the first ld in PATH.
5039 elif test "$with_gnu_ld" = yes; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5041 $as_echo_n "checking for GNU ld... " >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5044 $as_echo_n "checking for non-GNU ld... " >&6; }
5046 if ${lt_cv_path_LD+:} false; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -z "$LD"; then
5050 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5051 for ac_dir in $PATH; do
5053 test -z "$ac_dir" && ac_dir=.
5054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5055 lt_cv_path_LD="$ac_dir/$ac_prog"
5056 # Check to see if the program is GNU ld. I'd rather use --version,
5057 # but apparently some variants of GNU ld only accept -v.
5058 # Break only if it was the GNU/non-GNU ld that we prefer.
5059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5060 *GNU* | *'with BFD'*)
5061 test "$with_gnu_ld" != no && break
5064 test "$with_gnu_ld" != yes && break
5071 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5076 if test -n "$LD"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5078 $as_echo "$LD" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5083 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5085 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5086 if ${lt_cv_prog_gnu_ld+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5090 case `$LD -v 2>&1 </dev/null` in
5091 *GNU* | *'with BFD'*)
5092 lt_cv_prog_gnu_ld=yes
5095 lt_cv_prog_gnu_ld=no
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5100 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5101 with_gnu_ld=$lt_cv_prog_gnu_ld
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5112 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5113 if ${lt_cv_path_NM+:} false; then :
5114 $as_echo_n "(cached) " >&6
5116 if test -n "$NM"; then
5117 # Let the user override the test.
5120 lt_nm_to_check="${ac_tool_prefix}nm"
5121 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5122 lt_nm_to_check="$lt_nm_to_check nm"
5124 for lt_tmp_nm in $lt_nm_to_check; do
5125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5126 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5128 test -z "$ac_dir" && ac_dir=.
5129 tmp_nm="$ac_dir/$lt_tmp_nm"
5130 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5131 # Check to see if the nm accepts a BSD-compat flag.
5132 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5133 # nm: unknown option "B" ignored
5134 # Tru64's nm complains that /dev/null is an invalid object file
5135 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5136 */dev/null* | *'Invalid file or object type'*)
5137 lt_cv_path_NM="$tmp_nm -B"
5141 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5143 lt_cv_path_NM="$tmp_nm -p"
5147 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5148 continue # so that we can try to find one that supports BSD flags
5157 : ${lt_cv_path_NM=no}
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5161 $as_echo "$lt_cv_path_NM" >&6; }
5162 if test "$lt_cv_path_NM" != "no"; then
5165 # Didn't find any BSD compatible name lister, look for dumpbin.
5166 if test -n "$DUMPBIN"; then :
5167 # Let the user override the test.
5169 if test -n "$ac_tool_prefix"; then
5170 for ac_prog in dumpbin "link -dump"
5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_DUMPBIN+:} false; then :
5177 $as_echo_n "(cached) " >&6
5179 if test -n "$DUMPBIN"; then
5180 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 DUMPBIN=$ac_cv_prog_DUMPBIN
5200 if test -n "$DUMPBIN"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5202 $as_echo "$DUMPBIN" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5209 test -n "$DUMPBIN" && break
5212 if test -z "$DUMPBIN"; then
5213 ac_ct_DUMPBIN=$DUMPBIN
5214 for ac_prog in dumpbin "link -dump"
5216 # Extract the first word of "$ac_prog", so it can be a program name with args.
5217 set dummy $ac_prog; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$ac_ct_DUMPBIN"; then
5224 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5244 if test -n "$ac_ct_DUMPBIN"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5246 $as_echo "$ac_ct_DUMPBIN" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5253 test -n "$ac_ct_DUMPBIN" && break
5256 if test "x$ac_ct_DUMPBIN" = x; then
5259 case $cross_compiling:$ac_tool_warned in
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5265 DUMPBIN=$ac_ct_DUMPBIN
5269 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5271 DUMPBIN="$DUMPBIN -symbols"
5279 if test "$DUMPBIN" != ":"; then
5283 test -z "$NM" && NM=nm
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5291 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5292 if ${lt_cv_nm_interface+:} false; then :
5293 $as_echo_n "(cached) " >&6
5295 lt_cv_nm_interface="BSD nm"
5296 echo "int some_variable = 0;" > conftest.$ac_ext
5297 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5298 (eval "$ac_compile" 2>conftest.err)
5299 cat conftest.err >&5
5300 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5301 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5302 cat conftest.err >&5
5303 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5304 cat conftest.out >&5
5305 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5306 lt_cv_nm_interface="MS dumpbin"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5311 $as_echo "$lt_cv_nm_interface" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5314 $as_echo_n "checking whether ln -s works... " >&6; }
5316 if test "$LN_S" = "ln -s"; then
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5318 $as_echo "yes" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5321 $as_echo "no, using $LN_S" >&6; }
5324 # find the maximum length of command line arguments
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5326 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5327 if ${lt_cv_sys_max_cmd_len+:} false; then :
5328 $as_echo_n "(cached) " >&6
5335 # On DJGPP, this test can blow up pretty badly due to problems in libc
5336 # (any single argument exceeding 2000 bytes causes a buffer overrun
5337 # during glob expansion). Even if it were fixed, the result of this
5338 # check would be larger than it should be.
5339 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5343 # Under GNU Hurd, this test is not required because there is
5344 # no limit to the length of command line arguments.
5345 # Libtool will interpret -1 as no limit whatsoever
5346 lt_cv_sys_max_cmd_len=-1;
5349 cygwin* | mingw* | cegcc*)
5350 # On Win9x/ME, this test blows up -- it succeeds, but takes
5351 # about 5 minutes as the teststring grows exponentially.
5352 # Worse, since 9x/ME are not pre-emptively multitasking,
5353 # you end up with a "frozen" computer, even though with patience
5354 # the test eventually succeeds (with a max line length of 256k).
5355 # Instead, let's just punt: use the minimum linelength reported by
5356 # all of the supported platforms: 8192 (on NT/2K/XP).
5357 lt_cv_sys_max_cmd_len=8192;
5361 # On MiNT this can take a long time and run out of memory.
5362 lt_cv_sys_max_cmd_len=8192;
5366 # On AmigaOS with pdksh, this test takes hours, literally.
5367 # So we just punt and use a minimum line length of 8192.
5368 lt_cv_sys_max_cmd_len=8192;
5371 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5372 # This has been around since 386BSD, at least. Likely further.
5373 if test -x /sbin/sysctl; then
5374 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5375 elif test -x /usr/sbin/sysctl; then
5376 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5378 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5380 # And add a safety zone
5381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5382 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5386 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5387 lt_cv_sys_max_cmd_len=196608
5391 # The test takes a long time on OS/2.
5392 lt_cv_sys_max_cmd_len=8192
5396 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5397 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5398 # nice to cause kernel panics so lets avoid the loop below.
5399 # First set a reasonable default.
5400 lt_cv_sys_max_cmd_len=16384
5402 if test -x /sbin/sysconfig; then
5403 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5404 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5409 lt_cv_sys_max_cmd_len=102400
5411 sysv5* | sco5v6* | sysv4.2uw2*)
5412 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5413 if test -n "$kargmax"; then
5414 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5416 lt_cv_sys_max_cmd_len=32768
5420 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5421 if test -n "$lt_cv_sys_max_cmd_len"; then
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425 # Make teststring a little bigger before we do anything with it.
5426 # a 1K string should be a reasonable start.
5427 for i in 1 2 3 4 5 6 7 8 ; do
5428 teststring=$teststring$teststring
5430 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5431 # If test is not a shell built-in, we'll probably end up computing a
5432 # maximum length that is only half of the actual maximum length, but
5434 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5435 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5436 test $i != 17 # 1/2 MB should be enough
5439 teststring=$teststring$teststring
5441 # Only check the string length outside the loop.
5442 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5444 # Add a significant safety factor because C++ compilers can tack on
5445 # massive amounts of additional arguments before passing them to the
5446 # linker. It appears as though 1/2 is a usable value.
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5454 if test -n $lt_cv_sys_max_cmd_len ; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5456 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5459 $as_echo "none" >&6; }
5461 max_cmd_len=$lt_cv_sys_max_cmd_len
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5473 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5474 # Try some XSI features
5477 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5479 && eval 'test $(( 1 + 1 )) -eq 2 \
5480 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5483 $as_echo "$xsi_shell" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5487 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5489 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5491 && lt_shell_append=yes
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5493 $as_echo "$lt_shell_append" >&6; }
5496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5506 # test EBCDIC or ASCII
5507 case `echo X|tr X '\101'` in
5508 A) # ASCII based system
5509 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5510 lt_SP2NL='tr \040 \012'
5511 lt_NL2SP='tr \015\012 \040\040'
5513 *) # EBCDIC based system
5514 lt_SP2NL='tr \100 \n'
5515 lt_NL2SP='tr \r\n \100\100'
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5528 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5529 if ${lt_cv_to_host_file_cmd+:} false; then :
5530 $as_echo_n "(cached) " >&6
5535 *-*-mingw* ) # actually msys
5536 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5539 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5541 * ) # otherwise, assume *nix
5542 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5548 *-*-mingw* ) # actually msys
5549 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5552 lt_cv_to_host_file_cmd=func_convert_file_noop
5554 * ) # otherwise, assume *nix
5555 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5559 * ) # unhandled hosts (and "normal" native builds)
5560 lt_cv_to_host_file_cmd=func_convert_file_noop
5566 to_host_file_cmd=$lt_cv_to_host_file_cmd
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5568 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5575 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5576 if ${lt_cv_to_tool_file_cmd+:} false; then :
5577 $as_echo_n "(cached) " >&6
5579 #assume ordinary cross tools, or native build.
5580 lt_cv_to_tool_file_cmd=func_convert_file_noop
5584 *-*-mingw* ) # actually msys
5585 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5593 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5595 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5602 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5603 if ${lt_cv_ld_reload_flag+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 lt_cv_ld_reload_flag='-r'
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5609 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5610 reload_flag=$lt_cv_ld_reload_flag
5611 case $reload_flag in
5613 *) reload_flag=" $reload_flag" ;;
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5617 cygwin* | mingw* | pw32* | cegcc*)
5618 if test "$GCC" != yes; then
5623 if test "$GCC" = yes; then
5624 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5639 if test -n "$ac_tool_prefix"; then
5640 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5641 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_OBJDUMP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$OBJDUMP"; then
5648 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 OBJDUMP=$ac_cv_prog_OBJDUMP
5668 if test -n "$OBJDUMP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5670 $as_echo "$OBJDUMP" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5678 if test -z "$ac_cv_prog_OBJDUMP"; then
5679 ac_ct_OBJDUMP=$OBJDUMP
5680 # Extract the first word of "objdump", so it can be a program name with args.
5681 set dummy objdump; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 if test -n "$ac_ct_OBJDUMP"; then
5688 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5708 if test -n "$ac_ct_OBJDUMP"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5710 $as_echo "$ac_ct_OBJDUMP" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5716 if test "x$ac_ct_OBJDUMP" = x; then
5719 case $cross_compiling:$ac_tool_warned in
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5725 OBJDUMP=$ac_ct_OBJDUMP
5728 OBJDUMP="$ac_cv_prog_OBJDUMP"
5731 test -z "$OBJDUMP" && OBJDUMP=objdump
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5739 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5740 if ${lt_cv_deplibs_check_method+:} false; then :
5741 $as_echo_n "(cached) " >&6
5743 lt_cv_file_magic_cmd='$MAGIC_CMD'
5744 lt_cv_file_magic_test_file=
5745 lt_cv_deplibs_check_method='unknown'
5746 # Need to set the preceding variable on all platforms that support
5747 # interlibrary dependencies.
5748 # 'none' -- dependencies not supported.
5749 # `unknown' -- same as none, but documents that we really don't know.
5750 # 'pass_all' -- all dependencies passed with no checks.
5751 # 'test_compile' -- check by making test program.
5752 # 'file_magic [[regex]]' -- check by looking for files in library path
5753 # which responds to the $file_magic_cmd with a given extended regex.
5754 # If you have `file' or equivalent on your system and you're not sure
5755 # whether `pass_all' will *always* work, you probably want this one.
5759 lt_cv_deplibs_check_method=pass_all
5763 lt_cv_deplibs_check_method=pass_all
5767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5768 lt_cv_file_magic_cmd='/usr/bin/file -L'
5769 lt_cv_file_magic_test_file=/shlib/libc.so
5773 # func_win32_libid is a shell function defined in ltmain.sh
5774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5775 lt_cv_file_magic_cmd='func_win32_libid'
5779 # Base MSYS/MinGW do not provide the 'file' command needed by
5780 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5781 # unless we find 'file', for example because we are cross-compiling.
5782 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5783 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5785 lt_cv_file_magic_cmd='func_win32_libid'
5787 # Keep this pattern in sync with the one in func_win32_libid.
5788 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5789 lt_cv_file_magic_cmd='$OBJDUMP -f'
5794 # use the weaker test based on 'objdump'. See mingw*.
5795 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5796 lt_cv_file_magic_cmd='$OBJDUMP -f'
5799 darwin* | rhapsody*)
5800 lt_cv_deplibs_check_method=pass_all
5803 freebsd* | dragonfly*)
5804 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5807 # Not sure whether the presence of OpenBSD here was a mistake.
5808 # Let's accept both of them until this is cleared up.
5809 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5810 lt_cv_file_magic_cmd=/usr/bin/file
5811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5815 lt_cv_deplibs_check_method=pass_all
5820 lt_cv_deplibs_check_method=pass_all
5824 lt_cv_deplibs_check_method=pass_all
5827 hpux10.20* | hpux11*)
5828 lt_cv_file_magic_cmd=/usr/bin/file
5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5832 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5835 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]'
5836 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5839 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5840 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5846 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5847 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5850 irix5* | irix6* | nonstopux*)
5852 *-32|*"-32 ") libmagic=32-bit;;
5853 *-n32|*"-n32 ") libmagic=N32;;
5854 *-64|*"-64 ") libmagic=64-bit;;
5855 *) libmagic=never-match;;
5857 lt_cv_deplibs_check_method=pass_all
5860 # This must be glibc/ELF.
5861 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5862 lt_cv_deplibs_check_method=pass_all
5865 netbsd* | netbsdelf*-gnu)
5866 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5867 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5875 lt_cv_file_magic_cmd=/usr/bin/file
5876 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5880 lt_cv_deplibs_check_method=pass_all
5884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5891 osf3* | osf4* | osf5*)
5892 lt_cv_deplibs_check_method=pass_all
5896 lt_cv_deplibs_check_method=pass_all
5900 lt_cv_deplibs_check_method=pass_all
5903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5904 lt_cv_deplibs_check_method=pass_all
5908 case $host_vendor in
5910 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]'
5911 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5914 lt_cv_deplibs_check_method=pass_all
5917 lt_cv_file_magic_cmd='/bin/file'
5918 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5921 lt_cv_file_magic_cmd='/bin/file'
5922 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5923 lt_cv_file_magic_test_file=/lib/libc.so
5926 lt_cv_deplibs_check_method=pass_all
5929 lt_cv_deplibs_check_method=pass_all
5935 lt_cv_deplibs_check_method=pass_all
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5945 if test "$build" = "$host"; then
5948 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5951 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5957 file_magic_cmd=$lt_cv_file_magic_cmd
5958 deplibs_check_method=$lt_cv_deplibs_check_method
5959 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5982 if test -n "$ac_tool_prefix"; then
5983 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_DLLTOOL+:} false; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -n "$DLLTOOL"; then
5991 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 DLLTOOL=$ac_cv_prog_DLLTOOL
6011 if test -n "$DLLTOOL"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6013 $as_echo "$DLLTOOL" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6021 if test -z "$ac_cv_prog_DLLTOOL"; then
6022 ac_ct_DLLTOOL=$DLLTOOL
6023 # Extract the first word of "dlltool", so it can be a program name with args.
6024 set dummy dlltool; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$ac_ct_DLLTOOL"; then
6031 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6051 if test -n "$ac_ct_DLLTOOL"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6053 $as_echo "$ac_ct_DLLTOOL" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6059 if test "x$ac_ct_DLLTOOL" = x; then
6062 case $cross_compiling:$ac_tool_warned in
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066 ac_tool_warned=yes ;;
6068 DLLTOOL=$ac_ct_DLLTOOL
6071 DLLTOOL="$ac_cv_prog_DLLTOOL"
6074 test -z "$DLLTOOL" && DLLTOOL=dlltool
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6083 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6084 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 lt_cv_sharedlib_from_linklib_cmd='unknown'
6090 cygwin* | mingw* | pw32* | cegcc*)
6091 # two different shell functions defined in ltmain.sh
6092 # decide which to use based on capabilities of $DLLTOOL
6093 case `$DLLTOOL --help 2>&1` in
6094 *--identify-strict*)
6095 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6098 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6103 # fallback: assume linklib IS sharedlib
6104 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6110 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6111 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6112 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6120 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_AR+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$AR"; then
6131 ac_cv_prog_AR="$AR" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 if test -n "$AR"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6153 $as_echo "$AR" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6160 test -n "$AR" && break
6163 if test -z "$AR"; then
6167 # Extract the first word of "$ac_prog", so it can be a program name with args.
6168 set dummy $ac_prog; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_AR"; then
6175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_ac_ct_AR="$ac_prog"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6197 $as_echo "$ac_ct_AR" >&6; }
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6204 test -n "$ac_ct_AR" && break
6207 if test "x$ac_ct_AR" = x; then
6210 case $cross_compiling:$ac_tool_warned in
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6234 $as_echo_n "checking for archiver @FILE support... " >&6; }
6235 if ${lt_cv_ar_at_file+:} false; then :
6236 $as_echo_n "(cached) " >&6
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6250 if ac_fn_c_try_compile "$LINENO"; then :
6251 echo conftest.$ac_objext > conftest.lst
6252 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6254 (eval $lt_ar_try) 2>&5
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; }
6258 if test "$ac_status" -eq 0; then
6259 # Ensure the archiver fails upon bogus file names.
6260 rm -f conftest.$ac_objext libconftest.a
6261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6262 (eval $lt_ar_try) 2>&5
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }
6266 if test "$ac_status" -ne 0; then
6270 rm -f conftest.* libconftest.a
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6277 $as_echo "$lt_cv_ar_at_file" >&6; }
6279 if test "x$lt_cv_ar_at_file" = xno; then
6282 archiver_list_spec=$lt_cv_ar_at_file
6291 if test -n "$ac_tool_prefix"; then
6292 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6293 set dummy ${ac_tool_prefix}strip; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if ${ac_cv_prog_STRIP+:} false; then :
6297 $as_echo_n "(cached) " >&6
6299 if test -n "$STRIP"; then
6300 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6309 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 STRIP=$ac_cv_prog_STRIP
6320 if test -n "$STRIP"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6322 $as_echo "$STRIP" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6330 if test -z "$ac_cv_prog_STRIP"; then
6332 # Extract the first word of "strip", so it can be a program name with args.
6333 set dummy strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -n "$ac_ct_STRIP"; then
6340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_ac_ct_STRIP="strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6360 if test -n "$ac_ct_STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6362 $as_echo "$ac_ct_STRIP" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6368 if test "x$ac_ct_STRIP" = x; then
6371 case $cross_compiling:$ac_tool_warned in
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6375 ac_tool_warned=yes ;;
6380 STRIP="$ac_cv_prog_STRIP"
6383 test -z "$STRIP" && STRIP=:
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_RANLIB+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$RANLIB"; then
6399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 RANLIB=$ac_cv_prog_RANLIB
6419 if test -n "$RANLIB"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6421 $as_echo "$RANLIB" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6429 if test -z "$ac_cv_prog_RANLIB"; then
6430 ac_ct_RANLIB=$RANLIB
6431 # Extract the first word of "ranlib", so it can be a program name with args.
6432 set dummy ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$ac_ct_RANLIB"; then
6439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_ac_ct_RANLIB="ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6459 if test -n "$ac_ct_RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6461 $as_echo "$ac_ct_RANLIB" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6467 if test "x$ac_ct_RANLIB" = x; then
6470 case $cross_compiling:$ac_tool_warned in
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6476 RANLIB=$ac_ct_RANLIB
6479 RANLIB="$ac_cv_prog_RANLIB"
6482 test -z "$RANLIB" && RANLIB=:
6489 # Determine commands to create old-style static archives.
6490 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6491 old_postinstall_cmds='chmod 644 $oldlib'
6492 old_postuninstall_cmds=
6494 if test -n "$RANLIB"; then
6497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6500 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6503 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6508 lock_old_archive_extraction=yes ;;
6510 lock_old_archive_extraction=no ;;
6551 # If no C compiler was specified, use CC.
6554 # If no C compiler flags were specified, use CFLAGS.
6555 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6557 # Allow CC to be a program name with arguments.
6561 # Check for command to grab the raw symbol name followed by C symbol from nm.
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6563 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6564 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6565 $as_echo_n "(cached) " >&6
6568 # These are sane defaults that work on at least a few old systems.
6569 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6571 # Character class describing NM global symbol codes.
6572 symcode='[BCDEGRST]'
6574 # Regexp to match symbols that can be accessed directly from C.
6575 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6577 # Define system-specific variables.
6582 cygwin* | mingw* | pw32* | cegcc*)
6583 symcode='[ABCDGISTW]'
6586 if test "$host_cpu" = ia64; then
6587 symcode='[ABCDEGRST]'
6591 symcode='[BCDEGRST]'
6594 symcode='[BCDEGQRST]'
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6613 # If we're using GNU nm, then use its standard symbol codes.
6614 case `$NM -V 2>&1` in
6615 *GNU* | *'with BFD'*)
6616 symcode='[ABCDGIRSTW]' ;;
6619 # Transform an extracted symbol line into a proper C declaration.
6620 # Some systems (esp. on ia64) link data and code symbols differently,
6621 # so use this general approach.
6622 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6624 # Transform an extracted symbol line into symbol name and symbol address
6625 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6626 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'"
6628 # Handle CRLF in mingw tool chain
6632 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6636 # Try without a prefix underscore, then with it.
6637 for ac_symprfx in "" "_"; do
6639 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6640 symxfrm="\\1 $ac_symprfx\\2 \\2"
6642 # Write the raw and C identifiers.
6643 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6644 # Fake it for dumpbin and say T for any non-static function
6645 # and D for any global variable.
6646 # Also find C++ and __fastcall symbols from MSVC++,
6647 # which start with @ or ?.
6648 lt_cv_sys_global_symbol_pipe="$AWK '"\
6649 " {last_section=section; section=\$ 3};"\
6650 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6651 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6652 " \$ 0!~/External *\|/{next};"\
6653 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6654 " {if(hide[section]) next};"\
6655 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6656 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6657 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6658 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6659 " ' prfx=^$ac_symprfx"
6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6663 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6665 # Check to see that the pipe works correctly.
6669 cat > conftest.$ac_ext <<_LT_EOF
6674 void nm_test_func(void);
6675 void nm_test_func(void){}
6679 int main(){nm_test_var='a';nm_test_func();return(0);}
6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683 (eval $ac_compile) 2>&5
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; then
6687 # Now try to grab the symbols.
6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6690 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6693 test $ac_status = 0; } && test -s "$nlist"; then
6694 # Try sorting and uniquifying the output.
6695 if sort "$nlist" | uniq > "$nlist"T; then
6696 mv -f "$nlist"T "$nlist"
6701 # Make sure that we snagged all the symbols we need.
6702 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6703 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6704 cat <<_LT_EOF > conftest.$ac_ext
6705 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6706 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6707 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6708 relocations are performed -- see ld's documentation on pseudo-relocs. */
6709 # define LT_DLSYM_CONST
6710 #elif defined(__osf__)
6711 /* This system does not cope well with relocations in const data. */
6712 # define LT_DLSYM_CONST
6714 # define LT_DLSYM_CONST const
6722 # Now generate the symbol file.
6723 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6725 cat <<_LT_EOF >> conftest.$ac_ext
6727 /* The mapping between symbol names and symbols. */
6728 LT_DLSYM_CONST struct {
6732 lt__PROGRAM__LTX_preloaded_symbols[] =
6734 { "@PROGRAM@", (void *) 0 },
6736 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6737 cat <<\_LT_EOF >> conftest.$ac_ext
6741 /* This works around a problem in FreeBSD linker */
6742 #ifdef FREEBSD_WORKAROUND
6743 static const void *lt_preloaded_setup() {
6744 return lt__PROGRAM__LTX_preloaded_symbols;
6752 # Now try linking the two files.
6753 mv conftest.$ac_objext conftstm.$ac_objext
6754 lt_globsym_save_LIBS=$LIBS
6755 lt_globsym_save_CFLAGS=$CFLAGS
6756 LIBS="conftstm.$ac_objext"
6757 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6759 (eval $ac_link) 2>&5
6761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6762 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6765 LIBS=$lt_globsym_save_LIBS
6766 CFLAGS=$lt_globsym_save_CFLAGS
6768 echo "cannot find nm_test_func in $nlist" >&5
6771 echo "cannot find nm_test_var in $nlist" >&5
6774 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6777 echo "$progname: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 rm -rf conftest* conftst*
6782 # Do not use the global_symbol_pipe unless it works.
6783 if test "$pipe_works" = yes; then
6786 lt_cv_sys_global_symbol_pipe=
6792 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6793 lt_cv_sys_global_symbol_to_cdecl=
6795 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6797 $as_echo "failed" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6800 $as_echo "ok" >&6; }
6803 # Response file support.
6804 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6805 nm_file_list_spec='@'
6806 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6807 nm_file_list_spec='@'
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6837 $as_echo_n "checking for sysroot... " >&6; }
6839 # Check whether --with-sysroot was given.
6840 if test "${with_sysroot+set}" = set; then :
6841 withval=$with_sysroot;
6848 case ${with_sysroot} in #(
6850 if test "$GCC" = yes; then
6851 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6855 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6861 $as_echo "${with_sysroot}" >&6; }
6862 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6867 $as_echo "${lt_sysroot:-no}" >&6; }
6873 # Check whether --enable-libtool-lock was given.
6874 if test "${enable_libtool_lock+set}" = set; then :
6875 enableval=$enable_libtool_lock;
6878 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6880 # Some flags need to be propagated to the compiler or linker for good
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.$ac_objext` in
6903 # Find out which ABI we are using.
6904 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6906 (eval $ac_compile) 2>&5
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; then
6910 if test "$lt_cv_prog_gnu_ld" = yes; then
6911 case `/usr/bin/file conftest.$ac_objext` in
6913 LD="${LD-ld} -melf32bsmip"
6916 LD="${LD-ld} -melf32bmipn32"
6919 LD="${LD-ld} -melf64bmip"
6923 case `/usr/bin/file conftest.$ac_objext` in
6939 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6940 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6941 # Find out which ABI we are using.
6942 echo 'int i;' > conftest.$ac_ext
6943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6944 (eval $ac_compile) 2>&5
6946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947 test $ac_status = 0; }; then
6948 case `/usr/bin/file conftest.o` in
6951 x86_64-*kfreebsd*-gnu)
6952 LD="${LD-ld} -m elf_i386_fbsd"
6955 LD="${LD-ld} -m elf_i386"
6958 LD="${LD-ld} -m elf32lppclinux"
6961 LD="${LD-ld} -m elf32ppclinux"
6964 LD="${LD-ld} -m elf_s390"
6967 LD="${LD-ld} -m elf32_sparc"
6973 x86_64-*kfreebsd*-gnu)
6974 LD="${LD-ld} -m elf_x86_64_fbsd"
6977 LD="${LD-ld} -m elf_x86_64"
6980 LD="${LD-ld} -m elf64lppc"
6983 LD="${LD-ld} -m elf64ppc"
6985 s390*-*linux*|s390*-*tpf*)
6986 LD="${LD-ld} -m elf64_s390"
6989 LD="${LD-ld} -m elf64_sparc"
6999 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7000 SAVE_CFLAGS="$CFLAGS"
7001 CFLAGS="$CFLAGS -belf"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7003 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7004 if ${lt_cv_cc_needs_belf+:} false; then :
7005 $as_echo_n "(cached) " >&6
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
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 lt_cv_cc_needs_belf=yes
7027 lt_cv_cc_needs_belf=no
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7032 ac_cpp='$CPP $CPPFLAGS'
7033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7039 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7040 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7041 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7042 CFLAGS="$SAVE_CFLAGS"
7046 # Find out which ABI we are using.
7047 echo 'int i;' > conftest.$ac_ext
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 case `/usr/bin/file conftest.o` in
7055 case $lt_cv_prog_gnu_ld in
7059 LD="${LD-ld} -m elf_x86_64"
7062 LD="${LD-ld} -m elf64_sparc"
7065 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7066 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7071 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7083 need_locks="$enable_libtool_lock"
7085 if test -n "$ac_tool_prefix"; then
7086 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7087 set dummy ${ac_tool_prefix}mt; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7091 $as_echo_n "(cached) " >&6
7093 if test -n "$MANIFEST_TOOL"; then
7094 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7114 if test -n "$MANIFEST_TOOL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7116 $as_echo "$MANIFEST_TOOL" >&6; }
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7124 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7125 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7126 # Extract the first word of "mt", so it can be a program name with args.
7127 set dummy mt; ac_word=$2
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7131 $as_echo_n "(cached) " >&6
7133 if test -n "$ac_ct_MANIFEST_TOOL"; then
7134 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 test -z "$as_dir" && as_dir=.
7141 for ac_exec_ext in '' $ac_executable_extensions; do
7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7143 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7154 if test -n "$ac_ct_MANIFEST_TOOL"; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7156 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7159 $as_echo "no" >&6; }
7162 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7165 case $cross_compiling:$ac_tool_warned in
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7169 ac_tool_warned=yes ;;
7171 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7174 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7177 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7179 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7180 if ${lt_cv_path_mainfest_tool+:} false; then :
7181 $as_echo_n "(cached) " >&6
7183 lt_cv_path_mainfest_tool=no
7184 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7185 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7186 cat conftest.err >&5
7187 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7188 lt_cv_path_mainfest_tool=yes
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7193 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7194 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7204 rhapsody* | darwin*)
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7211 $as_echo_n "(cached) " >&6
7213 if test -n "$DSYMUTIL"; then
7214 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7234 if test -n "$DSYMUTIL"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7236 $as_echo "$DSYMUTIL" >&6; }
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7244 if test -z "$ac_cv_prog_DSYMUTIL"; then
7245 ac_ct_DSYMUTIL=$DSYMUTIL
7246 # Extract the first word of "dsymutil", so it can be a program name with args.
7247 set dummy dsymutil; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7251 $as_echo_n "(cached) " >&6
7253 if test -n "$ac_ct_DSYMUTIL"; then
7254 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7274 if test -n "$ac_ct_DSYMUTIL"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7276 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7282 if test "x$ac_ct_DSYMUTIL" = x; then
7285 case $cross_compiling:$ac_tool_warned in
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7291 DSYMUTIL=$ac_ct_DSYMUTIL
7294 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_NMEDIT+:} false; then :
7303 $as_echo_n "(cached) " >&6
7305 if test -n "$NMEDIT"; then
7306 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7315 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325 NMEDIT=$ac_cv_prog_NMEDIT
7326 if test -n "$NMEDIT"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7328 $as_echo "$NMEDIT" >&6; }
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7336 if test -z "$ac_cv_prog_NMEDIT"; then
7337 ac_ct_NMEDIT=$NMEDIT
7338 # Extract the first word of "nmedit", so it can be a program name with args.
7339 set dummy nmedit; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 if test -n "$ac_ct_NMEDIT"; then
7346 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7366 if test -n "$ac_ct_NMEDIT"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7368 $as_echo "$ac_ct_NMEDIT" >&6; }
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 if test "x$ac_ct_NMEDIT" = x; then
7377 case $cross_compiling:$ac_tool_warned in
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7383 NMEDIT=$ac_ct_NMEDIT
7386 NMEDIT="$ac_cv_prog_NMEDIT"
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_LIPO+:} false; then :
7395 $as_echo_n "(cached) " >&6
7397 if test -n "$LIPO"; then
7398 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 LIPO=$ac_cv_prog_LIPO
7418 if test -n "$LIPO"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7420 $as_echo "$LIPO" >&6; }
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7428 if test -z "$ac_cv_prog_LIPO"; then
7430 # Extract the first word of "lipo", so it can be a program name with args.
7431 set dummy lipo; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7435 $as_echo_n "(cached) " >&6
7437 if test -n "$ac_ct_LIPO"; then
7438 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_LIPO="lipo"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7458 if test -n "$ac_ct_LIPO"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7460 $as_echo "$ac_ct_LIPO" >&6; }
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7466 if test "x$ac_ct_LIPO" = x; then
7469 case $cross_compiling:$ac_tool_warned in
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7478 LIPO="$ac_cv_prog_LIPO"
7481 if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7483 set dummy ${ac_tool_prefix}otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_OTOOL+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 if test -n "$OTOOL"; then
7490 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 OTOOL=$ac_cv_prog_OTOOL
7510 if test -n "$OTOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7512 $as_echo "$OTOOL" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7520 if test -z "$ac_cv_prog_OTOOL"; then
7522 # Extract the first word of "otool", so it can be a program name with args.
7523 set dummy otool; ac_word=$2
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525 $as_echo_n "checking for $ac_word... " >&6; }
7526 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7527 $as_echo_n "(cached) " >&6
7529 if test -n "$ac_ct_OTOOL"; then
7530 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_ac_ct_OTOOL="otool"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7550 if test -n "$ac_ct_OTOOL"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7552 $as_echo "$ac_ct_OTOOL" >&6; }
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7558 if test "x$ac_ct_OTOOL" = x; then
7561 case $cross_compiling:$ac_tool_warned in
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565 ac_tool_warned=yes ;;
7570 OTOOL="$ac_cv_prog_OTOOL"
7573 if test -n "$ac_tool_prefix"; then
7574 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_OTOOL64+:} false; then :
7579 $as_echo_n "(cached) " >&6
7581 if test -n "$OTOOL64"; then
7582 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 OTOOL64=$ac_cv_prog_OTOOL64
7602 if test -n "$OTOOL64"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7604 $as_echo "$OTOOL64" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test -z "$ac_cv_prog_OTOOL64"; then
7613 ac_ct_OTOOL64=$OTOOL64
7614 # Extract the first word of "otool64", so it can be a program name with args.
7615 set dummy otool64; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 if test -n "$ac_ct_OTOOL64"; then
7622 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 test -z "$as_dir" && as_dir=.
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631 ac_cv_prog_ac_ct_OTOOL64="otool64"
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7642 if test -n "$ac_ct_OTOOL64"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7644 $as_echo "$ac_ct_OTOOL64" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7650 if test "x$ac_ct_OTOOL64" = x; then
7653 case $cross_compiling:$ac_tool_warned in
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7659 OTOOL64=$ac_ct_OTOOL64
7662 OTOOL64="$ac_cv_prog_OTOOL64"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7692 $as_echo_n "checking for -single_module linker flag... " >&6; }
7693 if ${lt_cv_apple_cc_single_mod+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 lt_cv_apple_cc_single_mod=no
7697 if test -z "${LT_MULTI_MODULE}"; then
7698 # By default we will add the -single_module flag. You can override
7699 # by either setting the environment variable LT_MULTI_MODULE
7700 # non-empty at configure time, or by adding -multi_module to the
7702 rm -rf libconftest.dylib*
7703 echo "int foo(void){return 1;}" > conftest.c
7704 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7705 -dynamiclib -Wl,-single_module conftest.c" >&5
7706 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7707 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7709 # If there is a non-empty error log, and "single_module"
7710 # appears in it, assume the flag caused a linker warning
7711 if test -s conftest.err && $GREP single_module conftest.err; then
7712 cat conftest.err >&5
7713 # Otherwise, if the output was created with a 0 exit code from
7714 # the compiler, it worked.
7715 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7716 lt_cv_apple_cc_single_mod=yes
7718 cat conftest.err >&5
7720 rm -rf libconftest.dylib*
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7725 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7728 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7729 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7730 $as_echo_n "(cached) " >&6
7732 lt_cv_ld_exported_symbols_list=no
7733 save_LDFLAGS=$LDFLAGS
7734 echo "_main" > conftest.sym
7735 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7747 if ac_fn_c_try_link "$LINENO"; then :
7748 lt_cv_ld_exported_symbols_list=yes
7750 lt_cv_ld_exported_symbols_list=no
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LDFLAGS="$save_LDFLAGS"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7758 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7761 $as_echo_n "checking for -force_load linker flag... " >&6; }
7762 if ${lt_cv_ld_force_load+:} false; then :
7763 $as_echo_n "(cached) " >&6
7765 lt_cv_ld_force_load=no
7766 cat > conftest.c << _LT_EOF
7767 int forced_loaded() { return 2;}
7769 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7770 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7771 echo "$AR cru libconftest.a conftest.o" >&5
7772 $AR cru libconftest.a conftest.o 2>&5
7773 echo "$RANLIB libconftest.a" >&5
7774 $RANLIB libconftest.a 2>&5
7775 cat > conftest.c << _LT_EOF
7776 int main() { return 0;}
7778 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7779 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7781 if test -s conftest.err && $GREP force_load conftest.err; then
7782 cat conftest.err >&5
7783 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7784 lt_cv_ld_force_load=yes
7786 cat conftest.err >&5
7788 rm -f conftest.err libconftest.a conftest conftest.c
7789 rm -rf conftest.dSYM
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7793 $as_echo "$lt_cv_ld_force_load" >&6; }
7795 rhapsody* | darwin1.[012])
7796 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7799 darwin*) # darwin 5.x on
7800 # if running on 10.5 or later, the deployment target defaults
7801 # to the OS version, if on x86, and 10.4, the deployment
7802 # target defaults to 10.4. Don't you love it?
7803 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7804 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7805 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7807 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7809 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7813 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7814 _lt_dar_single_mod='$single_module'
7816 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7817 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7819 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7821 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7822 _lt_dsymutil='~$DSYMUTIL $lib || :'
7829 for ac_header in dlfcn.h
7831 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7833 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_DLFCN_H 1
7847 enable_win32_dll=yes
7850 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}as; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_AS+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$AS"; then
7860 ac_cv_prog_AS="$AS" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_AS="${ac_tool_prefix}as"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 if test -n "$AS"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7882 $as_echo "$AS" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7890 if test -z "$ac_cv_prog_AS"; then
7892 # Extract the first word of "as", so it can be a program name with args.
7893 set dummy as; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$ac_ct_AS"; then
7900 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_ac_ct_AS="as"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7920 if test -n "$ac_ct_AS"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7922 $as_echo "$ac_ct_AS" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7928 if test "x$ac_ct_AS" = x; then
7931 case $cross_compiling:$ac_tool_warned in
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_DLLTOOL+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$DLLTOOL"; then
7952 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 DLLTOOL=$ac_cv_prog_DLLTOOL
7972 if test -n "$DLLTOOL"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7974 $as_echo "$DLLTOOL" >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7982 if test -z "$ac_cv_prog_DLLTOOL"; then
7983 ac_ct_DLLTOOL=$DLLTOOL
7984 # Extract the first word of "dlltool", so it can be a program name with args.
7985 set dummy dlltool; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$ac_ct_DLLTOOL"; then
7992 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8012 if test -n "$ac_ct_DLLTOOL"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8014 $as_echo "$ac_ct_DLLTOOL" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8020 if test "x$ac_ct_DLLTOOL" = x; then
8023 case $cross_compiling:$ac_tool_warned in
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8029 DLLTOOL=$ac_ct_DLLTOOL
8032 DLLTOOL="$ac_cv_prog_DLLTOOL"
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_OBJDUMP+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 if test -n "$OBJDUMP"; then
8044 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 OBJDUMP=$ac_cv_prog_OBJDUMP
8064 if test -n "$OBJDUMP"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8066 $as_echo "$OBJDUMP" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8074 if test -z "$ac_cv_prog_OBJDUMP"; then
8075 ac_ct_OBJDUMP=$OBJDUMP
8076 # Extract the first word of "objdump", so it can be a program name with args.
8077 set dummy objdump; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8081 $as_echo_n "(cached) " >&6
8083 if test -n "$ac_ct_OBJDUMP"; then
8084 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8104 if test -n "$ac_ct_OBJDUMP"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8106 $as_echo "$ac_ct_OBJDUMP" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8112 if test "x$ac_ct_OBJDUMP" = x; then
8115 case $cross_compiling:$ac_tool_warned in
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8121 OBJDUMP=$ac_ct_OBJDUMP
8124 OBJDUMP="$ac_cv_prog_OBJDUMP"
8130 test -z "$AS" && AS=as
8136 test -z "$DLLTOOL" && DLLTOOL=dlltool
8142 test -z "$OBJDUMP" && OBJDUMP=objdump
8147 # Check whether --enable-static was given.
8148 if test "${enable_static+set}" = set; then :
8149 enableval=$enable_static; p=${PACKAGE-default}
8151 yes) enable_static=yes ;;
8152 no) enable_static=no ;;
8155 # Look at the argument we got. We use all the common list separators.
8156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8157 for pkg in $enableval; do
8159 if test "X$pkg" = "X$p"; then
8183 # Check whether --enable-shared was given.
8184 if test "${enable_shared+set}" = set; then :
8185 enableval=$enable_shared; p=${PACKAGE-default}
8187 yes) enable_shared=yes ;;
8188 no) enable_shared=no ;;
8191 # Look at the argument we got. We use all the common list separators.
8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8193 for pkg in $enableval; do
8195 if test "X$pkg" = "X$p"; then
8216 # Check whether --with-pic was given.
8217 if test "${with_pic+set}" = set; then :
8218 withval=$with_pic; lt_p=${PACKAGE-default}
8220 yes|no) pic_mode=$withval ;;
8223 # Look at the argument we got. We use all the common list separators.
8224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8225 for lt_pkg in $withval; do
8227 if test "X$lt_pkg" = "X$lt_p"; then
8239 test -z "$pic_mode" && pic_mode=default
8247 # Check whether --enable-fast-install was given.
8248 if test "${enable_fast_install+set}" = set; then :
8249 enableval=$enable_fast_install; p=${PACKAGE-default}
8251 yes) enable_fast_install=yes ;;
8252 no) enable_fast_install=no ;;
8254 enable_fast_install=no
8255 # Look at the argument we got. We use all the common list separators.
8256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8257 for pkg in $enableval; do
8259 if test "X$pkg" = "X$p"; then
8260 enable_fast_install=yes
8267 enable_fast_install=yes
8280 # This can be used to rebuild libtool when needed
8281 LIBTOOL_DEPS="$ltmain"
8283 # Always use our own libtool.
8284 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8315 test -z "$LN_S" && LN_S="ln -s"
8330 if test -n "${ZSH_VERSION+set}" ; then
8331 setopt NO_GLOB_SUBST
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8335 $as_echo_n "checking for objdir... " >&6; }
8336 if ${lt_cv_objdir+:} false; then :
8337 $as_echo_n "(cached) " >&6
8339 rm -f .libs 2>/dev/null
8340 mkdir .libs 2>/dev/null
8341 if test -d .libs; then
8344 # MS-DOS does not allow filenames that begin with a dot.
8347 rmdir .libs 2>/dev/null
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8350 $as_echo "$lt_cv_objdir" >&6; }
8351 objdir=$lt_cv_objdir
8357 cat >>confdefs.h <<_ACEOF
8358 #define LT_OBJDIR "$lt_cv_objdir/"
8366 # AIX sometimes has problems with the GCC collect2 program. For some
8367 # reason, if we set the COLLECT_NAMES environment variable, the problems
8368 # vanish in a puff of smoke.
8369 if test "X${COLLECT_NAMES+set}" != Xset; then
8371 export COLLECT_NAMES
8378 can_build_shared=yes
8380 # All known linkers require a `.a' archive for static linking (except MSVC,
8381 # which needs '.lib').
8384 with_gnu_ld="$lt_cv_prog_gnu_ld"
8387 old_CFLAGS="$CFLAGS"
8389 # Set sane defaults for various variables
8390 test -z "$CC" && CC=cc
8391 test -z "$LTCC" && LTCC=$CC
8392 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8393 test -z "$LD" && LD=ld
8394 test -z "$ac_objext" && ac_objext=o
8396 for cc_temp in $compiler""; do
8398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8404 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8407 # Only perform the check for file, if the check method requires it
8408 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8409 case $deplibs_check_method in
8411 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8413 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8414 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8415 $as_echo_n "(cached) " >&6
8419 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8422 lt_save_MAGIC_CMD="$MAGIC_CMD"
8423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8424 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8425 for ac_dir in $ac_dummy; do
8427 test -z "$ac_dir" && ac_dir=.
8428 if test -f $ac_dir/${ac_tool_prefix}file; then
8429 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8430 if test -n "$file_magic_test_file"; then
8431 case $deplibs_check_method in
8433 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8436 $EGREP "$file_magic_regex" > /dev/null; then
8441 *** Warning: the command libtool uses to detect shared libraries,
8442 *** $file_magic_cmd, produces output that libtool cannot recognize.
8443 *** The result is that libtool may fail to recognize shared libraries
8444 *** as such. This will affect the creation of libtool libraries that
8445 *** depend on shared libraries, but programs linked with such libtool
8446 *** libraries will work regardless of this problem. Nevertheless, you
8447 *** may want to report the problem to your system manager and/or to
8448 *** bug-libtool@gnu.org
8458 MAGIC_CMD="$lt_save_MAGIC_CMD"
8463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8464 if test -n "$MAGIC_CMD"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8466 $as_echo "$MAGIC_CMD" >&6; }
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8476 if test -z "$lt_cv_path_MAGIC_CMD"; then
8477 if test -n "$ac_tool_prefix"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8479 $as_echo_n "checking for file... " >&6; }
8480 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8481 $as_echo_n "(cached) " >&6
8485 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8488 lt_save_MAGIC_CMD="$MAGIC_CMD"
8489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8490 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8491 for ac_dir in $ac_dummy; do
8493 test -z "$ac_dir" && ac_dir=.
8494 if test -f $ac_dir/file; then
8495 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8496 if test -n "$file_magic_test_file"; then
8497 case $deplibs_check_method in
8499 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8500 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8501 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8502 $EGREP "$file_magic_regex" > /dev/null; then
8507 *** Warning: the command libtool uses to detect shared libraries,
8508 *** $file_magic_cmd, produces output that libtool cannot recognize.
8509 *** The result is that libtool may fail to recognize shared libraries
8510 *** as such. This will affect the creation of libtool libraries that
8511 *** depend on shared libraries, but programs linked with such libtool
8512 *** libraries will work regardless of this problem. Nevertheless, you
8513 *** may want to report the problem to your system manager and/or to
8514 *** bug-libtool@gnu.org
8524 MAGIC_CMD="$lt_save_MAGIC_CMD"
8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8530 if test -n "$MAGIC_CMD"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8532 $as_echo "$MAGIC_CMD" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8548 # Use C for the default configuration in the libtool script
8552 ac_cpp='$CPP $CPPFLAGS'
8553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8558 # Source file extension for C test sources.
8561 # Object file extension for compiled C test sources.
8565 # Code to be used in simple compile tests
8566 lt_simple_compile_test_code="int some_variable = 0;"
8568 # Code to be used in simple link tests
8569 lt_simple_link_test_code='int main(){return(0);}'
8577 # If no C compiler was specified, use CC.
8580 # If no C compiler flags were specified, use CFLAGS.
8581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8583 # Allow CC to be a program name with arguments.
8586 # Save the default compiler, since it gets overwritten when the other
8587 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8588 compiler_DEFAULT=$CC
8590 # save warnings/boilerplate of simple test code
8591 ac_outfile=conftest.$ac_objext
8592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594 _lt_compiler_boilerplate=`cat conftest.err`
8597 ac_outfile=conftest.$ac_objext
8598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600 _lt_linker_boilerplate=`cat conftest.err`
8605 ## There is no encapsulation within the following macros, do not change
8606 ## the running order or otherwise move them around unless you know exactly
8607 ## what you are doing...
8608 if test -n "$compiler"; then
8610 lt_prog_compiler_no_builtin_flag=
8612 if test "$GCC" = yes; then
8613 case $cc_basename in
8615 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8617 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8621 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8622 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8623 $as_echo_n "(cached) " >&6
8625 lt_cv_prog_compiler_rtti_exceptions=no
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628 lt_compiler_flag="-fno-rtti -fno-exceptions"
8629 # Insert the option either (1) after the last *FLAGS variable, or
8630 # (2) before a word containing "conftest.", or (3) at the end.
8631 # Note that $ac_compile itself does not contain backslashes and begins
8632 # with a dollar sign (not a hyphen), so the echo should work correctly.
8633 # The option is referenced via a variable to avoid confusing sed.
8634 lt_compile=`echo "$ac_compile" | $SED \
8635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637 -e 's:$: $lt_compiler_flag:'`
8638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8639 (eval "$lt_compile" 2>conftest.err)
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 if (exit $ac_status) && test -s "$ac_outfile"; then
8644 # The compiler can only warn and ignore the option if not recognized
8645 # So say no if there are warnings other than the usual output.
8646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8649 lt_cv_prog_compiler_rtti_exceptions=yes
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8656 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8658 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8659 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8671 lt_prog_compiler_wl=
8672 lt_prog_compiler_pic=
8673 lt_prog_compiler_static=
8676 if test "$GCC" = yes; then
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_static='-static'
8682 # All AIX code is PIC.
8683 if test "$host_cpu" = ia64; then
8684 # AIX 5 now supports IA64 processor
8685 lt_prog_compiler_static='-Bstatic'
8692 # see comment about AmigaOS4 .so support
8693 lt_prog_compiler_pic='-fPIC'
8696 # FIXME: we need at least 68020 code to build shared libraries, but
8697 # adding the `-m68020' flag to GCC prevents building anything better,
8699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8704 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8705 # PIC is the default for these OSes.
8708 mingw* | cygwin* | pw32* | os2* | cegcc*)
8709 # This hack is so that the source file can tell whether it is being
8710 # built for inclusion in a dll (and should export symbols for example).
8711 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8712 # (--disable-auto-import) libraries
8713 lt_prog_compiler_pic='-DDLL_EXPORT'
8716 darwin* | rhapsody*)
8717 # PIC is the default on this platform
8718 # Common symbols not allowed in MH_DYLIB files
8719 lt_prog_compiler_pic='-fno-common'
8723 # PIC is the default for Haiku.
8724 # The "-static" flag exists, but is broken.
8725 lt_prog_compiler_static=
8729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8731 # sets the default TLS model and affects inlining.
8737 lt_prog_compiler_pic='-fPIC'
8743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8744 # Instead, we relocate shared libraries at runtime.
8748 # Just because we use GCC doesn't mean we suddenly get shared libraries
8749 # on systems that don't support them.
8750 lt_prog_compiler_can_build_shared=no
8755 # QNX uses GNU C++, but need to define -shared option too, otherwise
8757 lt_prog_compiler_pic='-fPIC -shared'
8761 if test -d /usr/nec; then
8762 lt_prog_compiler_pic=-Kconform_pic
8767 lt_prog_compiler_pic='-fPIC'
8771 case $cc_basename in
8772 nvcc*) # Cuda Compiler Driver 2.2
8773 lt_prog_compiler_wl='-Xlinker '
8774 if test -n "$lt_prog_compiler_pic"; then
8775 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8780 # PORTME Check for flag to pass linker flags through the system compiler.
8783 lt_prog_compiler_wl='-Wl,'
8784 if test "$host_cpu" = ia64; then
8785 # AIX 5 now supports IA64 processor
8786 lt_prog_compiler_static='-Bstatic'
8788 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8792 mingw* | cygwin* | pw32* | os2* | cegcc*)
8793 # This hack is so that the source file can tell whether it is being
8794 # built for inclusion in a dll (and should export symbols for example).
8795 lt_prog_compiler_pic='-DDLL_EXPORT'
8798 hpux9* | hpux10* | hpux11*)
8799 lt_prog_compiler_wl='-Wl,'
8800 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8807 lt_prog_compiler_pic='+Z'
8810 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8811 lt_prog_compiler_static='${wl}-a ${wl}archive'
8814 irix5* | irix6* | nonstopux*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # PIC (with -KPIC) is the default.
8817 lt_prog_compiler_static='-non_shared'
8820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8821 case $cc_basename in
8822 # old Intel for x86_64 which still supported -KPIC.
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_pic='-KPIC'
8826 lt_prog_compiler_static='-static'
8828 # icc used to be incompatible with GCC.
8829 # ICC 10 doesn't accept -KPIC any more.
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_pic='-fPIC'
8833 lt_prog_compiler_static='-static'
8835 # Lahey Fortran 8.1.
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='--shared'
8839 lt_prog_compiler_static='--static'
8842 # NAG Fortran compiler
8843 lt_prog_compiler_wl='-Wl,-Wl,,'
8844 lt_prog_compiler_pic='-PIC'
8845 lt_prog_compiler_static='-Bstatic'
8847 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8848 # Portland Group compilers (*not* the Pentium gcc compiler,
8849 # which looks to be a dead project)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-fpic'
8852 lt_prog_compiler_static='-Bstatic'
8855 lt_prog_compiler_wl='-Wl,'
8856 # All Alpha code is PIC.
8857 lt_prog_compiler_static='-non_shared'
8859 xl* | bgxl* | bgf* | mpixl*)
8860 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-qpic'
8863 lt_prog_compiler_static='-qstaticlink'
8866 case `$CC -V 2>&1 | sed 5q` in
8867 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8868 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8869 lt_prog_compiler_pic='-KPIC'
8870 lt_prog_compiler_static='-Bstatic'
8871 lt_prog_compiler_wl=''
8873 *Sun\ F* | *Sun*Fortran*)
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Qoption ld '
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 lt_prog_compiler_wl='-Wl,'
8884 *Intel*\ [CF]*Compiler*)
8885 lt_prog_compiler_wl='-Wl,'
8886 lt_prog_compiler_pic='-fPIC'
8887 lt_prog_compiler_static='-static'
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-fpic'
8892 lt_prog_compiler_static='-Bstatic'
8900 lt_prog_compiler_pic='-KPIC'
8901 lt_prog_compiler_static='-Bstatic'
8905 # QNX uses GNU C++, but need to define -shared option too, otherwise
8907 lt_prog_compiler_pic='-fPIC -shared'
8910 osf3* | osf4* | osf5*)
8911 lt_prog_compiler_wl='-Wl,'
8912 # All OSF/1 code is PIC.
8913 lt_prog_compiler_static='-non_shared'
8917 lt_prog_compiler_static='-non_shared'
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 case $cc_basename in
8924 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8925 lt_prog_compiler_wl='-Qoption ld ';;
8927 lt_prog_compiler_wl='-Wl,';;
8932 lt_prog_compiler_wl='-Qoption ld '
8933 lt_prog_compiler_pic='-PIC'
8934 lt_prog_compiler_static='-Bstatic'
8937 sysv4 | sysv4.2uw2* | sysv4.3*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-KPIC'
8940 lt_prog_compiler_static='-Bstatic'
8944 if test -d /usr/nec ;then
8945 lt_prog_compiler_pic='-Kconform_pic'
8946 lt_prog_compiler_static='-Bstatic'
8950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_can_build_shared=no
8962 lt_prog_compiler_pic='-pic'
8963 lt_prog_compiler_static='-Bstatic'
8967 lt_prog_compiler_can_build_shared=no
8973 # For platforms which do not support PIC, -DPIC is meaningless:
8975 lt_prog_compiler_pic=
8978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8983 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8984 if ${lt_cv_prog_compiler_pic+:} false; then :
8985 $as_echo_n "(cached) " >&6
8987 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8990 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8991 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8994 # Check to make sure the PIC flag actually works.
8996 if test -n "$lt_prog_compiler_pic"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8998 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8999 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 lt_cv_prog_compiler_pic_works=no
9003 ac_outfile=conftest.$ac_objext
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9006 # Insert the option either (1) after the last *FLAGS variable, or
9007 # (2) before a word containing "conftest.", or (3) at the end.
9008 # Note that $ac_compile itself does not contain backslashes and begins
9009 # with a dollar sign (not a hyphen), so the echo should work correctly.
9010 # The option is referenced via a variable to avoid confusing sed.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>conftest.err)
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s "$ac_outfile"; then
9021 # The compiler can only warn and ignore the option if not recognized
9022 # So say no if there are warnings other than the usual output.
9023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9026 lt_cv_prog_compiler_pic_works=yes
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9033 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9035 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9036 case $lt_prog_compiler_pic in
9038 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9041 lt_prog_compiler_pic=
9042 lt_prog_compiler_can_build_shared=no
9058 # Check to make sure the static flag actually works.
9060 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9062 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9063 if ${lt_cv_prog_compiler_static_works+:} false; then :
9064 $as_echo_n "(cached) " >&6
9066 lt_cv_prog_compiler_static_works=no
9067 save_LDFLAGS="$LDFLAGS"
9068 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9069 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9070 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9071 # The linker can only warn and ignore the option if not recognized
9072 # So say no if there are warnings
9073 if test -s conftest.err; then
9074 # Append any errors to the config.log.
9075 cat conftest.err 1>&5
9076 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078 if diff conftest.exp conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_static_works=yes
9082 lt_cv_prog_compiler_static_works=yes
9086 LDFLAGS="$save_LDFLAGS"
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9090 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9092 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9095 lt_prog_compiler_static=
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9105 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9106 if ${lt_cv_prog_compiler_c_o+:} false; then :
9107 $as_echo_n "(cached) " >&6
9109 lt_cv_prog_compiler_c_o=no
9110 $RM -r conftest 2>/dev/null
9114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9116 lt_compiler_flag="-o out/conftest2.$ac_objext"
9117 # Insert the option either (1) after the last *FLAGS variable, or
9118 # (2) before a word containing "conftest.", or (3) at the end.
9119 # Note that $ac_compile itself does not contain backslashes and begins
9120 # with a dollar sign (not a hyphen), so the echo should work correctly.
9121 lt_compile=`echo "$ac_compile" | $SED \
9122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9124 -e 's:$: $lt_compiler_flag:'`
9125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9126 (eval "$lt_compile" 2>out/conftest.err)
9128 cat out/conftest.err >&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9132 # The compiler can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9135 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9136 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_c_o=yes
9142 # SGI C++ compiler will create directory out/ii_files/ for
9143 # template instantiation
9144 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9145 $RM out/* && rmdir out
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9152 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161 if ${lt_cv_prog_compiler_c_o+:} false; then :
9162 $as_echo_n "(cached) " >&6
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9181 (eval "$lt_compile" 2>out/conftest.err)
9183 cat out/conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9212 hard_links="nottested"
9213 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9214 # do not overwrite the value of need_locks provided by the user
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9216 $as_echo_n "checking if we can lock with hard links... " >&6; }
9219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9221 ln conftest.a conftest.b 2>&5 || hard_links=no
9222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9224 $as_echo "$hard_links" >&6; }
9225 if test "$hard_links" = no; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9227 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9240 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9243 allow_undefined_flag=
9244 always_export_symbols=no
9246 archive_expsym_cmds=
9247 compiler_needs_object=no
9248 enable_shared_with_static_runtimes=no
9249 export_dynamic_flag_spec=
9250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9251 hardcode_automatic=no
9253 hardcode_direct_absolute=no
9254 hardcode_libdir_flag_spec=
9255 hardcode_libdir_separator=
9257 hardcode_shlibpath_var=unsupported
9259 link_all_deplibs=unknown
9262 old_archive_from_new_cmds=
9263 old_archive_from_expsyms_cmds=
9264 thread_safe_flag_spec=
9265 whole_archive_flag_spec=
9266 # include_expsyms should be a list of space-separated symbols to be *always*
9267 # included in the symbol list
9269 # exclude_expsyms can be an extended regexp of symbols to exclude
9270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9272 # as well as any symbol that contains `d'.
9273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9275 # platforms (ab)use it in PIC code, but their linkers get confused if
9276 # the symbol is explicitly referenced. Since portable code cannot
9277 # rely on this symbol name, it's probably fine to never include it in
9278 # preloaded symbol tables.
9279 # Exclude shared library initialization/finalization symbols.
9280 extract_expsyms_cmds=
9283 cygwin* | mingw* | pw32* | cegcc*)
9284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9285 # When not using gcc, we currently assume that we are using
9286 # Microsoft Visual C++.
9287 if test "$GCC" != yes; then
9292 # we just hope/assume this is gcc and not c89 (= MSVC++)
9298 linux* | k*bsd*-gnu | gnu*)
9305 # On some targets, GNU ld is compatible enough with the native linker
9306 # that we're better off using the native interface for both.
9307 lt_use_gnu_ld_interface=no
9308 if test "$with_gnu_ld" = yes; then
9311 # The AIX port of GNU ld has always aspired to compatibility
9312 # with the native linker. However, as the warning in the GNU ld
9313 # block says, versions before 2.19.5* couldn't really create working
9314 # shared libraries, regardless of the interface used.
9315 case `$LD -v 2>&1` in
9316 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9317 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9318 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9320 lt_use_gnu_ld_interface=yes
9325 lt_use_gnu_ld_interface=yes
9330 if test "$lt_use_gnu_ld_interface" = yes; then
9331 # If archive_cmds runs LD, not CC, wlarc should be empty
9334 # Set some defaults for GNU ld with shared library support. These
9335 # are reset later if shared libraries are not supported. Putting them
9336 # here allows them to be overridden if necessary.
9337 runpath_var=LD_RUN_PATH
9338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9339 export_dynamic_flag_spec='${wl}--export-dynamic'
9340 # ancient GNU ld didn't support --whole-archive et. al.
9341 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9342 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9344 whole_archive_flag_spec=
9346 supports_anon_versioning=no
9347 case `$LD -v 2>&1` in
9348 *GNU\ gold*) supports_anon_versioning=yes ;;
9349 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352 *\ 2.11.*) ;; # other 2.11 versions
9353 *) supports_anon_versioning=yes ;;
9356 # See if GNU ld supports shared libraries.
9359 # On AIX/PPC, the GNU linker is very broken
9360 if test "$host_cpu" != ia64; then
9364 *** Warning: the GNU linker, at least up to release 2.19, is reported
9365 *** to be unable to reliably create shared libraries on AIX.
9366 *** Therefore, libtool is disabling shared libraries support. If you
9367 *** really care for shared libraries, you may want to install binutils
9368 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9369 *** You will then need to restart the configuration process.
9378 # see comment about AmigaOS4 .so support
9379 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds=''
9383 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)'
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 hardcode_minus_L=yes
9391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9392 allow_undefined_flag=unsupported
9393 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9394 # support --undefined. This deserves some investigation. FIXME
9395 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401 cygwin* | mingw* | pw32* | cegcc*)
9402 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9403 # as there is no search path for DLLs.
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 export_dynamic_flag_spec='${wl}--export-all-symbols'
9406 allow_undefined_flag=unsupported
9407 always_export_symbols=no
9408 enable_shared_with_static_runtimes=yes
9409 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'
9410 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9412 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9414 # If the export-symbols file already is a .def file (1st line
9415 # is EXPORTS), use it as is; otherwise, prepend...
9416 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9417 cp $export_symbols $output_objdir/$soname.def;
9419 echo EXPORTS > $output_objdir/$soname.def;
9420 cat $export_symbols >> $output_objdir/$soname.def;
9422 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 link_all_deplibs=yes
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9437 export_dynamic_flag_spec='${wl}-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 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'
9448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9450 if test "$host_os" = linux-dietlibc; then
9451 case $cc_basename in
9452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9456 && test "$tmp_diet" = no
9458 tmp_addflag=' $pic_flag'
9459 tmp_sharedflag='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc*) # Portland Group C compiler
9462 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'
9463 tmp_addflag=' $pic_flag'
9465 pgf77* | pgf90* | pgf95* | pgfortran*)
9466 # Portland Group f77 and f90 compilers
9467 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'
9468 tmp_addflag=' $pic_flag -Mnomain' ;;
9469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9470 tmp_addflag=' -i_dynamic' ;;
9471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9472 tmp_addflag=' -i_dynamic -nofor_main' ;;
9473 ifc* | ifort*) # Intel Fortran compiler
9474 tmp_addflag=' -nofor_main' ;;
9475 lf95*) # Lahey Fortran 8.1
9476 whole_archive_flag_spec=
9477 tmp_sharedflag='--shared' ;;
9478 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9479 tmp_sharedflag='-qmkshrobj'
9481 nvcc*) # Cuda Compiler Driver 2.2
9482 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'
9483 compiler_needs_object=yes
9486 case `$CC -V 2>&1 | sed 5q` in
9487 *Sun\ C*) # Sun C 5.9
9488 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'
9489 compiler_needs_object=yes
9490 tmp_sharedflag='-G' ;;
9491 *Sun\ F*) # Sun Fortran 8.3
9492 tmp_sharedflag='-G' ;;
9494 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496 if test "x$supports_anon_versioning" = xyes; then
9497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9499 echo "local: *; };" >> $output_objdir/$libname.ver~
9500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9503 case $cc_basename in
9504 xlf* | bgf* | bgxlf* | mpixlf*)
9505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9509 if test "x$supports_anon_versioning" = xyes; then
9510 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9512 echo "local: *; };" >> $output_objdir/$libname.ver~
9513 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9522 netbsd* | netbsdelf*-gnu)
9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9533 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9538 *** create shared libraries on Solaris systems. Therefore, libtool
9539 *** is disabling shared libraries support. We urge you to upgrade GNU
9540 *** binutils to release 2.9.1 or newer. Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9545 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9554 case `$LD -v 2>&1` in
9555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9560 *** reliably create shared libraries on SCO systems. Therefore, libtool
9561 *** is disabling shared libraries support. We urge you to upgrade GNU
9562 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9563 *** your PATH or compiler configuration so that the native linker is
9564 *** used, and then restart.
9569 # For security reasons, it is highly recommended that you always
9570 # use absolute paths for naming shared libraries, and exclude the
9571 # DT_RUNPATH tag from executables and libraries. But doing so
9572 # requires that you compile everything twice, which is a pain.
9573 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9585 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_shlibpath_var=no
9592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 if test "$ld_shlibs" = no; then
9603 hardcode_libdir_flag_spec=
9604 export_dynamic_flag_spec=
9605 whole_archive_flag_spec=
9608 # PORTME fill in a description of your system's linker (not GNU ld)
9611 allow_undefined_flag=unsupported
9612 always_export_symbols=yes
9613 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'
9614 # Note: this linker hardcodes the directories in LIBPATH if there
9615 # are no directories specified by -L.
9616 hardcode_minus_L=yes
9617 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9618 # Neither direct hardcoding nor static linking is supported with a
9620 hardcode_direct=unsupported
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9632 # If we're using GNU nm, then we don't want the "-C" option.
9633 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9634 # Also, AIX nm treats weak defined symbols like other global
9635 # defined symbols, whereas GNU nm marks them as "W".
9636 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9637 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'
9639 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'
9641 aix_use_runtimelinking=no
9643 # Test if we are trying to use run time linking or normal
9644 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9645 # need to do runtime linking.
9646 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9647 for ld_flag in $LDFLAGS; do
9648 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9649 aix_use_runtimelinking=yes
9656 exp_sym_flag='-bexport'
9657 no_entry_flag='-bnoentry'
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668 hardcode_direct_absolute=yes
9669 hardcode_libdir_separator=':'
9670 link_all_deplibs=yes
9671 file_list_spec='${wl}-f,'
9673 if test "$GCC" = yes; then
9674 case $host_os in aix4.[012]|aix4.[012].*)
9675 # We only want to do this on AIX 4.2 and lower, the check
9676 # below for broken collect2 doesn't work under 4.3+
9677 collect2name=`${CC} -print-prog-name=collect2`
9678 if test -f "$collect2name" &&
9679 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9681 # We have reworked collect2
9684 # We have old collect2
9685 hardcode_direct=unsupported
9686 # It fails to find uninstalled libraries when the uninstalled
9687 # path is not listed in the libpath. Setting hardcode_minus_L
9688 # to unsupported forces relinking
9689 hardcode_minus_L=yes
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_libdir_separator=
9695 shared_flag='-shared'
9696 if test "$aix_use_runtimelinking" = yes; then
9697 shared_flag="$shared_flag "'${wl}-G'
9702 if test "$host_cpu" = ia64; then
9703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704 # chokes on -Wl,-G. The following line is correct:
9707 if test "$aix_use_runtimelinking" = yes; then
9708 shared_flag='${wl}-G'
9710 shared_flag='${wl}-bM:SRE'
9715 export_dynamic_flag_spec='${wl}-bexpall'
9716 # It seems that -bexpall does not export symbols beginning with
9717 # underscore (_), so it is better to generate a list of symbols to export.
9718 always_export_symbols=yes
9719 if test "$aix_use_runtimelinking" = yes; then
9720 # Warning - without using the other runtime loading flags (-brtl),
9721 # -berok will link without error, but may produce a broken library.
9722 allow_undefined_flag='-berok'
9723 # Determine the default libpath from the value encoded in an
9725 if test "${lt_cv_aix_libpath+set}" = set; then
9726 aix_libpath=$lt_cv_aix_libpath
9728 if ${lt_cv_aix_libpath_+:} false; then :
9729 $as_echo_n "(cached) " >&6
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9742 if ac_fn_c_try_link "$LINENO"; then :
9744 lt_aix_libpath_sed='
9745 /Import File Strings/,/^$/ {
9747 s/^0 *\([^ ]*\) *$/\1/
9751 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9752 # Check for a 64-bit object if we didn't find anything.
9753 if test -z "$lt_cv_aix_libpath_"; then
9754 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9757 rm -f core conftest.err conftest.$ac_objext \
9758 conftest$ac_exeext conftest.$ac_ext
9759 if test -z "$lt_cv_aix_libpath_"; then
9760 lt_cv_aix_libpath_="/usr/lib:/lib"
9765 aix_libpath=$lt_cv_aix_libpath_
9768 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9769 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"
9771 if test "$host_cpu" = ia64; then
9772 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9773 allow_undefined_flag="-z nodefs"
9774 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"
9776 # Determine the default libpath from the value encoded in an
9778 if test "${lt_cv_aix_libpath+set}" = set; then
9779 aix_libpath=$lt_cv_aix_libpath
9781 if ${lt_cv_aix_libpath_+:} false; then :
9782 $as_echo_n "(cached) " >&6
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9795 if ac_fn_c_try_link "$LINENO"; then :
9797 lt_aix_libpath_sed='
9798 /Import File Strings/,/^$/ {
9800 s/^0 *\([^ ]*\) *$/\1/
9804 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805 # Check for a 64-bit object if we didn't find anything.
9806 if test -z "$lt_cv_aix_libpath_"; then
9807 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 if test -z "$lt_cv_aix_libpath_"; then
9813 lt_cv_aix_libpath_="/usr/lib:/lib"
9818 aix_libpath=$lt_cv_aix_libpath_
9821 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9822 # Warning - without using the other run time loading flags,
9823 # -berok will link without error, but may produce a broken library.
9824 no_undefined_flag=' ${wl}-bernotok'
9825 allow_undefined_flag=' ${wl}-berok'
9826 if test "$with_gnu_ld" = yes; then
9827 # We only use this code for GNU lds that support --whole-archive.
9828 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9830 # Exported symbols can be pulled into shared objects from archives
9831 whole_archive_flag_spec='$convenience'
9833 archive_cmds_need_lc=yes
9834 # This is similar to how AIX traditionally builds its shared libraries.
9835 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'
9843 # see comment about AmigaOS4 .so support
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds=''
9848 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)'
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_minus_L=yes
9856 export_dynamic_flag_spec=-rdynamic
9859 cygwin* | mingw* | pw32* | cegcc*)
9860 # When not using gcc, we currently assume that we are using
9861 # Microsoft Visual C++.
9862 # hardcode_libdir_flag_spec is actually meaningless, as there is
9863 # no search path for DLLs.
9864 case $cc_basename in
9867 hardcode_libdir_flag_spec=' '
9868 allow_undefined_flag=unsupported
9869 always_export_symbols=yes
9871 # Tell ltmain to make .lib files, not .a files.
9873 # Tell ltmain to make .dll files, not .so files.
9875 # FIXME: Setting linknames here is a bad hack.
9876 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9877 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9878 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9880 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9882 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9884 # The linker will not automatically build a static lib if we build a DLL.
9885 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9886 enable_shared_with_static_runtimes=yes
9887 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9890 old_postinstall_cmds='chmod 644 $oldlib'
9891 postlink_cmds='lt_outputfile="@OUTPUT@"~
9892 lt_tool_outputfile="@TOOL_OUTPUT@"~
9893 case $lt_outputfile in
9896 lt_outputfile="$lt_outputfile.exe"
9897 lt_tool_outputfile="$lt_tool_outputfile.exe"
9900 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9901 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9902 $RM "$lt_outputfile.manifest";
9906 # Assume MSVC wrapper
9907 hardcode_libdir_flag_spec=' '
9908 allow_undefined_flag=unsupported
9909 # Tell ltmain to make .lib files, not .a files.
9911 # Tell ltmain to make .dll files, not .so files.
9913 # FIXME: Setting linknames here is a bad hack.
9914 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9915 # The linker will automatically build a .lib file if we build a DLL.
9916 old_archive_from_new_cmds='true'
9917 # FIXME: Should let the user specify the lib program.
9918 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9919 enable_shared_with_static_runtimes=yes
9924 darwin* | rhapsody*)
9927 archive_cmds_need_lc=no
9929 hardcode_automatic=yes
9930 hardcode_shlibpath_var=unsupported
9931 if test "$lt_cv_ld_force_load" = "yes"; then
9932 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\"`'
9935 whole_archive_flag_spec=''
9937 link_all_deplibs=yes
9938 allow_undefined_flag="$_lt_dar_allow_undefined"
9939 case $cc_basename in
9940 ifort*) _lt_dar_can_shared=yes ;;
9941 *) _lt_dar_can_shared=$GCC ;;
9943 if test "$_lt_dar_can_shared" = "yes"; then
9944 output_verbose_link_cmd=func_echo_all
9945 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9946 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9947 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}"
9948 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}"
9957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 hardcode_libdir_flag_spec='-L$libdir'
9959 hardcode_shlibpath_var=no
9962 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9963 # support. Future versions do this automatically, but an explicit c++rt0.o
9964 # does not break anything, and helps significantly (at the cost of a little
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9968 hardcode_libdir_flag_spec='-R$libdir'
9970 hardcode_shlibpath_var=no
9973 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9977 hardcode_minus_L=yes
9978 hardcode_shlibpath_var=no
9981 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9982 freebsd* | dragonfly*)
9983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9984 hardcode_libdir_flag_spec='-R$libdir'
9986 hardcode_shlibpath_var=no
9990 if test "$GCC" = yes; then
9991 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'
9993 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'
9995 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9996 hardcode_libdir_separator=:
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10002 export_dynamic_flag_spec='${wl}-E'
10006 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10007 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011 if test "$with_gnu_ld" = no; then
10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_separator=:
10014 hardcode_direct=yes
10015 hardcode_direct_absolute=yes
10016 export_dynamic_flag_spec='${wl}-E'
10017 # hardcode_minus_L: Not really in the search PATH,
10018 # but as the default location of the library.
10019 hardcode_minus_L=yes
10024 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10027 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10030 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10039 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10046 # Older versions of the 11.00 compiler do not understand -b yet
10047 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10049 $as_echo_n "checking if $CC understands -b... " >&6; }
10050 if ${lt_cv_prog_compiler__b+:} false; then :
10051 $as_echo_n "(cached) " >&6
10053 lt_cv_prog_compiler__b=no
10054 save_LDFLAGS="$LDFLAGS"
10055 LDFLAGS="$LDFLAGS -b"
10056 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10057 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10058 # The linker can only warn and ignore the option if not recognized
10059 # So say no if there are warnings
10060 if test -s conftest.err; then
10061 # Append any errors to the config.log.
10062 cat conftest.err 1>&5
10063 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10065 if diff conftest.exp conftest.er2 >/dev/null; then
10066 lt_cv_prog_compiler__b=yes
10069 lt_cv_prog_compiler__b=yes
10073 LDFLAGS="$save_LDFLAGS"
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10077 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10079 if test x"$lt_cv_prog_compiler__b" = xyes; then
10080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10088 if test "$with_gnu_ld" = no; then
10089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10090 hardcode_libdir_separator=:
10095 hardcode_shlibpath_var=no
10098 hardcode_direct=yes
10099 hardcode_direct_absolute=yes
10100 export_dynamic_flag_spec='${wl}-E'
10102 # hardcode_minus_L: Not really in the search PATH,
10103 # but as the default location of the library.
10104 hardcode_minus_L=yes
10110 irix5* | irix6* | nonstopux*)
10111 if test "$GCC" = yes; then
10112 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'
10113 # Try to use the -exported_symbol ld option, if it does not
10114 # work, assume that -exports_file does not work either and
10115 # implicitly export all symbols.
10116 # This should be the same for all languages, so no per-tag cache variable.
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10118 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10119 if ${lt_cv_irix_exported_symbol+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 save_LDFLAGS="$LDFLAGS"
10123 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126 int foo (void) { return 0; }
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 lt_cv_irix_exported_symbol=yes
10131 lt_cv_irix_exported_symbol=no
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LDFLAGS="$save_LDFLAGS"
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10138 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10139 if test "$lt_cv_irix_exported_symbol" = yes; then
10140 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'
10143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10146 archive_cmds_need_lc='no'
10147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148 hardcode_libdir_separator=:
10150 link_all_deplibs=yes
10153 netbsd* | netbsdelf*-gnu)
10154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10157 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10159 hardcode_libdir_flag_spec='-R$libdir'
10160 hardcode_direct=yes
10161 hardcode_shlibpath_var=no
10165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10166 hardcode_direct=yes
10167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10168 hardcode_libdir_separator=:
10169 hardcode_shlibpath_var=no
10176 if test -f /usr/libexec/ld.so; then
10177 hardcode_direct=yes
10178 hardcode_shlibpath_var=no
10179 hardcode_direct_absolute=yes
10180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10184 export_dynamic_flag_spec='${wl}-E'
10187 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10188 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_libdir_flag_spec='-R$libdir'
10192 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10193 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_minus_L=yes
10205 allow_undefined_flag=unsupported
10206 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'
10207 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10211 if test "$GCC" = yes; then
10212 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10213 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'
10215 allow_undefined_flag=' -expect_unresolved \*'
10216 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'
10218 archive_cmds_need_lc='no'
10219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10220 hardcode_libdir_separator=:
10223 osf4* | osf5*) # as osf3* with the addition of -msym flag
10224 if test "$GCC" = yes; then
10225 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10226 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'
10227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10229 allow_undefined_flag=' -expect_unresolved \*'
10230 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'
10231 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~
10232 $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'
10234 # Both c and cxx compiler support -rpath directly
10235 hardcode_libdir_flag_spec='-rpath $libdir'
10237 archive_cmds_need_lc='no'
10238 hardcode_libdir_separator=:
10242 no_undefined_flag=' -z defs'
10243 if test "$GCC" = yes; then
10245 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10247 $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'
10249 case `$CC -V 2>&1` in
10252 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10254 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10258 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10264 hardcode_libdir_flag_spec='-R$libdir'
10265 hardcode_shlibpath_var=no
10267 solaris2.[0-5] | solaris2.[0-5].*) ;;
10269 # The compiler driver will combine and reorder linker options,
10270 # but understands `-z linker_flag'. GCC discards it without `$wl',
10271 # but is careful enough not to reorder.
10272 # Supported since Solaris 2.6 (maybe 2.5.1?)
10273 if test "$GCC" = yes; then
10274 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10276 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10280 link_all_deplibs=yes
10284 if test "x$host_vendor" = xsequent; then
10285 # Use $CC to link under sequent, because it throws in some extra .o
10286 # files that make .init and .fini sections work.
10287 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10291 hardcode_libdir_flag_spec='-L$libdir'
10292 hardcode_direct=yes
10293 hardcode_minus_L=yes
10294 hardcode_shlibpath_var=no
10298 case $host_vendor in
10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_direct=yes # is this really true???
10304 ## LD is ld it makes a PLAMLIB
10305 ## CC just makes a GrossModule.
10306 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10307 reload_cmds='$CC -r -o $output$reload_objs'
10311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10315 runpath_var='LD_RUN_PATH'
10316 hardcode_shlibpath_var=no
10320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10321 hardcode_shlibpath_var=no
10322 export_dynamic_flag_spec='-Bexport'
10326 if test -d /usr/nec; then
10327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328 hardcode_shlibpath_var=no
10329 runpath_var=LD_RUN_PATH
10330 hardcode_runpath_var=yes
10335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10336 no_undefined_flag='${wl}-z,text'
10337 archive_cmds_need_lc=no
10338 hardcode_shlibpath_var=no
10339 runpath_var='LD_RUN_PATH'
10341 if test "$GCC" = yes; then
10342 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10346 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350 sysv5* | sco3.2v5* | sco5v6*)
10351 # Note: We can NOT use -z defs as we might desire, because we do not
10352 # link with -lc, and that would cause any symbols used from libc to
10353 # always be unresolved, which means just about no library would
10354 # ever link correctly. If we're not using GNU ld we use -z text
10355 # though, which does catch some bad symbols but isn't as heavy-handed
10357 no_undefined_flag='${wl}-z,text'
10358 allow_undefined_flag='${wl}-z,nodefs'
10359 archive_cmds_need_lc=no
10360 hardcode_shlibpath_var=no
10361 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10362 hardcode_libdir_separator=':'
10363 link_all_deplibs=yes
10364 export_dynamic_flag_spec='${wl}-Bexport'
10365 runpath_var='LD_RUN_PATH'
10367 if test "$GCC" = yes; then
10368 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378 hardcode_libdir_flag_spec='-L$libdir'
10379 hardcode_shlibpath_var=no
10387 if test x$host_vendor = xsni; then
10389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10390 export_dynamic_flag_spec='${wl}-Blargedynsym'
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10397 $as_echo "$ld_shlibs" >&6; }
10398 test "$ld_shlibs" = no && can_build_shared=no
10400 with_gnu_ld=$with_gnu_ld
10417 # Do we need to explicitly link libc?
10419 case "x$archive_cmds_need_lc" in
10421 # Assume -lc should be added
10422 archive_cmds_need_lc=yes
10424 if test "$enable_shared" = yes && test "$GCC" = yes; then
10425 case $archive_cmds in
10427 # FIXME: we may have to deal with multi-command sequences.
10430 # Test whether the compiler implicitly links with -lc since on some
10431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10432 # to ld, don't add -lc before -lgcc.
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10434 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10435 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10436 $as_echo_n "(cached) " >&6
10439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10442 (eval $ac_compile) 2>&5
10444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10445 test $ac_status = 0; } 2>conftest.err; then
10448 libobjs=conftest.$ac_objext
10450 wl=$lt_prog_compiler_wl
10451 pic_flag=$lt_prog_compiler_pic
10457 lt_save_allow_undefined_flag=$allow_undefined_flag
10458 allow_undefined_flag=
10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10460 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; }
10465 lt_cv_archive_cmds_need_lc=no
10467 lt_cv_archive_cmds_need_lc=yes
10469 allow_undefined_flag=$lt_save_allow_undefined_flag
10471 cat conftest.err 1>&5
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10477 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10478 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10637 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10639 if test "$GCC" = yes; then
10641 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10642 *) lt_awk_arg="/^libraries:/" ;;
10645 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10646 *) lt_sed_strip_eq="s,=/,/,g" ;;
10648 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10649 case $lt_search_path_spec in
10651 # if the path contains ";" then we assume it to be the separator
10652 # otherwise default to the standard path separator (i.e. ":") - it is
10653 # assumed that no part of a normal pathname contains ";" but that should
10654 # okay in the real world where ";" in dirpaths is itself problematic.
10655 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10661 # Ok, now we have the path, separated by spaces, we can step through it
10662 # and add multilib dir if necessary.
10663 lt_tmp_lt_search_path_spec=
10664 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10665 for lt_sys_path in $lt_search_path_spec; do
10666 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10667 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10669 test -d "$lt_sys_path" && \
10670 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10673 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10674 BEGIN {RS=" "; FS="/|\n";} {
10677 for (lt_i = NF; lt_i > 0; lt_i--) {
10678 if ($lt_i != "" && $lt_i != ".") {
10679 if ($lt_i == "..") {
10682 if (lt_count == 0) {
10683 lt_foo="/" $lt_i lt_foo;
10690 if (lt_foo != "") { lt_freq[lt_foo]++; }
10691 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10693 # AWK program above erroneously prepends '/' to C:/dos/paths
10696 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10697 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10699 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10701 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10703 library_names_spec=
10704 libname_spec='lib$name'
10708 postuninstall_cmds=
10712 shlibpath_overrides_runpath=unknown
10714 dynamic_linker="$host_os ld.so"
10715 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10716 need_lib_prefix=unknown
10717 hardcode_into_libs=no
10719 # when you set need_version to no, make sure it does not cause -set_version
10720 # flags to be left without arguments
10721 need_version=unknown
10725 version_type=linux # correct to gnu/linux during the next big refactor
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10727 shlibpath_var=LIBPATH
10729 # AIX 3 has no versioning support, so we append a major version to the name.
10730 soname_spec='${libname}${release}${shared_ext}$major'
10734 version_type=linux # correct to gnu/linux during the next big refactor
10737 hardcode_into_libs=yes
10738 if test "$host_cpu" = ia64; then
10739 # AIX 5 supports IA64
10740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10741 shlibpath_var=LD_LIBRARY_PATH
10743 # With GCC up to 2.95.x, collect2 would create an import file
10744 # for dependence libraries. The import file would start with
10745 # the line `#! .'. This would cause the generated library to
10746 # depend on `.', always an invalid library. This was fixed in
10747 # development snapshots of GCC prior to 3.0.
10749 aix4 | aix4.[01] | aix4.[01].*)
10750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10752 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10755 can_build_shared=no
10759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10760 # soname into executable. Probably we can add versioning support to
10761 # collect2, so additional links can be useful in future.
10762 if test "$aix_use_runtimelinking" = yes; then
10763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10764 # instead of lib<name>.a to let people know that these are not
10765 # typical AIX shared libraries.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 # We preserve .a as extension for shared libraries through AIX4.2
10769 # and later when we are not doing run time linking.
10770 library_names_spec='${libname}${release}.a $libname.a'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LIBPATH
10780 # Since July 2007 AmigaOS4 officially supports .so libraries.
10781 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785 library_names_spec='$libname.ixlibrary $libname.a'
10786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10787 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'
10793 library_names_spec='${libname}${shared_ext}'
10794 dynamic_linker="$host_os ld.so"
10795 shlibpath_var=LIBRARY_PATH
10799 version_type=linux # correct to gnu/linux during the next big refactor
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10807 # the default ld.so.conf also contains /usr/contrib/lib and
10808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10809 # libtool to hard-code these into programs
10812 cygwin* | mingw* | pw32* | cegcc*)
10813 version_type=windows
10818 case $GCC,$cc_basename in
10821 library_names_spec='$libname.dll.a'
10822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10823 postinstall_cmds='base_file=`basename \${file}`~
10824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10825 dldir=$destdir/`dirname \$dlpath`~
10826 test -d \$dldir || mkdir -p \$dldir~
10827 $install_prog $dir/$dlname \$dldir/$dlname~
10828 chmod a+x \$dldir/$dlname~
10829 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10830 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10833 dlpath=$dir/\$dldll~
10835 shlibpath_overrides_runpath=yes
10839 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10845 # MinGW DLLs use traditional 'lib' prefix
10846 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10849 # pw32 DLLs use 'pw' prefix rather than 'lib'
10850 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10853 dynamic_linker='Win32 ld.exe'
10858 libname_spec='$name'
10859 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10860 library_names_spec='${libname}.dll.lib'
10864 sys_lib_search_path_spec=
10867 for lt_path in $LIB
10870 # Let DOS variable expansion print the short 8.3 style file name.
10871 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10872 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10875 # Convert to MSYS style.
10876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10879 # Convert to unix form, then to dos form, then back to unix form
10880 # but this time dos style (no spaces!) so that the unix form looks
10881 # like /cygdrive/c/PROGRA~1:/cygdr...
10882 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10883 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10884 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10887 sys_lib_search_path_spec="$LIB"
10888 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10889 # It is most probably a Windows format PATH.
10890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10892 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10894 # FIXME: find the short name or the path components, as spaces are
10895 # common. (e.g. "Program Files" -> "PROGRA~1")
10899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10900 postinstall_cmds='base_file=`basename \${file}`~
10901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10902 dldir=$destdir/`dirname \$dlpath`~
10903 test -d \$dldir || mkdir -p \$dldir~
10904 $install_prog $dir/$dlname \$dldir/$dlname'
10905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10906 dlpath=$dir/\$dldll~
10908 shlibpath_overrides_runpath=yes
10909 dynamic_linker='Win32 link.exe'
10913 # Assume MSVC wrapper
10914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10915 dynamic_linker='Win32 ld.exe'
10918 # FIXME: first we should search . and the directory the executable is in
10922 darwin* | rhapsody*)
10923 dynamic_linker="$host_os dyld"
10924 version_type=darwin
10927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10928 soname_spec='${libname}${release}${major}$shared_ext'
10929 shlibpath_overrides_runpath=yes
10930 shlibpath_var=DYLD_LIBRARY_PATH
10931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10938 version_type=linux # correct to gnu/linux during the next big refactor
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 shlibpath_var=LD_LIBRARY_PATH
10946 freebsd* | dragonfly*)
10947 # DragonFly does not have aout. When/if they implement a new
10948 # versioning mechanism, adjust this.
10949 if test -x /usr/bin/objformat; then
10950 objformat=`/usr/bin/objformat`
10953 freebsd[23].*) objformat=aout ;;
10954 *) objformat=elf ;;
10957 version_type=freebsd-$objformat
10958 case $version_type in
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10969 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10974 freebsd3.[01]* | freebsdelf3.[01]*)
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10980 shlibpath_overrides_runpath=no
10981 hardcode_into_libs=yes
10983 *) # from 4.6 on, and DragonFly
10984 shlibpath_overrides_runpath=yes
10985 hardcode_into_libs=yes
10991 version_type=linux # correct to gnu/linux during the next big refactor
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'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 shlibpath_overrides_runpath=no
10998 hardcode_into_libs=yes
11002 version_type=linux # correct to gnu/linux during the next big refactor
11005 dynamic_linker="$host_os runtime_loader"
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11011 hardcode_into_libs=yes
11014 hpux9* | hpux10* | hpux11*)
11015 # Give a soname corresponding to the major version so that dld.sl refuses to
11016 # link against other versions.
11023 hardcode_into_libs=yes
11024 dynamic_linker="$host_os dld.so"
11025 shlibpath_var=LD_LIBRARY_PATH
11026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 if test "X$HPUX_IA64_MODE" = X32; then
11030 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11032 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11034 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11038 hardcode_into_libs=yes
11039 dynamic_linker="$host_os dld.sl"
11040 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11049 dynamic_linker="$host_os dld.sl"
11050 shlibpath_var=SHLIB_PATH
11051 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11056 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11057 postinstall_cmds='chmod 555 $lib'
11058 # or fails outright, so override atomically:
11059 install_override_mode=555
11063 version_type=linux # correct to gnu/linux during the next big refactor
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11067 soname_spec='${libname}${release}${shared_ext}$major'
11068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071 hardcode_into_libs=yes
11074 irix5* | irix6* | nonstopux*)
11076 nonstopux*) version_type=nonstopux ;;
11078 if test "$lt_cv_prog_gnu_ld" = yes; then
11079 version_type=linux # correct to gnu/linux during the next big refactor
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11089 irix5* | nonstopux*)
11090 libsuff= shlibsuff=
11093 case $LD in # libtool.m4 will add one of these switches to LD
11094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11095 libsuff= shlibsuff= libmagic=32-bit;;
11096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11097 libsuff=32 shlibsuff=N32 libmagic=N32;;
11098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11100 *) libsuff= shlibsuff= libmagic=never-match;;
11104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11105 shlibpath_overrides_runpath=no
11106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11108 hardcode_into_libs=yes
11111 # No shared lib support for Linux oldld, aout, or coff.
11112 linux*oldld* | linux*aout* | linux*coff*)
11117 version_type=none # Android doesn't support versioned libraries.
11120 library_names_spec='$libname$release$shared_ext'
11121 soname_spec='$libname$release$shared_ext'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=yes
11126 # This implies no fast_install, which is unacceptable.
11127 # Some rework will be needed to allow for fast_install
11128 # before this can be enabled.
11129 hardcode_into_libs=yes
11131 dynamic_linker='Android linker'
11132 # Don't embed -rpath directories since the linker doesn't support them.
11133 hardcode_libdir_flag_spec='-L$libdir'
11136 # This must be glibc/ELF.
11137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=no
11147 # Some binutils ld are patched to set DT_RUNPATH
11148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 lt_cv_shlibpath_overrides_runpath=no
11152 save_LDFLAGS=$LDFLAGS
11153 save_libdir=$libdir
11154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11169 lt_cv_shlibpath_overrides_runpath=yes
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LDFLAGS=$save_LDFLAGS
11175 libdir=$save_libdir
11179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11181 # This implies no fast_install, which is unacceptable.
11182 # Some rework will be needed to allow for fast_install
11183 # before this can be enabled.
11184 hardcode_into_libs=yes
11186 # Append ld.so.conf contents to the search path
11187 if test -f /etc/ld.so.conf; then
11188 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' ' '`
11189 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11192 # We used to test for /lib/ld.so.1 and disable shared libraries on
11193 # powerpc, because MkLinux only supported shared libraries with the
11194 # GNU dynamic linker. Since this was broken with cross compilers,
11195 # most powerpc-linux boxes support dynamic linking these days and
11196 # people can always --disable-shared, the test was removed, and we
11197 # assume the GNU/Linux dynamic linker is in use.
11198 dynamic_linker='GNU/Linux ld.so'
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 shlibpath_overrides_runpath=no
11209 hardcode_into_libs=yes
11210 dynamic_linker='NetBSD ld.elf_so'
11217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11220 dynamic_linker='NetBSD (a.out) ld.so'
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11223 soname_spec='${libname}${release}${shared_ext}$major'
11224 dynamic_linker='NetBSD ld.elf_so'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=yes
11228 hardcode_into_libs=yes
11232 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=yes
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 shlibpath_overrides_runpath=no
11246 hardcode_into_libs=yes
11247 dynamic_linker='ldqnx.so'
11252 sys_lib_dlsearch_path_spec="/usr/lib"
11254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11257 *) need_version=no ;;
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11264 openbsd2.[89] | openbsd2.[89].*)
11265 shlibpath_overrides_runpath=no
11268 shlibpath_overrides_runpath=yes
11272 shlibpath_overrides_runpath=yes
11277 libname_spec='$name'
11280 library_names_spec='$libname${shared_ext} $libname.a'
11281 dynamic_linker='OS/2 ld.exe'
11282 shlibpath_var=LIBPATH
11285 osf3* | osf4* | osf5*)
11289 soname_spec='${libname}${release}${shared_ext}$major'
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11301 version_type=linux # correct to gnu/linux during the next big refactor
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=yes
11308 hardcode_into_libs=yes
11309 # ldd complains unless libraries are executable
11310 postinstall_cmds='chmod +x $lib'
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11319 if test "$with_gnu_ld" = yes; then
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 case $host_vendor in
11332 shlibpath_overrides_runpath=no
11334 runpath_var=LD_RUN_PATH
11342 shlibpath_overrides_runpath=no
11343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11349 if test -d /usr/nec ;then
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11352 soname_spec='$libname${shared_ext}.$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11358 version_type=freebsd-elf
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 hardcode_into_libs=yes
11366 if test "$with_gnu_ld" = yes; then
11367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11376 sys_lib_dlsearch_path_spec='/usr/lib'
11380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11381 version_type=linux # correct to gnu/linux during the next big refactor
11384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 hardcode_into_libs=yes
11391 version_type=linux # correct to gnu/linux during the next big refactor
11392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11393 soname_spec='${libname}${release}${shared_ext}$major'
11394 shlibpath_var=LD_LIBRARY_PATH
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11402 $as_echo "$dynamic_linker" >&6; }
11403 test "$dynamic_linker" = no && can_build_shared=no
11405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11406 if test "$GCC" = yes; then
11407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11511 if test -n "$hardcode_libdir_flag_spec" ||
11512 test -n "$runpath_var" ||
11513 test "X$hardcode_automatic" = "Xyes" ; then
11515 # We can hardcode non-existent directories.
11516 if test "$hardcode_direct" != no &&
11517 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11518 # have to relink, otherwise we might link with an installed library
11519 # when we should be linking with a yet-to-be-installed one
11520 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11521 test "$hardcode_minus_L" != no; then
11522 # Linking always hardcodes the temporary library directory.
11523 hardcode_action=relink
11525 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11526 hardcode_action=immediate
11529 # We cannot hardcode anything, or else we can only hardcode existing
11531 hardcode_action=unsupported
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11534 $as_echo "$hardcode_action" >&6; }
11536 if test "$hardcode_action" = relink ||
11537 test "$inherit_rpath" = yes; then
11538 # Fast installation is not supported
11539 enable_fast_install=no
11540 elif test "$shlibpath_overrides_runpath" = yes ||
11541 test "$enable_shared" = no; then
11542 # Fast installation is not necessary
11543 enable_fast_install=needless
11551 if test "x$enable_dlopen" != xyes; then
11552 enable_dlopen=unknown
11553 enable_dlopen_self=unknown
11554 enable_dlopen_self_static=unknown
11561 lt_cv_dlopen="load_add_on"
11563 lt_cv_dlopen_self=yes
11566 mingw* | pw32* | cegcc*)
11567 lt_cv_dlopen="LoadLibrary"
11572 lt_cv_dlopen="dlopen"
11577 # if libdl is installed we need to link against it
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11580 if ${ac_cv_lib_dl_dlopen+:} false; then :
11581 $as_echo_n "(cached) " >&6
11583 ac_check_lib_save_LIBS=$LIBS
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 ac_cv_lib_dl_dlopen=yes
11606 ac_cv_lib_dl_dlopen=no
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11615 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618 lt_cv_dlopen="dyld"
11620 lt_cv_dlopen_self=yes
11627 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11628 if test "x$ac_cv_func_shl_load" = xyes; then :
11629 lt_cv_dlopen="shl_load"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11633 if ${ac_cv_lib_dld_shl_load+:} false; then :
11634 $as_echo_n "(cached) " >&6
11636 ac_check_lib_save_LIBS=$LIBS
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11651 return shl_load ();
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 ac_cv_lib_dld_shl_load=yes
11659 ac_cv_lib_dld_shl_load=no
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 LIBS=$ac_check_lib_save_LIBS
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11668 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11670 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11671 if test "x$ac_cv_func_dlopen" = xyes; then :
11672 lt_cv_dlopen="dlopen"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11676 if ${ac_cv_lib_dl_dlopen+:} false; then :
11677 $as_echo_n "(cached) " >&6
11679 ac_check_lib_save_LIBS=$LIBS
11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h. */
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11699 if ac_fn_c_try_link "$LINENO"; then :
11700 ac_cv_lib_dl_dlopen=yes
11702 ac_cv_lib_dl_dlopen=no
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11711 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11715 if ${ac_cv_lib_svld_dlopen+:} false; then :
11716 $as_echo_n "(cached) " >&6
11718 ac_check_lib_save_LIBS=$LIBS
11719 LIBS="-lsvld $LIBS"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 ac_cv_lib_svld_dlopen=yes
11741 ac_cv_lib_svld_dlopen=no
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 LIBS=$ac_check_lib_save_LIBS
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11754 if ${ac_cv_lib_dld_dld_link+:} false; then :
11755 $as_echo_n "(cached) " >&6
11757 ac_check_lib_save_LIBS=$LIBS
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11772 return dld_link ();
11777 if ac_fn_c_try_link "$LINENO"; then :
11778 ac_cv_lib_dld_dld_link=yes
11780 ac_cv_lib_dld_dld_link=no
11782 rm -f core conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
11784 LIBS=$ac_check_lib_save_LIBS
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11789 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11810 if test "x$lt_cv_dlopen" != xno; then
11816 case $lt_cv_dlopen in
11818 save_CPPFLAGS="$CPPFLAGS"
11819 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11821 save_LDFLAGS="$LDFLAGS"
11822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11825 LIBS="$lt_cv_dlopen_libs $LIBS"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11829 if ${lt_cv_dlopen_self+:} false; then :
11830 $as_echo_n "(cached) " >&6
11832 if test "$cross_compiling" = yes; then :
11833 lt_cv_dlopen_self=cross
11835 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836 lt_status=$lt_dlunknown
11837 cat > conftest.$ac_ext <<_LT_EOF
11838 #line $LINENO "configure"
11839 #include "confdefs.h"
11848 # define LT_DLGLOBAL RTLD_GLOBAL
11851 # define LT_DLGLOBAL DL_GLOBAL
11853 # define LT_DLGLOBAL 0
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858 find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11861 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11864 # define LT_DLLAZY_OR_NOW DL_LAZY
11867 # define LT_DLLAZY_OR_NOW RTLD_NOW
11870 # define LT_DLLAZY_OR_NOW DL_NOW
11872 # define LT_DLLAZY_OR_NOW 0
11879 /* When -fvisbility=hidden is used, assume the code has been annotated
11880 correspondingly for the symbols needed. */
11881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11882 int fnord () __attribute__((visibility("default")));
11885 int fnord () { return 42; }
11888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889 int status = $lt_dlunknown;
11893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11896 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897 else puts (dlerror ());
11899 /* dlclose (self); */
11907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11908 (eval $ac_link) 2>&5
11910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11912 (./conftest; exit; ) >&5 2>/dev/null
11914 case x$lt_status in
11915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11917 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11920 # compilation failed
11921 lt_cv_dlopen_self=no
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11929 $as_echo "$lt_cv_dlopen_self" >&6; }
11931 if test "x$lt_cv_dlopen_self" = xyes; then
11932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11935 if ${lt_cv_dlopen_self_static+:} false; then :
11936 $as_echo_n "(cached) " >&6
11938 if test "$cross_compiling" = yes; then :
11939 lt_cv_dlopen_self_static=cross
11941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11942 lt_status=$lt_dlunknown
11943 cat > conftest.$ac_ext <<_LT_EOF
11944 #line $LINENO "configure"
11945 #include "confdefs.h"
11954 # define LT_DLGLOBAL RTLD_GLOBAL
11957 # define LT_DLGLOBAL DL_GLOBAL
11959 # define LT_DLGLOBAL 0
11963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11964 find out it does not work in some platform. */
11965 #ifndef LT_DLLAZY_OR_NOW
11967 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11970 # define LT_DLLAZY_OR_NOW DL_LAZY
11973 # define LT_DLLAZY_OR_NOW RTLD_NOW
11976 # define LT_DLLAZY_OR_NOW DL_NOW
11978 # define LT_DLLAZY_OR_NOW 0
11985 /* When -fvisbility=hidden is used, assume the code has been annotated
11986 correspondingly for the symbols needed. */
11987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11988 int fnord () __attribute__((visibility("default")));
11991 int fnord () { return 42; }
11994 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11995 int status = $lt_dlunknown;
11999 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12002 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12003 else puts (dlerror ());
12005 /* dlclose (self); */
12013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12014 (eval $ac_link) 2>&5
12016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12017 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12018 (./conftest; exit; ) >&5 2>/dev/null
12020 case x$lt_status in
12021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12026 # compilation failed
12027 lt_cv_dlopen_self_static=no
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12038 CPPFLAGS="$save_CPPFLAGS"
12039 LDFLAGS="$save_LDFLAGS"
12044 case $lt_cv_dlopen_self in
12045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12046 *) enable_dlopen_self=unknown ;;
12049 case $lt_cv_dlopen_self_static in
12050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12051 *) enable_dlopen_self_static=unknown ;;
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12081 # FIXME - insert some real tests, host_os isn't really good enough
12084 if test -n "$STRIP" ; then
12085 striplib="$STRIP -x"
12086 old_striplib="$STRIP -S"
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088 $as_echo "yes" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091 $as_echo "no" >&6; }
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096 $as_echo "no" >&6; }
12112 # Report which library types will actually be built
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12116 $as_echo "$can_build_shared" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12119 $as_echo_n "checking whether to build shared libraries... " >&6; }
12120 test "$can_build_shared" = "no" && enable_shared=no
12122 # On AIX, shared libraries and static libraries use the same namespace, and
12123 # are all built from PIC.
12126 test "$enable_shared" = yes && enable_static=no
12127 if test -n "$RANLIB"; then
12128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12129 postinstall_cmds='$RANLIB $lib'
12134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12135 test "$enable_shared" = yes && enable_static=no
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12140 $as_echo "$enable_shared" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12143 $as_echo_n "checking whether to build static libraries... " >&6; }
12144 # Make sure either enable_shared or enable_static is yes.
12145 test "$enable_shared" = yes || enable_static=yes
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12147 $as_echo "$enable_static" >&6; }
12154 ac_cpp='$CPP $CPPFLAGS'
12155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175 ac_config_commands="$ac_config_commands libtool"
12180 # Only expand once:
12183 if test -n "$ac_tool_prefix"; then
12184 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}windres; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if ${ac_cv_prog_RC+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 if test -n "$RC"; then
12192 ac_cv_prog_RC="$RC" # Let the user override the test.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12201 ac_cv_prog_RC="${ac_tool_prefix}windres"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 if test -n "$RC"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12214 $as_echo "$RC" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12222 if test -z "$ac_cv_prog_RC"; then
12224 # Extract the first word of "windres", so it can be a program name with args.
12225 set dummy windres; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227 $as_echo_n "checking for $ac_word... " >&6; }
12228 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12229 $as_echo_n "(cached) " >&6
12231 if test -n "$ac_ct_RC"; then
12232 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241 ac_cv_prog_ac_ct_RC="windres"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12252 if test -n "$ac_ct_RC"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12254 $as_echo "$ac_ct_RC" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12260 if test "x$ac_ct_RC" = x; then
12263 case $cross_compiling:$ac_tool_warned in
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12267 ac_tool_warned=yes ;;
12272 RC="$ac_cv_prog_RC"
12278 # Source file extension for RC test sources.
12281 # Object file extension for compiled RC test sources.
12285 # Code to be used in simple compile tests
12286 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12288 # Code to be used in simple link tests
12289 lt_simple_link_test_code="$lt_simple_compile_test_code"
12291 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12298 # If no C compiler was specified, use CC.
12301 # If no C compiler flags were specified, use CFLAGS.
12302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12304 # Allow CC to be a program name with arguments.
12308 # save warnings/boilerplate of simple test code
12309 ac_outfile=conftest.$ac_objext
12310 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12312 _lt_compiler_boilerplate=`cat conftest.err`
12315 ac_outfile=conftest.$ac_objext
12316 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12318 _lt_linker_boilerplate=`cat conftest.err`
12322 # Allow CC to be a program name with arguments.
12324 lt_save_CFLAGS=$CFLAGS
12331 for cc_temp in $compiler""; do
12333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12339 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12341 lt_cv_prog_compiler_c_o_RC=yes
12343 if test -n "$compiler"; then
12352 ac_cpp='$CPP $CPPFLAGS'
12353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12358 CFLAGS=$lt_save_CFLAGS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12363 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12364 # Check whether --enable-maintainer-mode was given.
12365 if test "${enable_maintainer_mode+set}" = set; then :
12366 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12368 USE_MAINTAINER_MODE=no
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12372 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12373 if test $USE_MAINTAINER_MODE = yes; then
12374 MAINTAINER_MODE_TRUE=
12375 MAINTAINER_MODE_FALSE='#'
12377 MAINTAINER_MODE_TRUE='#'
12378 MAINTAINER_MODE_FALSE=
12381 MAINT=$MAINTAINER_MODE_TRUE
12392 cat >>confdefs.h <<_ACEOF
12393 #define PACKAGE "$PACKAGE"
12397 cat >>confdefs.h <<_ACEOF
12398 #define VERSION "$VERSION"
12408 # Checks for programs.
12409 missing_dir=`cd $ac_aux_dir && pwd`
12411 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12414 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12417 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12420 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12423 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12425 # Check whether --enable-silent-rules was given.
12426 if test "${enable_silent_rules+set}" = set; then :
12427 enableval=$enable_silent_rules;
12430 case $enable_silent_rules in # (((
12431 yes) AM_DEFAULT_VERBOSITY=0;;
12432 no) AM_DEFAULT_VERBOSITY=1;;
12433 *) AM_DEFAULT_VERBOSITY=1;;
12435 am_make=${MAKE-make}
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12438 if ${am_cv_make_support_nested_variables+:} false; then :
12439 $as_echo_n "(cached) " >&6
12441 if $as_echo 'TRUE=$(BAR$(V))
12447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12448 am_cv_make_support_nested_variables=yes
12450 am_cv_make_support_nested_variables=no
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12455 if test $am_cv_make_support_nested_variables = yes; then
12457 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12459 AM_V=$AM_DEFAULT_VERBOSITY
12460 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12464 for ac_prog in gawk mawk nawk awk
12466 # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12469 $as_echo_n "checking for $ac_word... " >&6; }
12470 if ${ac_cv_prog_AWK+:} false; then :
12471 $as_echo_n "(cached) " >&6
12473 if test -n "$AWK"; then
12474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12480 test -z "$as_dir" && as_dir=.
12481 for ac_exec_ext in '' $ac_executable_extensions; do
12482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12483 ac_cv_prog_AWK="$ac_prog"
12484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12493 AWK=$ac_cv_prog_AWK
12494 if test -n "$AWK"; then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12496 $as_echo "$AWK" >&6; }
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12499 $as_echo "no" >&6; }
12503 test -n "$AWK" && break
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511 if test -n "$ac_tool_prefix"; then
12512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_prog_CC+:} false; then :
12517 $as_echo_n "(cached) " >&6
12519 if test -n "$CC"; then
12520 ac_cv_prog_CC="$CC" # Let the user override the test.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 if test -n "$CC"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12542 $as_echo "$CC" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12550 if test -z "$ac_cv_prog_CC"; then
12552 # Extract the first word of "gcc", so it can be a program name with args.
12553 set dummy gcc; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12557 $as_echo_n "(cached) " >&6
12559 if test -n "$ac_ct_CC"; then
12560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_ac_ct_CC="gcc"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12580 if test -n "$ac_ct_CC"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12582 $as_echo "$ac_ct_CC" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12588 if test "x$ac_ct_CC" = x; then
12591 case $cross_compiling:$ac_tool_warned in
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12595 ac_tool_warned=yes ;;
12600 CC="$ac_cv_prog_CC"
12603 if test -z "$CC"; then
12604 if test -n "$ac_tool_prefix"; then
12605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12606 set dummy ${ac_tool_prefix}cc; ac_word=$2
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12608 $as_echo_n "checking for $ac_word... " >&6; }
12609 if ${ac_cv_prog_CC+:} false; then :
12610 $as_echo_n "(cached) " >&6
12612 if test -n "$CC"; then
12613 ac_cv_prog_CC="$CC" # Let the user override the test.
12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12616 for as_dir in $PATH
12619 test -z "$as_dir" && as_dir=.
12620 for ac_exec_ext in '' $ac_executable_extensions; do
12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12622 ac_cv_prog_CC="${ac_tool_prefix}cc"
12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12633 if test -n "$CC"; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12635 $as_echo "$CC" >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 $as_echo "no" >&6; }
12644 if test -z "$CC"; then
12645 # Extract the first word of "cc", so it can be a program name with args.
12646 set dummy cc; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CC+:} false; then :
12650 $as_echo_n "(cached) " >&6
12652 if test -n "$CC"; then
12653 ac_cv_prog_CC="$CC" # Let the user override the test.
12655 ac_prog_rejected=no
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12664 ac_prog_rejected=yes
12668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 if test $ac_prog_rejected = yes; then
12676 # We found a bogon in the path, so make sure we never use it.
12677 set dummy $ac_cv_prog_CC
12679 if test $# != 0; then
12680 # We chose a different compiler from the bogus one.
12681 # However, it has the same basename, so the bogon will be chosen
12682 # first if we set CC to just the basename; use the full file name.
12684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12690 if test -n "$CC"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12692 $as_echo "$CC" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12700 if test -z "$CC"; then
12701 if test -n "$ac_tool_prefix"; then
12702 for ac_prog in cl.exe
12704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707 $as_echo_n "checking for $ac_word... " >&6; }
12708 if ${ac_cv_prog_CC+:} false; then :
12709 $as_echo_n "(cached) " >&6
12711 if test -n "$CC"; then
12712 ac_cv_prog_CC="$CC" # Let the user override the test.
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 if test -n "$CC"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12734 $as_echo "$CC" >&6; }
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12741 test -n "$CC" && break
12744 if test -z "$CC"; then
12746 for ac_prog in cl.exe
12748 # Extract the first word of "$ac_prog", so it can be a program name with args.
12749 set dummy $ac_prog; ac_word=$2
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12751 $as_echo_n "checking for $ac_word... " >&6; }
12752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 if test -n "$ac_ct_CC"; then
12756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_ac_ct_CC="$ac_prog"
12766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12776 if test -n "$ac_ct_CC"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12778 $as_echo "$ac_ct_CC" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12785 test -n "$ac_ct_CC" && break
12788 if test "x$ac_ct_CC" = x; then
12791 case $cross_compiling:$ac_tool_warned in
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12806 as_fn_error $? "no acceptable C compiler found in \$PATH
12807 See \`config.log' for more details" "$LINENO" 5; }
12809 # Provide some information about the compiler.
12810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12813 for ac_option in --version -v -V -qversion; do
12814 { { ac_try="$ac_compiler $ac_option >&5"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12820 $as_echo "$ac_try_echo"; } >&5
12821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12823 if test -s conftest.err; then
12825 ... rest of stderr output deleted ...
12826 10q' conftest.err >conftest.er1
12827 cat conftest.er1 >&5
12829 rm -f conftest.er1 conftest.err
12830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12831 test $ac_status = 0; }
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12836 if ${ac_cv_c_compiler_gnu+:} false; then :
12837 $as_echo_n "(cached) " >&6
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 ac_compiler_gnu=yes
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12864 if test $ac_compiler_gnu = yes; then
12869 ac_test_CFLAGS=${CFLAGS+set}
12870 ac_save_CFLAGS=$CFLAGS
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12873 if ${ac_cv_prog_cc_g+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 ac_save_c_werror_flag=$ac_c_werror_flag
12877 ac_c_werror_flag=yes
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12891 if ac_fn_c_try_compile "$LINENO"; then :
12892 ac_cv_prog_cc_g=yes
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12906 if ac_fn_c_try_compile "$LINENO"; then :
12909 ac_c_werror_flag=$ac_save_c_werror_flag
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12922 if ac_fn_c_try_compile "$LINENO"; then :
12923 ac_cv_prog_cc_g=yes
12925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 ac_c_werror_flag=$ac_save_c_werror_flag
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12933 $as_echo "$ac_cv_prog_cc_g" >&6; }
12934 if test "$ac_test_CFLAGS" = set; then
12935 CFLAGS=$ac_save_CFLAGS
12936 elif test $ac_cv_prog_cc_g = yes; then
12937 if test "$GCC" = yes; then
12943 if test "$GCC" = yes; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12951 if ${ac_cv_prog_cc_c89+:} false; then :
12952 $as_echo_n "(cached) " >&6
12954 ac_cv_prog_cc_c89=no
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #include <stdarg.h>
12961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12962 struct buf { int x; };
12963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12964 static char *e (p, i)
12970 static char *f (char * (*g) (char **, int), char **p, ...)
12975 s = g (p, va_arg (v,int));
12980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12981 function prototypes and stuff, but not '\xHH' hex character constants.
12982 These don't provoke an error unfortunately, instead are silently treated
12983 as 'x'. The following induces an error, until -std is added to get
12984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12985 array size at least. It's necessary to write '\x00'==0 to get something
12986 that's true only with -std. */
12987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12989 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12990 inside strings and character constants. */
12992 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12994 int test (int i, double x);
12995 struct s1 {int (*f) (int a);};
12996 struct s2 {int (*f) (double a);};
12997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13008 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13011 CC="$ac_save_CC $ac_arg"
13012 if ac_fn_c_try_compile "$LINENO"; then :
13013 ac_cv_prog_cc_c89=$ac_arg
13015 rm -f core conftest.err conftest.$ac_objext
13016 test "x$ac_cv_prog_cc_c89" != "xno" && break
13018 rm -f conftest.$ac_ext
13023 case "x$ac_cv_prog_cc_c89" in
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13026 $as_echo "none needed" >&6; } ;;
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13029 $as_echo "unsupported" >&6; } ;;
13031 CC="$CC $ac_cv_prog_cc_c89"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13033 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13035 if test "x$ac_cv_prog_cc_c89" != xno; then :
13040 ac_cpp='$CPP $CPPFLAGS'
13041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13051 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13052 if ${am_cv_prog_cc_c_o+:} false; then :
13053 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13066 # Make sure it works both with $CC and with simple cc.
13067 # Following AC_PROG_CC_C_O, we do the test twice because some
13068 # compilers refuse to overwrite an existing .o file with -o,
13069 # though they will create one.
13070 am_cv_prog_cc_c_o=yes
13071 for am_i in 1 2; do
13072 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13073 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } \
13077 && test -f conftest2.$ac_objext; then
13080 am_cv_prog_cc_c_o=no
13084 rm -f core conftest*
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13088 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13089 if test "$am_cv_prog_cc_c_o" != yes; then
13090 # Losing compiler, so override with the script.
13091 # FIXME: It is wrong to rewrite CC.
13092 # But if we don't then we get into trouble of one sort or another.
13093 # A longer-term fix would be to have automake use am__CC in this case,
13094 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13095 CC="$am_aux_dir/compile $CC"
13098 ac_cpp='$CPP $CPPFLAGS'
13099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104 depcc="$CC" am_compiler_list=
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13107 $as_echo_n "checking dependency style of $depcc... " >&6; }
13108 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13109 $as_echo_n "(cached) " >&6
13111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13112 # We make a subdir and do the tests there. Otherwise we can end up
13113 # making bogus files that we don't know about and never remove. For
13114 # instance it was reported that on HP-UX the gcc test will end up
13115 # making a dummy file named 'D' -- because '-MD' means "put the output
13117 rm -rf conftest.dir
13119 # Copy depcomp to subdir because otherwise we won't find it if we're
13120 # using a relative directory.
13121 cp "$am_depcomp" conftest.dir
13123 # We will build objects and dependencies in a subdirectory because
13124 # it helps to detect inapplicable dependency modes. For instance
13125 # both Tru64's cc and ICC support -MD to output dependencies as a
13126 # side effect of compilation, but ICC will put the dependencies in
13127 # the current directory while Tru64 will put them in the object
13131 am_cv_CC_dependencies_compiler_type=none
13132 if test "$am_compiler_list" = ""; then
13133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13135 am__universal=false
13136 case " $depcc " in #(
13137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13140 for depmode in $am_compiler_list; do
13141 # Setup a source with many dependencies, because some compilers
13142 # like to wrap large dependency lists on column 80 (with \), and
13143 # we should not choose a depcomp mode which is confused by this.
13145 # We need to recreate these files for each test, as the compiler may
13146 # overwrite some of them when testing with obscure command lines.
13147 # This happens at least with the AIX C compiler.
13149 for i in 1 2 3 4 5 6; do
13150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13152 # Solaris 10 /bin/sh.
13153 echo '/* dummy */' > sub/conftst$i.h
13155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13157 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13158 # mode. It turns out that the SunPro C++ compiler does not properly
13159 # handle '-M -o', and we need to detect this. Also, some Intel
13160 # versions had trouble with output in subdirs.
13161 am__obj=sub/conftest.${OBJEXT-o}
13162 am__minus_obj="-o $am__obj"
13165 # This depmode causes a compiler race in universal mode.
13166 test "$am__universal" = false || continue
13169 # After this tag, mechanisms are not by side-effect, so they'll
13170 # only be used when explicitly requested.
13171 if test "x$enable_dependency_tracking" = xyes; then
13177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13178 # This compiler won't grok '-c -o', but also, the minuso test has
13179 # not run yet. These depmodes are late enough in the game, and
13180 # so weak that their functioning should not be impacted.
13181 am__obj=conftest.${OBJEXT-o}
13186 if depmode=$depmode \
13187 source=sub/conftest.c object=$am__obj \
13188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13190 >/dev/null 2>conftest.err &&
13191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13195 # icc doesn't choke on unknown options, it will just issue warnings
13196 # or remarks (even with -Werror). So we grep stderr for any message
13197 # that says an option was ignored or not supported.
13198 # When given -MP, icc 7.0 and 7.1 complain thusly:
13199 # icc: Command line warning: ignoring option '-M'; no argument required
13200 # The diagnosis changed in icc 8.0:
13201 # icc: Command line remark: option '-MP' not supported
13202 if (grep 'ignoring option' conftest.err ||
13203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13204 am_cv_CC_dependencies_compiler_type=$depmode
13211 rm -rf conftest.dir
13213 am_cv_CC_dependencies_compiler_type=none
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13222 test "x$enable_dependency_tracking" != xno \
13223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13224 am__fastdepCC_TRUE=
13225 am__fastdepCC_FALSE='#'
13227 am__fastdepCC_TRUE='#'
13228 am__fastdepCC_FALSE=
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13238 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13239 # On Suns, sometimes $CPP names a directory.
13240 if test -n "$CPP" && test -d "$CPP"; then
13243 if test -z "$CPP"; then
13244 if ${ac_cv_prog_CPP+:} false; then :
13245 $as_echo_n "(cached) " >&6
13247 # Double quotes because CPP needs to be expanded
13248 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13250 ac_preproc_ok=false
13251 for ac_c_preproc_warn_flag in '' yes
13253 # Use a header file that comes with gcc, so configuring glibc
13254 # with a fresh cross-compiler works.
13255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13256 # <limits.h> exists even on freestanding compilers.
13257 # On the NeXT, cc -E runs the code through the compiler's parser,
13258 # not just through cpp. "Syntax error" is here to catch this case.
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13262 # include <limits.h>
13264 # include <assert.h>
13268 if ac_fn_c_try_cpp "$LINENO"; then :
13271 # Broken: fails on valid input.
13274 rm -f conftest.err conftest.i conftest.$ac_ext
13276 # OK, works on sane cases. Now check whether nonexistent headers
13277 # can be detected and how.
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 #include <ac_nonexistent.h>
13282 if ac_fn_c_try_cpp "$LINENO"; then :
13283 # Broken: success on invalid input.
13286 # Passes both tests.
13290 rm -f conftest.err conftest.i conftest.$ac_ext
13293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13294 rm -f conftest.i conftest.err conftest.$ac_ext
13295 if $ac_preproc_ok; then :
13300 ac_cv_prog_CPP=$CPP
13303 CPP=$ac_cv_prog_CPP
13305 ac_cv_prog_CPP=$CPP
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13308 $as_echo "$CPP" >&6; }
13309 ac_preproc_ok=false
13310 for ac_c_preproc_warn_flag in '' yes
13312 # Use a header file that comes with gcc, so configuring glibc
13313 # with a fresh cross-compiler works.
13314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13315 # <limits.h> exists even on freestanding compilers.
13316 # On the NeXT, cc -E runs the code through the compiler's parser,
13317 # not just through cpp. "Syntax error" is here to catch this case.
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13321 # include <limits.h>
13323 # include <assert.h>
13327 if ac_fn_c_try_cpp "$LINENO"; then :
13330 # Broken: fails on valid input.
13333 rm -f conftest.err conftest.i conftest.$ac_ext
13335 # OK, works on sane cases. Now check whether nonexistent headers
13336 # can be detected and how.
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339 #include <ac_nonexistent.h>
13341 if ac_fn_c_try_cpp "$LINENO"; then :
13342 # Broken: success on invalid input.
13345 # Passes both tests.
13349 rm -f conftest.err conftest.i conftest.$ac_ext
13352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13353 rm -f conftest.i conftest.err conftest.$ac_ext
13354 if $ac_preproc_ok; then :
13357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13359 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
13360 See \`config.log' for more details" "$LINENO" 5; }
13364 ac_cpp='$CPP $CPPFLAGS'
13365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13370 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
13371 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13375 $as_echo_n "checking whether ln -s works... " >&6; }
13377 if test "$LN_S" = "ln -s"; then
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379 $as_echo "yes" >&6; }
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13382 $as_echo "no, using $LN_S" >&6; }
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13386 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13388 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13389 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13390 $as_echo_n "(cached) " >&6
13392 cat >conftest.make <<\_ACEOF
13395 @echo '@@@%%%=$(MAKE)=@@@%%%'
13397 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13398 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13399 *@@@%%%=?*=@@@%%%*)
13400 eval ac_cv_prog_make_${ac_make}_set=yes;;
13402 eval ac_cv_prog_make_${ac_make}_set=no;;
13404 rm -f conftest.make
13406 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13408 $as_echo "yes" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412 $as_echo "no" >&6; }
13413 SET_MAKE="MAKE=${MAKE-make}"
13419 for ac_prog in 'bison -y' byacc
13421 # Extract the first word of "$ac_prog", so it can be a program name with args.
13422 set dummy $ac_prog; ac_word=$2
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424 $as_echo_n "checking for $ac_word... " >&6; }
13425 if ${ac_cv_prog_YACC+:} false; then :
13426 $as_echo_n "(cached) " >&6
13428 if test -n "$YACC"; then
13429 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432 for as_dir in $PATH
13435 test -z "$as_dir" && as_dir=.
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13438 ac_cv_prog_YACC="$ac_prog"
13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 YACC=$ac_cv_prog_YACC
13449 if test -n "$YACC"; then
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13451 $as_echo "$YACC" >&6; }
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454 $as_echo "no" >&6; }
13458 test -n "$YACC" && break
13460 test -n "$YACC" || YACC="yacc"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13463 $as_echo_n "checking for inline... " >&6; }
13464 if ${ac_cv_c_inline+:} false; then :
13465 $as_echo_n "(cached) " >&6
13468 for ac_kw in inline __inline__ __inline; do
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #ifndef __cplusplus
13473 static $ac_kw foo_t static_foo () {return 0; }
13474 $ac_kw foo_t foo () {return 0; }
13478 if ac_fn_c_try_compile "$LINENO"; then :
13479 ac_cv_c_inline=$ac_kw
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 test "$ac_cv_c_inline" != no && break
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13487 $as_echo "$ac_cv_c_inline" >&6; }
13489 case $ac_cv_c_inline in
13492 case $ac_cv_c_inline in
13494 *) ac_val=$ac_cv_c_inline;;
13496 cat >>confdefs.h <<_ACEOF
13497 #ifndef __cplusplus
13498 #define inline $ac_val
13505 # We need to compile and run a program on the build machine.
13506 # The AC_PROG_CC_FOR_BUILD macro in the AC archive is broken for
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
13509 $as_echo_n "checking for cc for build... " >&6; }
13510 if test "$cross_compiling" = "yes"; then
13511 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
13513 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
13516 $as_echo "$CC_FOR_BUILD" >&6; }
13520 # This is handy for debugging so the compiler doesn't rearrange
13521 # things and eliminate variables.
13522 # Check whether --enable-optimization was given.
13523 if test "${enable_optimization+set}" = set; then :
13524 enableval=$enable_optimization; if test $enableval = no ; then
13525 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
13530 if test "$GCC" = yes; then
13531 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
13533 if test "$USE_MAINTAINER_MODE" = "yes"; then
13534 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
13536 # We use -W only if -Wno-missing-field-initializers is supported.
13537 # -W is important because it detects errors like "if (foo);"
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
13539 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
13540 _gcc_cflags_save=$CFLAGS
13541 CFLAGS="-Wno-missing-field-initializers"
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13553 if ac_fn_c_try_compile "$LINENO"; then :
13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13560 $as_echo "$_gcc_wopt" >&6; }
13561 CFLAGS=$_gcc_cflags_save;
13562 if test x"$_gcc_wopt" = xyes ; then
13563 CFLAGS="$CFLAGS -W -Wno-sign-compare -Wno-missing-field-initializers"
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
13567 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
13568 _gcc_cflags_save=$CFLAGS
13569 CFLAGS="-Wdeclaration-after-statement"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13581 if ac_fn_c_try_compile "$LINENO"; then :
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13588 $as_echo "$_gcc_wopt" >&6; }
13589 CFLAGS=$_gcc_cflags_save;
13590 if test x"$_gcc_wopt" = xyes ; then
13591 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
13596 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
13597 _gcc_cflags_save=$CFLAGS
13598 CFLAGS="-Wpointer-arith"
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13610 if ac_fn_c_try_compile "$LINENO"; then :
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
13617 $as_echo "$_gcc_wopt" >&6; }
13618 CFLAGS=$_gcc_cflags_save;
13619 if test x"$_gcc_wopt" = xyes ; then
13620 CFLAGS="$CFLAGS -Wpointer-arith"
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
13624 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
13625 _gcc_cflags_save=$CFLAGS
13626 CFLAGS="-Wno-pointer-sign"
13627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13638 if ac_fn_c_try_compile "$LINENO"; then :
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
13645 $as_echo "$_gcc_psign" >&6; }
13646 CFLAGS=$_gcc_cflags_save;
13647 if test x"$_gcc_psign" = xyes ; then
13648 CFLAGS="$CFLAGS -Wno-pointer-sign"
13653 # Setup some stuff depending on host.
13655 have_w32ce_system=no
13658 have_w32_system=yes
13659 have_w32ce_system=yes
13662 have_w32_system=yes
13667 if test "$have_w32_system" = yes; then
13669 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13671 if test "$have_w32ce_system" = yes; then
13673 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13677 if test "$have_w32_system" = yes; then
13678 HAVE_W32_SYSTEM_TRUE=
13679 HAVE_W32_SYSTEM_FALSE='#'
13681 HAVE_W32_SYSTEM_TRUE='#'
13682 HAVE_W32_SYSTEM_FALSE=
13685 if test "$have_w32ce_system" = yes; then
13686 HAVE_W32CE_SYSTEM_TRUE=
13687 HAVE_W32CE_SYSTEM_FALSE='#'
13689 HAVE_W32CE_SYSTEM_TRUE='#'
13690 HAVE_W32CE_SYSTEM_FALSE=
13695 # For some systems we know that we have ld_version scripts.
13696 # Use it then as default.
13697 have_ld_version_script=no
13700 have_ld_version_script=yes
13703 have_ld_version_script=yes
13706 # Check whether --enable-ld-version-script was given.
13707 if test "${enable_ld_version_script+set}" = set; then :
13708 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
13713 if test "$have_ld_version_script" = "yes"; then
13714 HAVE_LD_VERSION_SCRIPT_TRUE=
13715 HAVE_LD_VERSION_SCRIPT_FALSE='#'
13717 HAVE_LD_VERSION_SCRIPT_TRUE='#'
13718 HAVE_LD_VERSION_SCRIPT_FALSE=
13724 # Check for ELF visibility support.
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
13727 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
13728 if ${ksba_cv_visibility_attribute+:} false; then :
13729 $as_echo_n "(cached) " >&6
13731 ksba_cv_visibility_attribute=no
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 int foo __attribute__ ((visibility ("hidden"))) = 1;
13735 int bar __attribute__ ((visibility ("protected"))) = 1;
13739 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13741 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
13742 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
13743 ksba_cv_visibility_attribute=yes
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_visibility_attribute" >&5
13750 $as_echo "$ksba_cv_visibility_attribute" >&6; }
13751 if test "$ksba_cv_visibility_attribute" = "yes"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
13753 $as_echo_n "checking for broken visibility attribute... " >&6; }
13754 if ${ksba_cv_broken_visibility_attribute+:} false; then :
13755 $as_echo_n "(cached) " >&6
13757 ksba_cv_broken_visibility_attribute=yes
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h. */
13761 int bar (int x) __asm__ ("foo")
13762 __attribute__ ((visibility ("hidden")));
13763 int bar (int x) { return x; }
13767 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13769 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
13771 ksba_cv_broken_visibility_attribute=no
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_visibility_attribute" >&5
13777 $as_echo "$ksba_cv_broken_visibility_attribute" >&6; }
13779 if test "$ksba_cv_visibility_attribute" = "yes"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
13781 $as_echo_n "checking for broken alias attribute... " >&6; }
13782 if ${ksba_cv_broken_alias_attribute+:} false; then :
13783 $as_echo_n "(cached) " >&6
13785 ksba_cv_broken_alias_attribute=yes
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 extern int foo (int x) __asm ("xyzzy");
13789 int bar (int x) { return x; }
13790 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
13792 extern __typeof (dfoo) dfoo __asm ("abccb");
13797 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
13799 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
13800 grep 'abccb' conftest.s >/dev/null 2>&1; then
13801 ksba_cv_broken_alias_attribute=no
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_broken_alias_attribute" >&5
13807 $as_echo "$ksba_cv_broken_alias_attribute" >&6; }
13809 if test "$ksba_cv_visibility_attribute" = "yes"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
13811 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
13812 if ${ksba_cv_gcc_has_f_visibility+:} false; then :
13813 $as_echo_n "(cached) " >&6
13815 ksba_cv_gcc_has_f_visibility=no
13816 _gcc_cflags_save=$CFLAGS
13817 CFLAGS="-fvisibility=hidden"
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830 ksba_cv_gcc_has_f_visibility=yes
13832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 CFLAGS=$_gcc_cflags_save;
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ksba_cv_gcc_has_f_visibility" >&5
13837 $as_echo "$ksba_cv_gcc_has_f_visibility" >&6; }
13839 if test "$ksba_cv_visibility_attribute" = "yes" \
13840 && test "$ksba_cv_broken_visibility_attribute" != "yes" \
13841 && test "$ksba_cv_broken_alias_attribute" != "yes" \
13842 && test "$ksba_cv_gcc_has_f_visibility" = "yes"
13845 $as_echo "#define KSBA_USE_VISIBILITY 1" >>confdefs.h
13847 CFLAGS="$CFLAGS -fvisibility=hidden"
13852 # Checks for libraries.
13855 gpg_error_config_prefix=""
13857 # Check whether --with-libgpg-error-prefix was given.
13858 if test "${with_libgpg_error_prefix+set}" = set; then :
13859 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
13864 # Check whether --with-gpg-error-prefix was given.
13865 if test "${with_gpg_error_prefix+set}" = set; then :
13866 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
13870 if test x"${GPG_ERROR_CONFIG}" = x ; then
13871 if test x"${gpg_error_config_prefix}" != x ; then
13872 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
13874 case "${SYSROOT}" in
13876 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
13877 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
13884 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
13890 # Extract the first word of "gpg-error-config", so it can be a program name with args.
13891 set dummy gpg-error-config; ac_word=$2
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13893 $as_echo_n "checking for $ac_word... " >&6; }
13894 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
13895 $as_echo_n "(cached) " >&6
13897 case $GPG_ERROR_CONFIG in
13899 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13906 test -z "$as_dir" && as_dir=.
13907 for ac_exec_ext in '' $ac_executable_extensions; do
13908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13909 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13917 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
13921 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
13922 if test -n "$GPG_ERROR_CONFIG"; then
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
13924 $as_echo "$GPG_ERROR_CONFIG" >&6; }
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13927 $as_echo "no" >&6; }
13931 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
13933 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
13935 if test "$GPG_ERROR_CONFIG" != "no" \
13936 && test -f "$GPG_ERROR_CONFIG" ; then
13937 req_major=`echo $min_gpg_error_version | \
13938 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
13939 req_minor=`echo $min_gpg_error_version | \
13940 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
13941 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
13942 major=`echo $gpg_error_config_version | \
13943 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
13944 minor=`echo $gpg_error_config_version | \
13945 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
13946 if test "$major" -gt "$req_major"; then
13949 if test "$major" -eq "$req_major"; then
13950 if test "$minor" -ge "$req_minor"; then
13956 if test $ok = yes; then
13957 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
13958 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
13959 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
13960 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
13962 $as_echo "yes ($gpg_error_config_version)" >&6; }
13964 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
13965 if test x"$gpg_error_config_host" != xnone ; then
13966 if test x"$gpg_error_config_host" != x"$host" ; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13969 *** The config script $GPG_ERROR_CONFIG was
13970 *** built for $gpg_error_config_host and thus may not match the
13971 *** used host $host.
13972 *** You may want to use the configure option --with-gpg-error-prefix
13973 *** to specify a matching config script or use \$SYSROOT.
13975 $as_echo "$as_me: WARNING:
13977 *** The config script $GPG_ERROR_CONFIG was
13978 *** built for $gpg_error_config_host and thus may not match the
13979 *** used host $host.
13980 *** You may want to use the configure option --with-gpg-error-prefix
13981 *** to specify a matching config script or use \$SYSROOT.
13983 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
13987 GPG_ERROR_CFLAGS=""
13989 GPG_ERROR_MT_CFLAGS=""
13990 GPG_ERROR_MT_LIBS=""
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992 $as_echo "no" >&6; }
14000 if test "x$GPG_ERROR_LIBS" = "x"; then
14001 as_fn_error $? "libgpg-error is needed.
14002 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14006 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_KSBA" >>confdefs.h
14010 # Checks for header files.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14012 $as_echo_n "checking for ANSI C header files... " >&6; }
14013 if ${ac_cv_header_stdc+:} false; then :
14014 $as_echo_n "(cached) " >&6
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 #include <stdlib.h>
14019 #include <stdarg.h>
14020 #include <string.h>
14031 if ac_fn_c_try_compile "$LINENO"; then :
14032 ac_cv_header_stdc=yes
14034 ac_cv_header_stdc=no
14036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14038 if test $ac_cv_header_stdc = yes; then
14039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14042 #include <string.h>
14045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14046 $EGREP "memchr" >/dev/null 2>&1; then :
14049 ac_cv_header_stdc=no
14055 if test $ac_cv_header_stdc = yes; then
14056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 #include <stdlib.h>
14062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14063 $EGREP "free" >/dev/null 2>&1; then :
14066 ac_cv_header_stdc=no
14072 if test $ac_cv_header_stdc = yes; then
14073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14074 if test "$cross_compiling" = yes; then :
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14080 #include <stdlib.h>
14081 #if ((' ' & 0x0FF) == 0x020)
14082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14085 # define ISLOWER(c) \
14086 (('a' <= (c) && (c) <= 'i') \
14087 || ('j' <= (c) && (c) <= 'r') \
14088 || ('s' <= (c) && (c) <= 'z'))
14089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14097 for (i = 0; i < 256; i++)
14098 if (XOR (islower (i), ISLOWER (i))
14099 || toupper (i) != TOUPPER (i))
14104 if ac_fn_c_try_run "$LINENO"; then :
14107 ac_cv_header_stdc=no
14109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14110 conftest.$ac_objext conftest.beam conftest.$ac_ext
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14116 $as_echo "$ac_cv_header_stdc" >&6; }
14117 if test $ac_cv_header_stdc = yes; then
14119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14123 for ac_header in string.h
14125 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14126 if test "x$ac_cv_header_string_h" = xyes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_STRING_H 1
14136 # Checks for typedefs, structures, and compiler characteristics.
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14138 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14139 if ${ac_cv_c_const+:} false; then :
14140 $as_echo_n "(cached) " >&6
14142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h. */
14149 #ifndef __cplusplus
14150 /* Ultrix mips cc rejects this sort of thing. */
14151 typedef int charset[2];
14152 const charset cs = { 0, 0 };
14153 /* SunOS 4.1.1 cc rejects this. */
14154 char const *const *pcpcc;
14156 /* NEC SVR4.0.2 mips cc rejects this. */
14157 struct point {int x, y;};
14158 static struct point const zero = {0,0};
14159 /* AIX XL C 1.02.0.0 rejects this.
14160 It does not let you subtract one const X* pointer from another in
14161 an arm of an if-expression whose if-part is not a constant
14163 const char *g = "string";
14164 pcpcc = &g + (g ? g-g : 0);
14165 /* HPUX 7.0 cc rejects these. */
14167 ppc = (char**) pcpcc;
14168 pcpcc = (char const *const *) ppc;
14169 { /* SCO 3.2v4 cc rejects this sort of thing. */
14172 char const *s = 0 ? (char *) 0 : (char const *) 0;
14177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14178 int x[] = {25, 17};
14179 const int *foo = &x[0];
14182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14183 typedef const int *iptr;
14187 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14189 struct s { int j; const int *ap[3]; } bx;
14190 struct s *b = &bx; b->j = 5;
14192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14193 const int foo = 10;
14194 if (!foo) return 0;
14196 return !cs[0] && !zero.x;
14203 if ac_fn_c_try_compile "$LINENO"; then :
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14211 $as_echo "$ac_cv_c_const" >&6; }
14212 if test $ac_cv_c_const = no; then
14214 $as_echo "#define const /**/" >>confdefs.h
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14220 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14221 if ${ac_cv_c_bigendian+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 ac_cv_c_bigendian=unknown
14225 # See if we're dealing with a universal compiler.
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #ifndef __APPLE_CC__
14229 not a universal capable compiler
14234 if ac_fn_c_try_compile "$LINENO"; then :
14236 # Check for potential -arch flags. It is not universal unless
14237 # there are at least two -arch flags with different values.
14240 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14241 if test -n "$ac_prev"; then
14243 i?86 | x86_64 | ppc | ppc64)
14244 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14247 ac_cv_c_bigendian=universal
14253 elif test "x$ac_word" = "x-arch"; then
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 if test $ac_cv_c_bigendian = unknown; then
14260 # See if sys/param.h defines the BYTE_ORDER macro.
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 #include <sys/types.h>
14264 #include <sys/param.h>
14269 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14270 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14272 bogus endian macros
14279 if ac_fn_c_try_compile "$LINENO"; then :
14280 # It does; now see whether it defined to BIG_ENDIAN or not.
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283 #include <sys/types.h>
14284 #include <sys/param.h>
14289 #if BYTE_ORDER != BIG_ENDIAN
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 ac_cv_c_bigendian=yes
14300 ac_cv_c_bigendian=no
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14306 if test $ac_cv_c_bigendian = unknown; then
14307 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 #include <limits.h>
14315 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14316 bogus endian macros
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 # It does; now see whether it defined to _BIG_ENDIAN or not.
14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14327 #include <limits.h>
14332 #ifndef _BIG_ENDIAN
14340 if ac_fn_c_try_compile "$LINENO"; then :
14341 ac_cv_c_bigendian=yes
14343 ac_cv_c_bigendian=no
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 if test $ac_cv_c_bigendian = unknown; then
14350 # Compile a test program.
14351 if test "$cross_compiling" = yes; then :
14352 # Try to guess by grepping values from an object file.
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14355 short int ascii_mm[] =
14356 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14357 short int ascii_ii[] =
14358 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14359 int use_ascii (int i) {
14360 return ascii_mm[i] + ascii_ii[i];
14362 short int ebcdic_ii[] =
14363 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14364 short int ebcdic_mm[] =
14365 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14366 int use_ebcdic (int i) {
14367 return ebcdic_mm[i] + ebcdic_ii[i];
14374 return use_ascii (foo) == use_ebcdic (foo);
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14381 ac_cv_c_bigendian=yes
14383 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14384 if test "$ac_cv_c_bigendian" = unknown; then
14385 ac_cv_c_bigendian=no
14387 # finding both strings is unlikely to happen, but who knows?
14388 ac_cv_c_bigendian=unknown
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14396 $ac_includes_default
14401 /* Are we little or big endian? From Harbison&Steele. */
14405 char c[sizeof (long int)];
14408 return u.c[sizeof (long int) - 1] == 1;
14414 if ac_fn_c_try_run "$LINENO"; then :
14415 ac_cv_c_bigendian=no
14417 ac_cv_c_bigendian=yes
14419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14420 conftest.$ac_objext conftest.beam conftest.$ac_ext
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14426 $as_echo "$ac_cv_c_bigendian" >&6; }
14427 case $ac_cv_c_bigendian in #(
14429 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14435 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14439 as_fn_error $? "unknown endianness
14440 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14444 # The cast to long int works around a bug in the HP C Compiler
14445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14447 # This bug is HP SR number 8606223364.
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14449 $as_echo_n "checking size of unsigned int... " >&6; }
14450 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14456 if test "$ac_cv_type_unsigned_int" = yes; then
14457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14459 as_fn_error 77 "cannot compute sizeof (unsigned int)
14460 See \`config.log' for more details" "$LINENO" 5; }
14462 ac_cv_sizeof_unsigned_int=0
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14468 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14472 cat >>confdefs.h <<_ACEOF
14473 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14477 # The cast to long int works around a bug in the HP C Compiler
14478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14480 # This bug is HP SR number 8606223364.
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14482 $as_echo_n "checking size of unsigned long... " >&6; }
14483 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14484 $as_echo_n "(cached) " >&6
14486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14489 if test "$ac_cv_type_unsigned_long" = yes; then
14490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14492 as_fn_error 77 "cannot compute sizeof (unsigned long)
14493 See \`config.log' for more details" "$LINENO" 5; }
14495 ac_cv_sizeof_unsigned_long=0
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14501 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14505 cat >>confdefs.h <<_ACEOF
14506 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14511 $as_echo_n "checking for u32 typedef... " >&6; }
14512 if ${gnupg_cv_typedef_u32+:} false; then :
14513 $as_echo_n "(cached) " >&6
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #define _GNU_SOURCE 1
14518 #include <stdlib.h>
14519 #include <sys/types.h>
14525 int a = sizeof(u32);
14531 if ac_fn_c_try_compile "$LINENO"; then :
14532 gnupg_cv_typedef_u32=yes
14534 gnupg_cv_typedef_u32=no
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14540 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14541 if test "$gnupg_cv_typedef_u32" = yes; then
14543 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14549 # Checks for library functions.
14550 for ac_func in memmove strchr strtol strtoul stpcpy gmtime_r getenv
14552 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14553 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14554 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14555 cat >>confdefs.h <<_ACEOF
14556 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14568 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14569 if test "x$ac_cv_type_size_t" = xyes; then :
14573 cat >>confdefs.h <<_ACEOF
14574 #define size_t unsigned int
14579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14580 # for constant arguments. Useless!
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14582 $as_echo_n "checking for working alloca.h... " >&6; }
14583 if ${ac_cv_working_alloca_h+:} false; then :
14584 $as_echo_n "(cached) " >&6
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14588 #include <alloca.h>
14592 char *p = (char *) alloca (2 * sizeof (int));
14598 if ac_fn_c_try_link "$LINENO"; then :
14599 ac_cv_working_alloca_h=yes
14601 ac_cv_working_alloca_h=no
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext conftest.$ac_ext
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14607 $as_echo "$ac_cv_working_alloca_h" >&6; }
14608 if test $ac_cv_working_alloca_h = yes; then
14610 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14615 $as_echo_n "checking for alloca... " >&6; }
14616 if ${ac_cv_func_alloca_works+:} false; then :
14617 $as_echo_n "(cached) " >&6
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14622 # define alloca __builtin_alloca
14625 # include <malloc.h>
14626 # define alloca _alloca
14628 # ifdef HAVE_ALLOCA_H
14629 # include <alloca.h>
14634 # ifndef alloca /* predefined by HP cc +Olibcalls */
14635 void *alloca (size_t);
14645 char *p = (char *) alloca (1);
14651 if ac_fn_c_try_link "$LINENO"; then :
14652 ac_cv_func_alloca_works=yes
14654 ac_cv_func_alloca_works=no
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14660 $as_echo "$ac_cv_func_alloca_works" >&6; }
14662 if test $ac_cv_func_alloca_works = yes; then
14664 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14668 # that cause trouble. Some versions do not even contain alloca or
14669 # contain a buggy version. If you still want to use their alloca,
14670 # use ar to extract alloca.o from them instead of compiling alloca.c.
14672 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14674 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14678 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14679 if ${ac_cv_os_cray+:} false; then :
14680 $as_echo_n "(cached) " >&6
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 #if defined CRAY && ! defined CRAY2
14691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14692 $EGREP "webecray" >/dev/null 2>&1; then :
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14701 $as_echo "$ac_cv_os_cray" >&6; }
14702 if test $ac_cv_os_cray = yes; then
14703 for ac_func in _getb67 GETB67 getb67; do
14704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14708 cat >>confdefs.h <<_ACEOF
14709 #define CRAY_STACKSEG_END $ac_func
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14719 $as_echo_n "checking stack direction for C alloca... " >&6; }
14720 if ${ac_cv_c_stack_direction+:} false; then :
14721 $as_echo_n "(cached) " >&6
14723 if test "$cross_compiling" = yes; then :
14724 ac_cv_c_stack_direction=0
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728 $ac_includes_default
14730 find_stack_direction (int *addr, int depth)
14732 int dir, dummy = 0;
14735 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14736 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14737 return dir + dummy;
14741 main (int argc, char **argv)
14743 return find_stack_direction (0, argc + !argv + 20) < 0;
14746 if ac_fn_c_try_run "$LINENO"; then :
14747 ac_cv_c_stack_direction=1
14749 ac_cv_c_stack_direction=-1
14751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14752 conftest.$ac_objext conftest.beam conftest.$ac_ext
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14757 $as_echo "$ac_cv_c_stack_direction" >&6; }
14758 cat >>confdefs.h <<_ACEOF
14759 #define STACK_DIRECTION $ac_cv_c_stack_direction
14766 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
14773 if test $ac_cv_func_alloca_works = no; then
14777 # Define an additional variable used in the Makefile substitution.
14778 if test $ac_cv_working_alloca_h = yes; then
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14782 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788 $EGREP "Need own alloca" >/dev/null 2>&1; then :
14790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14804 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14808 # Check whether --enable-valgrind-tests was given.
14809 if test "${enable_valgrind_tests+set}" = set; then :
14810 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval
14812 opt_valgrind_tests=yes
14816 # Run self-tests under valgrind?
14817 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then
14818 for ac_prog in valgrind
14820 # Extract the first word of "$ac_prog", so it can be a program name with args.
14821 set dummy $ac_prog; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823 $as_echo_n "checking for $ac_word... " >&6; }
14824 if ${ac_cv_prog_VALGRIND+:} false; then :
14825 $as_echo_n "(cached) " >&6
14827 if test -n "$VALGRIND"; then
14828 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $PATH
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_prog_VALGRIND="$ac_prog"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 VALGRIND=$ac_cv_prog_VALGRIND
14848 if test -n "$VALGRIND"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
14850 $as_echo "$VALGRIND" >&6; }
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14857 test -n "$VALGRIND" && break
14862 OPTS="-q --error-exitcode=1 --leak-check=full"
14864 if test -n "$VALGRIND" \
14865 && $VALGRIND $OPTS $SHELL -c 'exit 0' > /dev/null 2>&1; then
14866 opt_valgrind_tests=yes
14867 VALGRIND="$VALGRIND $OPTS"
14869 opt_valgrind_tests=no
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
14874 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
14876 $as_echo "$opt_valgrind_tests" >&6; }
14880 # To be used in ksba-config
14881 KSBA_CONFIG_LIBS="-lksba"
14882 KSBA_CONFIG_CFLAGS=""
14883 KSBA_CONFIG_HOST="$host"
14889 # The Makefiles need to know about cross compiling
14890 if test x$cross_compiling != xno; then
14891 CROSS_COMPILING_TRUE=
14892 CROSS_COMPILING_FALSE='#'
14894 CROSS_COMPILING_TRUE='#'
14895 CROSS_COMPILING_FALSE=
14900 # Generate extended version information for W32.
14901 if test "$have_w32_system" = yes; then
14902 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
14903 BUILD_FILEVERSION="${BUILD_FILEVERSION}14994"
14907 BUILD_REVISION="3a92e8c"
14910 cat >>confdefs.h <<_ACEOF
14911 #define BUILD_REVISION "$BUILD_REVISION"
14915 # Check whether --enable-build-timestamp was given.
14916 if test "${enable_build_timestamp+set}" = set; then :
14917 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
14918 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
14920 BUILD_TIMESTAMP="$enableval"
14923 BUILD_TIMESTAMP="<none>"
14928 cat >>confdefs.h <<_ACEOF
14929 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
14934 ac_config_files="$ac_config_files Makefile m4/Makefile gl/Makefile src/Makefile src/ksba-config src/versioninfo.rc tests/Makefile doc/Makefile"
14936 cat >confcache <<\_ACEOF
14937 # This file is a shell script that caches the results of configure
14938 # tests run on this system so they can be shared between configure
14939 # scripts and configure runs, see configure's option --config-cache.
14940 # It is not useful on other systems. If it contains results you don't
14941 # want to keep, you may remove or edit it.
14943 # config.status only pays attention to the cache file if you give it
14944 # the --recheck option to rerun configure.
14946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14948 # following values.
14952 # The following way of writing the cache mishandles newlines in values,
14953 # but we know of no workaround that is simple, portable, and efficient.
14954 # So, we kill variables containing newlines.
14955 # Ultrix sh set writes to stderr and can't be redirected directly,
14956 # and sets the high bit in the cache file unless we assign to the vars.
14958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14959 eval ac_val=\$$ac_var
14963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14967 _ | IFS | as_nl) ;; #(
14968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14969 *) { eval $ac_var=; unset $ac_var;} ;;
14975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14976 *${as_nl}ac_space=\ *)
14977 # `set' does not quote correctly, so add quotes: double-quote
14978 # substitution turns \\\\ into \\, and sed turns \\ into \.
14981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14984 # `set' quotes correctly as required by POSIX, so do not add quotes.
14985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14999 if test -w "$cache_file"; then
15000 if test "x$cache_file" != "x/dev/null"; then
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15002 $as_echo "$as_me: updating cache $cache_file" >&6;}
15003 if test ! -f "$cache_file" || test -h "$cache_file"; then
15004 cat confcache >"$cache_file"
15006 case $cache_file in #(
15008 mv -f confcache "$cache_file"$$ &&
15009 mv -f "$cache_file"$$ "$cache_file" ;; #(
15011 mv -f confcache "$cache_file" ;;
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15023 # Let make expand exec_prefix.
15024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15026 DEFS=-DHAVE_CONFIG_H
15030 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15031 # 1. Remove the extension, and $U if already installed.
15032 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15033 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15035 # will be set to the directory where LIBOBJS objects are built.
15036 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15037 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15039 LIBOBJS=$ac_libobjs
15041 LTLIBOBJS=$ac_ltlibobjs
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15045 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15046 if test -n "$am_sleep_pid"; then
15047 # Hide warnings about reused PIDs.
15048 wait $am_sleep_pid 2>/dev/null
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15051 $as_echo "done" >&6; }
15052 if test -n "$EXEEXT"; then
15054 am__EXEEXT_FALSE='#'
15056 am__EXEEXT_TRUE='#'
15060 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15061 as_fn_error $? "conditional \"AMDEP\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15065 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15069 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
15077 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
15081 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
15085 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15089 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
15090 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
15091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 : "${CONFIG_STATUS=./config.status}"
15096 ac_clean_files_save=$ac_clean_files
15097 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15103 # Generated by $as_me.
15104 # Run this file to recreate the current configuration.
15105 # Compiler output produced by configure, useful for debugging
15106 # configure, is in config.log if it exists.
15109 ac_cs_recheck=false
15112 SHELL=\${CONFIG_SHELL-$SHELL}
15115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15116 ## -------------------- ##
15117 ## M4sh Initialization. ##
15118 ## -------------------- ##
15120 # Be more Bourne compatible
15121 DUALCASE=1; export DUALCASE # for MKS sh
15122 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15126 # is contrary to our usage. Disable this feature.
15127 alias -g '${1+"$@"}'='"$@"'
15128 setopt NO_GLOB_SUBST
15130 case `(set -o) 2>/dev/null` in #(
15142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15143 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15146 # Prefer a ksh shell builtin over an external printf program on Solaris,
15147 # but without wasting forks for bash or zsh.
15148 if test -z "$BASH_VERSION$ZSH_VERSION" \
15149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15150 as_echo='print -r --'
15151 as_echo_n='print -rn --'
15152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15153 as_echo='printf %s\n'
15154 as_echo_n='printf %s'
15156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15158 as_echo_n='/usr/ucb/echo -n'
15160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15161 as_echo_n_body='eval
15165 expr "X$arg" : "X\\(.*\\)$as_nl";
15166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15170 export as_echo_n_body
15171 as_echo_n='sh -c $as_echo_n_body as_echo'
15173 export as_echo_body
15174 as_echo='sh -c $as_echo_body as_echo'
15177 # The user is always right.
15178 if test "${PATH_SEPARATOR+set}" != set; then
15180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15188 # We need space, tab and new line, in precisely that order. Quoting is
15189 # there to prevent editors from complaining about space-tab.
15190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15191 # splitting by setting IFS to empty value.)
15194 # Find who we are. Look in the path if we contain no directory separator.
15197 *[\\/]* ) as_myself=$0 ;;
15198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $PATH
15202 test -z "$as_dir" && as_dir=.
15203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15209 # We did not find ourselves, most probably we were run as `sh COMMAND'
15210 # in which case we are not to be found in the path.
15211 if test "x$as_myself" = x; then
15214 if test ! -f "$as_myself"; then
15215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15219 # Unset variables that we do not need and which cause bugs (e.g. in
15220 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15221 # suppresses any "Segmentation fault" message there. '((' could
15222 # trigger a bug in pdksh 5.2.14.
15223 for as_var in BASH_ENV ENV MAIL MAILPATH
15224 do eval test x\${$as_var+set} = xset \
15225 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15242 # ----------------------------------------
15243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15245 # script with STATUS, using 1 if that was 0.
15248 as_status=$1; test $as_status -eq 0 && as_status=1
15250 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15253 $as_echo "$as_me: error: $2" >&2
15254 as_fn_exit $as_status
15258 # as_fn_set_status STATUS
15259 # -----------------------
15260 # Set $? to STATUS, without forking.
15261 as_fn_set_status ()
15264 } # as_fn_set_status
15266 # as_fn_exit STATUS
15267 # -----------------
15268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15272 as_fn_set_status $1
15278 # Portably unset VAR.
15281 { eval $1=; unset $1;}
15283 as_unset=as_fn_unset
15284 # as_fn_append VAR VALUE
15285 # ----------------------
15286 # Append the text in VALUE to the end of the definition contained in VAR. Take
15287 # advantage of any shell optimizations that allow amortized linear growth over
15288 # repeated appends, instead of the typical quadratic growth present in naive
15290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15291 eval 'as_fn_append ()
15302 # as_fn_arith ARG...
15303 # ------------------
15304 # Perform arithmetic evaluation on the ARGs, and store the result in the
15305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15306 # must be portable across $(()) and expr.
15307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15308 eval 'as_fn_arith ()
15315 as_val=`expr "$@" || test $? -eq 1`
15320 if expr a : '\(a\)' >/dev/null 2>&1 &&
15321 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15327 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15328 as_basename=basename
15333 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15339 as_me=`$as_basename -- "$0" ||
15340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15341 X"$0" : 'X\(//\)$' \| \
15342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15344 sed '/^.*\/\([^/][^/]*\)\/*$/{
15358 # Avoid depending upon Character Ranges.
15359 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15360 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15361 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15362 as_cr_digits='0123456789'
15363 as_cr_alnum=$as_cr_Letters$as_cr_digits
15365 ECHO_C= ECHO_N= ECHO_T=
15366 case `echo -n x` in #(((((
15368 case `echo 'xy\c'` in
15369 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15371 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15378 rm -f conf$$ conf$$.exe conf$$.file
15379 if test -d conf$$.dir; then
15380 rm -f conf$$.dir/conf$$.file
15383 mkdir conf$$.dir 2>/dev/null
15385 if (echo >conf$$.file) 2>/dev/null; then
15386 if ln -s conf$$.file conf$$ 2>/dev/null; then
15388 # ... but there are two gotchas:
15389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15391 # In both cases, we have to default to `cp -pR'.
15392 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15394 elif ln conf$$.file conf$$ 2>/dev/null; then
15402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15403 rmdir conf$$.dir 2>/dev/null
15408 # Create "$as_dir" as a directory, including parents if necessary.
15413 -*) as_dir=./$as_dir;;
15415 test -d "$as_dir" || eval $as_mkdir_p || {
15419 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15420 *) as_qdir=$as_dir;;
15422 as_dirs="'$as_qdir' $as_dirs"
15423 as_dir=`$as_dirname -- "$as_dir" ||
15424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15425 X"$as_dir" : 'X\(//\)[^/]' \| \
15426 X"$as_dir" : 'X\(//\)$' \| \
15427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15428 $as_echo X"$as_dir" |
15429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15433 /^X\(\/\/\)[^/].*/{
15446 test -d "$as_dir" && break
15448 test -z "$as_dirs" || eval "mkdir $as_dirs"
15449 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15453 if mkdir -p . 2>/dev/null; then
15454 as_mkdir_p='mkdir -p "$as_dir"'
15456 test -d ./-p && rmdir ./-p
15461 # as_fn_executable_p FILE
15462 # -----------------------
15463 # Test if FILE is an executable regular file.
15464 as_fn_executable_p ()
15466 test -f "$1" && test -x "$1"
15467 } # as_fn_executable_p
15468 as_test_x='test -x'
15469 as_executable_p=as_fn_executable_p
15471 # Sed expression to map a string onto a valid CPP name.
15472 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15474 # Sed expression to map a string onto a valid variable name.
15475 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15479 ## ----------------------------------- ##
15480 ## Main body of $CONFIG_STATUS script. ##
15481 ## ----------------------------------- ##
15483 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15486 # Save the log message, to keep $0 and so on meaningful, and to
15487 # report actual input values of CONFIG_FILES etc. instead of their
15488 # values after options handling.
15490 This file was extended by libksba $as_me 1.3.4, which was
15491 generated by GNU Autoconf 2.69. Invocation command line was
15493 CONFIG_FILES = $CONFIG_FILES
15494 CONFIG_HEADERS = $CONFIG_HEADERS
15495 CONFIG_LINKS = $CONFIG_LINKS
15496 CONFIG_COMMANDS = $CONFIG_COMMANDS
15499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15504 case $ac_config_files in *"
15505 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15508 case $ac_config_headers in *"
15509 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15514 # Files that config.status was made for.
15515 config_files="$ac_config_files"
15516 config_headers="$ac_config_headers"
15517 config_commands="$ac_config_commands"
15521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 \`$as_me' instantiates files and other configuration actions
15524 from templates according to the current configuration. Unless the files
15525 and actions are specified as TAGs, all are instantiated by default.
15527 Usage: $0 [OPTION]... [TAG]...
15529 -h, --help print this help, then exit
15530 -V, --version print version number and configuration settings, then exit
15531 --config print configuration, then exit
15532 -q, --quiet, --silent
15533 do not print progress messages
15534 -d, --debug don't remove temporary files
15535 --recheck update $as_me by reconfiguring in the same conditions
15536 --file=FILE[:TEMPLATE]
15537 instantiate the configuration file FILE
15538 --header=FILE[:TEMPLATE]
15539 instantiate the configuration header FILE
15541 Configuration files:
15544 Configuration headers:
15547 Configuration commands:
15550 Report bugs to <http://bugs.gnupg.org>."
15553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15556 libksba config.status 1.3.4
15557 configured by $0, generated by GNU Autoconf 2.69,
15558 with options \\"\$ac_cs_config\\"
15560 Copyright (C) 2012 Free Software Foundation, Inc.
15561 This config.status script is free software; the Free Software Foundation
15562 gives unlimited permission to copy, distribute and modify it."
15569 test -n "\$AWK" || AWK=awk
15572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 # The default lists apply if the user does not specify any file.
15579 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15580 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15584 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15596 # Handling of the options.
15597 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15599 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15600 $as_echo "$ac_cs_version"; exit ;;
15601 --config | --confi | --conf | --con | --co | --c )
15602 $as_echo "$ac_cs_config"; exit ;;
15603 --debug | --debu | --deb | --de | --d | -d )
15605 --file | --fil | --fi | --f )
15608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15609 '') as_fn_error $? "missing file argument" ;;
15611 as_fn_append CONFIG_FILES " '$ac_optarg'"
15612 ac_need_defaults=false;;
15613 --header | --heade | --head | --hea )
15616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15618 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15619 ac_need_defaults=false;;
15621 # Conflict between --help and --header
15622 as_fn_error $? "ambiguous option: \`$1'
15623 Try \`$0 --help' for more information.";;
15624 --help | --hel | -h )
15625 $as_echo "$ac_cs_usage"; exit ;;
15626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15627 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15630 # This is an error.
15631 -*) as_fn_error $? "unrecognized option: \`$1'
15632 Try \`$0 --help' for more information." ;;
15634 *) as_fn_append ac_config_targets " $1"
15635 ac_need_defaults=false ;;
15641 ac_configure_extra_args=
15643 if $ac_cs_silent; then
15645 ac_configure_extra_args="$ac_configure_extra_args --silent"
15649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15650 if \$ac_cs_recheck; then
15651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15654 CONFIG_SHELL='$SHELL'
15655 export CONFIG_SHELL
15660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15665 ## Running $as_me. ##
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15678 # The HP-UX ksh and POSIX shell print the target directory to stdout
15679 # if CDPATH is set.
15680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15682 sed_quote_subst='$sed_quote_subst'
15683 double_quote_subst='$double_quote_subst'
15684 delay_variable_subst='$delay_variable_subst'
15685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15687 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15688 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15689 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15690 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15691 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15692 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15693 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15694 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15695 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15696 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15697 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15698 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15699 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15700 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15701 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15702 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15703 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15704 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15705 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15706 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15707 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15708 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15709 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15710 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15711 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15712 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15713 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15714 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15715 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15716 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15717 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15718 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15719 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15720 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15721 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15722 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15723 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15724 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15725 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15741 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15742 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"`'
15743 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15744 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15745 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15746 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15747 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15748 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15749 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15750 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15751 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15752 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15753 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15754 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15755 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15756 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15757 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15758 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15759 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15760 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15761 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15762 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15763 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15764 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15765 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15766 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15767 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15768 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15769 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15770 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15771 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15772 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15773 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15774 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15775 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15776 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15777 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15778 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15779 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15780 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15781 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15782 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15783 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15784 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15785 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15786 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15787 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15788 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15789 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15790 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15791 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15793 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15794 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15795 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15796 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15797 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15798 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15799 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15800 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15801 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15802 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15803 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15804 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15805 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15806 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15807 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15808 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15809 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15810 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15811 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15812 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15813 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15814 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15815 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15816 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
15817 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
15818 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
15819 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15820 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
15821 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
15824 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
15825 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
15826 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
15827 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
15828 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
15829 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15830 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15831 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
15832 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
15833 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
15835 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15836 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
15837 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
15838 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
15839 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15840 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
15841 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
15842 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
15843 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
15844 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
15845 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
15846 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
15847 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
15848 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
15849 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
15850 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
15851 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
15852 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15853 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
15854 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15855 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
15856 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
15857 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
15860 LTCFLAGS='$LTCFLAGS'
15861 compiler='$compiler_DEFAULT'
15863 # A function that is used when there is no print builtin or printf.
15864 func_fallback_echo ()
15866 eval 'cat <<_LTECHO_EOF
15871 # Quote evaled strings.
15888 deplibs_check_method \
15892 sharedlib_from_linklib_cmd \
15895 archiver_list_spec \
15901 lt_cv_sys_global_symbol_pipe \
15902 lt_cv_sys_global_symbol_to_cdecl \
15903 lt_cv_sys_global_symbol_to_c_name_address \
15904 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15905 nm_file_list_spec \
15906 lt_prog_compiler_no_builtin_flag \
15907 lt_prog_compiler_pic \
15908 lt_prog_compiler_wl \
15909 lt_prog_compiler_static \
15910 lt_cv_prog_compiler_c_o \
15919 export_dynamic_flag_spec \
15920 whole_archive_flag_spec \
15921 compiler_needs_object \
15923 allow_undefined_flag \
15924 no_undefined_flag \
15925 hardcode_libdir_flag_spec \
15926 hardcode_libdir_separator \
15930 variables_saved_for_relink \
15932 library_names_spec \
15934 install_override_mode \
15941 lt_prog_compiler_no_builtin_flag_RC \
15942 lt_prog_compiler_pic_RC \
15943 lt_prog_compiler_wl_RC \
15944 lt_prog_compiler_static_RC \
15945 lt_cv_prog_compiler_c_o_RC \
15946 export_dynamic_flag_spec_RC \
15947 whole_archive_flag_spec_RC \
15948 compiler_needs_object_RC \
15950 allow_undefined_flag_RC \
15951 no_undefined_flag_RC \
15952 hardcode_libdir_flag_spec_RC \
15953 hardcode_libdir_separator_RC \
15954 exclude_expsyms_RC \
15955 include_expsyms_RC \
15956 file_list_spec_RC; do
15957 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15958 *[\\\\\\\`\\"\\\$]*)
15959 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15962 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15967 # Double-quote double-evaled strings.
15968 for var in reload_cmds \
15969 old_postinstall_cmds \
15970 old_postuninstall_cmds \
15972 extract_expsyms_cmds \
15973 old_archive_from_new_cmds \
15974 old_archive_from_expsyms_cmds \
15976 archive_expsym_cmds \
15978 module_expsym_cmds \
15979 export_symbols_cmds \
15983 postuninstall_cmds \
15985 sys_lib_search_path_spec \
15986 sys_lib_dlsearch_path_spec \
15988 old_archive_cmds_RC \
15989 old_archive_from_new_cmds_RC \
15990 old_archive_from_expsyms_cmds_RC \
15992 archive_expsym_cmds_RC \
15994 module_expsym_cmds_RC \
15995 export_symbols_cmds_RC \
15997 postlink_cmds_RC; do
15998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15999 *[\\\\\\\`\\"\\\$]*)
16000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16008 ac_aux_dir='$ac_aux_dir'
16009 xsi_shell='$xsi_shell'
16010 lt_shell_append='$lt_shell_append'
16012 # See if we are running on zsh, and set the options which allow our
16013 # commands through without removal of \ escapes INIT.
16014 if test -n "\${ZSH_VERSION+set}" ; then
16015 setopt NO_GLOB_SUBST
16021 TIMESTAMP='$TIMESTAMP'
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16034 # Handling of arguments.
16035 for ac_config_target in $ac_config_targets
16037 case $ac_config_target in
16038 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16039 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16040 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16042 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16043 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;;
16044 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16045 "src/ksba-config") CONFIG_FILES="$CONFIG_FILES src/ksba-config" ;;
16046 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
16047 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16048 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16055 # If the user did not use the arguments to specify the items to instantiate,
16056 # then the envvar interface is used. Set only those that are not.
16057 # We use the long form for the default assignment because of an extremely
16058 # bizarre bug on SunOS 4.1.3.
16059 if $ac_need_defaults; then
16060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16065 # Have a temporary directory for convenience. Make it in the build tree
16066 # simply because there is no reason against having it here, and in addition,
16067 # creating and moving files from /tmp can sometimes cause problems.
16068 # Hook for its removal unless debugging.
16069 # Note that there is a small window in which the directory will not be cleaned:
16070 # after its creation but before its name has been assigned to `$tmp'.
16074 trap 'exit_status=$?
16075 : "${ac_tmp:=$tmp}"
16076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16078 trap 'as_fn_exit 1' 1 2 13 15
16080 # Create a (secure) tmp directory for tmp files.
16083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16087 tmp=./conf$$-$RANDOM
16088 (umask 077 && mkdir "$tmp")
16089 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16092 # Set up the scripts for CONFIG_FILES section.
16093 # No need to generate them if there are no CONFIG_FILES.
16094 # This happens for instance with `./config.status config.h'.
16095 if test -n "$CONFIG_FILES"; then
16098 ac_cr=`echo X | tr X '\015'`
16099 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16100 # But we know of no other shell where ac_cr would be empty at this
16101 # point, so we can use a bashism as a fallback.
16102 if test "x$ac_cr" = x; then
16103 eval ac_cr=\$\'\\r\'
16105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16109 ac_cs_awk_cr=$ac_cr
16112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16117 echo "cat >conf$$subs.awk <<_ACEOF" &&
16118 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16120 } >conf$$subs.sh ||
16121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16124 for ac_last_try in false false false false false :; do
16125 . ./conf$$subs.sh ||
16126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16128 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16129 if test $ac_delim_n = $ac_delim_num; then
16131 elif $ac_last_try; then
16132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16137 rm -f conf$$subs.sh
16139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16140 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16144 s/^/S["/; s/!.*/"]=/
16154 s/\(.\{148\}\)..*/\1/
16156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16168 s/\(.\{148\}\)..*/\1/
16170 s/["\\]/\\&/g; s/^/"/; s/$/"/
16174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16179 ' <conf$$subs.awk | sed '
16184 ' >>$CONFIG_STATUS || ac_write_fail=1
16185 rm -f conf$$subs.awk
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16188 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16189 for (key in S) S_is_set[key] = 1
16195 nfields = split(line, field, "@")
16197 len = length(field[1])
16198 for (i = 2; i < nfields; i++) {
16200 keylen = length(key)
16201 if (S_is_set[key]) {
16203 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16204 len += length(value) + length(field[++i])
16215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16220 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16221 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16224 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16225 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16226 # trailing colons and then remove the whole line if VPATH becomes empty
16227 # (actually we leave an empty line to preserve line numbers).
16228 if test "x$srcdir" = x.; then
16229 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248 fi # test -n "$CONFIG_FILES"
16250 # Set up the scripts for CONFIG_HEADERS section.
16251 # No need to generate them if there are no CONFIG_HEADERS.
16252 # This happens for instance with `./config.status Makefile'.
16253 if test -n "$CONFIG_HEADERS"; then
16254 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16258 # Transform confdefs.h into an awk script `defines.awk', embedded as
16259 # here-document in config.status, that substitutes the proper values into
16260 # config.h.in to produce config.h.
16262 # Create a delimiter string that does not exist in confdefs.h, to ease
16263 # handling of long lines.
16265 for ac_last_try in false false :; do
16266 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16267 if test -z "$ac_tt"; then
16269 elif $ac_last_try; then
16270 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16276 # For the awk script, D is an array of macro values keyed by name,
16277 # likewise P contains macro parameters if any. Preserve backslash
16278 # newline sequences.
16280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16282 s/.\{148\}/&'"$ac_delim"'/g
16285 s/^[ ]*#[ ]*define[ ][ ]*/ /
16292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16299 D["\1"]=" \3\\\\\\n"\\/p
16301 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16306 s/.\{148\}/&'"$ac_delim"'/g
16311 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16314 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16316 ' <confdefs.h | sed '
16317 s/'"$ac_delim"'/"\\\
16318 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 for (key in D) D_is_set[key] = 1
16324 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16326 split(line, arg, " ")
16327 if (arg[1] == "#") {
16331 defundef = substr(arg[1], 2)
16334 split(mac1, mac2, "(") #)
16336 prefix = substr(line, 1, index(line, defundef) - 1)
16337 if (D_is_set[macro]) {
16338 # Preserve the white space surrounding the "#".
16339 print prefix "define", macro P[macro] D[macro]
16342 # Replace #undef with comments. This is necessary, for example,
16343 # in the case of _POSIX_SOURCE, which is predefined and required
16344 # on some systems where configure will not decide to define it.
16345 if (defundef == "undef") {
16346 print "/*", prefix defundef, macro, "*/"
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16356 fi # test -n "$CONFIG_HEADERS"
16359 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16364 :[FHLC]) ac_mode=$ac_tag; continue;;
16366 case $ac_mode$ac_tag in
16368 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16369 :[FH]-) ac_tag=-:-;;
16370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16387 -) ac_f="$ac_tmp/stdin";;
16388 *) # Look for the file first in the build tree, then in the source tree
16389 # (if the path is not absolute). The absolute path cannot be DOS-style,
16390 # because $ac_f cannot contain `:'.
16394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16396 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16399 as_fn_append ac_file_inputs " '$ac_f'"
16402 # Let's still pretend it is `configure' which instantiates (i.e., don't
16403 # use $as_me), people would be surprised to read:
16404 # /* config.h. Generated by config.status. */
16405 configure_input='Generated from '`
16406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16408 if test x"$ac_file" != x-; then
16409 configure_input="$ac_file. $configure_input"
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16411 $as_echo "$as_me: creating $ac_file" >&6;}
16413 # Neutralize special characters interpreted by sed in replacement strings.
16414 case $configure_input in #(
16415 *\&* | *\|* | *\\* )
16416 ac_sed_conf_input=`$as_echo "$configure_input" |
16417 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16418 *) ac_sed_conf_input=$configure_input;;
16422 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16428 ac_dir=`$as_dirname -- "$ac_file" ||
16429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16430 X"$ac_file" : 'X\(//\)[^/]' \| \
16431 X"$ac_file" : 'X\(//\)$' \| \
16432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16433 $as_echo X"$ac_file" |
16434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16438 /^X\(\/\/\)[^/].*/{
16451 as_dir="$ac_dir"; as_fn_mkdir_p
16455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16458 # A ".." for each directory in $ac_dir_suffix.
16459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16460 case $ac_top_builddir_sub in
16461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16465 ac_abs_top_builddir=$ac_pwd
16466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16467 # for backward compatibility:
16468 ac_top_builddir=$ac_top_build_prefix
16471 .) # We are building in place.
16473 ac_top_srcdir=$ac_top_builddir_sub
16474 ac_abs_top_srcdir=$ac_pwd ;;
16475 [\\/]* | ?:[\\/]* ) # Absolute name.
16476 ac_srcdir=$srcdir$ac_dir_suffix;
16477 ac_top_srcdir=$srcdir
16478 ac_abs_top_srcdir=$srcdir ;;
16479 *) # Relative name.
16480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16481 ac_top_srcdir=$ac_top_build_prefix$srcdir
16482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16497 ac_MKDIR_P=$MKDIR_P
16499 [\\/$]* | ?:[\\/]* ) ;;
16500 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 # If the template does not know about datarootdir, expand it.
16506 # FIXME: This hack should be removed a few years after 2.60.
16507 ac_datarootdir_hack=; ac_datarootdir_seen=
16518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16519 *datarootdir*) ac_datarootdir_seen=yes;;
16520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16522 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16525 ac_datarootdir_hack='
16526 s&@datadir@&$datadir&g
16527 s&@docdir@&$docdir&g
16528 s&@infodir@&$infodir&g
16529 s&@localedir@&$localedir&g
16530 s&@mandir@&$mandir&g
16531 s&\\\${datarootdir}&$datarootdir&g' ;;
16535 # Neutralize VPATH when `$srcdir' = `.'.
16536 # Shell code in configure.ac might set extrasub.
16537 # FIXME: do we really want to maintain this feature?
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 ac_sed_extra="$ac_vpsub
16542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16545 s|@configure_input@|$ac_sed_conf_input|;t t
16546 s&@top_builddir@&$ac_top_builddir_sub&;t t
16547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16548 s&@srcdir@&$ac_srcdir&;t t
16549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16550 s&@top_srcdir@&$ac_top_srcdir&;t t
16551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16552 s&@builddir@&$ac_builddir&;t t
16553 s&@abs_builddir@&$ac_abs_builddir&;t t
16554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16555 s&@INSTALL@&$ac_INSTALL&;t t
16556 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16557 $ac_datarootdir_hack
16559 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16560 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16563 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16565 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16567 which seems to be undefined. Please make sure it is defined" >&5
16568 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16569 which seems to be undefined. Please make sure it is defined" >&2;}
16571 rm -f "$ac_tmp/stdin"
16573 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16574 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16582 if test x"$ac_file" != x-; then
16584 $as_echo "/* $configure_input */" \
16585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16586 } >"$ac_tmp/config.h" \
16587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16588 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16590 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16593 mv "$ac_tmp/config.h" "$ac_file" \
16594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16597 $as_echo "/* $configure_input */" \
16598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16599 || as_fn_error $? "could not create -" "$LINENO" 5
16601 # Compute "$ac_file"'s index in $config_headers.
16604 for _am_header in $config_headers :; do
16605 case $_am_header in
16606 $_am_arg | $_am_arg:* )
16609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16612 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16613 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$_am_arg" : 'X\(//\)[^/]' \| \
16615 X"$_am_arg" : 'X\(//\)$' \| \
16616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16617 $as_echo X"$_am_arg" |
16618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16622 /^X\(\/\/\)[^/].*/{
16634 s/.*/./; q'`/stamp-h$_am_stamp_count
16637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16638 $as_echo "$as_me: executing $ac_file commands" >&6;}
16643 case $ac_file$ac_mode in
16644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16645 # Older Autoconf quotes --file arguments for eval, but not when files
16646 # are listed without --file. Let's play safe and only enable the eval
16647 # if we detect the quoting.
16648 case $CONFIG_FILES in
16649 *\'*) eval set x "$CONFIG_FILES" ;;
16650 *) set x $CONFIG_FILES ;;
16655 # Strip MF so we end up with the name of the file.
16656 mf=`echo "$mf" | sed -e 's/:.*$//'`
16657 # Check whether this is an Automake generated Makefile or not.
16658 # We used to match only the files named 'Makefile.in', but
16659 # some people rename them; so instead we look at the file content.
16660 # Grep'ing the first line is not enough: some people post-process
16661 # each Makefile.in and add a new line on top of each file to say so.
16662 # Grep'ing the whole file is not good either: AIX grep has a line
16663 # limit of 2048, but all sed's we know have understand at least 4000.
16664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16665 dirpart=`$as_dirname -- "$mf" ||
16666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16667 X"$mf" : 'X\(//\)[^/]' \| \
16668 X"$mf" : 'X\(//\)$' \| \
16669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16675 /^X\(\/\/\)[^/].*/{
16691 # Extract the definition of DEPDIR, am__include, and am__quote
16692 # from the Makefile without running 'make'.
16693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16694 test -z "$DEPDIR" && continue
16695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16696 test -z "$am__include" && continue
16697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16698 # Find all dependency output files, they are included files with
16699 # $(DEPDIR) in their names. We invoke sed twice because it is the
16700 # simplest approach to changing $(DEPDIR) to its actual value in the
16702 for file in `sed -n "
16703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16705 # Make sure the directory exists.
16706 test -f "$dirpart/$file" && continue
16707 fdir=`$as_dirname -- "$file" ||
16708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16709 X"$file" : 'X\(//\)[^/]' \| \
16710 X"$file" : 'X\(//\)$' \| \
16711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16712 $as_echo X"$file" |
16713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16717 /^X\(\/\/\)[^/].*/{
16730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16731 # echo "creating $dirpart/$file"
16732 echo '# dummy' > "$dirpart/$file"
16739 # See if we are running on zsh, and set the options which allow our
16740 # commands through without removal of \ escapes.
16741 if test -n "${ZSH_VERSION+set}" ; then
16742 setopt NO_GLOB_SUBST
16745 cfgfile="${ofile}T"
16746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16749 cat <<_LT_EOF >> "$cfgfile"
16752 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16754 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16755 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16757 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16758 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16760 # Written by Gordon Matzigkeit, 1996
16762 # This file is part of GNU Libtool.
16764 # GNU Libtool is free software; you can redistribute it and/or
16765 # modify it under the terms of the GNU General Public License as
16766 # published by the Free Software Foundation; either version 2 of
16767 # the License, or (at your option) any later version.
16769 # As a special exception to the GNU General Public License,
16770 # if you distribute this file as part of a program or library that
16771 # is built using GNU Libtool, you may include this file under the
16772 # same distribution terms that you use for the rest of that program.
16774 # GNU Libtool is distributed in the hope that it will be useful,
16775 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16776 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16777 # GNU General Public License for more details.
16779 # You should have received a copy of the GNU General Public License
16780 # along with GNU Libtool; see the file COPYING. If not, a copy
16781 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16782 # obtained by writing to the Free Software Foundation, Inc.,
16783 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16786 # The names of the tagged configurations supported by this script.
16787 available_tags="RC "
16789 # ### BEGIN LIBTOOL CONFIG
16791 # Which release of libtool.m4 was used?
16792 macro_version=$macro_version
16793 macro_revision=$macro_revision
16795 # Assembler program.
16798 # DLL creation program.
16799 DLLTOOL=$lt_DLLTOOL
16801 # Object dumper program.
16802 OBJDUMP=$lt_OBJDUMP
16804 # Whether or not to build static libraries.
16805 build_old_libs=$enable_static
16807 # Whether or not to build shared libraries.
16808 build_libtool_libs=$enable_shared
16810 # What type of objects to build.
16813 # Whether or not to optimize for fast installation.
16814 fast_install=$enable_fast_install
16816 # Shell to use when invoking shell scripts.
16819 # An echo program that protects backslashes.
16822 # The PATH separator for the build system.
16823 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16826 host_alias=$host_alias
16830 # The build system.
16831 build_alias=$build_alias
16835 # A sed program that does not truncate output.
16838 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16839 Xsed="\$SED -e 1s/^X//"
16841 # A grep program that handles long lines.
16847 # A literal string matcher.
16850 # A BSD- or MS-compatible name lister.
16853 # Whether we need soft or hard links.
16856 # What is the maximum length of a command?
16857 max_cmd_len=$max_cmd_len
16859 # Object file suffix (normally "o").
16862 # Executable file suffix (normally "").
16865 # whether the shell understands "unset".
16868 # turn spaces into newlines.
16871 # turn newlines into spaces.
16874 # convert \$build file names to \$host format.
16875 to_host_file_cmd=$lt_cv_to_host_file_cmd
16877 # convert \$build files to toolchain format.
16878 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16880 # Method to check whether dependent libraries are shared objects.
16881 deplibs_check_method=$lt_deplibs_check_method
16883 # Command to use when deplibs_check_method = "file_magic".
16884 file_magic_cmd=$lt_file_magic_cmd
16886 # How to find potential files when deplibs_check_method = "file_magic".
16887 file_magic_glob=$lt_file_magic_glob
16889 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16890 want_nocaseglob=$lt_want_nocaseglob
16892 # Command to associate shared and link libraries.
16893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16898 # Flags to create an archive.
16899 AR_FLAGS=$lt_AR_FLAGS
16901 # How to feed a file listing to the archiver.
16902 archiver_list_spec=$lt_archiver_list_spec
16904 # A symbol stripping program.
16907 # Commands used to install an old-style archive.
16909 old_postinstall_cmds=$lt_old_postinstall_cmds
16910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16912 # Whether to use a lock for old archive extraction.
16913 lock_old_archive_extraction=$lock_old_archive_extraction
16918 # LTCC compiler flags.
16919 LTCFLAGS=$lt_CFLAGS
16921 # Take the output of nm and produce a listing of raw symbols and C names.
16922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16924 # Transform the output of nm in a proper C declaration.
16925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16927 # Transform the output of nm in a C name address pair.
16928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16930 # Transform the output of nm in a C name address pair when lib prefix is needed.
16931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16933 # Specify filename containing input files for \$NM.
16934 nm_file_list_spec=$lt_nm_file_list_spec
16936 # The root where to search for dependent libraries,and in which our libraries should be installed.
16937 lt_sysroot=$lt_sysroot
16939 # The name of the directory that contains temporary libtool files.
16942 # Used to examine libraries when file_magic_cmd begins with "file".
16943 MAGIC_CMD=$MAGIC_CMD
16945 # Must we lock files when doing compilation?
16946 need_locks=$lt_need_locks
16949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16952 DSYMUTIL=$lt_DSYMUTIL
16954 # Tool to change global to local symbols on Mac OS X.
16957 # Tool to manipulate fat objects and archives on Mac OS X.
16960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16964 OTOOL64=$lt_OTOOL64
16966 # Old archive suffix (normally "a").
16969 # Shared library suffix (normally ".so").
16970 shrext_cmds=$lt_shrext_cmds
16972 # The commands to extract the exported symbol list from a shared archive.
16973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16975 # Variables whose values should be saved in libtool wrapper scripts and
16976 # restored at link time.
16977 variables_saved_for_relink=$lt_variables_saved_for_relink
16979 # Do we need the "lib" prefix for modules?
16980 need_lib_prefix=$need_lib_prefix
16982 # Do we need a version for libraries?
16983 need_version=$need_version
16985 # Library versioning type.
16986 version_type=$version_type
16988 # Shared library runtime path variable.
16989 runpath_var=$runpath_var
16991 # Shared library path variable.
16992 shlibpath_var=$shlibpath_var
16994 # Is shlibpath searched before the hard-coded library search path?
16995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16997 # Format of library name prefix.
16998 libname_spec=$lt_libname_spec
17000 # List of archive names. First name is the real one, the rest are links.
17001 # The last name is the one that the linker finds with -lNAME
17002 library_names_spec=$lt_library_names_spec
17004 # The coded name of the library, if different from the real name.
17005 soname_spec=$lt_soname_spec
17007 # Permission mode override for installation of shared libraries.
17008 install_override_mode=$lt_install_override_mode
17010 # Command to use after installation of a shared archive.
17011 postinstall_cmds=$lt_postinstall_cmds
17013 # Command to use after uninstallation of a shared archive.
17014 postuninstall_cmds=$lt_postuninstall_cmds
17016 # Commands used to finish a libtool library installation in a directory.
17017 finish_cmds=$lt_finish_cmds
17019 # As "finish_cmds", except a single script fragment to be evaled but
17021 finish_eval=$lt_finish_eval
17023 # Whether we should hardcode library paths into libraries.
17024 hardcode_into_libs=$hardcode_into_libs
17026 # Compile-time system search path for libraries.
17027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17029 # Run-time system search path for libraries.
17030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17032 # Whether dlopen is supported.
17033 dlopen_support=$enable_dlopen
17035 # Whether dlopen of programs is supported.
17036 dlopen_self=$enable_dlopen_self
17038 # Whether dlopen of statically linked programs is supported.
17039 dlopen_self_static=$enable_dlopen_self_static
17041 # Commands to strip libraries.
17042 old_striplib=$lt_old_striplib
17043 striplib=$lt_striplib
17046 # The linker used to build libraries.
17049 # How to create reloadable object files.
17050 reload_flag=$lt_reload_flag
17051 reload_cmds=$lt_reload_cmds
17053 # Commands used to build an old-style archive.
17054 old_archive_cmds=$lt_old_archive_cmds
17056 # A language specific compiler.
17059 # Is the compiler the GNU compiler?
17062 # Compiler flag to turn off builtin functions.
17063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17065 # Additional compiler flags for building library objects.
17066 pic_flag=$lt_lt_prog_compiler_pic
17068 # How to pass a linker flag through the compiler.
17069 wl=$lt_lt_prog_compiler_wl
17071 # Compiler flag to prevent dynamic linking.
17072 link_static_flag=$lt_lt_prog_compiler_static
17074 # Does compiler simultaneously support -c and -o options?
17075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17077 # Whether or not to add -lc for building shared libraries.
17078 build_libtool_need_lc=$archive_cmds_need_lc
17080 # Whether or not to disallow shared libs when runtime libs are static.
17081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17083 # Compiler flag to allow reflexive dlopens.
17084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17086 # Compiler flag to generate shared objects directly from archives.
17087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17089 # Whether the compiler copes with passing no objects directly.
17090 compiler_needs_object=$lt_compiler_needs_object
17092 # Create an old-style archive from a shared archive.
17093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17095 # Create a temporary old-style archive to link instead of a shared archive.
17096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17098 # Commands used to build a shared archive.
17099 archive_cmds=$lt_archive_cmds
17100 archive_expsym_cmds=$lt_archive_expsym_cmds
17102 # Commands used to build a loadable module if different from building
17103 # a shared archive.
17104 module_cmds=$lt_module_cmds
17105 module_expsym_cmds=$lt_module_expsym_cmds
17107 # Whether we are building with GNU ld or not.
17108 with_gnu_ld=$lt_with_gnu_ld
17110 # Flag that allows shared libraries with undefined symbols to be built.
17111 allow_undefined_flag=$lt_allow_undefined_flag
17113 # Flag that enforces no undefined symbols.
17114 no_undefined_flag=$lt_no_undefined_flag
17116 # Flag to hardcode \$libdir into a binary during linking.
17117 # This must work even if \$libdir does not exist
17118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17120 # Whether we need a single "-rpath" flag with a separated argument.
17121 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17123 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17124 # DIR into the resulting binary.
17125 hardcode_direct=$hardcode_direct
17127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17128 # DIR into the resulting binary and the resulting library dependency is
17129 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17130 # library is relocated.
17131 hardcode_direct_absolute=$hardcode_direct_absolute
17133 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17134 # into the resulting binary.
17135 hardcode_minus_L=$hardcode_minus_L
17137 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17138 # into the resulting binary.
17139 hardcode_shlibpath_var=$hardcode_shlibpath_var
17141 # Set to "yes" if building a shared library automatically hardcodes DIR
17142 # into the library and all subsequent libraries and executables linked
17144 hardcode_automatic=$hardcode_automatic
17146 # Set to yes if linker adds runtime paths of dependent libraries
17147 # to runtime path list.
17148 inherit_rpath=$inherit_rpath
17150 # Whether libtool must link a program against all its dependency libraries.
17151 link_all_deplibs=$link_all_deplibs
17153 # Set to "yes" if exported symbols are required.
17154 always_export_symbols=$always_export_symbols
17156 # The commands to list exported symbols.
17157 export_symbols_cmds=$lt_export_symbols_cmds
17159 # Symbols that should not be listed in the preloaded symbols.
17160 exclude_expsyms=$lt_exclude_expsyms
17162 # Symbols that must always be exported.
17163 include_expsyms=$lt_include_expsyms
17165 # Commands necessary for linking programs (against libraries) with templates.
17166 prelink_cmds=$lt_prelink_cmds
17168 # Commands necessary for finishing linking programs.
17169 postlink_cmds=$lt_postlink_cmds
17171 # Specify filename containing input files.
17172 file_list_spec=$lt_file_list_spec
17174 # How to hardcode a shared library path into an executable.
17175 hardcode_action=$hardcode_action
17177 # ### END LIBTOOL CONFIG
17183 cat <<\_LT_EOF >> "$cfgfile"
17184 # AIX sometimes has problems with the GCC collect2 program. For some
17185 # reason, if we set the COLLECT_NAMES environment variable, the problems
17186 # vanish in a puff of smoke.
17187 if test "X${COLLECT_NAMES+set}" != Xset; then
17189 export COLLECT_NAMES
17196 ltmain="$ac_aux_dir/ltmain.sh"
17199 # We use sed instead of cat because bash on DJGPP gets confused if
17200 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17201 # text mode, it properly converts lines to CR/LF. This bash problem
17202 # is reportedly fixed, but why not run on old versions too?
17203 sed '$q' "$ltmain" >> "$cfgfile" \
17204 || (rm -f "$cfgfile"; exit 1)
17206 if test x"$xsi_shell" = xyes; then
17207 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17211 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17212 \ * ) func_dirname_result="${3}" ;;\
17214 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17215 && mv -f "$cfgfile.tmp" "$cfgfile" \
17216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17217 test 0 -eq $? || _lt_function_replace_fail=:
17220 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17223 \ func_basename_result="${1##*/}"\
17224 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17225 && mv -f "$cfgfile.tmp" "$cfgfile" \
17226 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17227 test 0 -eq $? || _lt_function_replace_fail=:
17230 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17231 func_dirname_and_basename ()\
17234 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17235 \ * ) func_dirname_result="${3}" ;;\
17237 \ func_basename_result="${1##*/}"\
17238 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17239 && mv -f "$cfgfile.tmp" "$cfgfile" \
17240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17241 test 0 -eq $? || _lt_function_replace_fail=:
17244 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17247 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17248 \ # positional parameters, so assign one to ordinary parameter first.\
17249 \ func_stripname_result=${3}\
17250 \ func_stripname_result=${func_stripname_result#"${1}"}\
17251 \ func_stripname_result=${func_stripname_result%"${2}"}\
17252 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17253 && mv -f "$cfgfile.tmp" "$cfgfile" \
17254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17255 test 0 -eq $? || _lt_function_replace_fail=:
17258 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17259 func_split_long_opt ()\
17261 \ func_split_long_opt_name=${1%%=*}\
17262 \ func_split_long_opt_arg=${1#*=}\
17263 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17264 && mv -f "$cfgfile.tmp" "$cfgfile" \
17265 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17266 test 0 -eq $? || _lt_function_replace_fail=:
17269 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17270 func_split_short_opt ()\
17272 \ func_split_short_opt_arg=${1#??}\
17273 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17274 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17275 && mv -f "$cfgfile.tmp" "$cfgfile" \
17276 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17277 test 0 -eq $? || _lt_function_replace_fail=:
17280 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17284 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17285 \ *) func_lo2o_result=${1} ;;\
17287 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17288 && mv -f "$cfgfile.tmp" "$cfgfile" \
17289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17290 test 0 -eq $? || _lt_function_replace_fail=:
17293 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17296 func_xform_result=${1%.*}.lo\
17297 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17298 && mv -f "$cfgfile.tmp" "$cfgfile" \
17299 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17300 test 0 -eq $? || _lt_function_replace_fail=:
17303 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17306 func_arith_result=$(( $* ))\
17307 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17308 && mv -f "$cfgfile.tmp" "$cfgfile" \
17309 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17310 test 0 -eq $? || _lt_function_replace_fail=:
17313 sed -e '/^func_len ()$/,/^} # func_len /c\
17316 func_len_result=${#1}\
17317 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17318 && mv -f "$cfgfile.tmp" "$cfgfile" \
17319 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17320 test 0 -eq $? || _lt_function_replace_fail=:
17324 if test x"$lt_shell_append" = xyes; then
17325 sed -e '/^func_append ()$/,/^} # func_append /c\
17328 eval "${1}+=\\${2}"\
17329 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17330 && mv -f "$cfgfile.tmp" "$cfgfile" \
17331 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17332 test 0 -eq $? || _lt_function_replace_fail=:
17335 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17336 func_append_quoted ()\
17338 \ func_quote_for_eval "${2}"\
17339 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17340 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17341 && mv -f "$cfgfile.tmp" "$cfgfile" \
17342 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17343 test 0 -eq $? || _lt_function_replace_fail=:
17346 # Save a `func_append' function call where possible by direct use of '+='
17347 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17348 && mv -f "$cfgfile.tmp" "$cfgfile" \
17349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17350 test 0 -eq $? || _lt_function_replace_fail=:
17352 # Save a `func_append' function call even when '+=' is not available
17353 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17354 && mv -f "$cfgfile.tmp" "$cfgfile" \
17355 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17356 test 0 -eq $? || _lt_function_replace_fail=:
17359 if test x"$_lt_function_replace_fail" = x":"; then
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17361 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17365 mv -f "$cfgfile" "$ofile" ||
17366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17370 cat <<_LT_EOF >> "$ofile"
17372 # ### BEGIN LIBTOOL TAG CONFIG: RC
17374 # The linker used to build libraries.
17377 # How to create reloadable object files.
17378 reload_flag=$lt_reload_flag_RC
17379 reload_cmds=$lt_reload_cmds_RC
17381 # Commands used to build an old-style archive.
17382 old_archive_cmds=$lt_old_archive_cmds_RC
17384 # A language specific compiler.
17387 # Is the compiler the GNU compiler?
17390 # Compiler flag to turn off builtin functions.
17391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17393 # Additional compiler flags for building library objects.
17394 pic_flag=$lt_lt_prog_compiler_pic_RC
17396 # How to pass a linker flag through the compiler.
17397 wl=$lt_lt_prog_compiler_wl_RC
17399 # Compiler flag to prevent dynamic linking.
17400 link_static_flag=$lt_lt_prog_compiler_static_RC
17402 # Does compiler simultaneously support -c and -o options?
17403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17405 # Whether or not to add -lc for building shared libraries.
17406 build_libtool_need_lc=$archive_cmds_need_lc_RC
17408 # Whether or not to disallow shared libs when runtime libs are static.
17409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17411 # Compiler flag to allow reflexive dlopens.
17412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17414 # Compiler flag to generate shared objects directly from archives.
17415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17417 # Whether the compiler copes with passing no objects directly.
17418 compiler_needs_object=$lt_compiler_needs_object_RC
17420 # Create an old-style archive from a shared archive.
17421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17423 # Create a temporary old-style archive to link instead of a shared archive.
17424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17426 # Commands used to build a shared archive.
17427 archive_cmds=$lt_archive_cmds_RC
17428 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17430 # Commands used to build a loadable module if different from building
17431 # a shared archive.
17432 module_cmds=$lt_module_cmds_RC
17433 module_expsym_cmds=$lt_module_expsym_cmds_RC
17435 # Whether we are building with GNU ld or not.
17436 with_gnu_ld=$lt_with_gnu_ld_RC
17438 # Flag that allows shared libraries with undefined symbols to be built.
17439 allow_undefined_flag=$lt_allow_undefined_flag_RC
17441 # Flag that enforces no undefined symbols.
17442 no_undefined_flag=$lt_no_undefined_flag_RC
17444 # Flag to hardcode \$libdir into a binary during linking.
17445 # This must work even if \$libdir does not exist
17446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17448 # Whether we need a single "-rpath" flag with a separated argument.
17449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17452 # DIR into the resulting binary.
17453 hardcode_direct=$hardcode_direct_RC
17455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17456 # DIR into the resulting binary and the resulting library dependency is
17457 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17458 # library is relocated.
17459 hardcode_direct_absolute=$hardcode_direct_absolute_RC
17461 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17462 # into the resulting binary.
17463 hardcode_minus_L=$hardcode_minus_L_RC
17465 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17466 # into the resulting binary.
17467 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17469 # Set to "yes" if building a shared library automatically hardcodes DIR
17470 # into the library and all subsequent libraries and executables linked
17472 hardcode_automatic=$hardcode_automatic_RC
17474 # Set to yes if linker adds runtime paths of dependent libraries
17475 # to runtime path list.
17476 inherit_rpath=$inherit_rpath_RC
17478 # Whether libtool must link a program against all its dependency libraries.
17479 link_all_deplibs=$link_all_deplibs_RC
17481 # Set to "yes" if exported symbols are required.
17482 always_export_symbols=$always_export_symbols_RC
17484 # The commands to list exported symbols.
17485 export_symbols_cmds=$lt_export_symbols_cmds_RC
17487 # Symbols that should not be listed in the preloaded symbols.
17488 exclude_expsyms=$lt_exclude_expsyms_RC
17490 # Symbols that must always be exported.
17491 include_expsyms=$lt_include_expsyms_RC
17493 # Commands necessary for linking programs (against libraries) with templates.
17494 prelink_cmds=$lt_prelink_cmds_RC
17496 # Commands necessary for finishing linking programs.
17497 postlink_cmds=$lt_postlink_cmds_RC
17499 # Specify filename containing input files.
17500 file_list_spec=$lt_file_list_spec_RC
17502 # How to hardcode a shared library path into an executable.
17503 hardcode_action=$hardcode_action_RC
17505 # ### END LIBTOOL TAG CONFIG: RC
17516 ac_clean_files=$ac_clean_files_save
17518 test $ac_write_fail = 0 ||
17519 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17522 # configure is writing to config.log, and then calls config.status.
17523 # config.status does its own redirection, appending to config.log.
17524 # Unfortunately, on DOS this fails, as config.log is still kept open
17525 # by configure, so config.status won't be able to write to it; its
17526 # output is simply discarded. So we exec the FD to /dev/null,
17527 # effectively closing config.log, so it can be properly (re)opened and
17528 # appended to by config.status. When coming back to configure, we
17529 # need to make the FD available again.
17530 if test "$no_create" != yes; then
17532 ac_config_status_args=
17533 test "$silent" = yes &&
17534 ac_config_status_args="$ac_config_status_args --quiet"
17536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17539 # would make configure fail if this is the last instruction.
17540 $ac_cs_success || as_fn_exit 1
17542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17544 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17550 Libksba v${VERSION} has been configured as follows:
17552 Revision: 3a92e8c (14994)