2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.5.
5 # Report bugs to <https://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"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.gnupg.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.3.5'
584 PACKAGE_STRING='gnupg 2.3.5'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 ac_subst_vars='am__EXEEXT_FALSE
638 NO_TRUST_MODELS_FALSE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
644 BUILD_WKS_TOOLS_FALSE
681 CROSS_COMPILING_FALSE
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
687 BUILD_INCLUDED_LIBINTL
694 XGETTEXT_EXTRA_OPTIONS
702 GETTEXT_MACRO_VERSION
746 HAVE_ANDROID_SYSTEM_FALSE
747 HAVE_ANDROID_SYSTEM_TRUE
748 HAVE_W32CE_SYSTEM_FALSE
749 HAVE_W32CE_SYSTEM_TRUE
750 HAVE_W32_SYSTEM_FALSE
752 USE_SIMPLE_GETTEXT_FALSE
753 USE_SIMPLE_GETTEXT_TRUE
754 HAVE_DOSISH_SYSTEM_FALSE
755 HAVE_DOSISH_SYSTEM_TRUE
760 AWK_HEX_NUMBER_OPTION
771 MAINTAINER_MODE_FALSE
777 GNUPG_DIRMNGR_LDAP_PGM_FALSE
778 GNUPG_DIRMNGR_LDAP_PGM_TRUE
779 GNUPG_DIRMNGR_LDAP_PGM
780 GNUPG_PROTECT_TOOL_PGM_FALSE
781 GNUPG_PROTECT_TOOL_PGM_TRUE
782 GNUPG_PROTECT_TOOL_PGM
783 GNUPG_KEYBOXD_PGM_FALSE
784 GNUPG_KEYBOXD_PGM_TRUE
786 GNUPG_DIRMNGR_PGM_FALSE
787 GNUPG_DIRMNGR_PGM_TRUE
789 GNUPG_TPM2DAEMON_PGM_FALSE
790 GNUPG_TPM2DAEMON_PGM_TRUE
792 GNUPG_SCDAEMON_PGM_FALSE
793 GNUPG_SCDAEMON_PGM_TRUE
795 GNUPG_PINENTRY_PGM_FALSE
796 GNUPG_PINENTRY_PGM_TRUE
798 GNUPG_AGENT_PGM_FALSE
841 INSTALL_STRIP_PROGRAM
884 program_transform_name
898 enable_option_checking
900 enable_dependency_tracking
916 with_protect_tool_pgm
917 with_dirmngr_ldap_pgm
919 enable_selinux_support
921 with_agent_s2k_calibration
936 enable_gpg_camellia128
937 enable_gpg_camellia192
938 enable_gpg_camellia256
953 enable_dirmngr_auto_start
954 enable_maintainer_mode
956 with_libgpg_error_prefix
957 with_gpg_error_prefix
958 with_libgcrypt_prefix
959 with_libassuan_prefix
968 with_default_trust_store_file
987 enable_gnupg_builddir_envvar
988 enable_run_gnupg_user_socket
989 enable_build_timestamp
991 ac_precious_vars='build_alias
1012 # Initialize some variables set by options.
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1026 program_transform_name=s,x,x,
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 runstatedir='${localstatedir}/run'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\$ac_option
1073 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078 # Accept the important Cygnus configure options, so we can diagnose typos.
1080 case $ac_dashdash$ac_option in
1084 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1086 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087 bindir=$ac_optarg ;;
1089 -build | --build | --buil | --bui | --bu)
1090 ac_prev=build_alias ;;
1091 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092 build_alias=$ac_optarg ;;
1094 -cache-file | --cache-file | --cache-fil | --cache-fi \
1095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096 ac_prev=cache_file ;;
1097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099 cache_file=$ac_optarg ;;
1101 --config-cache | -C)
1102 cache_file=config.cache ;;
1104 -datadir | --datadir | --datadi | --datad)
1106 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107 datadir=$ac_optarg ;;
1109 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110 | --dataroo | --dataro | --datar)
1111 ac_prev=datarootdir ;;
1112 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114 datarootdir=$ac_optarg ;;
1116 -disable-* | --disable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval enable_$ac_useropt=no ;;
1132 -docdir | --docdir | --docdi | --doc | --do)
1134 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135 docdir=$ac_optarg ;;
1137 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140 dvidir=$ac_optarg ;;
1142 -enable-* | --enable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval enable_$ac_useropt=\$ac_optarg ;;
1158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160 | --exec | --exe | --ex)
1161 ac_prev=exec_prefix ;;
1162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164 | --exec=* | --exe=* | --ex=*)
1165 exec_prefix=$ac_optarg ;;
1167 -gas | --gas | --ga | --g)
1168 # Obsolete; use --with-gas.
1171 -help | --help | --hel | --he | -h)
1172 ac_init_help=long ;;
1173 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174 ac_init_help=recursive ;;
1175 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176 ac_init_help=short ;;
1178 -host | --host | --hos | --ho)
1179 ac_prev=host_alias ;;
1180 -host=* | --host=* | --hos=* | --ho=*)
1181 host_alias=$ac_optarg ;;
1183 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187 htmldir=$ac_optarg ;;
1189 -includedir | --includedir | --includedi | --included | --include \
1190 | --includ | --inclu | --incl | --inc)
1191 ac_prev=includedir ;;
1192 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193 | --includ=* | --inclu=* | --incl=* | --inc=*)
1194 includedir=$ac_optarg ;;
1196 -infodir | --infodir | --infodi | --infod | --info | --inf)
1198 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199 infodir=$ac_optarg ;;
1201 -libdir | --libdir | --libdi | --libd)
1203 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204 libdir=$ac_optarg ;;
1206 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207 | --libexe | --libex | --libe)
1208 ac_prev=libexecdir ;;
1209 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210 | --libexe=* | --libex=* | --libe=*)
1211 libexecdir=$ac_optarg ;;
1213 -localedir | --localedir | --localedi | --localed | --locale)
1214 ac_prev=localedir ;;
1215 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216 localedir=$ac_optarg ;;
1218 -localstatedir | --localstatedir | --localstatedi | --localstated \
1219 | --localstate | --localstat | --localsta | --localst | --locals)
1220 ac_prev=localstatedir ;;
1221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223 localstatedir=$ac_optarg ;;
1225 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228 mandir=$ac_optarg ;;
1230 -nfp | --nfp | --nf)
1231 # Obsolete; use --without-fp.
1234 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235 | --no-cr | --no-c | -n)
1238 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244 | --oldin | --oldi | --old | --ol | --o)
1245 ac_prev=oldincludedir ;;
1246 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249 oldincludedir=$ac_optarg ;;
1251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254 prefix=$ac_optarg ;;
1256 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257 | --program-pre | --program-pr | --program-p)
1258 ac_prev=program_prefix ;;
1259 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261 program_prefix=$ac_optarg ;;
1263 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264 | --program-suf | --program-su | --program-s)
1265 ac_prev=program_suffix ;;
1266 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268 program_suffix=$ac_optarg ;;
1270 -program-transform-name | --program-transform-name \
1271 | --program-transform-nam | --program-transform-na \
1272 | --program-transform-n | --program-transform- \
1273 | --program-transform | --program-transfor \
1274 | --program-transfo | --program-transf \
1275 | --program-trans | --program-tran \
1276 | --progr-tra | --program-tr | --program-t)
1277 ac_prev=program_transform_name ;;
1278 -program-transform-name=* | --program-transform-name=* \
1279 | --program-transform-nam=* | --program-transform-na=* \
1280 | --program-transform-n=* | --program-transform-=* \
1281 | --program-transform=* | --program-transfor=* \
1282 | --program-transfo=* | --program-transf=* \
1283 | --program-trans=* | --program-tran=* \
1284 | --progr-tra=* | --program-tr=* | --program-t=*)
1285 program_transform_name=$ac_optarg ;;
1287 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290 pdfdir=$ac_optarg ;;
1292 -psdir | --psdir | --psdi | --psd | --ps)
1294 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1301 -runstatedir | --runstatedir | --runstatedi | --runstated \
1302 | --runstate | --runstat | --runsta | --runst | --runs \
1303 | --run | --ru | --r)
1304 ac_prev=runstatedir ;;
1305 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1306 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1307 | --run=* | --ru=* | --r=*)
1308 runstatedir=$ac_optarg ;;
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1329 -site=* | --site=* | --sit=*)
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=no ;;
1388 # Obsolete; use --with-x.
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error $? "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir runstatedir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1456 # Be sure to have absolute directory names.
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 as_fn_error $? "working directory cannot be determined"
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491 as_fn_error $? "pwd does not report name of working directory"
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496 ac_srcdir_defaulted=yes
1497 # Try the directory containing this script, then the parent directory.
1498 ac_confdir=`$as_dirname -- "$as_myself" ||
1499 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500 X"$as_myself" : 'X\(//\)[^/]' \| \
1501 X"$as_myself" : 'X\(//\)$' \| \
1502 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1503 $as_echo X"$as_myself" |
1504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1526 ac_srcdir_defaulted=no
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1546 for ac_var in $ac_precious_vars; do
1547 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_env_${ac_var}_value=\$${ac_var}
1549 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 # Report the --help message.
1556 if test "$ac_init_help" = "long"; then
1557 # Omit some internal or obsolete options to make the list less imposing.
1558 # This message is too long to be a string in the A/UX 3.1 sh.
1560 \`configure' configures gnupg 2.3.5 to adapt to many kinds of systems.
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE. See below for descriptions of some of the useful variables.
1567 Defaults for the options are specified in brackets.
1570 -h, --help display this help and exit
1571 --help=short display options specific to this package
1572 --help=recursive display the short help of all the included packages
1573 -V, --version display version information and exit
1574 -q, --quiet, --silent do not print \`checking ...' messages
1575 --cache-file=FILE cache test results in FILE [disabled]
1576 -C, --config-cache alias for \`--cache-file=config.cache'
1577 -n, --no-create do not create output files
1578 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1580 Installation directories:
1581 --prefix=PREFIX install architecture-independent files in PREFIX
1582 [$ac_default_prefix]
1583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1591 For better control, use the options below.
1593 Fine tuning of the installation directories:
1594 --bindir=DIR user executables [EPREFIX/bin]
1595 --sbindir=DIR system admin executables [EPREFIX/sbin]
1596 --libexecdir=DIR program executables [EPREFIX/libexec]
1597 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1598 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1599 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1600 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1601 --libdir=DIR object code libraries [EPREFIX/lib]
1602 --includedir=DIR C header files [PREFIX/include]
1603 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1604 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1605 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1606 --infodir=DIR info documentation [DATAROOTDIR/info]
1607 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1608 --mandir=DIR man documentation [DATAROOTDIR/man]
1609 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1610 --htmldir=DIR html documentation [DOCDIR]
1611 --dvidir=DIR dvi documentation [DOCDIR]
1612 --pdfdir=DIR pdf documentation [DOCDIR]
1613 --psdir=DIR ps documentation [DOCDIR]
1619 --program-prefix=PREFIX prepend PREFIX to installed program names
1620 --program-suffix=SUFFIX append SUFFIX to installed program names
1621 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 if test -n "$ac_init_help"; then
1630 case $ac_init_help in
1631 short | recursive ) echo "Configuration of gnupg 2.3.5:";;
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-silent-rules less verbose build output (undo: "make V=1")
1640 --disable-silent-rules verbose build output (undo: "make V=0")
1641 --enable-dependency-tracking
1642 do not reject slow dependency extractors
1643 --disable-dependency-tracking
1644 speeds up one-time build
1645 --disable-gpgsm do not build the gpgsm program
1646 --disable-scdaemon do not build the scdaemon program
1647 --enable-g13 build the g13 program
1648 --disable-dirmngr do not build the dirmngr program
1649 --disable-keyboxd do not build the keyboxd program
1650 --disable-tpm2d do not build the tpm2d program
1651 --disable-doc do not build the doc program
1652 --disable-gpgtar do not build the gpgtar program
1653 --disable-wks-tools do not build the wks-tools program
1654 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1655 --enable-selinux-support
1656 enable SELinux support
1657 --enable-large-secmem allocate extra secure memory
1658 --disable-trust-models disable all trust models except "always"
1659 --disable-tofu disable the TOFU trust model
1660 --disable-libdns do not build with libdns support
1661 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1662 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1663 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1664 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1665 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1666 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1667 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1668 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1669 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1670 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1671 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1672 --disable-gpg-camellia128
1673 disable the CAMELLIA128 cipher algorithm in gpg
1674 --disable-gpg-camellia192
1675 disable the CAMELLIA192 cipher algorithm in gpg
1676 --disable-gpg-camellia256
1677 disable the CAMELLIA256 cipher algorithm in gpg
1678 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1679 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1680 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1681 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1682 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1683 --disable-zip disable the ZIP and ZLIB compression algorithm
1684 --disable-bzip2 disable the BZIP2 compression algorithm
1685 --disable-exec disable all external program execution
1686 --disable-photo-viewers disable photo ID viewers
1687 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1688 --disable-card-support disable smartcard support
1689 --disable-ccid-driver disable the internal CCID driver
1690 --disable-dirmngr-auto-start
1691 disable auto starting of the dirmngr
1692 --enable-maintainer-mode
1693 enable make rules and dependencies not useful (and
1694 sometimes confusing) to the casual installer
1695 --disable-largefile omit support for large files
1696 --disable-sqlite disable the use of SQLITE
1697 --enable-npth-debug build with debug version of npth
1698 --disable-ntbtls disable the use of NTBTLS as TLS library
1699 --disable-gnutls disable GNUTLS as fallback TLS library
1700 --disable-ldap disable LDAP support
1701 --disable-rpath do not hardcode runtime library paths
1702 --disable-nls do not use Native Language Support
1703 --disable-endian-check disable the endian check and trust the OS provided
1705 --disable-optimization disable compiler optimization
1706 --enable-log-clock enable log_clock timestamps
1707 --enable-werror append -Werror to CFLAGS
1708 --enable-all-tests let "make check" run all tests
1709 --disable-tests do not run any tests
1711 --enable-run-gnupg-user-socket
1712 try /run/gnupg/user for sockets prior to /run/user
1713 --enable-build-timestamp
1714 set an explicit build timestamp for reproducibility.
1715 (default is the current time in ISO-8601 format)
1718 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1719 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1720 --with-agent-pgm=PATH Use PATH as the default for the agent)
1721 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1722 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1723 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1724 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1725 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1726 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1727 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1728 --with-agent-s2k-calibration=MSEC
1729 calibrate passphrase stretching (s2k) to MSEC
1731 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1732 --with-capabilities use linux capabilities default=no
1733 --with-libgpg-error-prefix=PFX
1734 prefix where GPG Error is installed (optional)
1736 --with-libgcrypt-prefix=PFX
1737 prefix where LIBGCRYPT is installed (optional)
1738 --with-libassuan-prefix=PFX
1739 prefix where LIBASSUAN is installed (optional)
1740 --with-libksba-prefix=PFX
1741 prefix where KSBA is installed (optional)
1742 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1743 --with-ntbtls-prefix=PFX
1744 prefix where NTBTLS is installed (optional)
1745 --with-default-trust-store-file=FILE
1746 Use FILE as system trust store
1747 --with-ldap=DIR look for the LDAP library in DIR
1748 --with-mailprog=NAME use "NAME -t" for mail transport
1749 --with-gnu-ld assume the C compiler uses GNU ld default=no
1750 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1751 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1752 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1753 --without-libintl-prefix don't search for libintl in includedir and libdir
1754 --with-zlib=DIR use libz in DIR
1755 --with-bzip2=DIR look for bzip2 in DIR
1756 --with-readline=DIR look for the readline library in DIR
1757 --with-tss=TSS use the specified TPM Software Stack (ibm, intel, or
1760 Some influential environment variables:
1761 CC C compiler command
1762 CFLAGS C compiler flags
1763 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1764 nonstandard directory <lib dir>
1765 LIBS libraries to pass to the linker, e.g. -l<library>
1766 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1767 you have headers in a nonstandard directory <include dir>
1769 SYSROOT locate config scripts also below that directory
1770 YAT2M tool to convert texi to man pages
1772 build system C compiler
1773 PKG_CONFIG path to pkg-config utility
1775 directories to add to pkg-config's search path
1777 path overriding pkg-config's built-in search path
1779 C compiler flags for SQLITE3, overriding pkg-config
1781 linker flags for SQLITE3, overriding pkg-config
1783 C compiler flags for LIBGNUTLS, overriding pkg-config
1785 linker flags for LIBGNUTLS, overriding pkg-config
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1790 Report bugs to <https://bugs.gnupg.org>.
1795 if test "$ac_init_help" = "recursive"; then
1796 # If there are subdirs, report their specific --help.
1797 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1798 test -d "$ac_dir" ||
1799 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1804 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1806 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1807 # A ".." for each directory in $ac_dir_suffix.
1808 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1809 case $ac_top_builddir_sub in
1810 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1811 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1814 ac_abs_top_builddir=$ac_pwd
1815 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1816 # for backward compatibility:
1817 ac_top_builddir=$ac_top_build_prefix
1820 .) # We are building in place.
1822 ac_top_srcdir=$ac_top_builddir_sub
1823 ac_abs_top_srcdir=$ac_pwd ;;
1824 [\\/]* | ?:[\\/]* ) # Absolute name.
1825 ac_srcdir=$srcdir$ac_dir_suffix;
1826 ac_top_srcdir=$srcdir
1827 ac_abs_top_srcdir=$srcdir ;;
1829 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1830 ac_top_srcdir=$ac_top_build_prefix$srcdir
1831 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1833 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835 cd "$ac_dir" || { ac_status=$?; continue; }
1836 # Check for guested configure.
1837 if test -f "$ac_srcdir/configure.gnu"; then
1839 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1840 elif test -f "$ac_srcdir/configure"; then
1842 $SHELL "$ac_srcdir/configure" --help=recursive
1844 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1846 cd "$ac_pwd" || { ac_status=$?; break; }
1850 test -n "$ac_init_help" && exit $ac_status
1851 if $ac_init_version; then
1853 gnupg configure 2.3.5
1854 generated by GNU Autoconf 2.69
1856 Copyright (C) 2012 Free Software Foundation, Inc.
1857 This configure script is free software; the Free Software Foundation
1858 gives unlimited permission to copy, distribute and modify it.
1863 ## ------------------------ ##
1864 ## Autoconf initialization. ##
1865 ## ------------------------ ##
1867 # ac_fn_c_try_compile LINENO
1868 # --------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_c_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_c_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.$ac_objext; then :
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1903 } # ac_fn_c_try_compile
1905 # ac_fn_c_try_cpp LINENO
1906 # ----------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { { ac_try="$ac_cpp conftest.$ac_ext"
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } > conftest.i && {
1927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1928 test ! -s conftest.err
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1947 ac_fn_c_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if eval \${$3+:} false; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2012 ( $as_echo "## ------------------------------------- ##
2013 ## Report this to https://bugs.gnupg.org ##
2014 ## ------------------------------------- ##"
2015 ) | sed "s/^/$as_me: WARNING: /" >&2
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2023 eval "$3=\$ac_header_compiler"
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_mongrel
2033 # ac_fn_c_try_run LINENO
2034 # ----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2036 # that executables *can* be run.
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 if { { ac_try="$ac_link"
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>&5
2049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2050 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2051 { { case "(($ac_try" in
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_try") 2>&5
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; }; }; then :
2063 $as_echo "$as_me: program exited with status $ac_status" >&5
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2067 ac_retval=$ac_status
2069 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 as_fn_set_status $ac_retval
2075 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2076 # -------------------------------------------------------
2077 # Tests whether HEADER exists and can be compiled using the include files in
2078 # INCLUDES, setting the cache variable VAR accordingly.
2079 ac_fn_c_check_header_compile ()
2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_header_compile
2106 # ac_fn_c_try_link LINENO
2107 # -----------------------
2108 # Try to link conftest.$ac_ext, and return whether this succeeded.
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 rm -f conftest.$ac_objext conftest$ac_exeext
2113 if { { ac_try="$ac_link"
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>conftest.err
2122 if test -s conftest.err; then
2123 grep -v '^ *+' conftest.err >conftest.er1
2124 cat conftest.er1 >&5
2125 mv -f conftest.er1 conftest.err
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && {
2129 test -z "$ac_c_werror_flag" ||
2130 test ! -s conftest.err
2131 } && test -s conftest$ac_exeext && {
2132 test "$cross_compiling" = yes ||
2133 test -x conftest$ac_exeext
2137 $as_echo "$as_me: failed program was:" >&5
2138 sed 's/^/| /' conftest.$ac_ext >&5
2142 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2143 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2144 # interfere with the next link command; also delete a directory that is
2145 # left behind by Apple's compiler. We do this before executing the actions.
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2150 } # ac_fn_c_try_link
2152 # ac_fn_c_check_func LINENO FUNC VAR
2153 # ----------------------------------
2154 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2155 ac_fn_c_check_func ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2167 #define $2 innocuous_$2
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $2 (); below.
2171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172 <limits.h> exists even on freestanding compilers. */
2175 # include <limits.h>
2177 # include <assert.h>
2182 /* Override any GCC internal prototype to avoid an error.
2183 Use char because int might match the return type of a GCC
2184 builtin and then its argument prototype would still apply. */
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined __stub_$2 || defined __stub___$2
2204 if ac_fn_c_try_link "$LINENO"; then :
2209 rm -f core conftest.err conftest.$ac_objext \
2210 conftest$ac_exeext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_func
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2257 if ac_fn_c_try_compile "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_type
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2277 ac_fn_c_check_decl ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 as_decl_name=`echo $2|sed 's/ *(.*//'`
2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285 $as_echo_n "(cached) " >&6
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 #ifndef $as_decl_name
2295 (void) $as_decl_use;
2297 (void) $as_decl_name;
2305 if ac_fn_c_try_compile "$LINENO"; then :
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_decl
2319 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2320 # --------------------------------------------
2321 # Tries to find the compile-time value of EXPR in a program that includes
2322 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2324 ac_fn_c_compute_int ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 if test "$cross_compiling" = yes; then
2328 # Depending upon the size, compute the lo and hi bounds.
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2335 static int test_array [1 - 2 * !(($2) >= 0)];
2337 return test_array [0];
2343 if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2352 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2354 return test_array [0];
2360 if ac_fn_c_try_compile "$LINENO"; then :
2361 ac_hi=$ac_mid; break
2363 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2364 if test $ac_lo -le $ac_mid; then
2368 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2379 static int test_array [1 - 2 * !(($2) < 0)];
2381 return test_array [0];
2387 if ac_fn_c_try_compile "$LINENO"; then :
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405 ac_lo=$ac_mid; break
2407 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2408 if test $ac_mid -le $ac_hi; then
2412 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 # Binary search between lo and hi bounds.
2423 while test "x$ac_lo" != "x$ac_hi"; do
2424 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2431 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2433 return test_array [0];
2439 if ac_fn_c_try_compile "$LINENO"; then :
2442 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2454 static long int longval () { return $2; }
2455 static unsigned long int ulongval () { return $2; }
2462 FILE *f = fopen ("conftest.val", "w");
2467 long int i = longval ();
2470 fprintf (f, "%ld", i);
2474 unsigned long int i = ulongval ();
2477 fprintf (f, "%lu", i);
2479 /* Do not output a trailing newline, as this causes \r\n confusion
2480 on some platforms. */
2481 return ferror (f) || fclose (f) != 0;
2487 if ac_fn_c_try_run "$LINENO"; then :
2488 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2493 conftest.$ac_objext conftest.beam conftest.$ac_ext
2497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498 as_fn_set_status $ac_retval
2500 } # ac_fn_c_compute_int
2502 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2503 # ----------------------------------------------------
2504 # Tries to find if the field MEMBER exists in type AGGR, after including
2505 # INCLUDES, setting cache variable VAR accordingly.
2506 ac_fn_c_check_member ()
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2510 $as_echo_n "checking for $2.$3... " >&6; }
2511 if eval \${$4+:} false; then :
2512 $as_echo_n "(cached) " >&6
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2527 if ac_fn_c_try_compile "$LINENO"; then :
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2537 if (sizeof ac_aggr.$3)
2543 if ac_fn_c_try_compile "$LINENO"; then :
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2554 $as_echo "$ac_res" >&6; }
2555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557 } # ac_fn_c_check_member
2558 cat >config.log <<_ACEOF
2559 This file contains any messages produced by compilers while
2560 running configure, to aid debugging if configure makes a mistake.
2562 It was created by gnupg $as_me 2.3.5, which was
2563 generated by GNU Autoconf 2.69. Invocation command line was
2575 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2576 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2577 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2578 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2579 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2582 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2584 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2585 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2586 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2587 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2588 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2589 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2590 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 $as_echo "PATH: $as_dir"
2615 # Keep a trace of the command line.
2616 # Strip out --no-create and --no-recursion so they do not pile up.
2617 # Strip out --silent because we don't want to record it for future runs.
2618 # Also quote any args containing shell meta-characters.
2619 # Make two passes to allow for proper duplicate-argument suppression.
2623 ac_must_keep_next=false
2629 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2631 | -silent | --silent | --silen | --sile | --sil)
2634 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2637 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639 as_fn_append ac_configure_args1 " '$ac_arg'"
2640 if test $ac_must_keep_next = true; then
2641 ac_must_keep_next=false # Got value, back to normal.
2644 *=* | --config-cache | -C | -disable-* | --disable-* \
2645 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2646 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2647 | -with-* | --with-* | -without-* | --without-* | --x)
2648 case "$ac_configure_args0 " in
2649 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2652 -* ) ac_must_keep_next=true ;;
2655 as_fn_append ac_configure_args " '$ac_arg'"
2660 { ac_configure_args0=; unset ac_configure_args0;}
2661 { ac_configure_args1=; unset ac_configure_args1;}
2663 # When interrupted or exit'd, cleanup temporary files, and complete
2664 # config.log. We remove comments because anyway the quotes in there
2665 # would cause problems or look ugly.
2666 # WARNING: Use '\'' to represent an apostrophe within the trap.
2667 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2668 trap 'exit_status=$?
2669 # Save into config.log some information that might help in debugging.
2673 $as_echo "## ---------------- ##
2674 ## Cache variables. ##
2675 ## ---------------- ##"
2677 # The following way of writing the cache mishandles newlines in values,
2679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2680 eval ac_val=\$$ac_var
2684 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2688 _ | IFS | as_nl) ;; #(
2689 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2690 *) { eval $ac_var=; unset $ac_var;} ;;
2695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2696 *${as_nl}ac_space=\ *)
2698 "s/'\''/'\''\\\\'\'''\''/g;
2699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2709 $as_echo "## ----------------- ##
2710 ## Output variables. ##
2711 ## ----------------- ##"
2713 for ac_var in $ac_subst_vars
2715 eval ac_val=\$$ac_var
2717 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2719 $as_echo "$ac_var='\''$ac_val'\''"
2723 if test -n "$ac_subst_files"; then
2724 $as_echo "## ------------------- ##
2725 ## File substitutions. ##
2726 ## ------------------- ##"
2728 for ac_var in $ac_subst_files
2730 eval ac_val=\$$ac_var
2732 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2734 $as_echo "$ac_var='\''$ac_val'\''"
2739 if test -s confdefs.h; then
2740 $as_echo "## ----------- ##
2747 test "$ac_signal" != 0 &&
2748 $as_echo "$as_me: caught signal $ac_signal"
2749 $as_echo "$as_me: exit $exit_status"
2751 rm -f core *.core core.conftest.* &&
2752 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2755 for ac_signal in 1 2 13 15; do
2756 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2761 rm -f -r conftest* confdefs.h
2763 $as_echo "/* confdefs.h */" > confdefs.h
2765 # Predefined preprocessor variables.
2767 cat >>confdefs.h <<_ACEOF
2768 #define PACKAGE_NAME "$PACKAGE_NAME"
2771 cat >>confdefs.h <<_ACEOF
2772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE_STRING "$PACKAGE_STRING"
2783 cat >>confdefs.h <<_ACEOF
2784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2787 cat >>confdefs.h <<_ACEOF
2788 #define PACKAGE_URL "$PACKAGE_URL"
2792 # Let the site file select an alternate cache file if it wants to.
2793 # Prefer an explicitly selected file to automatically selected ones.
2796 if test -n "$CONFIG_SITE"; then
2797 # We do not want a PATH search for config.site.
2798 case $CONFIG_SITE in #((
2799 -*) ac_site_file1=./$CONFIG_SITE;;
2800 */*) ac_site_file1=$CONFIG_SITE;;
2801 *) ac_site_file1=./$CONFIG_SITE;;
2803 elif test "x$prefix" != xNONE; then
2804 ac_site_file1=$prefix/share/config.site
2805 ac_site_file2=$prefix/etc/config.site
2807 ac_site_file1=$ac_default_prefix/share/config.site
2808 ac_site_file2=$ac_default_prefix/etc/config.site
2810 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 test "x$ac_site_file" = xNONE && continue
2813 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2815 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2816 sed 's/^/| /' "$ac_site_file" >&5
2818 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820 as_fn_error $? "failed to load site script $ac_site_file
2821 See \`config.log' for more details" "$LINENO" 5; }
2825 if test -r "$cache_file"; then
2826 # Some versions of bash will fail to source /dev/null (special files
2827 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2828 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2830 $as_echo "$as_me: loading cache $cache_file" >&6;}
2832 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2833 *) . "./$cache_file";;
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2838 $as_echo "$as_me: creating cache $cache_file" >&6;}
2842 gt_needs="$gt_needs need-ngettext"
2843 as_fn_append ac_header_list " sys/socket.h"
2844 # Check that the precious variables saved in the cache have kept the same
2846 ac_cache_corrupted=false
2847 for ac_var in $ac_precious_vars; do
2848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2849 eval ac_new_set=\$ac_env_${ac_var}_set
2850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2851 eval ac_new_val=\$ac_env_${ac_var}_value
2852 case $ac_old_set,$ac_new_set in
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2855 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2856 ac_cache_corrupted=: ;;
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2859 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2860 ac_cache_corrupted=: ;;
2863 if test "x$ac_old_val" != "x$ac_new_val"; then
2864 # differences in whitespace do not lead to failure.
2865 ac_old_val_w=`echo x $ac_old_val`
2866 ac_new_val_w=`echo x $ac_new_val`
2867 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2869 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2870 ac_cache_corrupted=:
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2873 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2874 eval $ac_var=\$ac_old_val
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2877 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2879 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2882 # Pass precious variables to config.status.
2883 if test "$ac_new_set" = set; then
2885 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2886 *) ac_arg=$ac_var=$ac_new_val ;;
2888 case " $ac_configure_args " in
2889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2890 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2894 if $ac_cache_corrupted; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2898 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2899 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2901 ## -------------------- ##
2902 ## Main body of script. ##
2903 ## -------------------- ##
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913 # When changing the SWDB tag please also adjust the hard coded tags in
2914 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2916 cat >>confdefs.h <<_ACEOF
2917 #define GNUPG_SWDB_TAG "gnupg24"
2921 NEED_GPGRT_VERSION=1.41
2923 NEED_LIBGCRYPT_API=1
2924 NEED_LIBGCRYPT_VERSION=1.9.1
2926 NEED_LIBASSUAN_API=2
2927 NEED_LIBASSUAN_VERSION=2.5.0
2930 NEED_KSBA_VERSION=1.3.4
2933 NEED_NTBTLS_VERSION=0.1.0
2936 NEED_NPTH_VERSION=1.2
2939 NEED_GNUTLS_VERSION=3.0
2941 NEED_SQLITE_VERSION=3.27
2943 development_version=no
2944 PACKAGE=$PACKAGE_NAME
2945 PACKAGE_GT=${PACKAGE_NAME}2
2946 VERSION=$PACKAGE_VERSION
2949 for ac_dir in build-aux "$srcdir"/build-aux; do
2950 if test -f "$ac_dir/install-sh"; then
2952 ac_install_sh="$ac_aux_dir/install-sh -c"
2954 elif test -f "$ac_dir/install.sh"; then
2956 ac_install_sh="$ac_aux_dir/install.sh -c"
2958 elif test -f "$ac_dir/shtool"; then
2960 ac_install_sh="$ac_aux_dir/shtool install -c"
2964 if test -z "$ac_aux_dir"; then
2965 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2968 # These three variables are undocumented and unsupported,
2969 # and are intended to be withdrawn in a future Autoconf release.
2970 # They can cause serious problems if a builder's source tree is in a directory
2971 # whose full name contains unusual characters.
2972 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2973 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2974 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2978 ac_config_headers="$ac_config_headers config.h"
2980 am__api_version='1.16'
2982 # Find a good install program. We prefer a C program (faster),
2983 # so one script is as good as another. But avoid the broken or
2984 # incompatible versions:
2985 # SysV /etc/install, /usr/sbin/install
2986 # SunOS /usr/etc/install
2987 # IRIX /sbin/install
2989 # AmigaOS /C/install, which installs bootblocks on floppy discs
2990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2993 # OS/2's system install, which has a completely different semantic
2994 # ./install, which can be erroneously created by make from ./install.sh.
2995 # Reject install programs that cannot install multiple files.
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2997 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2998 if test -z "$INSTALL"; then
2999 if ${ac_cv_path_install+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 # Account for people who put trailing slashes in PATH elements.
3008 case $as_dir/ in #((
3009 ./ | .// | /[cC]/* | \
3010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3011 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3014 # OSF1 and SCO ODT 3.0 have their own names for install.
3015 # Don't use installbsd from OSF since it installs stuff as root
3017 for ac_prog in ginstall scoinst install; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3020 if test $ac_prog = install &&
3021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3022 # AIX install. It has an incompatible calling convention.
3024 elif test $ac_prog = install &&
3025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3026 # program-specific install script used by HP pwplus--don't use.
3029 rm -rf conftest.one conftest.two conftest.dir
3030 echo one > conftest.one
3031 echo two > conftest.two
3033 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3034 test -s conftest.one && test -s conftest.two &&
3035 test -s conftest.dir/conftest.one &&
3036 test -s conftest.dir/conftest.two
3038 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3051 rm -rf conftest.one conftest.two conftest.dir
3054 if test "${ac_cv_path_install+set}" = set; then
3055 INSTALL=$ac_cv_path_install
3057 # As a last resort, use the slow shell script. Don't cache a
3058 # value for INSTALL within a source directory, because that will
3059 # break other packages using the cache if that directory is
3060 # removed, or if the value is a relative name.
3061 INSTALL=$ac_install_sh
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3065 $as_echo "$INSTALL" >&6; }
3067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3068 # It thinks the first close brace ends the variable substitution.
3069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3076 $as_echo_n "checking whether build environment is sane... " >&6; }
3077 # Reject unsafe characters in $srcdir or the absolute working directory
3078 # name. Accept space and tab only in the latter.
3082 *[\\\"\#\$\&\'\`$am_lf]*)
3083 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3086 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3087 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3090 # Do 'set' in a subshell so we don't clobber the current shell's
3091 # arguments. Must try -L first in case configure is actually a
3092 # symlink; some systems play weird games with the mod time of symlinks
3093 # (eg FreeBSD returns the mod time of the symlink's containing
3097 for am_try in 1 2; do
3098 echo "timestamp, slept: $am_has_slept" > conftest.file
3099 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3100 if test "$*" = "X"; then
3102 set X `ls -t "$srcdir/configure" conftest.file`
3104 if test "$*" != "X $srcdir/configure conftest.file" \
3105 && test "$*" != "X conftest.file $srcdir/configure"; then
3107 # If neither matched, then we have a broken ls. This can happen
3108 # if, for instance, CONFIG_SHELL is bash and it inherits a
3109 # broken ls alias from the environment. This has actually
3110 # happened. Such a system could not be considered "sane".
3111 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3112 alias in your environment" "$LINENO" 5
3114 if test "$2" = conftest.file || test $am_try -eq 2; then
3121 test "$2" = conftest.file
3127 as_fn_error $? "newly created file is older than distributed files!
3128 Check your system clock" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131 $as_echo "yes" >&6; }
3132 # If we didn't sleep, we still need to ensure time stamps of config.status and
3133 # generated files are strictly newer.
3135 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3142 test "$program_prefix" != NONE &&
3143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3144 # Use a double $ so make ignores it.
3145 test "$program_suffix" != NONE &&
3146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3147 # Double any \ or $.
3148 # By default was `s,x,x', remove it if useless.
3149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3152 # Expand $ac_aux_dir to an absolute path.
3153 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3155 if test x"${MISSING+set}" != xset; then
3156 MISSING="\${SHELL} '$am_aux_dir/missing'"
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --is-lightweight"; then
3160 am_missing_run="$MISSING "
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3167 if test x"${install_sh+set}" != xset; then
3170 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3172 install_sh="\${SHELL} $am_aux_dir/install-sh"
3176 # Installed binaries are usually stripped using 'strip' when the user
3177 # run "make install-strip". However 'strip' might not be the right
3178 # tool to use in cross-compilation environments, therefore Automake
3179 # will honor the 'STRIP' environment variable to overrule this program.
3180 if test "$cross_compiling" != no; then
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}strip; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_STRIP+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 if test -n "$STRIP"; then
3190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 STRIP=$ac_cv_prog_STRIP
3210 if test -n "$STRIP"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3212 $as_echo "$STRIP" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3220 if test -z "$ac_cv_prog_STRIP"; then
3222 # Extract the first word of "strip", so it can be a program name with args.
3223 set dummy strip; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$ac_ct_STRIP"; then
3230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_STRIP="strip"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3250 if test -n "$ac_ct_STRIP"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3252 $as_echo "$ac_ct_STRIP" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3258 if test "x$ac_ct_STRIP" = x; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3270 STRIP="$ac_cv_prog_STRIP"
3274 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3277 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3278 if test -z "$MKDIR_P"; then
3279 if ${ac_cv_path_mkdir+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3286 test -z "$as_dir" && as_dir=.
3287 for ac_prog in mkdir gmkdir; do
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3290 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3291 'mkdir (GNU coreutils) '* | \
3292 'mkdir (coreutils) '* | \
3293 'mkdir (fileutils) '4.1*)
3294 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3304 test -d ./--version && rmdir ./--version
3305 if test "${ac_cv_path_mkdir+set}" = set; then
3306 MKDIR_P="$ac_cv_path_mkdir -p"
3308 # As a last resort, use the slow shell script. Don't cache a
3309 # value for MKDIR_P within a source directory, because that will
3310 # break other packages using the cache if that directory is
3311 # removed, or if the value is a relative name.
3312 MKDIR_P="$ac_install_sh -d"
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3316 $as_echo "$MKDIR_P" >&6; }
3318 for ac_prog in gawk mawk nawk awk
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321 set dummy $ac_prog; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_AWK+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$AWK"; then
3328 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_AWK="$ac_prog"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 if test -n "$AWK"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3350 $as_echo "$AWK" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3357 test -n "$AWK" && break
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3361 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3363 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3364 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 cat >conftest.make <<\_ACEOF
3370 @echo '@@@%%%=$(MAKE)=@@@%%%'
3372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3375 eval ac_cv_prog_make_${ac_make}_set=yes;;
3377 eval ac_cv_prog_make_${ac_make}_set=no;;
3381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 SET_MAKE="MAKE=${MAKE-make}"
3391 rm -rf .tst 2>/dev/null
3392 mkdir .tst 2>/dev/null
3393 if test -d .tst; then
3398 rmdir .tst 2>/dev/null
3400 # Check whether --enable-silent-rules was given.
3401 if test "${enable_silent_rules+set}" = set; then :
3402 enableval=$enable_silent_rules;
3405 case $enable_silent_rules in # (((
3406 yes) AM_DEFAULT_VERBOSITY=0;;
3407 no) AM_DEFAULT_VERBOSITY=1;;
3408 *) AM_DEFAULT_VERBOSITY=1;;
3410 am_make=${MAKE-make}
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3412 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3413 if ${am_cv_make_support_nested_variables+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if $as_echo 'TRUE=$(BAR$(V))
3422 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3423 am_cv_make_support_nested_variables=yes
3425 am_cv_make_support_nested_variables=no
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3429 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3430 if test $am_cv_make_support_nested_variables = yes; then
3432 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3434 AM_V=$AM_DEFAULT_VERBOSITY
3435 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3439 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3440 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3441 # is not polluted with repeated "-I."
3442 am__isrc=' -I$(srcdir)'
3443 # test to see if srcdir already configured
3444 if test -f $srcdir/config.status; then
3445 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3449 # test whether we have cygpath
3450 if test -z "$CYGPATH_W"; then
3451 if (cygpath --version) >/dev/null 2>/dev/null; then
3452 CYGPATH_W='cygpath -w'
3459 # Define the identity of the package.
3464 cat >>confdefs.h <<_ACEOF
3465 #define PACKAGE "$PACKAGE"
3469 cat >>confdefs.h <<_ACEOF
3470 #define VERSION "$VERSION"
3473 # Some tools Automake needs.
3475 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3478 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3481 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3484 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3487 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3489 # For better backward compatibility. To be removed once Automake 1.9.x
3490 # dies out for good. For more background, see:
3491 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3493 mkdir_p='$(MKDIR_P)'
3495 # We need awk for the "check" target (and possibly the TAP driver). The
3496 # system "awk" is bad on some platforms.
3497 # Always define AMTAR for backward compatibility. Yes, it's still used
3498 # in the wild :-( We should find a proper way to deprecate it ...
3502 # We'll loop over all known methods to create a tar archive until one works.
3503 _am_tools='gnutar pax cpio none'
3505 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3512 # POSIX will say in a future version that running "rm -f" with no argument
3513 # is OK; and we want to be able to make that assumption in our Makefile
3514 # recipes. So use an aggressive probe to check that the usage we want is
3515 # actually supported "in the wild" to an acceptable degree.
3516 # See automake bug#10828.
3517 # To make any issue more visible, cause the running configure to be aborted
3518 # by default if the 'rm' program in use doesn't match our expectations; the
3519 # user can still override this though.
3520 if rm -f && rm -fr && rm -rf; then : OK; else
3524 Your 'rm' program seems unable to run without file operands specified
3525 on the command line, even when the '-f' option is present. This is contrary
3526 to the behaviour of most rm programs out there, and not conforming with
3527 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3529 Please tell bug-automake@gnu.org about your system, including the value
3530 of your $PATH and any error possibly output before this message. This
3531 can help us improve future automake versions.
3534 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3535 echo 'Configuration will proceed anyway, since you have set the' >&2
3536 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3540 Aborting the configuration process, to ensure you take notice of the issue.
3542 You can download and install GNU coreutils to get an 'rm' implementation
3543 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3545 If you want to complete the configuration process using your problematic
3546 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3547 to "yes", and re-run configure.
3550 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3554 # Make sure we can run config.sub.
3555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3559 $as_echo_n "checking build system type... " >&6; }
3560 if ${ac_cv_build+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 ac_build_alias=$build_alias
3564 test "x$ac_build_alias" = x &&
3565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3566 test "x$ac_build_alias" = x &&
3567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3573 $as_echo "$ac_cv_build" >&6; }
3574 case $ac_cv_build in
3576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3579 ac_save_IFS=$IFS; IFS='-'
3585 # Remember, the first character of IFS is used to create $*,
3586 # except with old shells:
3589 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3593 $as_echo_n "checking host system type... " >&6; }
3594 if ${ac_cv_host+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test "x$host_alias" = x; then
3598 ac_cv_host=$ac_cv_build
3600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3606 $as_echo "$ac_cv_host" >&6; }
3609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3612 ac_save_IFS=$IFS; IFS='-'
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3630 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3632 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3634 if test "$hostname"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3636 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3639 date=`date +%Y%m%d-%H%M%S`
3640 if test "$?" != 0; then
3643 if test "$date"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3645 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3649 DEPDIR="${am__leading_dot}deps"
3651 ac_config_commands="$ac_config_commands depfiles"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3654 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3655 cat > confinc.mk << 'END'
3657 @echo this is the am__doit target >confinc.out
3662 # BSD make does it like this.
3663 echo '.include "confinc.mk" # ignored' > confmf.BSD
3664 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3665 echo 'include confinc.mk # ignored' > confmf.GNU
3667 for s in GNU BSD; do
3668 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3669 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }
3673 case $?:`cat confinc.out 2>/dev/null` in #(
3674 '0:this is the am__doit target') :
3677 am__include='.include' am__quote='"' ;; #(
3679 am__include='include' am__quote='' ;;
3684 if test "$am__include" != "#"; then
3685 _am_result="yes ($s style)"
3689 rm -f confinc.* confmf.*
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3691 $as_echo "${_am_result}" >&6; }
3693 # Check whether --enable-dependency-tracking was given.
3694 if test "${enable_dependency_tracking+set}" = set; then :
3695 enableval=$enable_dependency_tracking;
3698 if test "x$enable_dependency_tracking" != xno; then
3699 am_depcomp="$ac_aux_dir/depcomp"
3703 if test "x$enable_dependency_tracking" != xno; then
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 if test -n "$ac_tool_prefix"; then
3718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_CC+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 if test -n "$CC"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3748 $as_echo "$CC" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3756 if test -z "$ac_cv_prog_CC"; then
3758 # Extract the first word of "gcc", so it can be a program name with args.
3759 set dummy gcc; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -n "$ac_ct_CC"; then
3766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_ac_ct_CC="gcc"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3786 if test -n "$ac_ct_CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3788 $as_echo "$ac_ct_CC" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3794 if test "x$ac_ct_CC" = x; then
3797 case $cross_compiling:$ac_tool_warned in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3809 if test -z "$CC"; then
3810 if test -n "$ac_tool_prefix"; then
3811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3812 set dummy ${ac_tool_prefix}cc; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3818 if test -n "$CC"; then
3819 ac_cv_prog_CC="$CC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_CC="${ac_tool_prefix}cc"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3850 if test -z "$CC"; then
3851 # Extract the first word of "cc", so it can be a program name with args.
3852 set dummy cc; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_CC+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3870 ac_prog_rejected=yes
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test $ac_prog_rejected = yes; then
3882 # We found a bogon in the path, so make sure we never use it.
3883 set dummy $ac_cv_prog_CC
3885 if test $# != 0; then
3886 # We chose a different compiler from the bogus one.
3887 # However, it has the same basename, so the bogon will be chosen
3888 # first if we set CC to just the basename; use the full file name.
3890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3896 if test -n "$CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3898 $as_echo "$CC" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901 $as_echo "no" >&6; }
3906 if test -z "$CC"; then
3907 if test -n "$ac_tool_prefix"; then
3908 for ac_prog in cl.exe
3910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3947 test -n "$CC" && break
3950 if test -z "$CC"; then
3952 for ac_prog in cl.exe
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$ac_ct_CC"; then
3962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CC="$ac_prog"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982 if test -n "$ac_ct_CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3984 $as_echo "$ac_ct_CC" >&6; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3991 test -n "$ac_ct_CC" && break
3994 if test "x$ac_ct_CC" = x; then
3997 case $cross_compiling:$ac_tool_warned in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4001 ac_tool_warned=yes ;;
4010 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4012 as_fn_error $? "no acceptable C compiler found in \$PATH
4013 See \`config.log' for more details" "$LINENO" 5; }
4015 # Provide some information about the compiler.
4016 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4019 for ac_option in --version -v -V -qversion; do
4020 { { ac_try="$ac_compiler $ac_option >&5"
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4029 if test -s conftest.err; then
4031 ... rest of stderr output deleted ...
4032 10q' conftest.err >conftest.er1
4033 cat conftest.er1 >&5
4035 rm -f conftest.er1 conftest.err
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4051 ac_clean_files_save=$ac_clean_files
4052 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4053 # Try to create an executable without -o first, disregard a.out.
4054 # It will help us diagnose broken compilers, and finding out an intuition
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4057 $as_echo_n "checking whether the C compiler works... " >&6; }
4058 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4060 # The possible output files:
4061 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4064 for ac_file in $ac_files
4067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4073 if { { ac_try="$ac_link_default"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4079 $as_echo "$ac_try_echo"; } >&5
4080 (eval "$ac_link_default") 2>&5
4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4083 test $ac_status = 0; }; then :
4084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4085 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4086 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4087 # so that the user can short-circuit this test for compilers unknown to
4089 for ac_file in $ac_files ''
4091 test -f "$ac_file" || continue
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4096 # We found the default executable, but exeext='' is most
4100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4104 # We set ac_cv_exeext here because the later test for it is not
4105 # safe: cross compilers may not add the suffix if given an `-o'
4106 # argument, so we may need to know it at that point already.
4107 # Even if this section looks crufty: it has the advantage of
4114 test "$ac_cv_exeext" = no && ac_cv_exeext=
4119 if test -z "$ac_file"; then :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127 as_fn_error 77 "C compiler cannot create executables
4128 See \`config.log' for more details" "$LINENO" 5; }
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131 $as_echo "yes" >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4134 $as_echo_n "checking for C compiler default output file name... " >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4136 $as_echo "$ac_file" >&6; }
4137 ac_exeext=$ac_cv_exeext
4139 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4140 ac_clean_files=$ac_clean_files_save
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4142 $as_echo_n "checking for suffix of executables... " >&6; }
4143 if { { ac_try="$ac_link"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149 $as_echo "$ac_try_echo"; } >&5
4150 (eval "$ac_link") 2>&5
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; then :
4154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4155 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4156 # work properly (i.e., refer to `conftest.exe'), while it won't with
4158 for ac_file in conftest.exe conftest conftest.*; do
4159 test -f "$ac_file" || continue
4161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4170 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4171 See \`config.log' for more details" "$LINENO" 5; }
4173 rm -f conftest conftest$ac_cv_exeext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4175 $as_echo "$ac_cv_exeext" >&6; }
4177 rm -f conftest.$ac_ext
4178 EXEEXT=$ac_cv_exeext
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4186 FILE *f = fopen ("conftest.out", "w");
4187 return ferror (f) || fclose (f) != 0;
4193 ac_clean_files="$ac_clean_files conftest.out"
4194 # Check that the compiler produces executables we can run. If not, either
4195 # the compiler is broken, or we cross compile.
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4197 $as_echo_n "checking whether we are cross compiling... " >&6; }
4198 if test "$cross_compiling" != yes; then
4199 { { ac_try="$ac_link"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_link") 2>&5
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }
4210 if { ac_try='./conftest$ac_cv_exeext'
4211 { { case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_try") 2>&5
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; }; }; then
4223 if test "$cross_compiling" = maybe; then
4226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4228 as_fn_error $? "cannot run C compiled programs.
4229 If you meant to cross compile, use \`--host'.
4230 See \`config.log' for more details" "$LINENO" 5; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4235 $as_echo "$cross_compiling" >&6; }
4237 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4238 ac_clean_files=$ac_clean_files_save
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if ${ac_cv_objext+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try="$ac_compile"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "cannot compute suffix of object files: cannot compile
4282 See \`config.log' for more details" "$LINENO" 5; }
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if ${ac_cv_c_compiler_gnu+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4309 if ac_fn_c_try_compile "$LINENO"; then :
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if ${ac_cv_prog_cc_g+:} false; then :
4330 $as_echo_n "(cached) " >&6
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4347 if ac_fn_c_try_compile "$LINENO"; then :
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4362 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 if ac_fn_c_try_compile "$LINENO"; then :
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4399 if test "$GCC" = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if ${ac_cv_prog_cc_c89+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 ac_cv_prog_cc_c89=no
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4417 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4418 struct buf { int x; };
4419 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4420 static char *e (p, i)
4426 static char *f (char * (*g) (char **, int), char **p, ...)
4431 s = g (p, va_arg (v,int));
4436 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4437 function prototypes and stuff, but not '\xHH' hex character constants.
4438 These don't provoke an error unfortunately, instead are silently treated
4439 as 'x'. The following induces an error, until -std is added to get
4440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4441 array size at least. It's necessary to write '\x00'==0 to get something
4442 that's true only with -std. */
4443 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4446 inside strings and character constants. */
4448 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450 int test (int i, double x);
4451 struct s1 {int (*f) (int a);};
4452 struct s2 {int (*f) (double a);};
4453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4464 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467 CC="$ac_save_CC $ac_arg"
4468 if ac_fn_c_try_compile "$LINENO"; then :
4469 ac_cv_prog_cc_c89=$ac_arg
4471 rm -f core conftest.err conftest.$ac_objext
4472 test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 rm -f conftest.$ac_ext
4479 case "x$ac_cv_prog_cc_c89" in
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4482 $as_echo "none needed" >&6; } ;;
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4485 $as_echo "unsupported" >&6; } ;;
4487 CC="$CC $ac_cv_prog_cc_c89"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4489 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 if test "x$ac_cv_prog_cc_c89" != xno; then :
4496 ac_cpp='$CPP $CPPFLAGS'
4497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4507 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4508 if ${am_cv_prog_cc_c_o+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4522 # Make sure it works both with $CC and with simple cc.
4523 # Following AC_PROG_CC_C_O, we do the test twice because some
4524 # compilers refuse to overwrite an existing .o file with -o,
4525 # though they will create one.
4526 am_cv_prog_cc_c_o=yes
4528 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4529 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } \
4533 && test -f conftest2.$ac_objext; then
4536 am_cv_prog_cc_c_o=no
4540 rm -f core conftest*
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4544 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4545 if test "$am_cv_prog_cc_c_o" != yes; then
4546 # Losing compiler, so override with the script.
4547 # FIXME: It is wrong to rewrite CC.
4548 # But if we don't then we get into trouble of one sort or another.
4549 # A longer-term fix would be to have automake use am__CC in this case,
4550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4551 CC="$am_aux_dir/compile $CC"
4554 ac_cpp='$CPP $CPPFLAGS'
4555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4560 depcc="$CC" am_compiler_list=
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4563 $as_echo_n "checking dependency style of $depcc... " >&6; }
4564 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4568 # We make a subdir and do the tests there. Otherwise we can end up
4569 # making bogus files that we don't know about and never remove. For
4570 # instance it was reported that on HP-UX the gcc test will end up
4571 # making a dummy file named 'D' -- because '-MD' means "put the output
4575 # Copy depcomp to subdir because otherwise we won't find it if we're
4576 # using a relative directory.
4577 cp "$am_depcomp" conftest.dir
4579 # We will build objects and dependencies in a subdirectory because
4580 # it helps to detect inapplicable dependency modes. For instance
4581 # both Tru64's cc and ICC support -MD to output dependencies as a
4582 # side effect of compilation, but ICC will put the dependencies in
4583 # the current directory while Tru64 will put them in the object
4587 am_cv_CC_dependencies_compiler_type=none
4588 if test "$am_compiler_list" = ""; then
4589 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4592 case " $depcc " in #(
4593 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4596 for depmode in $am_compiler_list; do
4597 # Setup a source with many dependencies, because some compilers
4598 # like to wrap large dependency lists on column 80 (with \), and
4599 # we should not choose a depcomp mode which is confused by this.
4601 # We need to recreate these files for each test, as the compiler may
4602 # overwrite some of them when testing with obscure command lines.
4603 # This happens at least with the AIX C compiler.
4605 for i in 1 2 3 4 5 6; do
4606 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4607 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4608 # Solaris 10 /bin/sh.
4609 echo '/* dummy */' > sub/conftst$i.h
4611 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4613 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4614 # mode. It turns out that the SunPro C++ compiler does not properly
4615 # handle '-M -o', and we need to detect this. Also, some Intel
4616 # versions had trouble with output in subdirs.
4617 am__obj=sub/conftest.${OBJEXT-o}
4618 am__minus_obj="-o $am__obj"
4621 # This depmode causes a compiler race in universal mode.
4622 test "$am__universal" = false || continue
4625 # After this tag, mechanisms are not by side-effect, so they'll
4626 # only be used when explicitly requested.
4627 if test "x$enable_dependency_tracking" = xyes; then
4633 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4634 # This compiler won't grok '-c -o', but also, the minuso test has
4635 # not run yet. These depmodes are late enough in the game, and
4636 # so weak that their functioning should not be impacted.
4637 am__obj=conftest.${OBJEXT-o}
4642 if depmode=$depmode \
4643 source=sub/conftest.c object=$am__obj \
4644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4645 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4646 >/dev/null 2>conftest.err &&
4647 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4649 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4650 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4651 # icc doesn't choke on unknown options, it will just issue warnings
4652 # or remarks (even with -Werror). So we grep stderr for any message
4653 # that says an option was ignored or not supported.
4654 # When given -MP, icc 7.0 and 7.1 complain thusly:
4655 # icc: Command line warning: ignoring option '-M'; no argument required
4656 # The diagnosis changed in icc 8.0:
4657 # icc: Command line remark: option '-MP' not supported
4658 if (grep 'ignoring option' conftest.err ||
4659 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4660 am_cv_CC_dependencies_compiler_type=$depmode
4669 am_cv_CC_dependencies_compiler_type=none
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4674 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4675 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4678 test "x$enable_dependency_tracking" != xno \
4679 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4681 am__fastdepCC_FALSE='#'
4683 am__fastdepCC_TRUE='#'
4684 am__fastdepCC_FALSE=
4690 ac_cpp='$CPP $CPPFLAGS'
4691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4695 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4696 # On Suns, sometimes $CPP names a directory.
4697 if test -n "$CPP" && test -d "$CPP"; then
4700 if test -z "$CPP"; then
4701 if ${ac_cv_prog_CPP+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 # Double quotes because CPP needs to be expanded
4705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4708 for ac_c_preproc_warn_flag in '' yes
4710 # Use a header file that comes with gcc, so configuring glibc
4711 # with a fresh cross-compiler works.
4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4713 # <limits.h> exists even on freestanding compilers.
4714 # On the NeXT, cc -E runs the code through the compiler's parser,
4715 # not just through cpp. "Syntax error" is here to catch this case.
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4719 # include <limits.h>
4721 # include <assert.h>
4725 if ac_fn_c_try_cpp "$LINENO"; then :
4728 # Broken: fails on valid input.
4731 rm -f conftest.err conftest.i conftest.$ac_ext
4733 # OK, works on sane cases. Now check whether nonexistent headers
4734 # can be detected and how.
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737 #include <ac_nonexistent.h>
4739 if ac_fn_c_try_cpp "$LINENO"; then :
4740 # Broken: success on invalid input.
4743 # Passes both tests.
4747 rm -f conftest.err conftest.i conftest.$ac_ext
4750 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4751 rm -f conftest.i conftest.err conftest.$ac_ext
4752 if $ac_preproc_ok; then :
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4765 $as_echo "$CPP" >&6; }
4767 for ac_c_preproc_warn_flag in '' yes
4769 # Use a header file that comes with gcc, so configuring glibc
4770 # with a fresh cross-compiler works.
4771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4772 # <limits.h> exists even on freestanding compilers.
4773 # On the NeXT, cc -E runs the code through the compiler's parser,
4774 # not just through cpp. "Syntax error" is here to catch this case.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # include <limits.h>
4780 # include <assert.h>
4784 if ac_fn_c_try_cpp "$LINENO"; then :
4787 # Broken: fails on valid input.
4790 rm -f conftest.err conftest.i conftest.$ac_ext
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 #include <ac_nonexistent.h>
4798 if ac_fn_c_try_cpp "$LINENO"; then :
4799 # Broken: success on invalid input.
4802 # Passes both tests.
4806 rm -f conftest.err conftest.i conftest.$ac_ext
4809 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4810 rm -f conftest.i conftest.err conftest.$ac_ext
4811 if $ac_preproc_ok; then :
4814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4817 See \`config.log' for more details" "$LINENO" 5; }
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4828 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4829 if ${ac_cv_path_GREP+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 if test -z "$GREP"; then
4833 ac_path_GREP_found=false
4834 # Loop through the user's path and test for each of PROGNAME-LIST
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4839 test -z "$as_dir" && as_dir=.
4840 for ac_prog in grep ggrep; do
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4843 as_fn_executable_p "$ac_path_GREP" || continue
4844 # Check for GNU ac_path_GREP and select it if it is found.
4845 # Check for GNU $ac_path_GREP
4846 case `"$ac_path_GREP" --version 2>&1` in
4848 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4851 $as_echo_n 0123456789 >"conftest.in"
4854 cat "conftest.in" "conftest.in" >"conftest.tmp"
4855 mv "conftest.tmp" "conftest.in"
4856 cp "conftest.in" "conftest.nl"
4857 $as_echo 'GREP' >> "conftest.nl"
4858 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4859 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4860 as_fn_arith $ac_count + 1 && ac_count=$as_val
4861 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4862 # Best one so far, save it but keep looking for a better one
4863 ac_cv_path_GREP="$ac_path_GREP"
4864 ac_path_GREP_max=$ac_count
4866 # 10*(2^10) chars as input seems more than enough
4867 test $ac_count -gt 10 && break
4869 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4872 $ac_path_GREP_found && break 3
4877 if test -z "$ac_cv_path_GREP"; then
4878 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4881 ac_cv_path_GREP=$GREP
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4886 $as_echo "$ac_cv_path_GREP" >&6; }
4887 GREP="$ac_cv_path_GREP"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4891 $as_echo_n "checking for egrep... " >&6; }
4892 if ${ac_cv_path_EGREP+:} false; then :
4893 $as_echo_n "(cached) " >&6
4895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4896 then ac_cv_path_EGREP="$GREP -E"
4898 if test -z "$EGREP"; then
4899 ac_path_EGREP_found=false
4900 # Loop through the user's path and test for each of PROGNAME-LIST
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in egrep; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_EGREP" || continue
4910 # Check for GNU ac_path_EGREP and select it if it is found.
4911 # Check for GNU $ac_path_EGREP
4912 case `"$ac_path_EGREP" --version 2>&1` in
4914 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4917 $as_echo_n 0123456789 >"conftest.in"
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 $as_echo 'EGREP' >> "conftest.nl"
4924 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_EGREP="$ac_path_EGREP"
4930 ac_path_EGREP_max=$ac_count
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 $ac_path_EGREP_found && break 3
4943 if test -z "$ac_cv_path_EGREP"; then
4944 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4947 ac_cv_path_EGREP=$EGREP
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4953 $as_echo "$ac_cv_path_EGREP" >&6; }
4954 EGREP="$ac_cv_path_EGREP"
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4958 $as_echo_n "checking for ANSI C header files... " >&6; }
4959 if ${ac_cv_header_stdc+:} false; then :
4960 $as_echo_n "(cached) " >&6
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4977 if ac_fn_c_try_compile "$LINENO"; then :
4978 ac_cv_header_stdc=yes
4980 ac_cv_header_stdc=no
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984 if test $ac_cv_header_stdc = yes; then
4985 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992 $EGREP "memchr" >/dev/null 2>&1; then :
4995 ac_cv_header_stdc=no
5001 if test $ac_cv_header_stdc = yes; then
5002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5009 $EGREP "free" >/dev/null 2>&1; then :
5012 ac_cv_header_stdc=no
5018 if test $ac_cv_header_stdc = yes; then
5019 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5020 if test "$cross_compiling" = yes; then :
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5027 #if ((' ' & 0x0FF) == 0x020)
5028 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5029 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 # define ISLOWER(c) \
5032 (('a' <= (c) && (c) <= 'i') \
5033 || ('j' <= (c) && (c) <= 'r') \
5034 || ('s' <= (c) && (c) <= 'z'))
5035 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5038 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5043 for (i = 0; i < 256; i++)
5044 if (XOR (islower (i), ISLOWER (i))
5045 || toupper (i) != TOUPPER (i))
5050 if ac_fn_c_try_run "$LINENO"; then :
5053 ac_cv_header_stdc=no
5055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5056 conftest.$ac_objext conftest.beam conftest.$ac_ext
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5062 $as_echo "$ac_cv_header_stdc" >&6; }
5063 if test $ac_cv_header_stdc = yes; then
5065 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5069 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5071 inttypes.h stdint.h unistd.h
5073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5074 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5076 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5077 cat >>confdefs.h <<_ACEOF
5078 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5088 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5095 if test "$MINIX" = yes; then
5097 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5100 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5103 $as_echo "#define _MINIX 1" >>confdefs.h
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5109 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5110 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5116 # define __EXTENSIONS__ 1
5117 $ac_includes_default
5126 if ac_fn_c_try_compile "$LINENO"; then :
5127 ac_cv_safe_to_define___extensions__=yes
5129 ac_cv_safe_to_define___extensions__=no
5131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5134 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5135 test $ac_cv_safe_to_define___extensions__ = yes &&
5136 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5138 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5140 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5142 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5144 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5149 # Some status variables.
5160 have_system_resolver=no
5161 gnupg_have_ldap="n/a"
5166 use_trust_models=yes
5170 use_ccid_driver=auto
5171 dirmngr_auto_start=yes
5176 # gpg is a required part and can't be disabled anymore.
5181 # Check whether --enable-gpgsm was given.
5182 if test "${enable_gpgsm+set}" = set; then :
5183 enableval=$enable_gpgsm; build_gpgsm=$enableval
5189 case "$build_gpgsm" in
5193 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5198 # The agent is a required part and can't be disabled anymore.
5203 # Check whether --enable-scdaemon was given.
5204 if test "${enable_scdaemon+set}" = set; then :
5205 enableval=$enable_scdaemon; build_scdaemon=$enableval
5211 case "$build_scdaemon" in
5215 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5223 # Check whether --enable-g13 was given.
5224 if test "${enable_g13+set}" = set; then :
5225 enableval=$enable_g13; build_g13=$enableval
5231 case "$build_g13" in
5235 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5243 # Check whether --enable-dirmngr was given.
5244 if test "${enable_dirmngr+set}" = set; then :
5245 enableval=$enable_dirmngr; build_dirmngr=$enableval
5251 case "$build_dirmngr" in
5255 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5263 # Check whether --enable-keyboxd was given.
5264 if test "${enable_keyboxd+set}" = set; then :
5265 enableval=$enable_keyboxd; build_keyboxd=$enableval
5271 case "$build_keyboxd" in
5275 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5283 # Check whether --enable-tpm2d was given.
5284 if test "${enable_tpm2d+set}" = set; then :
5285 enableval=$enable_tpm2d; build_tpm2d=$enableval
5291 case "$build_tpm2d" in
5295 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5303 # Check whether --enable-doc was given.
5304 if test "${enable_doc+set}" = set; then :
5305 enableval=$enable_doc; build_doc=$enableval
5311 case "$build_doc" in
5315 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5320 # We use gpgtar to unpack test data, hence we always build it. If the
5321 # user opts out, we simply don't install it.
5325 # Check whether --enable-gpgtar was given.
5326 if test "${enable_gpgtar+set}" = set; then :
5327 enableval=$enable_gpgtar; build_gpgtar=$enableval
5333 case "$build_gpgtar" in
5337 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5342 # We also install the gpg-wks-server tool by default but disable it
5343 # later for platforms where it can't be build.
5347 # Check whether --enable-wks-tools was given.
5348 if test "${enable_wks_tools+set}" = set; then :
5349 enableval=$enable_wks_tools; build_wks_tools=$enableval
5355 case "$build_wks_tools" in
5359 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5370 cat >>confdefs.h <<_ACEOF
5371 #define PACKAGE "$PACKAGE"
5375 cat >>confdefs.h <<_ACEOF
5376 #define PACKAGE_GT "$PACKAGE_GT"
5380 cat >>confdefs.h <<_ACEOF
5381 #define VERSION "$VERSION"
5385 cat >>confdefs.h <<_ACEOF
5386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5390 cat >>confdefs.h <<_ACEOF
5391 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5395 cat >>confdefs.h <<_ACEOF
5396 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5400 cat >>confdefs.h <<_ACEOF
5401 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5407 # The default is to use the modules from this package and the few
5408 # other packages in a standard place; i.e where this package gets
5409 # installed. With these options it is possible to override these
5410 # ${prefix} depended values with fixed paths, which can't be replaced
5411 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5413 # Check whether --with-agent-pgm was given.
5414 if test "${with_agent_pgm+set}" = set; then :
5415 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5421 if test -n "$GNUPG_AGENT_PGM"; then
5422 GNUPG_AGENT_PGM_TRUE=
5423 GNUPG_AGENT_PGM_FALSE='#'
5425 GNUPG_AGENT_PGM_TRUE='#'
5426 GNUPG_AGENT_PGM_FALSE=
5429 show_gnupg_agent_pgm="(default)"
5430 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5433 # Check whether --with-pinentry-pgm was given.
5434 if test "${with_pinentry_pgm+set}" = set; then :
5435 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5437 GNUPG_PINENTRY_PGM=""
5441 if test -n "$GNUPG_PINENTRY_PGM"; then
5442 GNUPG_PINENTRY_PGM_TRUE=
5443 GNUPG_PINENTRY_PGM_FALSE='#'
5445 GNUPG_PINENTRY_PGM_TRUE='#'
5446 GNUPG_PINENTRY_PGM_FALSE=
5449 show_gnupg_pinentry_pgm="(default)"
5450 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5454 # Check whether --with-scdaemon-pgm was given.
5455 if test "${with_scdaemon_pgm+set}" = set; then :
5456 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5458 GNUPG_SCDAEMON_PGM=""
5462 if test -n "$GNUPG_SCDAEMON_PGM"; then
5463 GNUPG_SCDAEMON_PGM_TRUE=
5464 GNUPG_SCDAEMON_PGM_FALSE='#'
5466 GNUPG_SCDAEMON_PGM_TRUE='#'
5467 GNUPG_SCDAEMON_PGM_FALSE=
5470 show_gnupg_scdaemon_pgm="(default)"
5471 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5475 # Check whether --with-tpm2daemon-pgm was given.
5476 if test "${with_tpm2daemon_pgm+set}" = set; then :
5477 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5479 GNUPG_TPM2DAEMON_PGM=""
5483 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5484 GNUPG_TPM2DAEMON_PGM_TRUE=
5485 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5487 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5488 GNUPG_TPM2DAEMON_PGM_FALSE=
5491 show_gnupg_tpm2daemon_pgm="(default)"
5492 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5496 # Check whether --with-dirmngr-pgm was given.
5497 if test "${with_dirmngr_pgm+set}" = set; then :
5498 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5500 GNUPG_DIRMNGR_PGM=""
5504 if test -n "$GNUPG_DIRMNGR_PGM"; then
5505 GNUPG_DIRMNGR_PGM_TRUE=
5506 GNUPG_DIRMNGR_PGM_FALSE='#'
5508 GNUPG_DIRMNGR_PGM_TRUE='#'
5509 GNUPG_DIRMNGR_PGM_FALSE=
5512 show_gnupg_dirmngr_pgm="(default)"
5513 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5516 # Check whether --with-keyboxd-pgm was given.
5517 if test "${with_keyboxd_pgm+set}" = set; then :
5518 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5520 GNUPG_KEYBOXD_PGM=""
5524 if test -n "$GNUPG_KEYBOXD_PGM"; then
5525 GNUPG_KEYBOXD_PGM_TRUE=
5526 GNUPG_KEYBOXD_PGM_FALSE='#'
5528 GNUPG_KEYBOXD_PGM_TRUE='#'
5529 GNUPG_KEYBOXD_PGM_FALSE=
5532 show_gnupg_keyboxd_pgm="(default)"
5533 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5536 # Check whether --with-protect-tool-pgm was given.
5537 if test "${with_protect_tool_pgm+set}" = set; then :
5538 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5540 GNUPG_PROTECT_TOOL_PGM=""
5544 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5545 GNUPG_PROTECT_TOOL_PGM_TRUE=
5546 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5548 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5549 GNUPG_PROTECT_TOOL_PGM_FALSE=
5552 show_gnupg_protect_tool_pgm="(default)"
5553 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5554 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5557 # Check whether --with-dirmngr-ldap-pgm was given.
5558 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5559 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5561 GNUPG_DIRMNGR_LDAP_PGM=""
5565 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5566 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5567 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5569 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5570 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5573 show_gnupg_dirmngr_ldap_pgm="(default)"
5574 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5575 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5579 # For a long time gpg 2.x was installed as gpg2. This changed with
5580 # 2.2. This option can be used to install gpg under the name gpg2.
5582 # Check whether --enable-gpg-is-gpg2 was given.
5583 if test "${enable_gpg_is_gpg2+set}" = set; then :
5584 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5587 if test "$gpg_is_gpg2" = "yes"; then
5589 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5592 if test "$gpg_is_gpg2" = "yes"; then
5594 USE_GPG2_HACK_FALSE='#'
5596 USE_GPG2_HACK_TRUE='#'
5597 USE_GPG2_HACK_FALSE=
5602 # SELinux support includes tracking of sensitive files to avoid
5603 # leaking their contents through processing these files by gpg itself
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5605 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5606 # Check whether --enable-selinux-support was given.
5607 if test "${enable_selinux_support+set}" = set; then :
5608 enableval=$enable_selinux_support; selinux_support=$enableval
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5614 $as_echo "$selinux_support" >&6; }
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5618 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5619 # Check whether --enable-large-secmem was given.
5620 if test "${enable_large_secmem+set}" = set; then :
5621 enableval=$enable_large_secmem; large_secmem=$enableval
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5627 $as_echo "$large_secmem" >&6; }
5628 if test "$large_secmem" = yes ; then
5629 SECMEM_BUFFER_SIZE=65536
5631 SECMEM_BUFFER_SIZE=32768
5634 cat >>confdefs.h <<_ACEOF
5635 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5640 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5642 # Check whether --with-agent-s2k-calibration was given.
5643 if test "${with_agent_s2k_calibration+set}" = set; then :
5644 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5646 agent_s2k_calibration=100
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5650 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5652 cat >>confdefs.h <<_ACEOF
5653 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5658 $as_echo_n "checking whether to enable trust models... " >&6; }
5659 # Check whether --enable-trust-models was given.
5660 if test "${enable_trust_models+set}" = set; then :
5661 enableval=$enable_trust_models; use_trust_models=$enableval
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5665 $as_echo "$use_trust_models" >&6; }
5666 if test "$use_trust_models" = no ; then
5668 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5673 $as_echo_n "checking whether to enable TOFU... " >&6; }
5674 # Check whether --enable-tofu was given.
5675 if test "${enable_tofu+set}" = set; then :
5676 enableval=$enable_tofu; use_tofu=$enableval
5678 use_tofu=$use_trust_models
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5682 $as_echo "$use_tofu" >&6; }
5683 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5684 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5688 $as_echo_n "checking whether to enable libdns... " >&6; }
5689 # Check whether --enable-libdns was given.
5690 if test "${enable_libdns+set}" = set; then :
5691 enableval=$enable_libdns; use_libdns=$enableval
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5697 $as_echo "$use_libdns" >&6; }
5698 if test x"$use_libdns" = xyes ; then
5700 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5703 if test "$use_libdns" = yes; then
5705 USE_LIBDNS_FALSE='#'
5714 # Options to disable algorithm
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5718 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5719 # Check whether --enable-gpg-rsa was given.
5720 if test "${enable_gpg_rsa+set}" = set; then :
5721 enableval=$enable_gpg_rsa;
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5727 $as_echo "$enableval" >&6; }
5728 if test x"$enableval" = xyes ; then
5730 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5734 # Elgamal is a MUST algorithm
5735 # DSA is a MUST algorithm
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5737 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5738 # Check whether --enable-gpg-ecdh was given.
5739 if test "${enable_gpg_ecdh+set}" = set; then :
5740 enableval=$enable_gpg_ecdh;
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5746 $as_echo "$enableval" >&6; }
5747 if test x"$enableval" = xyes ; then
5749 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5754 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5755 # Check whether --enable-gpg-ecdsa was given.
5756 if test "${enable_gpg_ecdsa+set}" = set; then :
5757 enableval=$enable_gpg_ecdsa;
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5763 $as_echo "$enableval" >&6; }
5764 if test x"$enableval" = xyes ; then
5766 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5771 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5772 # Check whether --enable-gpg-eddsa was given.
5773 if test "${enable_gpg_eddsa+set}" = set; then :
5774 enableval=$enable_gpg_eddsa;
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5780 $as_echo "$enableval" >&6; }
5781 if test x"$enableval" = xyes ; then
5783 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5789 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5790 # Check whether --enable-gpg-idea was given.
5791 if test "${enable_gpg_idea+set}" = set; then :
5792 enableval=$enable_gpg_idea;
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5798 $as_echo "$enableval" >&6; }
5799 if test x"$enableval" = xyes ; then
5801 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5805 # 3DES is a MUST algorithm
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5807 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5808 # Check whether --enable-gpg-cast5 was given.
5809 if test "${enable_gpg_cast5+set}" = set; then :
5810 enableval=$enable_gpg_cast5;
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5816 $as_echo "$enableval" >&6; }
5817 if test x"$enableval" = xyes ; then
5819 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5824 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5825 # Check whether --enable-gpg-blowfish was given.
5826 if test "${enable_gpg_blowfish+set}" = set; then :
5827 enableval=$enable_gpg_blowfish;
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5833 $as_echo "$enableval" >&6; }
5834 if test x"$enableval" = xyes ; then
5836 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5841 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5842 # Check whether --enable-gpg-aes128 was given.
5843 if test "${enable_gpg_aes128+set}" = set; then :
5844 enableval=$enable_gpg_aes128;
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5850 $as_echo "$enableval" >&6; }
5851 if test x"$enableval" = xyes ; then
5853 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5858 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5859 # Check whether --enable-gpg-aes192 was given.
5860 if test "${enable_gpg_aes192+set}" = set; then :
5861 enableval=$enable_gpg_aes192;
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5867 $as_echo "$enableval" >&6; }
5868 if test x"$enableval" = xyes ; then
5870 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5875 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5876 # Check whether --enable-gpg-aes256 was given.
5877 if test "${enable_gpg_aes256+set}" = set; then :
5878 enableval=$enable_gpg_aes256;
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5884 $as_echo "$enableval" >&6; }
5885 if test x"$enableval" = xyes ; then
5887 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5892 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5893 # Check whether --enable-gpg-twofish was given.
5894 if test "${enable_gpg_twofish+set}" = set; then :
5895 enableval=$enable_gpg_twofish;
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5901 $as_echo "$enableval" >&6; }
5902 if test x"$enableval" = xyes ; then
5904 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5909 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5910 # Check whether --enable-gpg-camellia128 was given.
5911 if test "${enable_gpg_camellia128+set}" = set; then :
5912 enableval=$enable_gpg_camellia128;
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5918 $as_echo "$enableval" >&6; }
5919 if test x"$enableval" = xyes ; then
5921 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5926 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5927 # Check whether --enable-gpg-camellia192 was given.
5928 if test "${enable_gpg_camellia192+set}" = set; then :
5929 enableval=$enable_gpg_camellia192;
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5935 $as_echo "$enableval" >&6; }
5936 if test x"$enableval" = xyes ; then
5938 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5943 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5944 # Check whether --enable-gpg-camellia256 was given.
5945 if test "${enable_gpg_camellia256+set}" = set; then :
5946 enableval=$enable_gpg_camellia256;
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5952 $as_echo "$enableval" >&6; }
5953 if test x"$enableval" = xyes ; then
5955 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5961 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5962 # Check whether --enable-gpg-md5 was given.
5963 if test "${enable_gpg_md5+set}" = set; then :
5964 enableval=$enable_gpg_md5;
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5970 $as_echo "$enableval" >&6; }
5971 if test x"$enableval" = xyes ; then
5973 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5977 # SHA1 is a MUST algorithm
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5979 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5980 # Check whether --enable-gpg-rmd160 was given.
5981 if test "${enable_gpg_rmd160+set}" = set; then :
5982 enableval=$enable_gpg_rmd160;
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5988 $as_echo "$enableval" >&6; }
5989 if test x"$enableval" = xyes ; then
5991 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5996 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5997 # Check whether --enable-gpg-sha224 was given.
5998 if test "${enable_gpg_sha224+set}" = set; then :
5999 enableval=$enable_gpg_sha224;
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6005 $as_echo "$enableval" >&6; }
6006 if test x"$enableval" = xyes ; then
6008 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6012 # SHA256 is a MUST algorithm for GnuPG.
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6014 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6015 # Check whether --enable-gpg-sha384 was given.
6016 if test "${enable_gpg_sha384+set}" = set; then :
6017 enableval=$enable_gpg_sha384;
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6023 $as_echo "$enableval" >&6; }
6024 if test x"$enableval" = xyes ; then
6026 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6031 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6032 # Check whether --enable-gpg-sha512 was given.
6033 if test "${enable_gpg_sha512+set}" = set; then :
6034 enableval=$enable_gpg_sha512;
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6040 $as_echo "$enableval" >&6; }
6041 if test x"$enableval" = xyes ; then
6043 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6049 # Allow disabling of zip support.
6050 # This is in general not a good idea because according to rfc4880 OpenPGP
6051 # implementations SHOULD support ZLIB.
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6053 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6054 # Check whether --enable-zip was given.
6055 if test "${enable_zip+set}" = set; then :
6056 enableval=$enable_zip; use_zip=$enableval
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6060 $as_echo "$use_zip" >&6; }
6062 # Allow disabling of bzib2 support.
6063 # It is defined only after we confirm the library is available later
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6065 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6066 # Check whether --enable-bzip2 was given.
6067 if test "${enable_bzip2+set}" = set; then :
6068 enableval=$enable_bzip2; use_bzip2=$enableval
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6072 $as_echo "$use_bzip2" >&6; }
6074 # Configure option to allow or disallow execution of external
6075 # programs, like a photo viewer.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6077 $as_echo_n "checking whether to enable external program execution... " >&6; }
6078 # Check whether --enable-exec was given.
6079 if test "${enable_exec+set}" = set; then :
6080 enableval=$enable_exec; use_exec=$enableval
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6084 $as_echo "$use_exec" >&6; }
6085 if test "$use_exec" = no ; then
6087 $as_echo "#define NO_EXEC 1" >>confdefs.h
6091 if test "$use_exec" = yes ; then
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6093 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6094 # Check whether --enable-photo-viewers was given.
6095 if test "${enable_photo_viewers+set}" = set; then :
6096 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6098 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6105 gnupg_cv_enable_photo_viewers=$enableval
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6107 $as_echo "$enableval" >&6; }
6109 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6111 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6113 # Check whether --with-photo-viewer was given.
6114 if test "${with_photo_viewer+set}" = set; then :
6115 withval=$with_photo_viewer; if test "$withval" = yes ; then
6117 elif test "$withval" != no ; then
6119 cat >>confdefs.h <<_ACEOF
6120 #define FIXED_PHOTO_VIEWER "$withval"
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6129 $as_echo "$withval" >&6; }
6135 # Check for the key/uid cache size. This can't be zero, but can be
6136 # pretty small on embedded systems. This is used for the gpg part.
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6139 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6140 # Check whether --enable-key-cache was given.
6141 if test "${enable_key_cache+set}" = set; then :
6142 enableval=$enable_key_cache;
6147 if test "$enableval" = "no"; then
6149 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6152 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6153 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6154 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6157 $as_echo "$key_cache_size" >&6; }
6159 cat >>confdefs.h <<_ACEOF
6160 #define PK_UID_CACHE_SIZE $key_cache_size
6167 # Check whether we want to use Linux capabilities
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6170 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6172 # Check whether --with-capabilities was given.
6173 if test "${with_capabilities+set}" = set; then :
6174 withval=$with_capabilities; use_capabilities="$withval"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6180 $as_echo "$use_capabilities" >&6; }
6183 # Check whether to disable the card support
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6185 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6186 # Check whether --enable-card-support was given.
6187 if test "${enable_card_support+set}" = set; then :
6188 enableval=$enable_card_support; card_support=$enableval
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6192 $as_echo "$card_support" >&6; }
6193 if test "$card_support" = yes ; then
6195 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6202 # Allow disabling of internal CCID support.
6203 # It is defined only after we confirm the library is available later
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6206 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6207 # Check whether --enable-ccid-driver was given.
6208 if test "${enable_ccid_driver+set}" = set; then :
6209 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6213 $as_echo "$use_ccid_driver" >&6; }
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6216 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6217 # Check whether --enable-dirmngr-auto-start was given.
6218 if test "${enable_dirmngr_auto_start+set}" = set; then :
6219 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6223 $as_echo "$dirmngr_auto_start" >&6; }
6224 if test "$dirmngr_auto_start" = yes ; then
6226 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6232 # To avoid double inclusion of config.h which might happen at some
6233 # places, we add the usual double inclusion protection at the top of
6239 # Stuff which goes at the bottom of config.h.
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6246 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6247 # Check whether --enable-maintainer-mode was given.
6248 if test "${enable_maintainer_mode+set}" = set; then :
6249 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6251 USE_MAINTAINER_MODE=no
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6255 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6256 if test $USE_MAINTAINER_MODE = yes; then
6257 MAINTAINER_MODE_TRUE=
6258 MAINTAINER_MODE_FALSE='#'
6260 MAINTAINER_MODE_TRUE='#'
6261 MAINTAINER_MODE_FALSE=
6264 MAINT=$MAINTAINER_MODE_TRUE
6269 # Checks for programs.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6271 $as_echo "$as_me: checking for programs" >&6;}
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6273 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6275 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6276 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6277 $as_echo_n "(cached) " >&6
6279 cat >conftest.make <<\_ACEOF
6282 @echo '@@@%%%=$(MAKE)=@@@%%%'
6284 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6285 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6287 eval ac_cv_prog_make_${ac_make}_set=yes;;
6289 eval ac_cv_prog_make_${ac_make}_set=no;;
6293 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6295 $as_echo "yes" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6300 SET_MAKE="MAKE=${MAKE-make}"
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6304 $as_echo_n "checking whether build environment is sane... " >&6; }
6305 # Reject unsafe characters in $srcdir or the absolute working directory
6306 # name. Accept space and tab only in the latter.
6310 *[\\\"\#\$\&\'\`$am_lf]*)
6311 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6314 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6315 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6318 # Do 'set' in a subshell so we don't clobber the current shell's
6319 # arguments. Must try -L first in case configure is actually a
6320 # symlink; some systems play weird games with the mod time of symlinks
6321 # (eg FreeBSD returns the mod time of the symlink's containing
6325 for am_try in 1 2; do
6326 echo "timestamp, slept: $am_has_slept" > conftest.file
6327 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6328 if test "$*" = "X"; then
6330 set X `ls -t "$srcdir/configure" conftest.file`
6332 if test "$*" != "X $srcdir/configure conftest.file" \
6333 && test "$*" != "X conftest.file $srcdir/configure"; then
6335 # If neither matched, then we have a broken ls. This can happen
6336 # if, for instance, CONFIG_SHELL is bash and it inherits a
6337 # broken ls alias from the environment. This has actually
6338 # happened. Such a system could not be considered "sane".
6339 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6340 alias in your environment" "$LINENO" 5
6342 if test "$2" = conftest.file || test $am_try -eq 2; then
6349 test "$2" = conftest.file
6355 as_fn_error $? "newly created file is older than distributed files!
6356 Check your system clock" "$LINENO" 5
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6359 $as_echo "yes" >&6; }
6360 # If we didn't sleep, we still need to ensure time stamps of config.status and
6361 # generated files are strictly newer.
6363 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6370 missing_dir=`cd $ac_aux_dir && pwd`
6372 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6375 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6378 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6381 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6384 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6386 # Check whether --enable-silent-rules was given.
6387 if test "${enable_silent_rules+set}" = set; then :
6388 enableval=$enable_silent_rules;
6391 case $enable_silent_rules in # (((
6392 yes) AM_DEFAULT_VERBOSITY=0;;
6393 no) AM_DEFAULT_VERBOSITY=1;;
6394 *) AM_DEFAULT_VERBOSITY=1;;
6396 am_make=${MAKE-make}
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6398 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6399 if ${am_cv_make_support_nested_variables+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 if $as_echo 'TRUE=$(BAR$(V))
6408 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6409 am_cv_make_support_nested_variables=yes
6411 am_cv_make_support_nested_variables=no
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6415 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6416 if test $am_cv_make_support_nested_variables = yes; then
6418 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6420 AM_V=$AM_DEFAULT_VERBOSITY
6421 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6425 for ac_prog in gawk mawk nawk awk
6427 # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_AWK+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$AWK"; then
6435 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_AWK="$ac_prog"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 if test -n "$AWK"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6457 $as_echo "$AWK" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6464 test -n "$AWK" && break
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472 if test -n "$ac_tool_prefix"; then
6473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_CC+:} false; then :
6478 $as_echo_n "(cached) " >&6
6480 if test -n "$CC"; then
6481 ac_cv_prog_CC="$CC" # Let the user override the test.
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 if test -n "$CC"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6503 $as_echo "$CC" >&6; }
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6511 if test -z "$ac_cv_prog_CC"; then
6513 # Extract the first word of "gcc", so it can be a program name with args.
6514 set dummy gcc; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$ac_ct_CC"; then
6521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_ac_ct_CC="gcc"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6541 if test -n "$ac_ct_CC"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6543 $as_echo "$ac_ct_CC" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6549 if test "x$ac_ct_CC" = x; then
6552 case $cross_compiling:$ac_tool_warned in
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6556 ac_tool_warned=yes ;;
6564 if test -z "$CC"; then
6565 if test -n "$ac_tool_prefix"; then
6566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6567 set dummy ${ac_tool_prefix}cc; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_CC+:} false; then :
6571 $as_echo_n "(cached) " >&6
6573 if test -n "$CC"; then
6574 ac_cv_prog_CC="$CC" # Let the user override the test.
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_CC="${ac_tool_prefix}cc"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 if test -n "$CC"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6596 $as_echo "$CC" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6605 if test -z "$CC"; then
6606 # Extract the first word of "cc", so it can be a program name with args.
6607 set dummy cc; ac_word=$2
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 $as_echo_n "checking for $ac_word... " >&6; }
6610 if ${ac_cv_prog_CC+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 if test -n "$CC"; then
6614 ac_cv_prog_CC="$CC" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6625 ac_prog_rejected=yes
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 if test $ac_prog_rejected = yes; then
6637 # We found a bogon in the path, so make sure we never use it.
6638 set dummy $ac_cv_prog_CC
6640 if test $# != 0; then
6641 # We chose a different compiler from the bogus one.
6642 # However, it has the same basename, so the bogon will be chosen
6643 # first if we set CC to just the basename; use the full file name.
6645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6651 if test -n "$CC"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6653 $as_echo "$CC" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$CC"; then
6662 if test -n "$ac_tool_prefix"; then
6663 for ac_prog in cl.exe
6665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_CC+:} false; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$CC"; then
6673 ac_cv_prog_CC="$CC" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 if test -n "$CC"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6695 $as_echo "$CC" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6702 test -n "$CC" && break
6705 if test -z "$CC"; then
6707 for ac_prog in cl.exe
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy $ac_prog; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$ac_ct_CC"; then
6717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_ac_ct_CC="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6737 if test -n "$ac_ct_CC"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6739 $as_echo "$ac_ct_CC" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$ac_ct_CC" && break
6749 if test "x$ac_ct_CC" = x; then
6752 case $cross_compiling:$ac_tool_warned in
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756 ac_tool_warned=yes ;;
6765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6767 as_fn_error $? "no acceptable C compiler found in \$PATH
6768 See \`config.log' for more details" "$LINENO" 5; }
6770 # Provide some information about the compiler.
6771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6774 for ac_option in --version -v -V -qversion; do
6775 { { ac_try="$ac_compiler $ac_option >&5"
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6781 $as_echo "$ac_try_echo"; } >&5
6782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6784 if test -s conftest.err; then
6786 ... rest of stderr output deleted ...
6787 10q' conftest.err >conftest.er1
6788 cat conftest.er1 >&5
6790 rm -f conftest.er1 conftest.err
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6797 if ${ac_cv_c_compiler_gnu+:} false; then :
6798 $as_echo_n "(cached) " >&6
6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801 /* end confdefs.h. */
6814 if ac_fn_c_try_compile "$LINENO"; then :
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6825 if test $ac_compiler_gnu = yes; then
6830 ac_test_CFLAGS=${CFLAGS+set}
6831 ac_save_CFLAGS=$CFLAGS
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6834 if ${ac_cv_prog_cc_g+:} false; then :
6835 $as_echo_n "(cached) " >&6
6837 ac_save_c_werror_flag=$ac_c_werror_flag
6838 ac_c_werror_flag=yes
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6852 if ac_fn_c_try_compile "$LINENO"; then :
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6867 if ac_fn_c_try_compile "$LINENO"; then :
6870 ac_c_werror_flag=$ac_save_c_werror_flag
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6883 if ac_fn_c_try_compile "$LINENO"; then :
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 ac_c_werror_flag=$ac_save_c_werror_flag
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6894 $as_echo "$ac_cv_prog_cc_g" >&6; }
6895 if test "$ac_test_CFLAGS" = set; then
6896 CFLAGS=$ac_save_CFLAGS
6897 elif test $ac_cv_prog_cc_g = yes; then
6898 if test "$GCC" = yes; then
6904 if test "$GCC" = yes; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6912 if ${ac_cv_prog_cc_c89+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 ac_cv_prog_cc_c89=no
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6923 struct buf { int x; };
6924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6925 static char *e (p, i)
6931 static char *f (char * (*g) (char **, int), char **p, ...)
6936 s = g (p, va_arg (v,int));
6941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6942 function prototypes and stuff, but not '\xHH' hex character constants.
6943 These don't provoke an error unfortunately, instead are silently treated
6944 as 'x'. The following induces an error, until -std is added to get
6945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6946 array size at least. It's necessary to write '\x00'==0 to get something
6947 that's true only with -std. */
6948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6951 inside strings and character constants. */
6953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6955 int test (int i, double x);
6956 struct s1 {int (*f) (int a);};
6957 struct s2 {int (*f) (double a);};
6958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6972 CC="$ac_save_CC $ac_arg"
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 ac_cv_prog_cc_c89=$ac_arg
6976 rm -f core conftest.err conftest.$ac_objext
6977 test "x$ac_cv_prog_cc_c89" != "xno" && break
6979 rm -f conftest.$ac_ext
6984 case "x$ac_cv_prog_cc_c89" in
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6987 $as_echo "none needed" >&6; } ;;
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6990 $as_echo "unsupported" >&6; } ;;
6992 CC="$CC $ac_cv_prog_cc_c89"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6996 if test "x$ac_cv_prog_cc_c89" != xno; then :
7001 ac_cpp='$CPP $CPPFLAGS'
7002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7012 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7013 if ${am_cv_prog_cc_c_o+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7027 # Make sure it works both with $CC and with simple cc.
7028 # Following AC_PROG_CC_C_O, we do the test twice because some
7029 # compilers refuse to overwrite an existing .o file with -o,
7030 # though they will create one.
7031 am_cv_prog_cc_c_o=yes
7033 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7034 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } \
7038 && test -f conftest2.$ac_objext; then
7041 am_cv_prog_cc_c_o=no
7045 rm -f core conftest*
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7049 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7050 if test "$am_cv_prog_cc_c_o" != yes; then
7051 # Losing compiler, so override with the script.
7052 # FIXME: It is wrong to rewrite CC.
7053 # But if we don't then we get into trouble of one sort or another.
7054 # A longer-term fix would be to have automake use am__CC in this case,
7055 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7056 CC="$am_aux_dir/compile $CC"
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065 depcc="$CC" am_compiler_list=
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7068 $as_echo_n "checking dependency style of $depcc... " >&6; }
7069 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7073 # We make a subdir and do the tests there. Otherwise we can end up
7074 # making bogus files that we don't know about and never remove. For
7075 # instance it was reported that on HP-UX the gcc test will end up
7076 # making a dummy file named 'D' -- because '-MD' means "put the output
7080 # Copy depcomp to subdir because otherwise we won't find it if we're
7081 # using a relative directory.
7082 cp "$am_depcomp" conftest.dir
7084 # We will build objects and dependencies in a subdirectory because
7085 # it helps to detect inapplicable dependency modes. For instance
7086 # both Tru64's cc and ICC support -MD to output dependencies as a
7087 # side effect of compilation, but ICC will put the dependencies in
7088 # the current directory while Tru64 will put them in the object
7092 am_cv_CC_dependencies_compiler_type=none
7093 if test "$am_compiler_list" = ""; then
7094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7097 case " $depcc " in #(
7098 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7101 for depmode in $am_compiler_list; do
7102 # Setup a source with many dependencies, because some compilers
7103 # like to wrap large dependency lists on column 80 (with \), and
7104 # we should not choose a depcomp mode which is confused by this.
7106 # We need to recreate these files for each test, as the compiler may
7107 # overwrite some of them when testing with obscure command lines.
7108 # This happens at least with the AIX C compiler.
7110 for i in 1 2 3 4 5 6; do
7111 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7112 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7113 # Solaris 10 /bin/sh.
7114 echo '/* dummy */' > sub/conftst$i.h
7116 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7118 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7119 # mode. It turns out that the SunPro C++ compiler does not properly
7120 # handle '-M -o', and we need to detect this. Also, some Intel
7121 # versions had trouble with output in subdirs.
7122 am__obj=sub/conftest.${OBJEXT-o}
7123 am__minus_obj="-o $am__obj"
7126 # This depmode causes a compiler race in universal mode.
7127 test "$am__universal" = false || continue
7130 # After this tag, mechanisms are not by side-effect, so they'll
7131 # only be used when explicitly requested.
7132 if test "x$enable_dependency_tracking" = xyes; then
7138 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7139 # This compiler won't grok '-c -o', but also, the minuso test has
7140 # not run yet. These depmodes are late enough in the game, and
7141 # so weak that their functioning should not be impacted.
7142 am__obj=conftest.${OBJEXT-o}
7147 if depmode=$depmode \
7148 source=sub/conftest.c object=$am__obj \
7149 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7150 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7151 >/dev/null 2>conftest.err &&
7152 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7153 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7154 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7155 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7156 # icc doesn't choke on unknown options, it will just issue warnings
7157 # or remarks (even with -Werror). So we grep stderr for any message
7158 # that says an option was ignored or not supported.
7159 # When given -MP, icc 7.0 and 7.1 complain thusly:
7160 # icc: Command line warning: ignoring option '-M'; no argument required
7161 # The diagnosis changed in icc 8.0:
7162 # icc: Command line remark: option '-MP' not supported
7163 if (grep 'ignoring option' conftest.err ||
7164 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7165 am_cv_CC_dependencies_compiler_type=$depmode
7174 am_cv_CC_dependencies_compiler_type=none
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7179 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7180 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7183 test "x$enable_dependency_tracking" != xno \
7184 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7186 am__fastdepCC_FALSE='#'
7188 am__fastdepCC_TRUE='#'
7189 am__fastdepCC_FALSE=
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7200 # On Suns, sometimes $CPP names a directory.
7201 if test -n "$CPP" && test -d "$CPP"; then
7204 if test -z "$CPP"; then
7205 if ${ac_cv_prog_CPP+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 # Double quotes because CPP needs to be expanded
7209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7212 for ac_c_preproc_warn_flag in '' yes
7214 # Use a header file that comes with gcc, so configuring glibc
7215 # with a fresh cross-compiler works.
7216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7217 # <limits.h> exists even on freestanding compilers.
7218 # On the NeXT, cc -E runs the code through the compiler's parser,
7219 # not just through cpp. "Syntax error" is here to catch this case.
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7223 # include <limits.h>
7225 # include <assert.h>
7229 if ac_fn_c_try_cpp "$LINENO"; then :
7232 # Broken: fails on valid input.
7235 rm -f conftest.err conftest.i conftest.$ac_ext
7237 # OK, works on sane cases. Now check whether nonexistent headers
7238 # can be detected and how.
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <ac_nonexistent.h>
7243 if ac_fn_c_try_cpp "$LINENO"; then :
7244 # Broken: success on invalid input.
7247 # Passes both tests.
7251 rm -f conftest.err conftest.i conftest.$ac_ext
7254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7255 rm -f conftest.i conftest.err conftest.$ac_ext
7256 if $ac_preproc_ok; then :
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7269 $as_echo "$CPP" >&6; }
7271 for ac_c_preproc_warn_flag in '' yes
7273 # Use a header file that comes with gcc, so configuring glibc
7274 # with a fresh cross-compiler works.
7275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7276 # <limits.h> exists even on freestanding compilers.
7277 # On the NeXT, cc -E runs the code through the compiler's parser,
7278 # not just through cpp. "Syntax error" is here to catch this case.
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7282 # include <limits.h>
7284 # include <assert.h>
7288 if ac_fn_c_try_cpp "$LINENO"; then :
7291 # Broken: fails on valid input.
7294 rm -f conftest.err conftest.i conftest.$ac_ext
7296 # OK, works on sane cases. Now check whether nonexistent headers
7297 # can be detected and how.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 #include <ac_nonexistent.h>
7302 if ac_fn_c_try_cpp "$LINENO"; then :
7303 # Broken: success on invalid input.
7306 # Passes both tests.
7310 rm -f conftest.err conftest.i conftest.$ac_ext
7313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7314 rm -f conftest.i conftest.err conftest.$ac_ext
7315 if $ac_preproc_ok; then :
7318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7320 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7321 See \`config.log' for more details" "$LINENO" 5; }
7325 ac_cpp='$CPP $CPPFLAGS'
7326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7332 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7336 $as_echo_n "checking whether ln -s works... " >&6; }
7338 if test "$LN_S" = "ln -s"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7343 $as_echo "no, using $LN_S" >&6; }
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_RANLIB+:} false; then :
7352 $as_echo_n "(cached) " >&6
7354 if test -n "$RANLIB"; then
7355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386 ac_ct_RANLIB=$RANLIB
7387 # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 if test -n "$ac_ct_RANLIB"; then
7395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_RANLIB="ranlib"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_RANLIB" = x; then
7426 case $cross_compiling:$ac_tool_warned in
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7432 RANLIB=$ac_ct_RANLIB
7435 RANLIB="$ac_cv_prog_RANLIB"
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}ar; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_AR+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 if test -n "$AR"; then
7447 ac_cv_prog_AR="$AR" # Let the user override the test.
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_AR="${ac_tool_prefix}ar"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 if test -n "$AR"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7469 $as_echo "$AR" >&6; }
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7477 if test -z "$ac_cv_prog_AR"; then
7479 # Extract the first word of "ar", so it can be a program name with args.
7480 set dummy ar; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7484 $as_echo_n "(cached) " >&6
7486 if test -n "$ac_ct_AR"; then
7487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_AR="ar"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7507 if test -n "$ac_ct_AR"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7509 $as_echo "$ac_ct_AR" >&6; }
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7515 if test "x$ac_ct_AR" = x; then
7518 case $cross_compiling:$ac_tool_warned in
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7530 # Extract the first word of ""perl"", so it can be a program name with args.
7531 set dummy "perl"; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_path_PERL+:} false; then :
7535 $as_echo_n "(cached) " >&6
7539 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560 PERL=$ac_cv_path_PERL
7561 if test -n "$PERL"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7563 $as_echo "$PERL" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}windres; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_WINDRES+:} false; then :
7576 $as_echo_n "(cached) " >&6
7578 if test -n "$WINDRES"; then
7579 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 WINDRES=$ac_cv_prog_WINDRES
7599 if test -n "$WINDRES"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7601 $as_echo "$WINDRES" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7609 if test -z "$ac_cv_prog_WINDRES"; then
7610 ac_ct_WINDRES=$WINDRES
7611 # Extract the first word of "windres", so it can be a program name with args.
7612 set dummy windres; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -n "$ac_ct_WINDRES"; then
7619 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_WINDRES="windres"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7639 if test -n "$ac_ct_WINDRES"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7641 $as_echo "$ac_ct_WINDRES" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7647 if test "x$ac_ct_WINDRES" = x; then
7650 case $cross_compiling:$ac_tool_warned in
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7656 WINDRES=$ac_ct_WINDRES
7659 WINDRES="$ac_cv_prog_WINDRES"
7662 # Extract the first word of ""yat2m"", so it can be a program name with args.
7663 set dummy "yat2m"; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_path_YAT2M+:} false; then :
7667 $as_echo_n "(cached) " >&6
7671 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 test -z "$as_dir" && as_dir=.
7679 for ac_exec_ext in '' $ac_executable_extensions; do
7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7681 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7693 YAT2M=$ac_cv_path_YAT2M
7694 if test -n "$YAT2M"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7696 $as_echo "$YAT2M" >&6; }
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7704 if test -n "$ac_cv_path_YAT2M"; then
7706 HAVE_YAT2M_FALSE='#'
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7713 $as_echo_n "checking for library containing strerror... " >&6; }
7714 if ${ac_cv_search_strerror+:} false; then :
7715 $as_echo_n "(cached) " >&6
7717 ac_func_search_save_LIBS=$LIBS
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7721 /* Override any GCC internal prototype to avoid an error.
7722 Use char because int might match the return type of a GCC
7723 builtin and then its argument prototype would still apply. */
7736 for ac_lib in '' cposix; do
7737 if test -z "$ac_lib"; then
7738 ac_res="none required"
7741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7743 if ac_fn_c_try_link "$LINENO"; then :
7744 ac_cv_search_strerror=$ac_res
7746 rm -f core conftest.err conftest.$ac_objext \
7748 if ${ac_cv_search_strerror+:} false; then :
7752 if ${ac_cv_search_strerror+:} false; then :
7755 ac_cv_search_strerror=no
7758 LIBS=$ac_func_search_save_LIBS
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7761 $as_echo "$ac_cv_search_strerror" >&6; }
7762 ac_res=$ac_cv_search_strerror
7763 if test "$ac_res" != no; then :
7764 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7768 # Check whether --enable-largefile was given.
7769 if test "${enable_largefile+set}" = set; then :
7770 enableval=$enable_largefile;
7773 if test "$enable_largefile" != no; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7776 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7777 if ${ac_cv_sys_largefile_CC+:} false; then :
7778 $as_echo_n "(cached) " >&6
7780 ac_cv_sys_largefile_CC=no
7781 if test "$GCC" != yes; then
7784 # IRIX 6.2 and later do not support large files by default,
7785 # so use the C compiler's -n32 option if that helps.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <sys/types.h>
7789 /* Check that off_t can represent 2**63 - 1 correctly.
7790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7791 since some C++ compilers masquerading as C compilers
7792 incorrectly reject 9223372036854775807. */
7793 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7795 && LARGE_OFF_T % 2147483647 == 1)
7805 if ac_fn_c_try_compile "$LINENO"; then :
7808 rm -f core conftest.err conftest.$ac_objext
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 ac_cv_sys_largefile_CC=' -n32'; break
7813 rm -f core conftest.err conftest.$ac_objext
7817 rm -f conftest.$ac_ext
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7821 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7822 if test "$ac_cv_sys_largefile_CC" != no; then
7823 CC=$CC$ac_cv_sys_largefile_CC
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7827 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7828 if ${ac_cv_sys_file_offset_bits+:} false; then :
7829 $as_echo_n "(cached) " >&6
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <sys/types.h>
7835 /* Check that off_t can represent 2**63 - 1 correctly.
7836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7837 since some C++ compilers masquerading as C compilers
7838 incorrectly reject 9223372036854775807. */
7839 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7841 && LARGE_OFF_T % 2147483647 == 1)
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852 ac_cv_sys_file_offset_bits=no; break
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 #define _FILE_OFFSET_BITS 64
7858 #include <sys/types.h>
7859 /* Check that off_t can represent 2**63 - 1 correctly.
7860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7861 since some C++ compilers masquerading as C compilers
7862 incorrectly reject 9223372036854775807. */
7863 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7865 && LARGE_OFF_T % 2147483647 == 1)
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876 ac_cv_sys_file_offset_bits=64; break
7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879 ac_cv_sys_file_offset_bits=unknown
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7885 case $ac_cv_sys_file_offset_bits in #(
7888 cat >>confdefs.h <<_ACEOF
7889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7894 if test $ac_cv_sys_file_offset_bits = unknown; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7897 if ${ac_cv_sys_large_files+:} false; then :
7898 $as_echo_n "(cached) " >&6
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 #include <sys/types.h>
7904 /* Check that off_t can represent 2**63 - 1 correctly.
7905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7906 since some C++ compilers masquerading as C compilers
7907 incorrectly reject 9223372036854775807. */
7908 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7910 && LARGE_OFF_T % 2147483647 == 1)
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 ac_cv_sys_large_files=no; break
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #define _LARGE_FILES 1
7927 #include <sys/types.h>
7928 /* Check that off_t can represent 2**63 - 1 correctly.
7929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7930 since some C++ compilers masquerading as C compilers
7931 incorrectly reject 9223372036854775807. */
7932 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7934 && LARGE_OFF_T % 2147483647 == 1)
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_cv_sys_large_files=1; break
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 ac_cv_sys_large_files=unknown
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7953 $as_echo "$ac_cv_sys_large_files" >&6; }
7954 case $ac_cv_sys_large_files in #(
7957 cat >>confdefs.h <<_ACEOF
7958 #define _LARGE_FILES $ac_cv_sys_large_files
7970 # GNU AWK requires -n option to interpret "0xHH" as a number
7971 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7972 AWK_HEX_NUMBER_OPTION=''
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7974 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7976 AWK_HEX_NUMBER_OPTION='-n'
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7978 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7982 # We need to compile and run a program on the build machine. A
7983 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7984 # the AC archive is broken for autoconf 2.57. Given that there is no
7985 # newer version of that macro, we assume that it is also broken for
7986 # autoconf 2.61 and thus we use a simple but usually sufficient
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7989 $as_echo_n "checking for cc for build... " >&6; }
7990 if test "$cross_compiling" = "yes"; then
7991 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7993 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7996 $as_echo "$CC_FOR_BUILD" >&6; }
7999 # We need to call this macro because other pkg-config macros are
8008 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8009 if test -n "$ac_tool_prefix"; then
8010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013 $as_echo_n "checking for $ac_word... " >&6; }
8014 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8015 $as_echo_n "(cached) " >&6
8019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8041 if test -n "$PKG_CONFIG"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8043 $as_echo "$PKG_CONFIG" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8051 if test -z "$ac_cv_path_PKG_CONFIG"; then
8052 ac_pt_PKG_CONFIG=$PKG_CONFIG
8053 # Extract the first word of "pkg-config", so it can be a program name with args.
8054 set dummy pkg-config; ac_word=$2
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8056 $as_echo_n "checking for $ac_word... " >&6; }
8057 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8058 $as_echo_n "(cached) " >&6
8060 case $ac_pt_PKG_CONFIG in
8062 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069 test -z "$as_dir" && as_dir=.
8070 for ac_exec_ext in '' $ac_executable_extensions; do
8071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8084 if test -n "$ac_pt_PKG_CONFIG"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8086 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8092 if test "x$ac_pt_PKG_CONFIG" = x; then
8095 case $cross_compiling:$ac_tool_warned in
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8101 PKG_CONFIG=$ac_pt_PKG_CONFIG
8104 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8108 if test -n "$PKG_CONFIG"; then
8109 _pkg_min_version=0.9.0
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8111 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8112 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8114 $as_echo "yes" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8125 have_dosish_system=no
8127 have_w32ce_system=no
8128 have_android_system=no
8129 use_simple_gettext=no
8131 require_pipe_to_unblock_pselect=yes
8134 # special stuff for Windoze NT
8135 ac_cv_have_dev_random=no
8137 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8140 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8142 have_dosish_system=yes
8145 require_pipe_to_unblock_pselect=no
8148 have_w32ce_system=yes
8152 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8157 use_simple_gettext=yes
8161 i?86-emx-os2 | i?86-*-os2*emx )
8162 # OS/2 with the EMX environment
8163 ac_cv_have_dev_random=no
8164 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8166 have_dosish_system=yes
8172 # DOS with the DJGPP environment
8173 ac_cv_have_dev_random=no
8174 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8176 have_dosish_system=yes
8182 if test -z "$GCC" ; then
8183 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8187 if test -z "$GCC" ; then
8188 # Suppress all warnings
8189 # to get rid of the unsigned/signed char mismatch warnings.
8194 if test -z "$GCC" ; then
8195 # Use the newer compiler `-msg_disable ptrmismatch1' to
8196 # get rid of the unsigned/signed char mismatch warnings.
8197 # Using this may hide other pointer mismatch warnings, but
8198 # it at least lets other warning classes through
8199 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8205 have_android_system=yes
8206 # Android is fully utf-8 and we do not want to use iconv to
8207 # keeps things simple
8213 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8217 require_pipe_to_unblock_pselect=yes
8223 if test "$require_pipe_to_unblock_pselect" = yes; then
8225 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8229 if test "$have_dosish_system" = yes; then
8231 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8234 if test "$have_dosish_system" = yes; then
8235 HAVE_DOSISH_SYSTEM_TRUE=
8236 HAVE_DOSISH_SYSTEM_FALSE='#'
8238 HAVE_DOSISH_SYSTEM_TRUE='#'
8239 HAVE_DOSISH_SYSTEM_FALSE=
8243 if test x"$use_simple_gettext" = xyes; then
8244 USE_SIMPLE_GETTEXT_TRUE=
8245 USE_SIMPLE_GETTEXT_FALSE='#'
8247 USE_SIMPLE_GETTEXT_TRUE='#'
8248 USE_SIMPLE_GETTEXT_FALSE=
8252 if test "$have_w32_system" = yes; then
8254 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8256 if test "$have_w32ce_system" = yes; then
8258 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8261 for ac_header in winsock2.h
8263 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8264 if test "x$ac_cv_header_winsock2_h" = xyes; then :
8265 cat >>confdefs.h <<_ACEOF
8266 #define HAVE_WINSOCK2_H 1
8274 if test "$have_w32_system" = yes; then
8275 HAVE_W32_SYSTEM_TRUE=
8276 HAVE_W32_SYSTEM_FALSE='#'
8278 HAVE_W32_SYSTEM_TRUE='#'
8279 HAVE_W32_SYSTEM_FALSE=
8282 if test "$have_w32ce_system" = yes; then
8283 HAVE_W32CE_SYSTEM_TRUE=
8284 HAVE_W32CE_SYSTEM_FALSE='#'
8286 HAVE_W32CE_SYSTEM_TRUE='#'
8287 HAVE_W32CE_SYSTEM_FALSE=
8291 if test "$have_android_system" = yes; then
8293 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8296 if test "$have_android_system" = yes; then
8297 HAVE_ANDROID_SYSTEM_TRUE=
8298 HAVE_ANDROID_SYSTEM_FALSE='#'
8300 HAVE_ANDROID_SYSTEM_TRUE='#'
8301 HAVE_ANDROID_SYSTEM_FALSE=
8306 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8308 cat >>confdefs.h <<_ACEOF
8309 #define EXEEXT "$EXEEXT"
8315 # Checks for libraries.
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8318 $as_echo "$as_me: checking for libraries" >&6;}
8322 # gpgrt (aka libgpg-error) is a library with error codes shared
8323 # between GnuPG related projects.
8326 gpg_error_config_prefix=""
8328 # Check whether --with-libgpg-error-prefix was given.
8329 if test "${with_libgpg_error_prefix+set}" = set; then :
8330 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8335 # Check whether --with-gpg-error-prefix was given.
8336 if test "${with_gpg_error_prefix+set}" = set; then :
8337 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8341 if test x"${GPG_ERROR_CONFIG}" = x ; then
8342 if test x"${gpg_error_config_prefix}" != x ; then
8343 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8345 case "${SYSROOT}" in
8347 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8348 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8355 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8361 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8362 set dummy gpg-error-config; ac_word=$2
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364 $as_echo_n "checking for $ac_word... " >&6; }
8365 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8366 $as_echo_n "(cached) " >&6
8368 case $GPG_ERROR_CONFIG in
8370 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 test -z "$as_dir" && as_dir=.
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8380 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8392 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8393 if test -n "$GPG_ERROR_CONFIG"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8395 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8402 min_gpg_error_version="$NEED_GPGRT_VERSION"
8405 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8406 set dummy gpgrt-config; ac_word=$2
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8410 $as_echo_n "(cached) " >&6
8412 case $GPGRT_CONFIG in
8414 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 as_dummy="$prefix/bin:$PATH"
8419 for as_dir in $as_dummy
8422 test -z "$as_dir" && as_dir=.
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8425 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8437 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8438 if test -n "$GPGRT_CONFIG"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8440 $as_echo "$GPGRT_CONFIG" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8447 if test "$GPGRT_CONFIG" != "no"; then
8448 # Determine gpgrt_libdir
8450 # Get the prefix of gpgrt-config assuming it's something like:
8451 # <PREFIX>/bin/gpgrt-config
8452 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8453 possible_libdir1=${gpgrt_prefix}/lib
8454 # Determine by using system libdir-format with CC, it's like:
8455 # Normal style: /usr/lib
8456 # GNU cross style: /usr/<triplet>/lib
8457 # Debian style: /usr/lib/<multiarch-name>
8458 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8459 # It is assumed that CC is specified to the one of host on cross build.
8460 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8461 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8463 # From the output of -print-search-dirs, select valid pkgconfig dirs.
8464 libdir_candidates=$(for dir in $libdir_candidates; do
8465 if p=$(cd $dir 2>/dev/null && pwd); then
8466 test -d "$p/pkgconfig" && echo $p;
8470 for possible_libdir0 in $libdir_candidates; do
8472 # Fallback candidate, the one of system-installed (by $CC)
8473 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8475 # Another candidate, user-locally-installed
8476 # (<gpgrt_prefix>/lib)
8479 # (<gpgrt_prefix>/<triplet>/lib,
8480 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8481 if test "${possible_libdir0##*/}" = "lib"; then
8482 possible_prefix0=${possible_libdir0%/lib}
8483 possible_prefix0_triplet=${possible_prefix0##*/}
8484 if test -z "$possible_prefix0_triplet"; then
8487 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8489 possible_prefix0=${possible_libdir0%%/lib*}
8490 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8492 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8493 gpgrt_libdir=${possible_libdir2}
8494 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8495 gpgrt_libdir=${possible_libdir1}
8496 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8497 gpgrt_libdir=${possible_libdir0}
8499 if test -n "$gpgrt_libdir"; then break; fi
8502 # When we cannot determine system libdir-format, use this:
8503 gpgrt_libdir=${possible_libdir1}
8509 if test -n "$gpgrt_libdir"; then
8510 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8511 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8512 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8514 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8515 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8519 elif test "$GPG_ERROR_CONFIG" != "no"; then
8520 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8522 if test "$GPG_ERROR_CONFIG" != "no"; then
8523 req_major=`echo $min_gpg_error_version | \
8524 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8525 req_minor=`echo $min_gpg_error_version | \
8526 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8527 major=`echo $gpg_error_config_version | \
8528 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8529 minor=`echo $gpg_error_config_version | \
8530 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8531 if test "$major" -gt "$req_major"; then
8534 if test "$major" -eq "$req_major"; then
8535 if test "$minor" -ge "$req_minor"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8542 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8543 if test $ok = yes; then
8544 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8545 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8546 if test -z "$GPGRT_CONFIG"; then
8547 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8548 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8550 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8551 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8552 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8553 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8556 $as_echo "yes ($gpg_error_config_version)" >&6; }
8558 if test -z "$GPGRT_CONFIG"; then
8559 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8561 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8563 if test x"$gpg_error_config_host" != xnone ; then
8564 if test x"$gpg_error_config_host" != x"$host" ; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8567 *** The config script \"$GPG_ERROR_CONFIG\" was
8568 *** built for $gpg_error_config_host and thus may not match the
8569 *** used host $host.
8570 *** You may want to use the configure option --with-libgpg-error-prefix
8571 *** to specify a matching config script or use \$SYSROOT.
8573 $as_echo "$as_me: WARNING:
8575 *** The config script \"$GPG_ERROR_CONFIG\" was
8576 *** built for $gpg_error_config_host and thus may not match the
8577 *** used host $host.
8578 *** You may want to use the configure option --with-libgpg-error-prefix
8579 *** to specify a matching config script or use \$SYSROOT.
8581 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8587 GPG_ERROR_MT_CFLAGS=""
8588 GPG_ERROR_MT_LIBS=""
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8601 # Libgcrypt is our generic crypto library
8605 # Check whether --with-libgcrypt-prefix was given.
8606 if test "${with_libgcrypt_prefix+set}" = set; then :
8607 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8609 libgcrypt_config_prefix=""
8612 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8613 if test x"${libgcrypt_config_prefix}" != x ; then
8614 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8619 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8620 if $GPGRT_CONFIG libgcrypt --exists; then
8621 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8623 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8624 use_gpgrt_config=yes
8627 if test -z "$use_gpgrt_config"; then
8628 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8629 case "${SYSROOT}" in
8631 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8632 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8639 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8643 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8644 set dummy libgcrypt-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 case $LIBGCRYPT_CONFIG in
8652 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8674 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8675 if test -n "$LIBGCRYPT_CONFIG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8677 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8686 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8687 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8688 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8689 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8692 min_libgcrypt_version="$tmp"
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8696 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8698 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8699 req_major=`echo $min_libgcrypt_version | \
8700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8701 req_minor=`echo $min_libgcrypt_version | \
8702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8703 req_micro=`echo $min_libgcrypt_version | \
8704 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8705 if test -z "$use_gpgrt_config"; then
8706 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8708 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8710 major=`echo $libgcrypt_config_version | \
8711 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8712 minor=`echo $libgcrypt_config_version | \
8713 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8714 micro=`echo $libgcrypt_config_version | \
8715 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8716 if test "$major" -gt "$req_major"; then
8719 if test "$major" -eq "$req_major"; then
8720 if test "$minor" -gt "$req_minor"; then
8723 if test "$minor" -eq "$req_minor"; then
8724 if test "$micro" -ge "$req_micro"; then
8732 if test $ok = yes; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8734 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8739 if test $ok = yes; then
8740 # If we have a recent libgcrypt, we should also check that the
8742 if test "$req_libgcrypt_api" -gt 0 ; then
8743 if test -z "$use_gpgrt_config"; then
8744 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8746 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8748 if test "$tmp" -gt 0 ; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8750 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8751 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8753 $as_echo "okay" >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8757 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8762 if test $ok = yes; then
8763 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8764 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8766 if test -z "$use_gpgrt_config"; then
8767 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8769 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8771 if test x"$libgcrypt_config_host" != xnone ; then
8772 if test x"$libgcrypt_config_host" != x"$host" ; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8775 *** The config script \"$LIBGCRYPT_CONFIG\" was
8776 *** built for $libgcrypt_config_host and thus may not match the
8777 *** used host $host.
8778 *** You may want to use the configure option --with-libgcrypt-prefix
8779 *** to specify a matching config script or use \$SYSROOT.
8781 $as_echo "$as_me: WARNING:
8783 *** The config script \"$LIBGCRYPT_CONFIG\" was
8784 *** built for $libgcrypt_config_host and thus may not match the
8785 *** used host $host.
8786 *** You may want to use the configure option --with-libgcrypt-prefix
8787 *** to specify a matching config script or use \$SYSROOT.
8789 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8800 # And, then, check if it's newer than 1.9.0 so that we can
8801 # conditionally build some programs.
8802 # Note: This is not anymore needed but keep the code commented in case
8803 # we need it again with some future libgcrypt.
8804 #have_libgcrypt_newer=no
8805 #if test $ok = yes; then
8806 # if test "$major" -gt 1; then
8807 # have_libgcrypt_newer=yes
8809 # if test "$major" -eq 1; then
8810 # if test "$minor" -gt 9; then
8811 # have_libgcrypt_newer=yes
8813 # if test "$minor" -eq 9; then
8814 # if test "$micro" -ge 0; then
8815 # have_libgcrypt_newer=yes
8822 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8825 # libassuan is used for IPC
8829 # Check whether --with-libassuan-prefix was given.
8830 if test "${with_libassuan_prefix+set}" = set; then :
8831 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8833 libassuan_config_prefix=""
8836 if test x$libassuan_config_prefix != x ; then
8837 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8838 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8843 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8844 if $GPGRT_CONFIG libassuan --exists; then
8845 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8847 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8848 use_gpgrt_config=yes
8851 if test -z "$use_gpgrt_config"; then
8852 # Extract the first word of "libassuan-config", so it can be a program name with args.
8853 set dummy libassuan-config; ac_word=$2
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8855 $as_echo_n "checking for $ac_word... " >&6; }
8856 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8857 $as_echo_n "(cached) " >&6
8859 case $LIBASSUAN_CONFIG in
8861 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 test -z "$as_dir" && as_dir=.
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8871 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8883 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8884 if test -n "$LIBASSUAN_CONFIG"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8886 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8895 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8896 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8897 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8898 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8901 min_libassuan_version="$tmp"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8905 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8907 if test "$LIBASSUAN_CONFIG" != "no"; then
8908 req_major=`echo $min_libassuan_version | \
8909 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8910 req_minor=`echo $min_libassuan_version | \
8911 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8912 req_micro=`echo $min_libassuan_version | \
8913 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8915 if test -z "$use_gpgrt_config"; then
8916 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8918 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8920 major=`echo $libassuan_config_version | \
8921 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8922 minor=`echo $libassuan_config_version | \
8923 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8924 micro=`echo $libassuan_config_version | \
8925 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8927 if test "$major" -gt "$req_major"; then
8930 if test "$major" -eq "$req_major"; then
8931 if test "$minor" -gt "$req_minor"; then
8934 if test "$minor" -eq "$req_minor"; then
8935 if test "$micro" -ge "$req_micro"; then
8944 if test $ok = yes; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8946 $as_echo "yes ($libassuan_config_version)" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8952 if test $ok = yes; then
8953 if test "$req_libassuan_api" -gt 0 ; then
8954 if test -z "$use_gpgrt_config"; then
8955 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8957 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8959 if test "$tmp" -gt 0 ; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8961 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8962 if test "$req_libassuan_api" -eq "$tmp" ; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8964 $as_echo "okay" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8968 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8974 if test $ok = yes; then
8975 if test x"$host" != x ; then
8976 if test -z "$use_gpgrt_config"; then
8977 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8979 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8981 if test x"$libassuan_config_host" != xnone ; then
8982 if test x"$libassuan_config_host" != x"$host" ; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8985 *** The config script \"$LIBASSUAN_CONFIG\" was
8986 *** built for $libassuan_config_host and thus may not match the
8987 *** used host $host.
8988 *** You may want to use the configure option --with-libassuan-prefix
8989 *** to specify a matching config script.
8991 $as_echo "$as_me: WARNING:
8993 *** The config script \"$LIBASSUAN_CONFIG\" was
8994 *** built for $libassuan_config_host and thus may not match the
8995 *** used host $host.
8996 *** You may want to use the configure option --with-libassuan-prefix
8997 *** to specify a matching config script.
9004 if test $ok = yes; then
9005 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
9006 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9016 if test "$have_libassuan" = "yes"; then
9018 cat >>confdefs.h <<_ACEOF
9019 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9022 show_tor_support="only .onion"
9027 # libksba is our X.509 support library
9031 # Check whether --with-libksba-prefix was given.
9032 if test "${with_libksba_prefix+set}" = set; then :
9033 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9035 ksba_config_prefix=""
9040 # Check whether --with-ksba-prefix was given.
9041 if test "${with_ksba_prefix+set}" = set; then :
9042 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9044 ksba_config_prefix=""
9048 if test x$ksba_config_prefix != x ; then
9049 if test x${KSBA_CONFIG+set} != xset ; then
9050 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9055 if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9056 if $GPGRT_CONFIG ksba --exists; then
9057 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9059 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9060 use_gpgrt_config=yes
9063 if test -z "$use_gpgrt_config"; then
9064 # Extract the first word of "ksba-config", so it can be a program name with args.
9065 set dummy ksba-config; ac_word=$2
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 $as_echo_n "checking for $ac_word... " >&6; }
9068 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9069 $as_echo_n "(cached) " >&6
9071 case $KSBA_CONFIG in
9073 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9083 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9095 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9096 if test -n "$KSBA_CONFIG"; then
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9098 $as_echo "$KSBA_CONFIG" >&6; }
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101 $as_echo "no" >&6; }
9107 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9108 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9109 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9110 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9113 min_ksba_version="$tmp"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9117 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9119 if test "$KSBA_CONFIG" != "no" ; then
9120 req_major=`echo $min_ksba_version | \
9121 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9122 req_minor=`echo $min_ksba_version | \
9123 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9124 req_micro=`echo $min_ksba_version | \
9125 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9126 if test -z "$use_gpgrt_config"; then
9127 ksba_config_version=`$KSBA_CONFIG --version`
9129 ksba_config_version=`$KSBA_CONFIG --modversion`
9131 major=`echo $ksba_config_version | \
9132 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9133 minor=`echo $ksba_config_version | \
9134 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9135 micro=`echo $ksba_config_version | \
9136 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9137 if test "$major" -gt "$req_major"; then
9140 if test "$major" -eq "$req_major"; then
9141 if test "$minor" -gt "$req_minor"; then
9144 if test "$minor" -eq "$req_minor"; then
9145 if test "$micro" -ge "$req_micro"; then
9153 if test $ok = yes; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9155 $as_echo "yes ($ksba_config_version)" >&6; }
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9160 if test $ok = yes; then
9161 # Even if we have a recent libksba, we should check that the
9162 # API is compatible.
9163 if test "$req_ksba_api" -gt 0 ; then
9164 if test -z "$use_gpgrt_config"; then
9165 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9167 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9169 if test "$tmp" -gt 0 ; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9171 $as_echo_n "checking KSBA API version... " >&6; }
9172 if test "$req_ksba_api" -eq "$tmp" ; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9174 $as_echo "okay" >&6; }
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9178 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
9183 if test $ok = yes; then
9184 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9185 KSBA_LIBS=`$KSBA_CONFIG --libs`
9187 if test -z "$use_gpgrt_config"; then
9188 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9190 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9192 if test x"$libksba_config_host" != xnone ; then
9193 if test x"$libksba_config_host" != x"$host" ; then
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9196 *** The config script \"$KSBA_CONFIG\" was
9197 *** built for $libksba_config_host and thus may not match the
9198 *** used host $host.
9199 *** You may want to use the configure option --with-libksba-prefix
9200 *** to specify a matching config script.
9202 $as_echo "$as_me: WARNING:
9204 *** The config script \"$KSBA_CONFIG\" was
9205 *** built for $libksba_config_host and thus may not match the
9206 *** used host $host.
9207 *** You may want to use the configure option --with-libksba-prefix
9208 *** to specify a matching config script.
9223 # libusb allows us to use the integrated CCID smartcard reader driver.
9225 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9226 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9235 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9238 # FreeBSD has a native 1.0 compatible library by -lusb.
9248 if test x"$LIBUSB_NAME" != x ; then
9249 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9251 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9252 if eval \${$as_ac_Lib+:} false; then :
9253 $as_echo_n "(cached) " >&6
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-l$LIBUSB_NAME $LIBS"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9266 char libusb_init ();
9270 return libusb_init ();
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 eval "$as_ac_Lib=yes"
9278 eval "$as_ac_Lib=no"
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 eval ac_res=\$$as_ac_Lib
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9286 $as_echo "$ac_res" >&6; }
9287 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9288 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9293 $as_echo_n "checking libusb include dir... " >&6; }
9294 usb_incdir_found="no"
9295 for _incdir in "" "/usr/include/libusb-1.0" \
9296 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9297 _libusb_save_cppflags=$CPPFLAGS
9298 if test -n "${_incdir}"; then
9299 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9305 if ac_fn_c_try_cpp "$LINENO"; then :
9306 usb_incdir=${_incdir}; usb_incdir_found="yes"
9308 rm -f conftest.err conftest.i conftest.$ac_ext
9309 CPPFLAGS=${_libusb_save_cppflags}
9310 if test "$usb_incdir_found" = "yes"; then
9314 if test "$usb_incdir_found" = "yes"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9316 $as_echo "${usb_incdir}" >&6; }
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9319 $as_echo "not found" >&6; }
9322 if test "$use_ccid_driver" != yes; then
9328 if test "$have_libusb" = yes; then
9330 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9333 if test x"$usb_incdir" = x; then
9336 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9343 # Check whether it is necessary to link against libdl.
9344 # (For example to load libpcsclite)
9346 gnupg_dlopen_save_libs="$LIBS"
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9349 $as_echo_n "checking for library containing dlopen... " >&6; }
9350 if ${ac_cv_search_dlopen+:} false; then :
9351 $as_echo_n "(cached) " >&6
9353 ac_func_search_save_LIBS=$LIBS
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9372 for ac_lib in '' c dl; do
9373 if test -z "$ac_lib"; then
9374 ac_res="none required"
9377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 ac_cv_search_dlopen=$ac_res
9382 rm -f core conftest.err conftest.$ac_objext \
9384 if ${ac_cv_search_dlopen+:} false; then :
9388 if ${ac_cv_search_dlopen+:} false; then :
9391 ac_cv_search_dlopen=no
9394 LIBS=$ac_func_search_save_LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9397 $as_echo "$ac_cv_search_dlopen" >&6; }
9398 ac_res=$ac_cv_search_dlopen
9399 if test "$ac_res" != no; then :
9400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9406 LIBS="$gnupg_dlopen_save_libs"
9411 # Check whether --enable-sqlite was given.
9412 if test "${enable_sqlite+set}" = set; then :
9413 enableval=$enable_sqlite; try_sqlite=$enableval
9419 if test x"$use_tofu" = xyes ; then
9420 if test x"$try_sqlite" = xyes ; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9424 $as_echo_n "checking for SQLITE3... " >&6; }
9426 if test -n "$SQLITE3_CFLAGS"; then
9427 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9428 elif test -n "$PKG_CONFIG"; then
9429 if test -n "$PKG_CONFIG" && \
9430 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9431 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9434 test $ac_status = 0; }; then
9435 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9436 test "x$?" != "x0" && pkg_failed=yes
9443 if test -n "$SQLITE3_LIBS"; then
9444 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9445 elif test -n "$PKG_CONFIG"; then
9446 if test -n "$PKG_CONFIG" && \
9447 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9448 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451 test $ac_status = 0; }; then
9452 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9453 test "x$?" != "x0" && pkg_failed=yes
9463 if test $pkg_failed = yes; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465 $as_echo "no" >&6; }
9467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9468 _pkg_short_errors_supported=yes
9470 _pkg_short_errors_supported=no
9472 if test $_pkg_short_errors_supported = yes; then
9473 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9475 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9477 # Put the nasty error message in config.log where it belongs
9478 echo "$SQLITE3_PKG_ERRORS" >&5
9481 elif test $pkg_failed = untried; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9486 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9487 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9489 $as_echo "yes" >&6; }
9493 if test "$have_sqlite" = "yes"; then
9499 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9502 *** Building without SQLite support - TOFU and Keyboxd disabled
9505 $as_echo "$as_me: WARNING:
9507 *** Building without SQLite support - TOFU and Keyboxd disabled
9512 if test "$have_sqlite" != "yes"; then
9517 if test "$have_sqlite" = "yes"; then
9526 if test x"$use_tofu" = xyes ; then
9528 $as_echo "#define USE_TOFU 1" >>confdefs.h
9535 # Extract the first word of "encfs", so it can be a program name with args.
9536 set dummy encfs; ac_word=$2
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538 $as_echo_n "checking for $ac_word... " >&6; }
9539 if ${ac_cv_path_ENCFS+:} false; then :
9540 $as_echo_n "(cached) " >&6
9544 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9562 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9566 ENCFS=$ac_cv_path_ENCFS
9567 if test -n "$ENCFS"; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9569 $as_echo "$ENCFS" >&6; }
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572 $as_echo "no" >&6; }
9577 cat >>confdefs.h <<_ACEOF
9578 #define ENCFS "${ENCFS}"
9582 # Extract the first word of "fusermount", so it can be a program name with args.
9583 set dummy fusermount; ac_word=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9587 $as_echo_n "(cached) " >&6
9591 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598 test -z "$as_dir" && as_dir=.
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9601 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9613 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9614 if test -n "$FUSERMOUNT"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9616 $as_echo "$FUSERMOUNT" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9624 cat >>confdefs.h <<_ACEOF
9625 #define FUSERMOUNT "${FUSERMOUNT}"
9632 # Check whether the nPth library is available
9635 # Check whether --with-npth-prefix was given.
9636 if test "${with_npth_prefix+set}" = set; then :
9637 withval=$with_npth_prefix; npth_config_prefix="$withval"
9639 npth_config_prefix=""
9642 if test "x$npth_config_prefix" != x ; then
9643 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9647 if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9648 if $GPGRT_CONFIG npth --exists; then
9649 NPTH_CONFIG="$GPGRT_CONFIG npth"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9651 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9652 use_gpgrt_config=yes
9655 if test -z "$use_gpgrt_config"; then
9656 # Extract the first word of "npth-config", so it can be a program name with args.
9657 set dummy npth-config; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9661 $as_echo_n "(cached) " >&6
9663 case $NPTH_CONFIG in
9665 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9683 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9687 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9688 if test -n "$NPTH_CONFIG"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9690 $as_echo "$NPTH_CONFIG" >&6; }
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9699 if test "$NPTH_CONFIG" != "no" ; then
9700 if test -z "$use_gpgrt_config"; then
9701 npth_version=`$NPTH_CONFIG --version`
9703 npth_version=`$NPTH_CONFIG --modversion`
9706 npth_version_major=`echo $npth_version | \
9707 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9708 npth_version_minor=`echo $npth_version | \
9709 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9711 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9712 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9713 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9714 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9717 min_npth_version="$tmp"
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9721 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9723 if test "$NPTH_CONFIG" != "no" ; then
9724 req_major=`echo $min_npth_version | \
9725 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9726 req_minor=`echo $min_npth_version | \
9727 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9728 if test "$npth_version_major" -gt "$req_major"; then
9731 if test "$npth_version_major" -eq "$req_major"; then
9732 if test "$npth_version_minor" -gt "$req_minor"; then
9735 if test "$npth_version_minor" -eq "$req_minor"; then
9742 if test $ok = yes; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9744 $as_echo "yes ($npth_version)" >&6; }
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9749 if test $ok = yes; then
9750 # If we have a recent NPTH, we should also check that the
9751 # API is compatible.
9752 if test "$req_npth_api" -gt 0 ; then
9753 if test -z "$use_gpgrt_config"; then
9754 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9756 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9758 if test "$tmp" -gt 0 ; then
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9760 $as_echo_n "checking NPTH API version... " >&6; }
9761 if test "$req_npth_api" -eq "$tmp" ; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9763 $as_echo "okay" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9767 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9772 if test $ok = yes; then
9773 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9774 NPTH_LIBS=`$NPTH_CONFIG --libs`
9776 if test -z "$use_gpgrt_config"; then
9777 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9779 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9781 if test x"$npth_config_host" != xnone ; then
9782 if test x"$npth_config_host" != x"$host" ; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9785 *** The config script \"$NPTH_CONFIG\" was
9786 *** built for $npth_config_host and thus may not match the
9787 *** used host $host.
9788 *** You may want to use the configure option --with-npth-prefix
9789 *** to specify a matching config script.
9791 $as_echo "$as_me: WARNING:
9793 *** The config script \"$NPTH_CONFIG\" was
9794 *** built for $npth_config_host and thus may not match the
9795 *** used host $host.
9796 *** You may want to use the configure option --with-npth-prefix
9797 *** to specify a matching config script.
9809 if test "$have_npth" = "yes"; then
9811 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9814 $as_echo "#define USE_NPTH 1" >>confdefs.h
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9819 *** To support concurrent access for example in gpg-agent and the SCdaemon
9820 *** we need the support of the New Portable Threads Library.
9822 $as_echo "$as_me: WARNING:
9824 *** To support concurrent access for example in gpg-agent and the SCdaemon
9825 *** we need the support of the New Portable Threads Library.
9829 # Enable debugging of nPth
9831 # Check whether --enable-npth-debug was given.
9832 if test "${enable_npth_debug+set}" = set; then :
9833 enableval=$enable_npth_debug; if test $enableval = yes ; then
9835 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9844 # NTBTLS is our TLS library. If it is not available we fall back to
9847 # Check whether --enable-ntbtls was given.
9848 if test "${enable_ntbtls+set}" = set; then :
9849 enableval=$enable_ntbtls; try_ntbtls=$enableval
9854 if test x"$try_ntbtls" = xyes ; then
9857 # Check whether --with-ntbtls-prefix was given.
9858 if test "${with_ntbtls_prefix+set}" = set; then :
9859 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9861 ntbtls_config_prefix=""
9864 if test x"${NTBTLS_CONFIG}" = x ; then
9865 if test x"${ntbtls_config_prefix}" != x ; then
9866 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9871 if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9872 if $GPGRT_CONFIG ntbtls --exists; then
9873 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9875 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9876 use_gpgrt_config=yes
9879 if test -z "$use_gpgrt_config"; then
9880 if test x"${NTBTLS_CONFIG}" = x ; then
9881 case "${SYSROOT}" in
9883 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9884 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9891 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9895 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9896 set dummy ntbtls-config; ac_word=$2
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9898 $as_echo_n "checking for $ac_word... " >&6; }
9899 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9900 $as_echo_n "(cached) " >&6
9902 case $NTBTLS_CONFIG in
9904 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9914 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9922 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9926 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9927 if test -n "$NTBTLS_CONFIG"; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9929 $as_echo "$NTBTLS_CONFIG" >&6; }
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932 $as_echo "no" >&6; }
9938 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9939 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9940 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9941 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9944 min_ntbtls_version="$tmp"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9948 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9950 if test "$NTBTLS_CONFIG" != "no" ; then
9951 req_major=`echo $min_ntbtls_version | \
9952 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9953 req_minor=`echo $min_ntbtls_version | \
9954 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9955 req_micro=`echo $min_ntbtls_version | \
9956 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9957 if test -z "$use_gpgrt_config"; then
9958 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9960 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9962 major=`echo $ntbtls_config_version | \
9963 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9964 minor=`echo $ntbtls_config_version | \
9965 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9966 micro=`echo $ntbtls_config_version | \
9967 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9968 if test "$major" -gt "$req_major"; then
9971 if test "$major" -eq "$req_major"; then
9972 if test "$minor" -gt "$req_minor"; then
9975 if test "$minor" -eq "$req_minor"; then
9976 if test "$micro" -ge "$req_micro"; then
9984 if test $ok = yes; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9986 $as_echo "yes ($ntbtls_config_version)" >&6; }
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9991 if test $ok = yes; then
9992 # If we have a recent ntbtls, we should also check that the
9994 if test "$req_ntbtls_api" -gt 0 ; then
9995 if test -z "$use_gpgrt_config"; then
9996 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9998 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
10000 if test "$tmp" -gt 0 ; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
10002 $as_echo_n "checking NTBTLS API version... " >&6; }
10003 if test "$req_ntbtls_api" -eq "$tmp" ; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
10005 $as_echo "okay" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
10009 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
10014 if test $ok = yes; then
10015 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10016 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10018 if test -z "$use_gpgrt_config"; then
10019 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10021 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10023 if test x"$ntbtls_config_host" != xnone ; then
10024 if test x"$ntbtls_config_host" != x"$host" ; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10027 *** The config script \"$NTBTLS_CONFIG\" was
10028 *** built for $ntbtls_config_host and thus may not match the
10029 *** used host $host.
10030 *** You may want to use the configure option --with-ntbtls-prefix
10031 *** to specify a matching config script or use \$SYSROOT.
10033 $as_echo "$as_me: WARNING:
10035 *** The config script \"$NTBTLS_CONFIG\" was
10036 *** built for $ntbtls_config_host and thus may not match the
10037 *** used host $host.
10038 *** You may want to use the configure option --with-ntbtls-prefix
10039 *** to specify a matching config script or use \$SYSROOT.
10041 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10053 if test "$have_ntbtls" = yes ; then
10054 use_tls_library=ntbtls
10056 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10059 # Check whether --enable-gnutls was given.
10060 if test "${enable_gnutls+set}" = set; then :
10061 enableval=$enable_gnutls; try_gnutls=$enableval
10066 if test x"$try_gnutls" = xyes ; then
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10070 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10072 if test -n "$LIBGNUTLS_CFLAGS"; then
10073 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10074 elif test -n "$PKG_CONFIG"; then
10075 if test -n "$PKG_CONFIG" && \
10076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10077 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080 test $ac_status = 0; }; then
10081 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10082 test "x$?" != "x0" && pkg_failed=yes
10089 if test -n "$LIBGNUTLS_LIBS"; then
10090 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10091 elif test -n "$PKG_CONFIG"; then
10092 if test -n "$PKG_CONFIG" && \
10093 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10094 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; }; then
10098 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10099 test "x$?" != "x0" && pkg_failed=yes
10109 if test $pkg_failed = yes; then
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10113 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10114 _pkg_short_errors_supported=yes
10116 _pkg_short_errors_supported=no
10118 if test $_pkg_short_errors_supported = yes; then
10119 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10121 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10123 # Put the nasty error message in config.log where it belongs
10124 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10127 elif test $pkg_failed = untried; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10132 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10133 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10139 if test "$have_gnutls" = "yes"; then
10142 use_tls_library=gnutls
10144 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10147 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10151 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10154 $as_echo "$as_me: WARNING:
10156 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10163 # Allow to set a fixed trust store file for system provided certificates.
10166 # Check whether --with-default-trust-store-file was given.
10167 if test "${with_default_trust_store_file+set}" = set; then :
10168 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10170 default_trust_store_file=""
10173 if test x"$default_trust_store_file" = xno;then
10174 default_trust_store_file=""
10176 if test x"$default_trust_store_file" != x ; then
10178 cat >>confdefs.h <<_ACEOF
10179 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10186 $as_echo "$as_me: checking for networking options" >&6;}
10189 # Must check for network library requirements before doing link tests
10190 # for ldap, for example. If ldap libs are static (or dynamic and without
10191 # ELF runtime link paths), then link will fail and LDAP support won't
10194 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10195 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10199 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10200 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10201 $as_echo_n "(cached) " >&6
10203 ac_check_lib_save_LIBS=$LIBS
10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10214 char gethostbyname ();
10218 return gethostbyname ();
10223 if ac_fn_c_try_link "$LINENO"; then :
10224 ac_cv_lib_nsl_gethostbyname=yes
10226 ac_cv_lib_nsl_gethostbyname=no
10228 rm -f core conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10233 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10234 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10235 NETLIBS="-lnsl $NETLIBS"
10240 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10241 if test "x$ac_cv_func_setsockopt" = xyes; then :
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10245 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10246 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10247 $as_echo_n "(cached) " >&6
10249 ac_check_lib_save_LIBS=$LIBS
10250 LIBS="-lsocket $LIBS"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10260 char setsockopt ();
10264 return setsockopt ();
10269 if ac_fn_c_try_link "$LINENO"; then :
10270 ac_cv_lib_socket_setsockopt=yes
10272 ac_cv_lib_socket_setsockopt=no
10274 rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS=$ac_check_lib_save_LIBS
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10279 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10280 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10281 NETLIBS="-lsocket $NETLIBS"
10289 # Check standard resolver functions.
10291 if test "$build_dirmngr" = "yes"; then
10292 _dns_save_libs=$LIBS
10295 # Find the system resolver which can always be enabled with
10296 # the dirmngr option --standard-resolver.
10298 # the double underscore thing is a glibc-ism?
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10300 $as_echo_n "checking for library containing res_query... " >&6; }
10301 if ${ac_cv_search_res_query+:} false; then :
10302 $as_echo_n "(cached) " >&6
10304 ac_func_search_save_LIBS=$LIBS
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10318 return res_query ();
10323 for ac_lib in '' resolv bind; do
10324 if test -z "$ac_lib"; then
10325 ac_res="none required"
10328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10330 if ac_fn_c_try_link "$LINENO"; then :
10331 ac_cv_search_res_query=$ac_res
10333 rm -f core conftest.err conftest.$ac_objext \
10335 if ${ac_cv_search_res_query+:} false; then :
10339 if ${ac_cv_search_res_query+:} false; then :
10342 ac_cv_search_res_query=no
10344 rm conftest.$ac_ext
10345 LIBS=$ac_func_search_save_LIBS
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10348 $as_echo "$ac_cv_search_res_query" >&6; }
10349 ac_res=$ac_cv_search_res_query
10350 if test "$ac_res" != no; then :
10351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10355 $as_echo_n "checking for library containing __res_query... " >&6; }
10356 if ${ac_cv_search___res_query+:} false; then :
10357 $as_echo_n "(cached) " >&6
10359 ac_func_search_save_LIBS=$LIBS
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10369 char __res_query ();
10373 return __res_query ();
10378 for ac_lib in '' resolv bind; do
10379 if test -z "$ac_lib"; then
10380 ac_res="none required"
10383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_search___res_query=$ac_res
10388 rm -f core conftest.err conftest.$ac_objext \
10390 if ${ac_cv_search___res_query+:} false; then :
10394 if ${ac_cv_search___res_query+:} false; then :
10397 ac_cv_search___res_query=no
10399 rm conftest.$ac_ext
10400 LIBS=$ac_func_search_save_LIBS
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10403 $as_echo "$ac_cv_search___res_query" >&6; }
10404 ac_res=$ac_cv_search___res_query
10405 if test "$ac_res" != no; then :
10406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10415 $as_echo_n "checking for library containing dn_expand... " >&6; }
10416 if ${ac_cv_search_dn_expand+:} false; then :
10417 $as_echo_n "(cached) " >&6
10419 ac_func_search_save_LIBS=$LIBS
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10433 return dn_expand ();
10438 for ac_lib in '' resolv bind; do
10439 if test -z "$ac_lib"; then
10440 ac_res="none required"
10443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 ac_cv_search_dn_expand=$ac_res
10448 rm -f core conftest.err conftest.$ac_objext \
10450 if ${ac_cv_search_dn_expand+:} false; then :
10454 if ${ac_cv_search_dn_expand+:} false; then :
10457 ac_cv_search_dn_expand=no
10459 rm conftest.$ac_ext
10460 LIBS=$ac_func_search_save_LIBS
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10463 $as_echo "$ac_cv_search_dn_expand" >&6; }
10464 ac_res=$ac_cv_search_dn_expand
10465 if test "$ac_res" != no; then :
10466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10470 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10471 if ${ac_cv_search___dn_expand+:} false; then :
10472 $as_echo_n "(cached) " >&6
10474 ac_func_search_save_LIBS=$LIBS
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10484 char __dn_expand ();
10488 return __dn_expand ();
10493 for ac_lib in '' resolv bind; do
10494 if test -z "$ac_lib"; then
10495 ac_res="none required"
10498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10500 if ac_fn_c_try_link "$LINENO"; then :
10501 ac_cv_search___dn_expand=$ac_res
10503 rm -f core conftest.err conftest.$ac_objext \
10505 if ${ac_cv_search___dn_expand+:} false; then :
10509 if ${ac_cv_search___dn_expand+:} false; then :
10512 ac_cv_search___dn_expand=no
10514 rm conftest.$ac_ext
10515 LIBS=$ac_func_search_save_LIBS
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10518 $as_echo "$ac_cv_search___dn_expand" >&6; }
10519 ac_res=$ac_cv_search___dn_expand
10520 if test "$ac_res" != no; then :
10521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10530 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10531 # and for some reason fools us into believing we don't need
10532 # -lresolv even if we do. Since the test program checking for the
10533 # symbol does not include <resolv.h>, we need to check for the
10534 # renamed symbol explicitly.
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10536 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10537 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10538 $as_echo_n "(cached) " >&6
10540 ac_func_search_save_LIBS=$LIBS
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10544 /* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
10550 char res_9_dn_skipname ();
10554 return res_9_dn_skipname ();
10559 for ac_lib in '' resolv bind; do
10560 if test -z "$ac_lib"; then
10561 ac_res="none required"
10564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_search_res_9_dn_skipname=$ac_res
10569 rm -f core conftest.err conftest.$ac_objext \
10571 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10575 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10578 ac_cv_search_res_9_dn_skipname=no
10580 rm conftest.$ac_ext
10581 LIBS=$ac_func_search_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10584 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10585 ac_res=$ac_cv_search_res_9_dn_skipname
10586 if test "$ac_res" != no; then :
10587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10591 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10592 if ${ac_cv_search_dn_skipname+:} false; then :
10593 $as_echo_n "(cached) " >&6
10595 ac_func_search_save_LIBS=$LIBS
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10605 char dn_skipname ();
10609 return dn_skipname ();
10614 for ac_lib in '' resolv bind; do
10615 if test -z "$ac_lib"; then
10616 ac_res="none required"
10619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10621 if ac_fn_c_try_link "$LINENO"; then :
10622 ac_cv_search_dn_skipname=$ac_res
10624 rm -f core conftest.err conftest.$ac_objext \
10626 if ${ac_cv_search_dn_skipname+:} false; then :
10630 if ${ac_cv_search_dn_skipname+:} false; then :
10633 ac_cv_search_dn_skipname=no
10635 rm conftest.$ac_ext
10636 LIBS=$ac_func_search_save_LIBS
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10639 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10640 ac_res=$ac_cv_search_dn_skipname
10641 if test "$ac_res" != no; then :
10642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10646 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10647 if ${ac_cv_search___dn_skipname+:} false; then :
10648 $as_echo_n "(cached) " >&6
10650 ac_func_search_save_LIBS=$LIBS
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10660 char __dn_skipname ();
10664 return __dn_skipname ();
10669 for ac_lib in '' resolv bind; do
10670 if test -z "$ac_lib"; then
10671 ac_res="none required"
10674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10676 if ac_fn_c_try_link "$LINENO"; then :
10677 ac_cv_search___dn_skipname=$ac_res
10679 rm -f core conftest.err conftest.$ac_objext \
10681 if ${ac_cv_search___dn_skipname+:} false; then :
10685 if ${ac_cv_search___dn_skipname+:} false; then :
10688 ac_cv_search___dn_skipname=no
10690 rm conftest.$ac_ext
10691 LIBS=$ac_func_search_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10694 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10695 ac_res=$ac_cv_search___dn_skipname
10696 if test "$ac_res" != no; then :
10697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10708 if test x"$have_resolver" != xno ; then
10710 # Make sure that the BIND 4 resolver interface is workable before
10711 # enabling any code that calls it. At some point I'll rewrite the
10712 # code to use the BIND 8 resolver API.
10713 # We might also want to use libdns instead.
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10716 $as_echo_n "checking whether the resolver is usable... " >&6; }
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 #include <sys/types.h>
10720 #include <netinet/in.h>
10721 #include <arpa/nameser.h>
10722 #include <resolv.h>
10726 unsigned char answer[PACKETSZ];
10727 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10729 dn_expand(0,0,0,0,0);
10735 if ac_fn_c_try_link "$LINENO"; then :
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10743 $as_echo "$have_resolver" >&6; }
10745 # This is Apple-specific and somewhat bizarre as they changed the
10746 # define in bind 8 for some reason.
10748 if test x"$have_resolver" != xyes ; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10750 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #define BIND_8_COMPAT
10754 #include <sys/types.h>
10755 #include <netinet/in.h>
10756 #include <arpa/nameser.h>
10757 #include <resolv.h>
10761 unsigned char answer[PACKETSZ];
10762 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10763 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10769 if ac_fn_c_try_link "$LINENO"; then :
10770 have_resolver=yes ; need_compat=yes
10772 rm -f core conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10775 $as_echo "$have_resolver" >&6; }
10779 if test x"$have_resolver" = xyes ; then
10781 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10783 DNSLIBS="$DNSLIBS $LIBS"
10784 if test x"$need_compat" = xyes ; then
10786 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10789 if test "$use_libdns" = yes; then
10790 show_tor_support=yes
10792 elif test "$use_libdns" = yes; then
10793 show_tor_support=yes
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10797 *** The system's DNS resolver is not usable.
10798 *** Dirmngr functionality is limited.
10800 $as_echo "$as_me: WARNING:
10802 *** The system's DNS resolver is not usable.
10803 *** Dirmngr functionality is limited.
10805 show_tor_support="${show_tor_support} (no system resolver)"
10808 if test "$have_w32_system" = yes; then
10809 if test "$use_libdns" = yes; then
10810 DNSLIBS="$DNSLIBS -liphlpapi"
10814 LIBS=$_dns_save_libs
10823 # Note that running the check changes the variable
10824 # gnupg_have_ldap from "n/a" to "no" or "yes".
10826 # Check whether --enable-ldap was given.
10827 if test "${enable_ldap+set}" = set; then :
10828 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10832 if test "$gnupg_have_ldap" != "no" ; then
10833 if test "$build_dirmngr" = "yes" ; then
10835 # Try and link a LDAP test program to weed out unusable LDAP
10836 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10837 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10838 # If all else fails, the user can play guess-the-dependency by using
10839 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10842 # Check whether --with-ldap was given.
10843 if test "${with_ldap+set}" = set; then :
10844 withval=$with_ldap; _ldap_with=$withval
10848 if test x$_ldap_with != xno ; then
10850 if test -d "$withval" ; then
10851 LDAP_CPPFLAGS="-I$withval/include"
10852 LDAP_LDFLAGS="-L$withval/lib"
10855 _ldap_save_cppflags=$CPPFLAGS
10856 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10857 _ldap_save_ldflags=$LDFLAGS
10858 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10860 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10861 _ldap_save_libs=$LIBS
10862 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10865 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10870 #include <winsock2.h>
10871 #include <winldap.h>
10879 ldap_open("foobar",1234);
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 gnupg_cv_func_ldap_init=yes
10887 gnupg_cv_func_ldap_init=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10892 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10894 if test $gnupg_cv_func_ldap_init = no; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10896 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10898 /* end confdefs.h. */
10904 ldap_open("foobar",1234);
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 gnupg_cv_func_ldaplber_init=yes
10912 gnupg_cv_func_ldaplber_init=no
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10917 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10920 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10922 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10926 if test "$gnupg_cv_func_ldap_init" = yes || \
10927 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10928 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10929 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10930 gnupg_have_ldap=yes
10932 for ac_func in ldap_get_option ldap_set_option
10934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10937 cat >>confdefs.h <<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 # The extra test for ldap_start_tls_sA is for W32 because
10945 # that is the actual function in the library.
10946 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10951 cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 if test "$ac_cv_func_ldap_get_option" != yes ; then
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10961 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10963 /* end confdefs.h. */
10968 LDAP *ldap; ldap->ld_errno;
10973 if ac_fn_c_try_link "$LINENO"; then :
10974 gnupg_cv_func_ldap_ld_errno=yes
10976 gnupg_cv_func_ldap_ld_errno=no
10978 rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10981 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10983 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10985 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10991 LIBS=$_ldap_save_libs
10993 if test "$GPGKEYS_LDAP" != "" ; then break; fi
11000 CPPFLAGS=$_ldap_save_cppflags
11001 LDFLAGS=$_ldap_save_ldflags
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
11005 $as_echo_n "checking for ber_free in -llber... " >&6; }
11006 if ${ac_cv_lib_lber_ber_free+:} false; then :
11007 $as_echo_n "(cached) " >&6
11009 ac_check_lib_save_LIBS=$LIBS
11010 LIBS="-llber $LIBS"
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11024 return ber_free ();
11029 if ac_fn_c_try_link "$LINENO"; then :
11030 ac_cv_lib_lber_ber_free=yes
11032 ac_cv_lib_lber_ber_free=no
11034 rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11036 LIBS=$ac_check_lib_save_LIBS
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11039 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11040 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11041 LBER_LIBS="$LBER_LIBS -llber"
11043 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11052 if test "$gnupg_have_ldap" = "no"; then
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11055 *** Building without LDAP support.
11056 *** No CRL access or X.509 certificate search available.
11058 $as_echo "$as_me: WARNING:
11060 *** Building without LDAP support.
11061 *** No CRL access or X.509 certificate search available.
11065 if test "$gnupg_have_ldap" = yes; then
11073 if test "$gnupg_have_ldap" = yes ; then
11075 $as_echo "#define USE_LDAP 1" >>confdefs.h
11082 # Check for sendmail
11084 # This isn't necessarily sendmail itself, but anything that gives a
11085 # sendmail-ish interface to the outside world. That includes Exim,
11086 # Postfix, etc. Basically, anything that can handle "sendmail -t".
11088 # Check whether --with-mailprog was given.
11089 if test "${with_mailprog+set}" = set; then :
11090 withval=$with_mailprog;
11095 if test x"$with_mailprog" = xyes ; then
11096 # Extract the first word of "sendmail", so it can be a program name with args.
11097 set dummy sendmail; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if ${ac_cv_path_SENDMAIL+:} false; then :
11101 $as_echo_n "(cached) " >&6
11105 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11109 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11110 for as_dir in $as_dummy
11113 test -z "$as_dir" && as_dir=.
11114 for ac_exec_ext in '' $ac_executable_extensions; do
11115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11116 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127 SENDMAIL=$ac_cv_path_SENDMAIL
11128 if test -n "$SENDMAIL"; then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11130 $as_echo "$SENDMAIL" >&6; }
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11133 $as_echo "no" >&6; }
11137 elif test x"$with_mailprog" != xno ; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11139 $as_echo_n "checking for a mail transport program... " >&6; }
11140 SENDMAIL=$with_mailprog
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11143 $as_echo "$with_mailprog" >&6; }
11146 cat >>confdefs.h <<_ACEOF
11147 #define NAME_OF_SENDMAIL "$SENDMAIL"
11153 # Construct a printable name of the OS
11157 PRINTABLE_OS_NAME="W32CE"
11160 PRINTABLE_OS_NAME="MingW32"
11163 PRINTABLE_OS_NAME="Cygwin"
11165 i?86-emx-os2 | i?86-*-os2*emx )
11166 PRINTABLE_OS_NAME="OS/2"
11168 i?86-*-msdosdjgpp*)
11169 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11173 PRINTABLE_OS_NAME="GNU/Linux"
11176 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11180 cat >>confdefs.h <<_ACEOF
11181 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11187 # Checking for iconv
11189 if test "$require_iconv" = yes; then
11191 if test "X$prefix" = "XNONE"; then
11192 acl_final_prefix="$ac_default_prefix"
11194 acl_final_prefix="$prefix"
11196 if test "X$exec_prefix" = "XNONE"; then
11197 acl_final_exec_prefix='${prefix}'
11199 acl_final_exec_prefix="$exec_prefix"
11201 acl_save_prefix="$prefix"
11202 prefix="$acl_final_prefix"
11203 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11204 prefix="$acl_save_prefix"
11207 # Check whether --with-gnu-ld was given.
11208 if test "${with_gnu_ld+set}" = set; then :
11209 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11214 # Prepare PATH_SEPARATOR.
11215 # The user is always right.
11216 if test "${PATH_SEPARATOR+set}" != set; then
11217 echo "#! /bin/sh" >conf$$.sh
11218 echo "exit 0" >>conf$$.sh
11220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11228 if test "$GCC" = yes; then
11229 # Check if gcc -print-prog-name=ld gives a path.
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11231 $as_echo_n "checking for ld used by GCC... " >&6; }
11234 # gcc leaves a trailing carriage return which upsets mingw
11235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11240 # Accept absolute paths.
11241 [\\/]* | [A-Za-z]:[\\/]*)
11242 re_direlt='/[^/][^/]*/\.\./'
11243 # Canonicalize the path of ld
11244 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11245 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11246 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11248 test -z "$LD" && LD="$ac_prog"
11251 # If it fails, then pretend we aren't using GCC.
11255 # If it is relative, then search for the first ld in PATH.
11256 with_gnu_ld=unknown
11259 elif test "$with_gnu_ld" = yes; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11261 $as_echo_n "checking for GNU ld... " >&6; }
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11264 $as_echo_n "checking for non-GNU ld... " >&6; }
11266 if ${acl_cv_path_LD+:} false; then :
11267 $as_echo_n "(cached) " >&6
11269 if test -z "$LD"; then
11270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11271 for ac_dir in $PATH; do
11272 test -z "$ac_dir" && ac_dir=.
11273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11274 acl_cv_path_LD="$ac_dir/$ac_prog"
11275 # Check to see if the program is GNU ld. I'd rather use --version,
11276 # but apparently some GNU ld's only accept -v.
11277 # Break only if it was the GNU/non-GNU ld that we prefer.
11278 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11279 *GNU* | *'with BFD'*)
11280 test "$with_gnu_ld" != no && break ;;
11282 test "$with_gnu_ld" != yes && break ;;
11288 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11292 LD="$acl_cv_path_LD"
11293 if test -n "$LD"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11295 $as_echo "$LD" >&6; }
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11300 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11302 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11303 if ${acl_cv_prog_gnu_ld+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11307 case `$LD -v 2>&1 </dev/null` in
11308 *GNU* | *'with BFD'*)
11309 acl_cv_prog_gnu_ld=yes ;;
11311 acl_cv_prog_gnu_ld=no ;;
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11315 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11316 with_gnu_ld=$acl_cv_prog_gnu_ld
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11322 $as_echo_n "checking for shared library run path origin... " >&6; }
11323 if ${acl_cv_rpath+:} false; then :
11324 $as_echo_n "(cached) " >&6
11327 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11328 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11330 rm -f ./conftest.sh
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11335 $as_echo "$acl_cv_rpath" >&6; }
11337 acl_libext="$acl_cv_libext"
11338 acl_shlibext="$acl_cv_shlibext"
11339 acl_libname_spec="$acl_cv_libname_spec"
11340 acl_library_names_spec="$acl_cv_library_names_spec"
11341 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11342 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11343 acl_hardcode_direct="$acl_cv_hardcode_direct"
11344 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11345 # Check whether --enable-rpath was given.
11346 if test "${enable_rpath+set}" = set; then :
11347 enableval=$enable_rpath; :
11355 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11356 if test -n "$searchpath"; then
11357 acl_save_IFS="${IFS= }"; IFS=":"
11358 for searchdir in $searchpath; do
11359 if test -d "$searchdir"; then
11360 case "$searchdir" in
11361 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11362 *) searchdir=`cd "$searchdir" && pwd`
11363 case "$searchdir" in
11364 */lib64 ) acl_libdirstem=lib64 ;;
11369 IFS="$acl_save_IFS"
11382 acl_save_prefix="$prefix"
11383 prefix="$acl_final_prefix"
11384 acl_save_exec_prefix="$exec_prefix"
11385 exec_prefix="$acl_final_exec_prefix"
11387 eval additional_includedir=\"$includedir\"
11388 eval additional_libdir=\"$libdir\"
11390 exec_prefix="$acl_save_exec_prefix"
11391 prefix="$acl_save_prefix"
11394 # Check whether --with-libiconv-prefix was given.
11395 if test "${with_libiconv_prefix+set}" = set; then :
11396 withval=$with_libiconv_prefix;
11397 if test "X$withval" = "Xno"; then
11400 if test "X$withval" = "X"; then
11402 acl_save_prefix="$prefix"
11403 prefix="$acl_final_prefix"
11404 acl_save_exec_prefix="$exec_prefix"
11405 exec_prefix="$acl_final_exec_prefix"
11407 eval additional_includedir=\"$includedir\"
11408 eval additional_libdir=\"$libdir\"
11410 exec_prefix="$acl_save_exec_prefix"
11411 prefix="$acl_save_prefix"
11414 additional_includedir="$withval/include"
11415 additional_libdir="$withval/$acl_libdirstem"
11427 names_already_handled=
11428 names_next_round='iconv '
11429 while test -n "$names_next_round"; do
11430 names_this_round="$names_next_round"
11432 for name in $names_this_round; do
11434 for n in $names_already_handled; do
11435 if test "$n" = "$name"; then
11436 already_handled=yes
11440 if test -z "$already_handled"; then
11441 names_already_handled="$names_already_handled $name"
11442 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11443 eval value=\"\$HAVE_LIB$uppername\"
11444 if test -n "$value"; then
11445 if test "$value" = yes; then
11446 eval value=\"\$LIB$uppername\"
11447 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11448 eval value=\"\$LTLIB$uppername\"
11449 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11458 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11459 if test -n "$acl_shlibext"; then
11460 shrext=".$acl_shlibext" # typically: shrext=.so
11464 if test $use_additional = yes; then
11465 dir="$additional_libdir"
11466 if test -n "$acl_shlibext"; then
11467 if test -f "$dir/$libname$shrext"; then
11469 found_so="$dir/$libname$shrext"
11471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11472 ver=`(cd "$dir" && \
11473 for f in "$libname$shrext".*; do echo "$f"; done \
11474 | sed -e "s,^$libname$shrext\\\\.,," \
11475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11476 | sed 1q ) 2>/dev/null`
11477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11479 found_so="$dir/$libname$shrext.$ver"
11482 eval library_names=\"$acl_library_names_spec\"
11483 for f in $library_names; do
11484 if test -f "$dir/$f"; then
11493 if test "X$found_dir" = "X"; then
11494 if test -f "$dir/$libname.$acl_libext"; then
11496 found_a="$dir/$libname.$acl_libext"
11499 if test "X$found_dir" != "X"; then
11500 if test -f "$dir/$libname.la"; then
11501 found_la="$dir/$libname.la"
11505 if test "X$found_dir" = "X"; then
11506 for x in $LDFLAGS $LTLIBICONV; do
11508 acl_save_prefix="$prefix"
11509 prefix="$acl_final_prefix"
11510 acl_save_exec_prefix="$exec_prefix"
11511 exec_prefix="$acl_final_exec_prefix"
11513 exec_prefix="$acl_save_exec_prefix"
11514 prefix="$acl_save_prefix"
11518 dir=`echo "X$x" | sed -e 's/^X-L//'`
11519 if test -n "$acl_shlibext"; then
11520 if test -f "$dir/$libname$shrext"; then
11522 found_so="$dir/$libname$shrext"
11524 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11525 ver=`(cd "$dir" && \
11526 for f in "$libname$shrext".*; do echo "$f"; done \
11527 | sed -e "s,^$libname$shrext\\\\.,," \
11528 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11529 | sed 1q ) 2>/dev/null`
11530 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11532 found_so="$dir/$libname$shrext.$ver"
11535 eval library_names=\"$acl_library_names_spec\"
11536 for f in $library_names; do
11537 if test -f "$dir/$f"; then
11546 if test "X$found_dir" = "X"; then
11547 if test -f "$dir/$libname.$acl_libext"; then
11549 found_a="$dir/$libname.$acl_libext"
11552 if test "X$found_dir" != "X"; then
11553 if test -f "$dir/$libname.la"; then
11554 found_la="$dir/$libname.la"
11559 if test "X$found_dir" != "X"; then
11564 if test "X$found_dir" != "X"; then
11565 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11566 if test "X$found_so" != "X"; then
11567 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11568 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11571 for x in $ltrpathdirs; do
11572 if test "X$x" = "X$found_dir"; then
11577 if test -z "$haveit"; then
11578 ltrpathdirs="$ltrpathdirs $found_dir"
11580 if test "$acl_hardcode_direct" = yes; then
11581 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11583 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11586 for x in $rpathdirs; do
11587 if test "X$x" = "X$found_dir"; then
11592 if test -z "$haveit"; then
11593 rpathdirs="$rpathdirs $found_dir"
11597 for x in $LDFLAGS $LIBICONV; do
11599 acl_save_prefix="$prefix"
11600 prefix="$acl_final_prefix"
11601 acl_save_exec_prefix="$exec_prefix"
11602 exec_prefix="$acl_final_exec_prefix"
11604 exec_prefix="$acl_save_exec_prefix"
11605 prefix="$acl_save_prefix"
11607 if test "X$x" = "X-L$found_dir"; then
11612 if test -z "$haveit"; then
11613 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11615 if test "$acl_hardcode_minus_L" != no; then
11616 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11618 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11624 if test "X$found_a" != "X"; then
11625 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11627 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11630 additional_includedir=
11631 case "$found_dir" in
11632 */$acl_libdirstem | */$acl_libdirstem/)
11633 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11634 LIBICONV_PREFIX="$basedir"
11635 additional_includedir="$basedir/include"
11638 if test "X$additional_includedir" != "X"; then
11639 if test "X$additional_includedir" != "X/usr/include"; then
11641 if test "X$additional_includedir" = "X/usr/local/include"; then
11642 if test -n "$GCC"; then
11644 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11648 if test -z "$haveit"; then
11649 for x in $CPPFLAGS $INCICONV; do
11651 acl_save_prefix="$prefix"
11652 prefix="$acl_final_prefix"
11653 acl_save_exec_prefix="$exec_prefix"
11654 exec_prefix="$acl_final_exec_prefix"
11656 exec_prefix="$acl_save_exec_prefix"
11657 prefix="$acl_save_prefix"
11659 if test "X$x" = "X-I$additional_includedir"; then
11664 if test -z "$haveit"; then
11665 if test -d "$additional_includedir"; then
11666 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11672 if test -n "$found_la"; then
11673 save_libdir="$libdir"
11674 case "$found_la" in
11675 */* | *\\*) . "$found_la" ;;
11676 *) . "./$found_la" ;;
11678 libdir="$save_libdir"
11679 for dep in $dependency_libs; do
11682 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11683 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11685 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11686 if test -n "$GCC"; then
11688 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11692 if test -z "$haveit"; then
11694 for x in $LDFLAGS $LIBICONV; do
11696 acl_save_prefix="$prefix"
11697 prefix="$acl_final_prefix"
11698 acl_save_exec_prefix="$exec_prefix"
11699 exec_prefix="$acl_final_exec_prefix"
11701 exec_prefix="$acl_save_exec_prefix"
11702 prefix="$acl_save_prefix"
11704 if test "X$x" = "X-L$additional_libdir"; then
11709 if test -z "$haveit"; then
11710 if test -d "$additional_libdir"; then
11711 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11715 for x in $LDFLAGS $LTLIBICONV; do
11717 acl_save_prefix="$prefix"
11718 prefix="$acl_final_prefix"
11719 acl_save_exec_prefix="$exec_prefix"
11720 exec_prefix="$acl_final_exec_prefix"
11722 exec_prefix="$acl_save_exec_prefix"
11723 prefix="$acl_save_prefix"
11725 if test "X$x" = "X-L$additional_libdir"; then
11730 if test -z "$haveit"; then
11731 if test -d "$additional_libdir"; then
11732 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11739 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11740 if test "$enable_rpath" != no; then
11742 for x in $rpathdirs; do
11743 if test "X$x" = "X$dir"; then
11748 if test -z "$haveit"; then
11749 rpathdirs="$rpathdirs $dir"
11752 for x in $ltrpathdirs; do
11753 if test "X$x" = "X$dir"; then
11758 if test -z "$haveit"; then
11759 ltrpathdirs="$ltrpathdirs $dir"
11764 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11767 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11770 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11777 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11778 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11784 if test "X$rpathdirs" != "X"; then
11785 if test -n "$acl_hardcode_libdir_separator"; then
11787 for found_dir in $rpathdirs; do
11788 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11790 acl_save_libdir="$libdir"
11792 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11793 libdir="$acl_save_libdir"
11794 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11796 for found_dir in $rpathdirs; do
11797 acl_save_libdir="$libdir"
11798 libdir="$found_dir"
11799 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11800 libdir="$acl_save_libdir"
11801 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11805 if test "X$ltrpathdirs" != "X"; then
11806 for found_dir in $ltrpathdirs; do
11807 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11817 am_save_CPPFLAGS="$CPPFLAGS"
11819 for element in $INCICONV; do
11821 for x in $CPPFLAGS; do
11823 acl_save_prefix="$prefix"
11824 prefix="$acl_final_prefix"
11825 acl_save_exec_prefix="$exec_prefix"
11826 exec_prefix="$acl_final_exec_prefix"
11828 exec_prefix="$acl_save_exec_prefix"
11829 prefix="$acl_save_prefix"
11831 if test "X$x" = "X$element"; then
11836 if test -z "$haveit"; then
11837 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11843 $as_echo_n "checking for iconv... " >&6; }
11844 if ${am_cv_func_iconv+:} false; then :
11845 $as_echo_n "(cached) " >&6
11848 am_cv_func_iconv="no, consider installing GNU libiconv"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 #include <stdlib.h>
11859 iconv_t cd = iconv_open("","");
11860 iconv(cd,NULL,NULL,NULL,NULL);
11866 if ac_fn_c_try_link "$LINENO"; then :
11867 am_cv_func_iconv=yes
11869 rm -f core conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11871 if test "$am_cv_func_iconv" != yes; then
11872 am_save_LIBS="$LIBS"
11873 LIBS="$LIBS $LIBICONV"
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11877 #include <stdlib.h>
11883 iconv_t cd = iconv_open("","");
11884 iconv(cd,NULL,NULL,NULL,NULL);
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 am_cv_lib_iconv=yes
11892 am_cv_func_iconv=yes
11894 rm -f core conftest.err conftest.$ac_objext \
11895 conftest$ac_exeext conftest.$ac_ext
11896 LIBS="$am_save_LIBS"
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11901 $as_echo "$am_cv_func_iconv" >&6; }
11902 if test "$am_cv_func_iconv" = yes; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11904 $as_echo_n "checking for working iconv... " >&6; }
11905 if ${am_cv_func_iconv_works+:} false; then :
11906 $as_echo_n "(cached) " >&6
11909 am_save_LIBS="$LIBS"
11910 if test $am_cv_lib_iconv = yes; then
11911 LIBS="$LIBS $LIBICONV"
11913 am_cv_func_iconv_works=no
11914 for ac_iconv_const in '' 'const'; do
11915 if test "$cross_compiling" = yes; then :
11917 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11918 *) am_cv_func_iconv_works="guessing yes" ;;
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11925 #include <string.h>
11927 #ifndef ICONV_CONST
11928 # define ICONV_CONST $ac_iconv_const
11935 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11938 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11939 if (cd_utf8_to_88591 != (iconv_t)(-1))
11941 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11943 ICONV_CONST char *inptr = input;
11944 size_t inbytesleft = strlen (input);
11945 char *outptr = buf;
11946 size_t outbytesleft = sizeof (buf);
11947 size_t res = iconv (cd_utf8_to_88591,
11948 &inptr, &inbytesleft,
11949 &outptr, &outbytesleft);
11952 iconv_close (cd_utf8_to_88591);
11955 /* Test against Solaris 10 bug: Failures are not distinguishable from
11956 successful returns. */
11958 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11959 if (cd_ascii_to_88591 != (iconv_t)(-1))
11961 static ICONV_CONST char input[] = "\263";
11963 ICONV_CONST char *inptr = input;
11964 size_t inbytesleft = strlen (input);
11965 char *outptr = buf;
11966 size_t outbytesleft = sizeof (buf);
11967 size_t res = iconv (cd_ascii_to_88591,
11968 &inptr, &inbytesleft,
11969 &outptr, &outbytesleft);
11972 iconv_close (cd_ascii_to_88591);
11975 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11977 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11978 if (cd_88591_to_utf8 != (iconv_t)(-1))
11980 static ICONV_CONST char input[] = "\304";
11981 static char buf[2] = { (char)0xDE, (char)0xAD };
11982 ICONV_CONST char *inptr = input;
11983 size_t inbytesleft = 1;
11984 char *outptr = buf;
11985 size_t outbytesleft = 1;
11986 size_t res = iconv (cd_88591_to_utf8,
11987 &inptr, &inbytesleft,
11988 &outptr, &outbytesleft);
11989 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11991 iconv_close (cd_88591_to_utf8);
11994 #if 0 /* This bug could be worked around by the caller. */
11995 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11997 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11998 if (cd_88591_to_utf8 != (iconv_t)(-1))
12000 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12002 ICONV_CONST char *inptr = input;
12003 size_t inbytesleft = strlen (input);
12004 char *outptr = buf;
12005 size_t outbytesleft = sizeof (buf);
12006 size_t res = iconv (cd_88591_to_utf8,
12007 &inptr, &inbytesleft,
12008 &outptr, &outbytesleft);
12011 iconv_close (cd_88591_to_utf8);
12015 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12018 /* Try standardized names. */
12019 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12020 /* Try IRIX, OSF/1 names. */
12021 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12022 /* Try AIX names. */
12023 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12024 /* Try HP-UX names. */
12025 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12026 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12027 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12029 if (cd1 != (iconv_t)(-1))
12031 if (cd2 != (iconv_t)(-1))
12033 if (cd3 != (iconv_t)(-1))
12035 if (cd4 != (iconv_t)(-1))
12044 if ac_fn_c_try_run "$LINENO"; then :
12045 am_cv_func_iconv_works=yes
12047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12048 conftest.$ac_objext conftest.beam conftest.$ac_ext
12051 test "$am_cv_func_iconv_works" = no || break
12053 LIBS="$am_save_LIBS"
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12057 $as_echo "$am_cv_func_iconv_works" >&6; }
12058 case "$am_cv_func_iconv_works" in
12059 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12060 *) am_func_iconv=yes ;;
12063 am_func_iconv=no am_cv_lib_iconv=no
12065 if test "$am_func_iconv" = yes; then
12067 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12070 if test "$am_cv_lib_iconv" = yes; then
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12072 $as_echo_n "checking how to link with libiconv... " >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12074 $as_echo "$LIBICONV" >&6; }
12076 CPPFLAGS="$am_save_CPPFLAGS"
12083 if test "$am_cv_func_iconv" = yes; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12085 $as_echo_n "checking for iconv declaration... " >&6; }
12086 if ${am_cv_proto_iconv+:} false; then :
12087 $as_echo_n "(cached) " >&6
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12093 #include <stdlib.h>
12099 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12100 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 am_cv_proto_iconv_arg1=""
12116 am_cv_proto_iconv_arg1="const"
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12122 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12124 $am_cv_proto_iconv" >&5
12126 $am_cv_proto_iconv" >&6; }
12128 am_cv_proto_iconv_arg1=""
12131 cat >>confdefs.h <<_ACEOF
12132 #define ICONV_CONST $am_cv_proto_iconv_arg1
12146 # Check for gettext
12148 # This is "GNU gnupg" - The project-id script from gettext
12149 # needs this string
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12152 $as_echo "$as_me: checking for gettext" >&6;}
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12155 $as_echo_n "checking whether NLS is requested... " >&6; }
12156 # Check whether --enable-nls was given.
12157 if test "${enable_nls+set}" = set; then :
12158 enableval=$enable_nls; USE_NLS=$enableval
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12164 $as_echo "$USE_NLS" >&6; }
12169 GETTEXT_MACRO_VERSION=0.17
12174 # Prepare PATH_SEPARATOR.
12175 # The user is always right.
12176 if test "${PATH_SEPARATOR+set}" != set; then
12177 echo "#! /bin/sh" >conf$$.sh
12178 echo "exit 0" >>conf$$.sh
12180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12188 # Find out how to test for executable files. Don't use a zero-byte file,
12189 # as systems may use methods other than mode bits to determine executability.
12190 cat >conf$$.file <<_ASEOF
12194 chmod +x conf$$.file
12195 if test -x conf$$.file >/dev/null 2>&1; then
12196 ac_executable_p="test -x"
12198 ac_executable_p="test -f"
12202 # Extract the first word of "msgfmt", so it can be a program name with args.
12203 set dummy msgfmt; ac_word=$2
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12205 $as_echo_n "checking for $ac_word... " >&6; }
12206 if ${ac_cv_path_MSGFMT+:} false; then :
12207 $as_echo_n "(cached) " >&6
12211 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12215 for ac_dir in $PATH; do
12217 test -z "$ac_dir" && ac_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12220 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12221 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12222 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12223 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12230 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12234 MSGFMT="$ac_cv_path_MSGFMT"
12235 if test "$MSGFMT" != ":"; then
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12237 $as_echo "$MSGFMT" >&6; }
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240 $as_echo "no" >&6; }
12243 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12244 set dummy gmsgfmt; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if ${ac_cv_path_GMSGFMT+:} false; then :
12248 $as_echo_n "(cached) " >&6
12252 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256 for as_dir in $PATH
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12262 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12274 GMSGFMT=$ac_cv_path_GMSGFMT
12275 if test -n "$GMSGFMT"; then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12277 $as_echo "$GMSGFMT" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12280 $as_echo "no" >&6; }
12285 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12286 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12287 *) MSGFMT_015=$MSGFMT ;;
12290 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12291 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12292 *) GMSGFMT_015=$GMSGFMT ;;
12297 # Prepare PATH_SEPARATOR.
12298 # The user is always right.
12299 if test "${PATH_SEPARATOR+set}" != set; then
12300 echo "#! /bin/sh" >conf$$.sh
12301 echo "exit 0" >>conf$$.sh
12303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12311 # Find out how to test for executable files. Don't use a zero-byte file,
12312 # as systems may use methods other than mode bits to determine executability.
12313 cat >conf$$.file <<_ASEOF
12317 chmod +x conf$$.file
12318 if test -x conf$$.file >/dev/null 2>&1; then
12319 ac_executable_p="test -x"
12321 ac_executable_p="test -f"
12325 # Extract the first word of "xgettext", so it can be a program name with args.
12326 set dummy xgettext; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_XGETTEXT+:} false; then :
12330 $as_echo_n "(cached) " >&6
12332 case "$XGETTEXT" in
12334 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12338 for ac_dir in $PATH; do
12340 test -z "$ac_dir" && ac_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12343 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12344 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12345 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12346 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12353 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12357 XGETTEXT="$ac_cv_path_XGETTEXT"
12358 if test "$XGETTEXT" != ":"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12360 $as_echo "$XGETTEXT" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12368 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12369 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12370 *) XGETTEXT_015=$XGETTEXT ;;
12375 # Prepare PATH_SEPARATOR.
12376 # The user is always right.
12377 if test "${PATH_SEPARATOR+set}" != set; then
12378 echo "#! /bin/sh" >conf$$.sh
12379 echo "exit 0" >>conf$$.sh
12381 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12389 # Find out how to test for executable files. Don't use a zero-byte file,
12390 # as systems may use methods other than mode bits to determine executability.
12391 cat >conf$$.file <<_ASEOF
12395 chmod +x conf$$.file
12396 if test -x conf$$.file >/dev/null 2>&1; then
12397 ac_executable_p="test -x"
12399 ac_executable_p="test -f"
12403 # Extract the first word of "msgmerge", so it can be a program name with args.
12404 set dummy msgmerge; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_path_MSGMERGE+:} false; then :
12408 $as_echo_n "(cached) " >&6
12410 case "$MSGMERGE" in
12412 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12415 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12416 for ac_dir in $PATH; do
12418 test -z "$ac_dir" && ac_dir=.
12419 for ac_exec_ext in '' $ac_executable_extensions; do
12420 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12421 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12422 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12423 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12430 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12434 MSGMERGE="$ac_cv_path_MSGMERGE"
12435 if test "$MSGMERGE" != ":"; then
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12437 $as_echo "$MSGMERGE" >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440 $as_echo "no" >&6; }
12444 test -n "$localedir" || localedir='${datadir}/locale'
12447 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12450 ac_config_commands="$ac_config_commands po-directories"
12454 if test "$try_gettext" = yes; then
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12479 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12480 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12481 $as_echo_n "(cached) " >&6
12483 gt_save_LIBS="$LIBS"
12484 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <CoreFoundation/CFPreferences.h>
12491 CFPreferencesCopyAppValue(NULL, NULL)
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 gt_cv_func_CFPreferencesCopyAppValue=yes
12499 gt_cv_func_CFPreferencesCopyAppValue=no
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS="$gt_save_LIBS"
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12506 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12507 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12509 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12513 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12514 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12515 $as_echo_n "(cached) " >&6
12517 gt_save_LIBS="$LIBS"
12518 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12521 #include <CoreFoundation/CFLocale.h>
12525 CFLocaleCopyCurrent();
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 gt_cv_func_CFLocaleCopyCurrent=yes
12533 gt_cv_func_CFLocaleCopyCurrent=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS="$gt_save_LIBS"
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12540 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12541 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12543 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12547 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12548 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12560 case " $gt_needs " in
12561 *" need-formatstring-macros "*) gt_api_version=3 ;;
12562 *" need-ngettext "*) gt_api_version=2 ;;
12563 *) gt_api_version=1 ;;
12565 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12566 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12568 if test "$USE_NLS" = "yes"; then
12569 gt_use_preinstalled_gnugettext=no
12572 if test $gt_api_version -ge 3; then
12573 gt_revision_test_code='
12574 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12575 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12577 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12580 gt_revision_test_code=
12582 if test $gt_api_version -ge 2; then
12583 gt_expression_test_code=' + * ngettext ("", "", 0)'
12585 gt_expression_test_code=
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12589 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12590 if eval \${$gt_func_gnugettext_libc+:} false; then :
12591 $as_echo_n "(cached) " >&6
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 #include <libintl.h>
12597 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12598 extern int _nl_msg_cat_cntr;
12599 extern int *_nl_domain_bindings;
12600 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12602 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12604 $gt_revision_test_code
12610 bindtextdomain ("", "");
12611 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12617 if ac_fn_c_try_link "$LINENO"; then :
12618 eval "$gt_func_gnugettext_libc=yes"
12620 eval "$gt_func_gnugettext_libc=no"
12622 rm -f core conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12625 eval ac_res=\$$gt_func_gnugettext_libc
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12627 $as_echo "$ac_res" >&6; }
12629 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12635 am_save_CPPFLAGS="$CPPFLAGS"
12637 for element in $INCICONV; do
12639 for x in $CPPFLAGS; do
12641 acl_save_prefix="$prefix"
12642 prefix="$acl_final_prefix"
12643 acl_save_exec_prefix="$exec_prefix"
12644 exec_prefix="$acl_final_exec_prefix"
12646 exec_prefix="$acl_save_exec_prefix"
12647 prefix="$acl_save_prefix"
12649 if test "X$x" = "X$element"; then
12654 if test -z "$haveit"; then
12655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12661 $as_echo_n "checking for iconv... " >&6; }
12662 if ${am_cv_func_iconv+:} false; then :
12663 $as_echo_n "(cached) " >&6
12666 am_cv_func_iconv="no, consider installing GNU libiconv"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12671 #include <stdlib.h>
12677 iconv_t cd = iconv_open("","");
12678 iconv(cd,NULL,NULL,NULL,NULL);
12684 if ac_fn_c_try_link "$LINENO"; then :
12685 am_cv_func_iconv=yes
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689 if test "$am_cv_func_iconv" != yes; then
12690 am_save_LIBS="$LIBS"
12691 LIBS="$LIBS $LIBICONV"
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12695 #include <stdlib.h>
12701 iconv_t cd = iconv_open("","");
12702 iconv(cd,NULL,NULL,NULL,NULL);
12708 if ac_fn_c_try_link "$LINENO"; then :
12709 am_cv_lib_iconv=yes
12710 am_cv_func_iconv=yes
12712 rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext conftest.$ac_ext
12714 LIBS="$am_save_LIBS"
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12719 $as_echo "$am_cv_func_iconv" >&6; }
12720 if test "$am_cv_func_iconv" = yes; then
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12722 $as_echo_n "checking for working iconv... " >&6; }
12723 if ${am_cv_func_iconv_works+:} false; then :
12724 $as_echo_n "(cached) " >&6
12727 am_save_LIBS="$LIBS"
12728 if test $am_cv_lib_iconv = yes; then
12729 LIBS="$LIBS $LIBICONV"
12731 am_cv_func_iconv_works=no
12732 for ac_iconv_const in '' 'const'; do
12733 if test "$cross_compiling" = yes; then :
12735 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12736 *) am_cv_func_iconv_works="guessing yes" ;;
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12743 #include <string.h>
12745 #ifndef ICONV_CONST
12746 # define ICONV_CONST $ac_iconv_const
12753 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12756 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12757 if (cd_utf8_to_88591 != (iconv_t)(-1))
12759 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12761 ICONV_CONST char *inptr = input;
12762 size_t inbytesleft = strlen (input);
12763 char *outptr = buf;
12764 size_t outbytesleft = sizeof (buf);
12765 size_t res = iconv (cd_utf8_to_88591,
12766 &inptr, &inbytesleft,
12767 &outptr, &outbytesleft);
12770 iconv_close (cd_utf8_to_88591);
12773 /* Test against Solaris 10 bug: Failures are not distinguishable from
12774 successful returns. */
12776 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12777 if (cd_ascii_to_88591 != (iconv_t)(-1))
12779 static ICONV_CONST char input[] = "\263";
12781 ICONV_CONST char *inptr = input;
12782 size_t inbytesleft = strlen (input);
12783 char *outptr = buf;
12784 size_t outbytesleft = sizeof (buf);
12785 size_t res = iconv (cd_ascii_to_88591,
12786 &inptr, &inbytesleft,
12787 &outptr, &outbytesleft);
12790 iconv_close (cd_ascii_to_88591);
12793 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12795 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12796 if (cd_88591_to_utf8 != (iconv_t)(-1))
12798 static ICONV_CONST char input[] = "\304";
12799 static char buf[2] = { (char)0xDE, (char)0xAD };
12800 ICONV_CONST char *inptr = input;
12801 size_t inbytesleft = 1;
12802 char *outptr = buf;
12803 size_t outbytesleft = 1;
12804 size_t res = iconv (cd_88591_to_utf8,
12805 &inptr, &inbytesleft,
12806 &outptr, &outbytesleft);
12807 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12809 iconv_close (cd_88591_to_utf8);
12812 #if 0 /* This bug could be worked around by the caller. */
12813 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12815 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12816 if (cd_88591_to_utf8 != (iconv_t)(-1))
12818 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12820 ICONV_CONST char *inptr = input;
12821 size_t inbytesleft = strlen (input);
12822 char *outptr = buf;
12823 size_t outbytesleft = sizeof (buf);
12824 size_t res = iconv (cd_88591_to_utf8,
12825 &inptr, &inbytesleft,
12826 &outptr, &outbytesleft);
12829 iconv_close (cd_88591_to_utf8);
12833 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12836 /* Try standardized names. */
12837 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12838 /* Try IRIX, OSF/1 names. */
12839 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12840 /* Try AIX names. */
12841 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12842 /* Try HP-UX names. */
12843 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12844 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12845 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12847 if (cd1 != (iconv_t)(-1))
12849 if (cd2 != (iconv_t)(-1))
12851 if (cd3 != (iconv_t)(-1))
12853 if (cd4 != (iconv_t)(-1))
12862 if ac_fn_c_try_run "$LINENO"; then :
12863 am_cv_func_iconv_works=yes
12865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12866 conftest.$ac_objext conftest.beam conftest.$ac_ext
12869 test "$am_cv_func_iconv_works" = no || break
12871 LIBS="$am_save_LIBS"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12875 $as_echo "$am_cv_func_iconv_works" >&6; }
12876 case "$am_cv_func_iconv_works" in
12877 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12878 *) am_func_iconv=yes ;;
12881 am_func_iconv=no am_cv_lib_iconv=no
12883 if test "$am_func_iconv" = yes; then
12885 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12888 if test "$am_cv_lib_iconv" = yes; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12890 $as_echo_n "checking how to link with libiconv... " >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12892 $as_echo "$LIBICONV" >&6; }
12894 CPPFLAGS="$am_save_CPPFLAGS"
12908 acl_save_prefix="$prefix"
12909 prefix="$acl_final_prefix"
12910 acl_save_exec_prefix="$exec_prefix"
12911 exec_prefix="$acl_final_exec_prefix"
12913 eval additional_includedir=\"$includedir\"
12914 eval additional_libdir=\"$libdir\"
12916 exec_prefix="$acl_save_exec_prefix"
12917 prefix="$acl_save_prefix"
12920 # Check whether --with-libintl-prefix was given.
12921 if test "${with_libintl_prefix+set}" = set; then :
12922 withval=$with_libintl_prefix;
12923 if test "X$withval" = "Xno"; then
12926 if test "X$withval" = "X"; then
12928 acl_save_prefix="$prefix"
12929 prefix="$acl_final_prefix"
12930 acl_save_exec_prefix="$exec_prefix"
12931 exec_prefix="$acl_final_exec_prefix"
12933 eval additional_includedir=\"$includedir\"
12934 eval additional_libdir=\"$libdir\"
12936 exec_prefix="$acl_save_exec_prefix"
12937 prefix="$acl_save_prefix"
12940 additional_includedir="$withval/include"
12941 additional_libdir="$withval/$acl_libdirstem"
12953 names_already_handled=
12954 names_next_round='intl '
12955 while test -n "$names_next_round"; do
12956 names_this_round="$names_next_round"
12958 for name in $names_this_round; do
12960 for n in $names_already_handled; do
12961 if test "$n" = "$name"; then
12962 already_handled=yes
12966 if test -z "$already_handled"; then
12967 names_already_handled="$names_already_handled $name"
12968 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12969 eval value=\"\$HAVE_LIB$uppername\"
12970 if test -n "$value"; then
12971 if test "$value" = yes; then
12972 eval value=\"\$LIB$uppername\"
12973 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12974 eval value=\"\$LTLIB$uppername\"
12975 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12984 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12985 if test -n "$acl_shlibext"; then
12986 shrext=".$acl_shlibext" # typically: shrext=.so
12990 if test $use_additional = yes; then
12991 dir="$additional_libdir"
12992 if test -n "$acl_shlibext"; then
12993 if test -f "$dir/$libname$shrext"; then
12995 found_so="$dir/$libname$shrext"
12997 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12998 ver=`(cd "$dir" && \
12999 for f in "$libname$shrext".*; do echo "$f"; done \
13000 | sed -e "s,^$libname$shrext\\\\.,," \
13001 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13002 | sed 1q ) 2>/dev/null`
13003 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13005 found_so="$dir/$libname$shrext.$ver"
13008 eval library_names=\"$acl_library_names_spec\"
13009 for f in $library_names; do
13010 if test -f "$dir/$f"; then
13019 if test "X$found_dir" = "X"; then
13020 if test -f "$dir/$libname.$acl_libext"; then
13022 found_a="$dir/$libname.$acl_libext"
13025 if test "X$found_dir" != "X"; then
13026 if test -f "$dir/$libname.la"; then
13027 found_la="$dir/$libname.la"
13031 if test "X$found_dir" = "X"; then
13032 for x in $LDFLAGS $LTLIBINTL; do
13034 acl_save_prefix="$prefix"
13035 prefix="$acl_final_prefix"
13036 acl_save_exec_prefix="$exec_prefix"
13037 exec_prefix="$acl_final_exec_prefix"
13039 exec_prefix="$acl_save_exec_prefix"
13040 prefix="$acl_save_prefix"
13044 dir=`echo "X$x" | sed -e 's/^X-L//'`
13045 if test -n "$acl_shlibext"; then
13046 if test -f "$dir/$libname$shrext"; then
13048 found_so="$dir/$libname$shrext"
13050 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13051 ver=`(cd "$dir" && \
13052 for f in "$libname$shrext".*; do echo "$f"; done \
13053 | sed -e "s,^$libname$shrext\\\\.,," \
13054 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13055 | sed 1q ) 2>/dev/null`
13056 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13058 found_so="$dir/$libname$shrext.$ver"
13061 eval library_names=\"$acl_library_names_spec\"
13062 for f in $library_names; do
13063 if test -f "$dir/$f"; then
13072 if test "X$found_dir" = "X"; then
13073 if test -f "$dir/$libname.$acl_libext"; then
13075 found_a="$dir/$libname.$acl_libext"
13078 if test "X$found_dir" != "X"; then
13079 if test -f "$dir/$libname.la"; then
13080 found_la="$dir/$libname.la"
13085 if test "X$found_dir" != "X"; then
13090 if test "X$found_dir" != "X"; then
13091 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13092 if test "X$found_so" != "X"; then
13093 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13097 for x in $ltrpathdirs; do
13098 if test "X$x" = "X$found_dir"; then
13103 if test -z "$haveit"; then
13104 ltrpathdirs="$ltrpathdirs $found_dir"
13106 if test "$acl_hardcode_direct" = yes; then
13107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13109 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13110 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13112 for x in $rpathdirs; do
13113 if test "X$x" = "X$found_dir"; then
13118 if test -z "$haveit"; then
13119 rpathdirs="$rpathdirs $found_dir"
13123 for x in $LDFLAGS $LIBINTL; do
13125 acl_save_prefix="$prefix"
13126 prefix="$acl_final_prefix"
13127 acl_save_exec_prefix="$exec_prefix"
13128 exec_prefix="$acl_final_exec_prefix"
13130 exec_prefix="$acl_save_exec_prefix"
13131 prefix="$acl_save_prefix"
13133 if test "X$x" = "X-L$found_dir"; then
13138 if test -z "$haveit"; then
13139 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13141 if test "$acl_hardcode_minus_L" != no; then
13142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13144 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13150 if test "X$found_a" != "X"; then
13151 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13153 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13156 additional_includedir=
13157 case "$found_dir" in
13158 */$acl_libdirstem | */$acl_libdirstem/)
13159 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13160 LIBINTL_PREFIX="$basedir"
13161 additional_includedir="$basedir/include"
13164 if test "X$additional_includedir" != "X"; then
13165 if test "X$additional_includedir" != "X/usr/include"; then
13167 if test "X$additional_includedir" = "X/usr/local/include"; then
13168 if test -n "$GCC"; then
13170 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13174 if test -z "$haveit"; then
13175 for x in $CPPFLAGS $INCINTL; do
13177 acl_save_prefix="$prefix"
13178 prefix="$acl_final_prefix"
13179 acl_save_exec_prefix="$exec_prefix"
13180 exec_prefix="$acl_final_exec_prefix"
13182 exec_prefix="$acl_save_exec_prefix"
13183 prefix="$acl_save_prefix"
13185 if test "X$x" = "X-I$additional_includedir"; then
13190 if test -z "$haveit"; then
13191 if test -d "$additional_includedir"; then
13192 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13198 if test -n "$found_la"; then
13199 save_libdir="$libdir"
13200 case "$found_la" in
13201 */* | *\\*) . "$found_la" ;;
13202 *) . "./$found_la" ;;
13204 libdir="$save_libdir"
13205 for dep in $dependency_libs; do
13208 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13209 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13211 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13212 if test -n "$GCC"; then
13214 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13218 if test -z "$haveit"; then
13220 for x in $LDFLAGS $LIBINTL; do
13222 acl_save_prefix="$prefix"
13223 prefix="$acl_final_prefix"
13224 acl_save_exec_prefix="$exec_prefix"
13225 exec_prefix="$acl_final_exec_prefix"
13227 exec_prefix="$acl_save_exec_prefix"
13228 prefix="$acl_save_prefix"
13230 if test "X$x" = "X-L$additional_libdir"; then
13235 if test -z "$haveit"; then
13236 if test -d "$additional_libdir"; then
13237 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13241 for x in $LDFLAGS $LTLIBINTL; do
13243 acl_save_prefix="$prefix"
13244 prefix="$acl_final_prefix"
13245 acl_save_exec_prefix="$exec_prefix"
13246 exec_prefix="$acl_final_exec_prefix"
13248 exec_prefix="$acl_save_exec_prefix"
13249 prefix="$acl_save_prefix"
13251 if test "X$x" = "X-L$additional_libdir"; then
13256 if test -z "$haveit"; then
13257 if test -d "$additional_libdir"; then
13258 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13265 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13266 if test "$enable_rpath" != no; then
13268 for x in $rpathdirs; do
13269 if test "X$x" = "X$dir"; then
13274 if test -z "$haveit"; then
13275 rpathdirs="$rpathdirs $dir"
13278 for x in $ltrpathdirs; do
13279 if test "X$x" = "X$dir"; then
13284 if test -z "$haveit"; then
13285 ltrpathdirs="$ltrpathdirs $dir"
13290 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13293 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13296 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13297 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13303 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13304 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13310 if test "X$rpathdirs" != "X"; then
13311 if test -n "$acl_hardcode_libdir_separator"; then
13313 for found_dir in $rpathdirs; do
13314 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13316 acl_save_libdir="$libdir"
13318 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13319 libdir="$acl_save_libdir"
13320 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13322 for found_dir in $rpathdirs; do
13323 acl_save_libdir="$libdir"
13324 libdir="$found_dir"
13325 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13326 libdir="$acl_save_libdir"
13327 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13331 if test "X$ltrpathdirs" != "X"; then
13332 for found_dir in $ltrpathdirs; do
13333 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13340 $as_echo_n "(cached) " >&6
13342 gt_save_CPPFLAGS="$CPPFLAGS"
13343 CPPFLAGS="$CPPFLAGS $INCINTL"
13344 gt_save_LIBS="$LIBS"
13345 LIBS="$LIBS $LIBINTL"
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 #include <libintl.h>
13350 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13351 extern int _nl_msg_cat_cntr;
13356 const char *_nl_expand_alias (const char *);
13357 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13359 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13361 $gt_revision_test_code
13367 bindtextdomain ("", "");
13368 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 eval "$gt_func_gnugettext_libintl=yes"
13377 eval "$gt_func_gnugettext_libintl=no"
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13382 LIBS="$LIBS $LIBICONV"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13386 #include <libintl.h>
13387 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13388 extern int _nl_msg_cat_cntr;
13393 const char *_nl_expand_alias (const char *);
13394 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13396 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13398 $gt_revision_test_code
13404 bindtextdomain ("", "");
13405 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 LIBINTL="$LIBINTL $LIBICONV"
13413 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13414 eval "$gt_func_gnugettext_libintl=yes"
13417 rm -f core conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
13420 CPPFLAGS="$gt_save_CPPFLAGS"
13421 LIBS="$gt_save_LIBS"
13423 eval ac_res=\$$gt_func_gnugettext_libintl
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13425 $as_echo "$ac_res" >&6; }
13428 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13429 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13430 && test "$PACKAGE" != gettext-runtime \
13431 && test "$PACKAGE" != gettext-tools; }; then
13432 gt_use_preinstalled_gnugettext=yes
13441 if test -n "$INTL_MACOSX_LIBS"; then
13442 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13443 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13444 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13445 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13452 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13460 $as_echo_n "checking whether to use NLS... " >&6; }
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13462 $as_echo "$USE_NLS" >&6; }
13463 if test "$USE_NLS" = "yes"; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13465 $as_echo_n "checking where the gettext function comes from... " >&6; }
13466 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13467 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13468 gt_source="external libintl"
13473 gt_source="included intl directory"
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13476 $as_echo "$gt_source" >&6; }
13479 if test "$USE_NLS" = "yes"; then
13481 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13482 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13484 $as_echo_n "checking how to link with libintl... " >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13486 $as_echo "$LIBINTL" >&6; }
13488 for element in $INCINTL; do
13490 for x in $CPPFLAGS; do
13492 acl_save_prefix="$prefix"
13493 prefix="$acl_final_prefix"
13494 acl_save_exec_prefix="$exec_prefix"
13495 exec_prefix="$acl_final_exec_prefix"
13497 exec_prefix="$acl_save_exec_prefix"
13498 prefix="$acl_save_prefix"
13500 if test "X$x" = "X$element"; then
13505 if test -z "$haveit"; then
13506 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13513 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13516 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13525 INTLLIBS="$LIBINTL"
13533 # gettext requires some extra checks. These really should be part of
13534 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13535 # function checks to here.
13537 for ac_func in strchr
13539 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13540 if test "x$ac_cv_func_strchr" = xyes; then :
13541 cat >>confdefs.h <<_ACEOF
13542 #define HAVE_STRCHR 1
13550 USE_INCLUDED_LIBINTL=no
13551 BUILD_INCLUDED_LIBINTL=no
13559 # We use HAVE_LANGINFO_CODESET in a couple of places.
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13562 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13563 if ${am_cv_langinfo_codeset+:} false; then :
13564 $as_echo_n "(cached) " >&6
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #include <langinfo.h>
13572 char* cs = nl_langinfo(CODESET); return !cs;
13577 if ac_fn_c_try_link "$LINENO"; then :
13578 am_cv_langinfo_codeset=yes
13580 am_cv_langinfo_codeset=no
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13587 $as_echo "$am_cv_langinfo_codeset" >&6; }
13588 if test $am_cv_langinfo_codeset = yes; then
13590 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13595 # Checks required for our use of locales
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13598 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13599 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13600 $as_echo_n "(cached) " >&6
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 #include <locale.h>
13613 if ac_fn_c_try_link "$LINENO"; then :
13614 gt_cv_val_LC_MESSAGES=yes
13616 gt_cv_val_LC_MESSAGES=no
13618 rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13622 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13623 if test $gt_cv_val_LC_MESSAGES = yes; then
13625 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13634 if test "$selinux_support" = yes ; then
13636 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13642 # Checks for header files.
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13645 $as_echo "$as_me: checking for header files" >&6;}
13646 for ac_header in unistd.h langinfo.h termio.h locale.h \
13647 pwd.h inttypes.h signal.h sys/select.h sys/time.h \
13648 stdint.h signal.h termios.h \
13649 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13651 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13653 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13654 cat >>confdefs.h <<_ACEOF
13655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13665 # Checks for typedefs, structures, and compiler characteristics.
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13668 $as_echo "$as_me: checking for system characteristics" >&6;}
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13670 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13671 if ${ac_cv_c_const+:} false; then :
13672 $as_echo_n "(cached) " >&6
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13681 #ifndef __cplusplus
13682 /* Ultrix mips cc rejects this sort of thing. */
13683 typedef int charset[2];
13684 const charset cs = { 0, 0 };
13685 /* SunOS 4.1.1 cc rejects this. */
13686 char const *const *pcpcc;
13688 /* NEC SVR4.0.2 mips cc rejects this. */
13689 struct point {int x, y;};
13690 static struct point const zero = {0,0};
13691 /* AIX XL C 1.02.0.0 rejects this.
13692 It does not let you subtract one const X* pointer from another in
13693 an arm of an if-expression whose if-part is not a constant
13695 const char *g = "string";
13696 pcpcc = &g + (g ? g-g : 0);
13697 /* HPUX 7.0 cc rejects these. */
13699 ppc = (char**) pcpcc;
13700 pcpcc = (char const *const *) ppc;
13701 { /* SCO 3.2v4 cc rejects this sort of thing. */
13704 char const *s = 0 ? (char *) 0 : (char const *) 0;
13709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13710 int x[] = {25, 17};
13711 const int *foo = &x[0];
13714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13715 typedef const int *iptr;
13719 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13721 struct s { int j; const int *ap[3]; } bx;
13722 struct s *b = &bx; b->j = 5;
13724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13725 const int foo = 10;
13726 if (!foo) return 0;
13728 return !cs[0] && !zero.x;
13735 if ac_fn_c_try_compile "$LINENO"; then :
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13743 $as_echo "$ac_cv_c_const" >&6; }
13744 if test $ac_cv_c_const = no; then
13746 $as_echo "#define const /**/" >>confdefs.h
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13751 $as_echo_n "checking for inline... " >&6; }
13752 if ${ac_cv_c_inline+:} false; then :
13753 $as_echo_n "(cached) " >&6
13756 for ac_kw in inline __inline__ __inline; do
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 #ifndef __cplusplus
13761 static $ac_kw foo_t static_foo () {return 0; }
13762 $ac_kw foo_t foo () {return 0; }
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 ac_cv_c_inline=$ac_kw
13769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13770 test "$ac_cv_c_inline" != no && break
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13775 $as_echo "$ac_cv_c_inline" >&6; }
13777 case $ac_cv_c_inline in
13780 case $ac_cv_c_inline in
13782 *) ac_val=$ac_cv_c_inline;;
13784 cat >>confdefs.h <<_ACEOF
13785 #ifndef __cplusplus
13786 #define inline $ac_val
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13793 $as_echo_n "checking for working volatile... " >&6; }
13794 if ${ac_cv_c_volatile+:} false; then :
13795 $as_echo_n "(cached) " >&6
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13805 int * volatile y = (int *) 0;
13811 if ac_fn_c_try_compile "$LINENO"; then :
13812 ac_cv_c_volatile=yes
13814 ac_cv_c_volatile=no
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13819 $as_echo "$ac_cv_c_volatile" >&6; }
13820 if test $ac_cv_c_volatile = no; then
13822 $as_echo "#define volatile /**/" >>confdefs.h
13826 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13827 if test "x$ac_cv_type_size_t" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define size_t unsigned int
13837 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13838 if test "x$ac_cv_type_mode_t" = xyes; then :
13842 cat >>confdefs.h <<_ACEOF
13848 for ac_func in sigdescr_np
13850 ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13851 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13852 cat >>confdefs.h <<_ACEOF
13853 #define HAVE_SIGDESCR_NP 1
13859 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13860 /* NetBSD declares sys_siglist in unistd.h. */
13861 #ifdef HAVE_UNISTD_H
13862 # include <unistd.h>
13866 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13872 cat >>confdefs.h <<_ACEOF
13873 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13881 for ac_header in $ac_header_list
13883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13884 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13886 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13898 if test $ac_cv_header_sys_socket_h = no; then
13899 for ac_header in ws2tcpip.h
13901 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
13902 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_WS2TCPIP_H 1
13913 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13914 /* <sys/types.h> is not needed according to POSIX, but the
13915 <sys/socket.h> in i386-unknown-freebsd4.10 and
13916 powerpc-apple-darwin5.5 required it. */
13917 #include <sys/types.h>
13918 #if HAVE_SYS_SOCKET_H
13919 # include <sys/socket.h>
13920 #elif HAVE_WS2TCPIP_H
13921 # include <ws2tcpip.h>
13925 if test "x$ac_cv_type_socklen_t" = xyes; then :
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13929 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13930 if ${gl_cv_socklen_t_equiv+:} false; then :
13931 $as_echo_n "(cached) " >&6
13933 # Systems have either "struct sockaddr *" or
13934 # "void *" as the second argument to getpeername
13935 gl_cv_socklen_t_equiv=
13936 for arg2 in "struct sockaddr" void; do
13937 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 #include <sys/types.h>
13941 #include <sys/socket.h>
13943 int getpeername (int, $arg2 *, $t *);
13948 getpeername (0, 0, &len);
13953 if ac_fn_c_try_compile "$LINENO"; then :
13954 gl_cv_socklen_t_equiv="$t"
13956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 test "$gl_cv_socklen_t_equiv" != "" && break
13959 test "$gl_cv_socklen_t_equiv" != "" && break
13961 if test "$gl_cv_socklen_t_equiv" = ""; then
13962 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13967 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13969 cat >>confdefs.h <<_ACEOF
13970 #define socklen_t $gl_cv_socklen_t_equiv
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13977 $as_echo_n "checking for library containing inet_addr... " >&6; }
13978 if ${ac_cv_search_inet_addr+:} false; then :
13979 $as_echo_n "(cached) " >&6
13981 ac_func_search_save_LIBS=$LIBS
13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 /* Override any GCC internal prototype to avoid an error.
13986 Use char because int might match the return type of a GCC
13987 builtin and then its argument prototype would still apply. */
13995 return inet_addr ();
14000 for ac_lib in '' nsl; do
14001 if test -z "$ac_lib"; then
14002 ac_res="none required"
14005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 ac_cv_search_inet_addr=$ac_res
14010 rm -f core conftest.err conftest.$ac_objext \
14012 if ${ac_cv_search_inet_addr+:} false; then :
14016 if ${ac_cv_search_inet_addr+:} false; then :
14019 ac_cv_search_inet_addr=no
14021 rm conftest.$ac_ext
14022 LIBS=$ac_func_search_save_LIBS
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14025 $as_echo "$ac_cv_search_inet_addr" >&6; }
14026 ac_res=$ac_cv_search_inet_addr
14027 if test "$ac_res" != no; then :
14028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033 # Check whether --enable-endian-check was given.
14034 if test "${enable_endian_check+set}" = set; then :
14035 enableval=$enable_endian_check; endiancheck=$enableval
14041 if test x"$endiancheck" = xyes ; then
14043 tmp_assumed_endian=big
14045 if test "$cross_compiling" = yes; then
14046 case "$host_cpu" in
14048 tmp_assumed_endian=little
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14055 $as_echo_n "checking endianness... " >&6; }
14056 if ${gnupg_cv_c_endian+:} false; then :
14057 $as_echo_n "(cached) " >&6
14059 gnupg_cv_c_endian=unknown
14060 # See if sys/param.h defines the BYTE_ORDER macro.
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 #include <sys/types.h>
14064 #include <sys/param.h>
14069 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14070 bogus endian macros
14076 if ac_fn_c_try_compile "$LINENO"; then :
14077 # It does; now see whether it defined to BIG_ENDIAN or not.
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 #include <sys/types.h>
14081 #include <sys/param.h>
14086 #if BYTE_ORDER != BIG_ENDIAN
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 gnupg_cv_c_endian=big
14096 gnupg_cv_c_endian=little
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101 if test "$gnupg_cv_c_endian" = unknown; then
14102 if test "$cross_compiling" = yes; then :
14103 gnupg_cv_c_endian=$tmp_assumed_endian
14104 tmp_assumed_warn=" (assumed)"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14110 /* Are we little or big endian? From Harbison&Steele. */
14114 char c[sizeof (long)];
14117 exit (u.c[sizeof (long) - 1] == 1);
14120 if ac_fn_c_try_run "$LINENO"; then :
14121 gnupg_cv_c_endian=little
14123 gnupg_cv_c_endian=big
14125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14126 conftest.$ac_objext conftest.beam conftest.$ac_ext
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14134 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14135 if test "$gnupg_cv_c_endian" = little; then
14137 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14141 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14147 # fixme: we should get rid of the byte type
14148 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14149 if test "x$ac_cv_type_byte" = xyes; then :
14151 cat >>confdefs.h <<_ACEOF
14152 #define HAVE_BYTE 1
14157 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14158 if test "x$ac_cv_type_ushort" = xyes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_USHORT 1
14166 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14167 if test "x$ac_cv_type_ulong" = xyes; then :
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_ULONG 1
14175 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14176 if test "x$ac_cv_type_u16" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14184 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14185 if test "x$ac_cv_type_u32" = xyes; then :
14187 cat >>confdefs.h <<_ACEOF
14194 # The cast to long int works around a bug in the HP C Compiler
14195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14197 # This bug is HP SR number 8606223364.
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14199 $as_echo_n "checking size of unsigned short... " >&6; }
14200 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14201 $as_echo_n "(cached) " >&6
14203 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14206 if test "$ac_cv_type_unsigned_short" = yes; then
14207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14209 as_fn_error 77 "cannot compute sizeof (unsigned short)
14210 See \`config.log' for more details" "$LINENO" 5; }
14212 ac_cv_sizeof_unsigned_short=0
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14218 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14222 cat >>confdefs.h <<_ACEOF
14223 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14227 # The cast to long int works around a bug in the HP C Compiler
14228 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14229 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14230 # This bug is HP SR number 8606223364.
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14232 $as_echo_n "checking size of unsigned int... " >&6; }
14233 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14234 $as_echo_n "(cached) " >&6
14236 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14239 if test "$ac_cv_type_unsigned_int" = yes; then
14240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14242 as_fn_error 77 "cannot compute sizeof (unsigned int)
14243 See \`config.log' for more details" "$LINENO" 5; }
14245 ac_cv_sizeof_unsigned_int=0
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14251 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14255 cat >>confdefs.h <<_ACEOF
14256 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14260 # The cast to long int works around a bug in the HP C Compiler
14261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14263 # This bug is HP SR number 8606223364.
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14265 $as_echo_n "checking size of unsigned long... " >&6; }
14266 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14267 $as_echo_n "(cached) " >&6
14269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14272 if test "$ac_cv_type_unsigned_long" = yes; then
14273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14275 as_fn_error 77 "cannot compute sizeof (unsigned long)
14276 See \`config.log' for more details" "$LINENO" 5; }
14278 ac_cv_sizeof_unsigned_long=0
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14284 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14288 cat >>confdefs.h <<_ACEOF
14289 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14293 # The cast to long int works around a bug in the HP C Compiler
14294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14296 # This bug is HP SR number 8606223364.
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14298 $as_echo_n "checking size of unsigned long long... " >&6; }
14299 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14300 $as_echo_n "(cached) " >&6
14302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14305 if test "$ac_cv_type_unsigned_long_long" = yes; then
14306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14308 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14309 See \`config.log' for more details" "$LINENO" 5; }
14311 ac_cv_sizeof_unsigned_long_long=0
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14317 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14321 cat >>confdefs.h <<_ACEOF
14322 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14326 # The cast to long int works around a bug in the HP C Compiler
14327 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14328 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14329 # This bug is HP SR number 8606223364.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14331 $as_echo_n "checking size of size_t... " >&6; }
14332 if ${ac_cv_sizeof_size_t+:} false; then :
14333 $as_echo_n "(cached) " >&6
14335 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14338 if test "$ac_cv_type_size_t" = yes; then
14339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14341 as_fn_error 77 "cannot compute sizeof (size_t)
14342 See \`config.log' for more details" "$LINENO" 5; }
14344 ac_cv_sizeof_size_t=0
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14350 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14354 cat >>confdefs.h <<_ACEOF
14355 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14359 # The cast to long int works around a bug in the HP C Compiler
14360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14362 # This bug is HP SR number 8606223364.
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14364 $as_echo_n "checking size of time_t... " >&6; }
14365 if ${ac_cv_sizeof_time_t+:} false; then :
14366 $as_echo_n "(cached) " >&6
14368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14370 #ifdef HAVE_SYS_TIME_H
14371 # include <sys/time.h>
14379 if test "$ac_cv_type_time_t" = yes; then
14380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14382 as_fn_error 77 "cannot compute sizeof (time_t)
14383 See \`config.log' for more details" "$LINENO" 5; }
14385 ac_cv_sizeof_time_t=0
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14391 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14395 cat >>confdefs.h <<_ACEOF
14396 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14401 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14402 if ${gnupg_cv_time_t_unsigned+:} false; then :
14403 $as_echo_n "(cached) " >&6
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 $ac_includes_default
14408 #if HAVE_SYS_TIME_H
14409 # include <sys/time.h>
14417 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14418 test_array [0] = 0;
14419 return test_array [0];
14425 if ac_fn_c_try_compile "$LINENO"; then :
14426 gnupg_cv_time_t_unsigned=no
14428 gnupg_cv_time_t_unsigned=yes
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14433 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14434 if test $gnupg_cv_time_t_unsigned = yes; then
14436 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14442 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14443 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14444 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14446 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14451 # Checks for library functions.
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14454 $as_echo "$as_me: checking for library functions" >&6;}
14455 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14456 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14462 cat >>confdefs.h <<_ACEOF
14463 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14467 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14468 if ${ac_cv_sys_largefile_source+:} false; then :
14469 $as_echo_n "(cached) " >&6
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474 #include <sys/types.h> /* for off_t */
14479 int (*fp) (FILE *, off_t, int) = fseeko;
14480 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14485 if ac_fn_c_try_link "$LINENO"; then :
14486 ac_cv_sys_largefile_source=no; break
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h. */
14492 #define _LARGEFILE_SOURCE 1
14493 #include <sys/types.h> /* for off_t */
14498 int (*fp) (FILE *, off_t, int) = fseeko;
14499 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14504 if ac_fn_c_try_link "$LINENO"; then :
14505 ac_cv_sys_largefile_source=1; break
14507 rm -f core conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 ac_cv_sys_largefile_source=unknown
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14514 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14515 case $ac_cv_sys_largefile_source in #(
14518 cat >>confdefs.h <<_ACEOF
14519 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14525 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14526 # in glibc 2.1.3, but that breaks too many other things.
14527 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14528 if test $ac_cv_sys_largefile_source != unknown; then
14530 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14534 for ac_func in vprintf
14536 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14537 if test "x$ac_cv_func_vprintf" = xyes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_VPRINTF 1
14542 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14543 if test "x$ac_cv_func__doprnt" = xyes; then :
14545 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14553 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14554 if test "x$ac_cv_type_pid_t" = xyes; then :
14558 cat >>confdefs.h <<_ACEOF
14564 for ac_header in vfork.h
14566 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14567 if test "x$ac_cv_header_vfork_h" = xyes; then :
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_VFORK_H 1
14576 for ac_func in fork vfork
14578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14581 cat >>confdefs.h <<_ACEOF
14582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14588 if test "x$ac_cv_func_fork" = xyes; then
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14590 $as_echo_n "checking for working fork... " >&6; }
14591 if ${ac_cv_func_fork_works+:} false; then :
14592 $as_echo_n "(cached) " >&6
14594 if test "$cross_compiling" = yes; then :
14595 ac_cv_func_fork_works=cross
14597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14598 /* end confdefs.h. */
14599 $ac_includes_default
14604 /* By Ruediger Kuhlmann. */
14605 return fork () < 0;
14611 if ac_fn_c_try_run "$LINENO"; then :
14612 ac_cv_func_fork_works=yes
14614 ac_cv_func_fork_works=no
14616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14617 conftest.$ac_objext conftest.beam conftest.$ac_ext
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14622 $as_echo "$ac_cv_func_fork_works" >&6; }
14625 ac_cv_func_fork_works=$ac_cv_func_fork
14627 if test "x$ac_cv_func_fork_works" = xcross; then
14629 *-*-amigaos* | *-*-msdosdjgpp*)
14630 # Override, as these systems have only a dummy fork() stub
14631 ac_cv_func_fork_works=no
14634 ac_cv_func_fork_works=yes
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14638 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14640 ac_cv_func_vfork_works=$ac_cv_func_vfork
14641 if test "x$ac_cv_func_vfork" = xyes; then
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14643 $as_echo_n "checking for working vfork... " >&6; }
14644 if ${ac_cv_func_vfork_works+:} false; then :
14645 $as_echo_n "(cached) " >&6
14647 if test "$cross_compiling" = yes; then :
14648 ac_cv_func_vfork_works=cross
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652 /* Thanks to Paul Eggert for this test. */
14653 $ac_includes_default
14654 #include <sys/wait.h>
14655 #ifdef HAVE_VFORK_H
14656 # include <vfork.h>
14658 /* On some sparc systems, changes by the child to local and incoming
14659 argument registers are propagated back to the parent. The compiler
14660 is told about this with #include <vfork.h>, but some compilers
14661 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14662 static variable whose address is put into a register that is
14663 clobbered by the vfork. */
14666 sparc_address_test (int arg)
14668 sparc_address_test (arg) int arg;
14671 static pid_t child;
14689 pid_t parent = getpid ();
14692 sparc_address_test (0);
14697 /* Here is another test for sparc vfork register problems. This
14698 test uses lots of local variables, at least as many local
14699 variables as main has allocated so far including compiler
14700 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14701 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14702 reuse the register of parent for one of the local variables,
14703 since it will think that parent can't possibly be used any more
14704 in this routine. Assigning to the local variable will thus
14705 munge parent in the parent process. */
14707 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14708 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14709 /* Convince the compiler that p..p7 are live; otherwise, it might
14710 use the same hardware register for all 8 local variables. */
14711 if (p != p1 || p != p2 || p != p3 || p != p4
14712 || p != p5 || p != p6 || p != p7)
14715 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14716 from child file descriptors. If the child closes a descriptor
14717 before it execs or exits, this munges the parent's descriptor
14718 as well. Test for this by closing stdout in the child. */
14719 _exit(close(fileno(stdout)) != 0);
14724 while (wait(&status) != child)
14727 /* Was there some problem with vforking? */
14730 /* Did the child fail? (This shouldn't happen.) */
14733 /* Did the vfork/compiler bug occur? */
14734 || parent != getpid()
14736 /* Did the file descriptor bug occur? */
14737 || fstat(fileno(stdout), &st) != 0
14742 if ac_fn_c_try_run "$LINENO"; then :
14743 ac_cv_func_vfork_works=yes
14745 ac_cv_func_vfork_works=no
14747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14748 conftest.$ac_objext conftest.beam conftest.$ac_ext
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14753 $as_echo "$ac_cv_func_vfork_works" >&6; }
14756 if test "x$ac_cv_func_fork_works" = xcross; then
14757 ac_cv_func_vfork_works=$ac_cv_func_vfork
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14759 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14762 if test "x$ac_cv_func_vfork_works" = xyes; then
14764 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14768 $as_echo "#define vfork fork" >>confdefs.h
14771 if test "x$ac_cv_func_fork_works" = xyes; then
14773 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14777 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14778 explicit_bzero fcntl flockfile fsync ftello \
14779 ftruncate funlockfile getaddrinfo getenv getpagesize \
14780 getpwnam getpwuid getrlimit getrusage gettimeofday \
14781 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14782 memmove memrchr mmap nl_langinfo pipe raise rand \
14783 setenv setlocale setrlimit sigaction sigprocmask \
14784 stat stpcpy strcasecmp strerror strftime stricmp \
14785 strlwr strncasecmp strpbrk strsep strtol strtoul \
14786 strtoull tcgetattr timegm times ttyname unsetenv \
14789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14790 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14791 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14792 cat >>confdefs.h <<_ACEOF
14793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14800 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14801 # Given that we use nanosleep only as an optimization over a select
14802 # based wait function we want it only if it is available in libc.
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14805 $as_echo_n "checking for library containing nanosleep... " >&6; }
14806 if ${ac_cv_search_nanosleep+:} false; then :
14807 $as_echo_n "(cached) " >&6
14809 ac_func_search_save_LIBS=$LIBS
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 /* Override any GCC internal prototype to avoid an error.
14814 Use char because int might match the return type of a GCC
14815 builtin and then its argument prototype would still apply. */
14823 return nanosleep ();
14828 for ac_lib in '' ; do
14829 if test -z "$ac_lib"; then
14830 ac_res="none required"
14833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14835 if ac_fn_c_try_link "$LINENO"; then :
14836 ac_cv_search_nanosleep=$ac_res
14838 rm -f core conftest.err conftest.$ac_objext \
14840 if ${ac_cv_search_nanosleep+:} false; then :
14844 if ${ac_cv_search_nanosleep+:} false; then :
14847 ac_cv_search_nanosleep=no
14849 rm conftest.$ac_ext
14850 LIBS=$ac_func_search_save_LIBS
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14853 $as_echo "$ac_cv_search_nanosleep" >&6; }
14854 ac_res=$ac_cv_search_nanosleep
14855 if test "$ac_res" != no; then :
14856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14858 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14865 # See whether libc supports the Linux inotify interface
14868 for ac_func in inotify_init
14870 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14871 if test "x$ac_cv_func_inotify_init" = xyes; then :
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_INOTIFY_INIT 1
14883 if test "$have_android_system" = yes; then
14884 # On Android ttyname is a stub but prints an error message.
14886 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14890 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14892 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_STRUCT_SIGACTION 1
14900 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14902 if test "x$ac_cv_type_sigset_t" = xyes; then :
14904 cat >>confdefs.h <<_ACEOF
14905 #define HAVE_SIGSET_T 1
14912 # Dirmngr requires mmap on Unix systems.
14913 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14914 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14919 # Check for the getsockopt SO_PEERCRED, etc.
14921 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14922 #include <sys/socket.h>
14924 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14926 cat >>confdefs.h <<_ACEOF
14927 #define HAVE_STRUCT_UCRED_PID 1
14932 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
14933 #include <sys/socket.h>
14935 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_STRUCT_UCRED_CR_PID 1
14943 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
14944 #include <sys/socket.h>
14946 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
14957 for ac_func in getpeerucred
14959 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
14960 if test "x$ac_cv_func_getpeerucred" = xyes; then :
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_GETPEERUCRED 1
14971 # W32 specific test
14976 # Do we have zlib? Must do it here because Solaris failed
14977 # when compiling a conftest (due to the "-lz" from LIBS).
14978 # Note that we combine zlib and bzlib2 in ZLIBS.
14980 if test "$use_zip" = yes ; then
14981 _cppflags="${CPPFLAGS}"
14982 _ldflags="${LDFLAGS}"
14984 # Check whether --with-zlib was given.
14985 if test "${with_zlib+set}" = set; then :
14986 withval=$with_zlib;
14987 if test -d "$withval"; then
14988 CPPFLAGS="${CPPFLAGS} -I$withval/include"
14989 LDFLAGS="${LDFLAGS} -L$withval/lib"
14995 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14996 if test "x$ac_cv_header_zlib_h" = xyes; then :
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
14998 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
14999 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15000 $as_echo_n "(cached) " >&6
15002 ac_check_lib_save_LIBS=$LIBS
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15013 char deflateInit2_ ();
15017 return deflateInit2_ ();
15022 if ac_fn_c_try_link "$LINENO"; then :
15023 ac_cv_lib_z_deflateInit2_=yes
15025 ac_cv_lib_z_deflateInit2_=no
15027 rm -f core conftest.err conftest.$ac_objext \
15028 conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15032 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15033 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15037 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15041 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15045 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15053 # Check whether we can support bzip2
15055 if test "$use_bzip2" = yes ; then
15056 _cppflags="${CPPFLAGS}"
15057 _ldflags="${LDFLAGS}"
15059 # Check whether --with-bzip2 was given.
15060 if test "${with_bzip2+set}" = set; then :
15061 withval=$with_bzip2;
15062 if test -d "$withval" ; then
15063 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15064 LDFLAGS="${LDFLAGS} -L$withval/lib"
15072 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15073 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15074 # woefully out of date.
15075 if test "$withval" != no ; then
15076 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15078 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15080 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15081 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15082 $as_echo_n "(cached) " >&6
15084 ac_check_lib_save_LIBS=$LIBS
15086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15087 /* end confdefs.h. */
15089 /* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15095 char BZ2_bzCompressInit ();
15099 return BZ2_bzCompressInit ();
15104 if ac_fn_c_try_link "$LINENO"; then :
15105 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15107 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15109 rm -f core conftest.err conftest.$ac_objext \
15110 conftest$ac_exeext conftest.$ac_ext
15111 LIBS=$ac_check_lib_save_LIBS
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15114 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15115 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15118 ZLIBS="$ZLIBS -lbz2"
15120 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15124 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15128 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15134 if test x"$have_bz2" = "xyes"; then
15135 ENABLE_BZIP2_SUPPORT_TRUE=
15136 ENABLE_BZIP2_SUPPORT_FALSE='#'
15138 ENABLE_BZIP2_SUPPORT_TRUE='#'
15139 ENABLE_BZIP2_SUPPORT_FALSE=
15145 # Check for readline support
15148 # Check whether --with-readline was given.
15149 if test "${with_readline+set}" = set; then :
15150 withval=$with_readline; _do_readline=$withval
15156 gnupg_cv_have_readline=no
15157 if test "$_do_readline" != "no" ; then
15158 if test -d "$withval" ; then
15159 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15160 LDFLAGS="${LDFLAGS} -L$withval/lib"
15163 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15164 _readline_save_libs=$LIBS
15165 _combo="-lreadline${_termcap:+ $_termcap}"
15166 LIBS="$LIBS $_combo"
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15169 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15175 #include <readline/readline.h>
15176 #include <readline/history.h>
15182 rl_completion_func_t *completer;
15183 add_history("foobar");
15184 rl_catch_signals=0;
15185 rl_inhibit_completion=0;
15186 rl_attempted_completion_function=NULL;
15187 rl_completion_matches(NULL,NULL);
15193 if ac_fn_c_try_link "$LINENO"; then :
15194 _found_readline=yes
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15202 $as_echo "$_found_readline" >&6; }
15204 LIBS=$_readline_save_libs
15206 if test $_found_readline = yes ; then
15208 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15210 LIBREADLINE=$_combo
15212 gnupg_cv_have_readline=yes
15218 unset _readline_save_libs
15220 unset _found_readline
15225 if test "$development_version" = yes; then
15227 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15231 if test "$USE_MAINTAINER_MODE" = "yes"; then
15233 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15237 if test x$cross_compiling = xyes; then
15238 CROSS_COMPILING_TRUE=
15239 CROSS_COMPILING_FALSE='#'
15241 CROSS_COMPILING_TRUE='#'
15242 CROSS_COMPILING_FALSE=
15247 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15252 *** It seems that you are not using GNU make. Some make tools have serious
15253 *** flaws and you may not be able to build this software at all. Before you
15254 *** complain, please try GNU make: GNU make is easy to build and available
15255 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15257 $as_echo "$as_me: WARNING:
15259 *** It seems that you are not using GNU make. Some make tools have serious
15260 *** flaws and you may not be able to build this software at all. Before you
15261 *** complain, please try GNU make: GNU make is easy to build and available
15262 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15267 # Add some extra libs here so that previous tests don't fail for
15268 # mysterious reasons - the final link step should bail out.
15269 # W32SOCKLIBS is also defined so that if can be used for tools not
15270 # requiring any network stuff but linking to code in libcommon which
15271 # tracks in winsock stuff (e.g. init_common_subsystems).
15272 if test "$have_w32_system" = yes; then
15273 if test "$have_w32ce_system" = yes; then
15274 W32SOCKLIBS="-lws2"
15276 W32SOCKLIBS="-lws2_32"
15278 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15285 # TPM libtss library .. don't compile TPM support if we don't have it
15288 # Check whether --with-tss was given.
15289 if test "${with_tss+set}" = set; then :
15290 withval=$with_tss; with_tss=$withval
15292 with_tss=autodetect
15297 if test "$build_tpm2d" = "yes"; then
15299 _save_cflags="$CFLAGS"
15301 if test "$with_tss" = autodetect; then
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15303 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15304 if ${ac_cv_search_TSS_Create+:} false; then :
15305 $as_echo_n "(cached) " >&6
15307 ac_func_search_save_LIBS=$LIBS
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15311 /* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15317 char TSS_Create ();
15321 return TSS_Create ();
15326 for ac_lib in '' tss ibmtss; do
15327 if test -z "$ac_lib"; then
15328 ac_res="none required"
15331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 ac_cv_search_TSS_Create=$ac_res
15336 rm -f core conftest.err conftest.$ac_objext \
15338 if ${ac_cv_search_TSS_Create+:} false; then :
15342 if ${ac_cv_search_TSS_Create+:} false; then :
15345 ac_cv_search_TSS_Create=no
15347 rm conftest.$ac_ext
15348 LIBS=$ac_func_search_save_LIBS
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15351 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15352 ac_res=$ac_cv_search_TSS_Create
15353 if test "$ac_res" != no; then :
15354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15358 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15359 if ${ac_cv_search_Esys_Initialize+:} false; then :
15360 $as_echo_n "(cached) " >&6
15362 ac_func_search_save_LIBS=$LIBS
15363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15364 /* end confdefs.h. */
15366 /* Override any GCC internal prototype to avoid an error.
15367 Use char because int might match the return type of a GCC
15368 builtin and then its argument prototype would still apply. */
15372 char Esys_Initialize ();
15376 return Esys_Initialize ();
15381 for ac_lib in '' tss2-esys; do
15382 if test -z "$ac_lib"; then
15383 ac_res="none required"
15386 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15388 if ac_fn_c_try_link "$LINENO"; then :
15389 ac_cv_search_Esys_Initialize=$ac_res
15391 rm -f core conftest.err conftest.$ac_objext \
15393 if ${ac_cv_search_Esys_Initialize+:} false; then :
15397 if ${ac_cv_search_Esys_Initialize+:} false; then :
15400 ac_cv_search_Esys_Initialize=no
15402 rm conftest.$ac_ext
15403 LIBS=$ac_func_search_save_LIBS
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15406 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15407 ac_res=$ac_cv_search_Esys_Initialize
15408 if test "$ac_res" != no; then :
15409 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15417 elif test "$with_tss" = ibm; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15419 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15420 if ${ac_cv_search_TSS_Create+:} false; then :
15421 $as_echo_n "(cached) " >&6
15423 ac_func_search_save_LIBS=$LIBS
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15427 /* Override any GCC internal prototype to avoid an error.
15428 Use char because int might match the return type of a GCC
15429 builtin and then its argument prototype would still apply. */
15433 char TSS_Create ();
15437 return TSS_Create ();
15442 for ac_lib in '' tss ibmtss; do
15443 if test -z "$ac_lib"; then
15444 ac_res="none required"
15447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15449 if ac_fn_c_try_link "$LINENO"; then :
15450 ac_cv_search_TSS_Create=$ac_res
15452 rm -f core conftest.err conftest.$ac_objext \
15454 if ${ac_cv_search_TSS_Create+:} false; then :
15458 if ${ac_cv_search_TSS_Create+:} false; then :
15461 ac_cv_search_TSS_Create=no
15463 rm conftest.$ac_ext
15464 LIBS=$ac_func_search_save_LIBS
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15467 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15468 ac_res=$ac_cv_search_TSS_Create
15469 if test "$ac_res" != no; then :
15470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15473 as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15476 elif test "$with_tss" = intel; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15478 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15479 if ${ac_cv_search_Esys_Initialize+:} false; then :
15480 $as_echo_n "(cached) " >&6
15482 ac_func_search_save_LIBS=$LIBS
15483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15484 /* end confdefs.h. */
15486 /* Override any GCC internal prototype to avoid an error.
15487 Use char because int might match the return type of a GCC
15488 builtin and then its argument prototype would still apply. */
15492 char Esys_Initialize ();
15496 return Esys_Initialize ();
15501 for ac_lib in '' tss2-esys; do
15502 if test -z "$ac_lib"; then
15503 ac_res="none required"
15506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15508 if ac_fn_c_try_link "$LINENO"; then :
15509 ac_cv_search_Esys_Initialize=$ac_res
15511 rm -f core conftest.err conftest.$ac_objext \
15513 if ${ac_cv_search_Esys_Initialize+:} false; then :
15517 if ${ac_cv_search_Esys_Initialize+:} false; then :
15520 ac_cv_search_Esys_Initialize=no
15522 rm conftest.$ac_ext
15523 LIBS=$ac_func_search_save_LIBS
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15526 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15527 ac_res=$ac_cv_search_Esys_Initialize
15528 if test "$ac_res" != no; then :
15529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15532 as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15536 as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15539 if test "$have_libtss" = IBM; then
15540 LIBTSS_CFLAGS="-DTPM_POSIX"
15541 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15542 ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15543 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15545 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15549 ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15550 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15552 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15557 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15569 elif test "$have_libtss" = Intel; then
15571 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15572 # until version 2.4.0.
15574 # Note: the missing API is fairly serious and is also easily backportable
15575 # so keep the check below as is intead of going by library version number.
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15578 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15579 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15580 $as_echo_n "(cached) " >&6
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-ltss2-esys $LIBS"
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15587 /* Override any GCC internal prototype to avoid an error.
15588 Use char because int might match the return type of a GCC
15589 builtin and then its argument prototype would still apply. */
15593 char Esys_TR_GetTpmHandle ();
15597 return Esys_TR_GetTpmHandle ();
15602 if ac_fn_c_try_link "$LINENO"; then :
15603 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15605 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15607 rm -f core conftest.err conftest.$ac_objext \
15608 conftest$ac_exeext conftest.$ac_ext
15609 LIBS=$ac_check_lib_save_LIBS
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15612 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15613 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_LIBTSS2_ESYS 1
15618 LIBS="-ltss2-esys $LIBS"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15623 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15628 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15630 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15634 CFLAGS="$_save_cflags"
15635 if test "$have_libtss" != no; then
15637 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15639 # look for a TPM emulator for testing
15640 # Extract the first word of "tpm_server", so it can be a program name with args.
15641 set dummy tpm_server; ac_word=$2
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15643 $as_echo_n "checking for $ac_word... " >&6; }
15644 if ${ac_cv_path_TPMSERVER+:} false; then :
15645 $as_echo_n "(cached) " >&6
15649 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15653 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15654 for as_dir in $as_dummy
15657 test -z "$as_dir" && as_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15660 ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15671 TPMSERVER=$ac_cv_path_TPMSERVER
15672 if test -n "$TPMSERVER"; then
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15674 $as_echo "$TPMSERVER" >&6; }
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677 $as_echo "no" >&6; }
15681 # Extract the first word of "swtpm", so it can be a program name with args.
15682 set dummy swtpm; ac_word=$2
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15684 $as_echo_n "checking for $ac_word... " >&6; }
15685 if ${ac_cv_path_SWTPM+:} false; then :
15686 $as_echo_n "(cached) " >&6
15690 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15695 for as_dir in $as_dummy
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15701 ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15712 SWTPM=$ac_cv_path_SWTPM
15713 if test -n "$SWTPM"; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15715 $as_echo "$SWTPM" >&6; }
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718 $as_echo "no" >&6; }
15722 # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15723 set dummy swtpm_ioctl; ac_word=$2
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15725 $as_echo_n "checking for $ac_word... " >&6; }
15726 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15727 $as_echo_n "(cached) " >&6
15729 case $SWTPM_IOCTL in
15731 ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15736 for as_dir in $as_dummy
15739 test -z "$as_dir" && as_dir=.
15740 for ac_exec_ext in '' $ac_executable_extensions; do
15741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15742 ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15753 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15754 if test -n "$SWTPM_IOCTL"; then
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15756 $as_echo "$SWTPM_IOCTL" >&6; }
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15759 $as_echo "no" >&6; }
15763 # Extract the first word of "tssstartup", so it can be a program name with args.
15764 set dummy tssstartup; ac_word=$2
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766 $as_echo_n "checking for $ac_word... " >&6; }
15767 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15768 $as_echo_n "(cached) " >&6
15770 case $TSSSTARTUP in
15772 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15777 for as_dir in $as_dummy
15780 test -z "$as_dir" && as_dir=.
15781 for ac_exec_ext in '' $ac_executable_extensions; do
15782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15783 ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15794 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15795 if test -n "$TSSSTARTUP"; then
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15797 $as_echo "$TSSSTARTUP" >&6; }
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15800 $as_echo "no" >&6; }
15806 if test "$have_libtss" = no; then
15811 if test "$have_libtss" != no; then
15813 HAVE_LIBTSS_FALSE='#'
15815 HAVE_LIBTSS_TRUE='#'
15819 if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15821 TEST_LIBTSS_FALSE='#'
15823 TEST_LIBTSS_TRUE='#'
15830 # Setup gcc specific options
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15834 $as_echo "$as_me: checking for cc features" >&6;}
15835 if test "$GCC" = yes; then
15837 mycflags_save=$CFLAGS
15839 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15840 # options. This is the case for gcc >= 4.6
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15842 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15846 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15857 if ac_fn_c_try_compile "$LINENO"; then :
15858 _gcc_silent_wno=yes
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15864 $as_echo "$_gcc_silent_wno" >&6; }
15866 # Note that it is okay to use CFLAGS here because these are just
15867 # warning options and the user should have a chance of overriding
15869 if test "$USE_MAINTAINER_MODE" = "yes"; then
15870 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15871 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15872 if test x"$_gcc_silent_wno" = xyes ; then
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15876 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15877 CFLAGS="-Wno-missing-field-initializers"
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15889 if ac_fn_c_try_compile "$LINENO"; then :
15894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15896 $as_echo "$_gcc_wopt" >&6; }
15898 if test x"$_gcc_wopt" = xyes ; then
15899 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15900 mycflags="$mycflags -Wno-missing-field-initializers"
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15904 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15905 CFLAGS="-Wdeclaration-after-statement"
15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15907 /* end confdefs.h. */
15917 if ac_fn_c_try_compile "$LINENO"; then :
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15924 $as_echo "$_gcc_wopt" >&6; }
15925 if test x"$_gcc_wopt" = xyes ; then
15926 mycflags="$mycflags -Wdeclaration-after-statement"
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15930 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15931 CFLAGS="-Wlogical-op -Werror"
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15943 if ac_fn_c_try_compile "$LINENO"; then :
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15950 $as_echo "$_gcc_wopt" >&6; }
15951 if test x"$_gcc_wopt" = xyes ; then
15952 mycflags="$mycflags -Wlogical-op"
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15956 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15969 if ac_fn_c_try_compile "$LINENO"; then :
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15976 $as_echo "$_gcc_wopt" >&6; }
15977 if test x"$_gcc_wopt" = xyes ; then
15978 mycflags="$mycflags -Wvla"
15982 mycflags="$mycflags -Wall"
15983 if test x"$_gcc_silent_wno" = xyes ; then
15984 mycflags="$mycflags -Wno-format-zero-length"
15988 if test x"$_gcc_silent_wno" = xyes ; then
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15992 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15993 CFLAGS="-Wno-pointer-sign"
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
16005 if ac_fn_c_try_compile "$LINENO"; then :
16010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16012 $as_echo "$_gcc_psign" >&6; }
16014 if test x"$_gcc_psign" = xyes ; then
16015 mycflags="$mycflags -Wno-pointer-sign"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16019 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16020 CFLAGS="-Wpointer-arith"
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022 /* end confdefs.h. */
16032 if ac_fn_c_try_compile "$LINENO"; then :
16037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16039 $as_echo "$_gcc_psign" >&6; }
16040 if test x"$_gcc_psign" = xyes ; then
16041 mycflags="$mycflags -Wpointer-arith"
16044 CFLAGS="$mycflags $mycflags_save"
16045 if test "$use_libdns" = yes; then
16046 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
16047 USE_C99_CFLAGS="-std=gnu99"
16055 # This is handy for debugging so the compiler doesn't rearrange
16056 # things and eliminate variables.
16058 # Check whether --enable-optimization was given.
16059 if test "${enable_optimization+set}" = set; then :
16060 enableval=$enable_optimization; if test $enableval = no ; then
16061 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16067 # log_debug has certain requirements which might hamper portability.
16068 # Thus we use an option to enable it.
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16071 $as_echo_n "checking whether to enable log_clock... " >&6; }
16072 # Check whether --enable-log_clock was given.
16073 if test "${enable_log_clock+set}" = set; then :
16074 enableval=$enable_log_clock; enable_log_clock=$enableval
16076 enable_log_clock=no
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16080 $as_echo "$enable_log_clock" >&6; }
16081 if test "$enable_log_clock" = yes ; then
16083 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16087 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
16088 # misbehaving autoconf tests in case the user supplied -Werror.
16090 # Check whether --enable-werror was given.
16091 if test "${enable_werror+set}" = set; then :
16092 enableval=$enable_werror; if test $enableval = yes ; then
16093 CFLAGS="$CFLAGS -Werror"
16099 # Configure option --enable-all-tests
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16102 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16103 # Check whether --enable-all-tests was given.
16104 if test "${enable_all_tests+set}" = set; then :
16105 enableval=$enable_all_tests; run_all_tests=$enableval
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16111 $as_echo "$run_all_tests" >&6; }
16112 if test "$run_all_tests" = "yes"; then
16114 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16119 # Configure option --disable-tests
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16122 $as_echo_n "checking whether tests should be run... " >&6; }
16123 # Check whether --enable-tests was given.
16124 if test "${enable_tests+set}" = set; then :
16125 enableval=$enable_tests; run_tests=$enableval
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16131 $as_echo "$run_tests" >&6; }
16134 # We do not want support for the GNUPG_BUILDDIR environment variable
16135 # in a released version. However, our regression tests suite requires
16136 # this and thus we build with support for it during "make distcheck".
16137 # This configure option implements this along with the top Makefile's
16138 # AM_DISTCHECK_CONFIGURE_FLAGS.
16140 gnupg_builddir_envvar=no
16141 # Check whether --enable-gnupg-builddir-envvar was given.
16142 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16143 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16146 if test x"$gnupg_builddir_envvar" = x"yes"; then
16148 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16154 # To avoid problems with systemd cleaning up the /run/user directory,
16155 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16158 # Check whether --enable-run-gnupg-user-socket was given.
16159 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16160 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16163 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16165 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16171 # Decide what to build
16174 build_scdaemon_extra=""
16175 if test "$build_scdaemon" = "yes"; then
16176 if test $have_libusb = no; then
16177 build_scdaemon_extra="without internal CCID driver"
16179 if test -n "$build_scdaemon_extra"; then
16180 build_scdaemon_extra="(${build_scdaemon_extra})"
16186 # Set variables for use by automake makefiles.
16188 if test "$build_gpg" = "yes"; then
16190 BUILD_GPG_FALSE='#'
16196 if test "$build_gpgsm" = "yes"; then
16198 BUILD_GPGSM_FALSE='#'
16200 BUILD_GPGSM_TRUE='#'
16204 if test "$build_agent" = "yes"; then
16206 BUILD_AGENT_FALSE='#'
16208 BUILD_AGENT_TRUE='#'
16212 if test "$build_scdaemon" = "yes"; then
16213 BUILD_SCDAEMON_TRUE=
16214 BUILD_SCDAEMON_FALSE='#'
16216 BUILD_SCDAEMON_TRUE='#'
16217 BUILD_SCDAEMON_FALSE=
16220 if test "$build_g13" = "yes"; then
16222 BUILD_G13_FALSE='#'
16228 if test "$build_dirmngr" = "yes"; then
16229 BUILD_DIRMNGR_TRUE=
16230 BUILD_DIRMNGR_FALSE='#'
16232 BUILD_DIRMNGR_TRUE='#'
16233 BUILD_DIRMNGR_FALSE=
16236 if test "$build_keyboxd" = "yes"; then
16237 BUILD_KEYBOXD_TRUE=
16238 BUILD_KEYBOXD_FALSE='#'
16240 BUILD_KEYBOXD_TRUE='#'
16241 BUILD_KEYBOXD_FALSE=
16244 if test "$build_tpm2d" = "yes"; then
16246 BUILD_TPM2D_FALSE='#'
16248 BUILD_TPM2D_TRUE='#'
16252 if test "$build_doc" = "yes"; then
16254 BUILD_DOC_FALSE='#'
16260 if test "$build_gpgtar" = "yes"; then
16262 BUILD_GPGTAR_FALSE='#'
16264 BUILD_GPGTAR_TRUE='#'
16265 BUILD_GPGTAR_FALSE=
16268 if test "$build_wks_tools" = "yes"; then
16269 BUILD_WKS_TOOLS_TRUE=
16270 BUILD_WKS_TOOLS_FALSE='#'
16272 BUILD_WKS_TOOLS_TRUE='#'
16273 BUILD_WKS_TOOLS_FALSE=
16277 if test "$run_tests" != yes; then
16278 DISABLE_TESTS_TRUE=
16279 DISABLE_TESTS_FALSE='#'
16281 DISABLE_TESTS_TRUE='#'
16282 DISABLE_TESTS_FALSE=
16285 if test "$card_support" = yes; then
16286 ENABLE_CARD_SUPPORT_TRUE=
16287 ENABLE_CARD_SUPPORT_FALSE='#'
16289 ENABLE_CARD_SUPPORT_TRUE='#'
16290 ENABLE_CARD_SUPPORT_FALSE=
16293 if test "$use_trust_models" = no; then
16294 NO_TRUST_MODELS_TRUE=
16295 NO_TRUST_MODELS_FALSE='#'
16297 NO_TRUST_MODELS_TRUE='#'
16298 NO_TRUST_MODELS_FALSE=
16301 if test "$use_tofu" = yes; then
16311 # Set some defines for use gpgconf.
16313 if test "$build_gpg" = yes ; then
16315 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16318 if test "$build_gpgsm" = yes ; then
16320 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16323 if test "$build_agent" = yes ; then
16325 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16328 if test "$build_scdaemon" = yes ; then
16330 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16333 if test "$build_dirmngr" = yes ; then
16335 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16338 if test "$build_keyboxd" = yes ; then
16340 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16343 if test "$build_tpm2d" = yes ; then
16345 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16348 if test "$build_g13" = yes ; then
16350 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16356 # Define Name strings
16359 cat >>confdefs.h <<_ACEOF
16360 #define GNUPG_NAME "GnuPG"
16365 cat >>confdefs.h <<_ACEOF
16366 #define GPG_NAME "gpg"
16370 cat >>confdefs.h <<_ACEOF
16371 #define GPG_DISP_NAME "GnuPG"
16376 cat >>confdefs.h <<_ACEOF
16377 #define GPGSM_NAME "gpgsm"
16381 cat >>confdefs.h <<_ACEOF
16382 #define GPGSM_DISP_NAME "GPGSM"
16387 cat >>confdefs.h <<_ACEOF
16388 #define GPG_AGENT_NAME "gpg-agent"
16392 cat >>confdefs.h <<_ACEOF
16393 #define GPG_AGENT_DISP_NAME "GPG Agent"
16398 cat >>confdefs.h <<_ACEOF
16399 #define TPM2DAEMON_NAME "tpm2daemon"
16403 cat >>confdefs.h <<_ACEOF
16404 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16409 cat >>confdefs.h <<_ACEOF
16410 #define SCDAEMON_NAME "scdaemon"
16414 cat >>confdefs.h <<_ACEOF
16415 #define SCDAEMON_DISP_NAME "SCDaemon"
16420 cat >>confdefs.h <<_ACEOF
16421 #define DIRMNGR_NAME "dirmngr"
16425 cat >>confdefs.h <<_ACEOF
16426 #define DIRMNGR_DISP_NAME "DirMngr"
16431 cat >>confdefs.h <<_ACEOF
16432 #define KEYBOXD_NAME "keyboxd"
16436 cat >>confdefs.h <<_ACEOF
16437 #define KEYBOXD_DISP_NAME "Keyboxd"
16442 cat >>confdefs.h <<_ACEOF
16443 #define G13_NAME "g13"
16447 cat >>confdefs.h <<_ACEOF
16448 #define G13_DISP_NAME "G13"
16453 cat >>confdefs.h <<_ACEOF
16454 #define GPGCONF_NAME "gpgconf"
16458 cat >>confdefs.h <<_ACEOF
16459 #define GPGCONF_DISP_NAME "GPGConf"
16464 cat >>confdefs.h <<_ACEOF
16465 #define GPGTAR_NAME "gpgtar"
16470 cat >>confdefs.h <<_ACEOF
16471 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16475 cat >>confdefs.h <<_ACEOF
16476 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16480 cat >>confdefs.h <<_ACEOF
16481 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16485 cat >>confdefs.h <<_ACEOF
16486 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16490 cat >>confdefs.h <<_ACEOF
16491 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16495 cat >>confdefs.h <<_ACEOF
16496 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16500 cat >>confdefs.h <<_ACEOF
16501 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16505 cat >>confdefs.h <<_ACEOF
16506 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16510 cat >>confdefs.h <<_ACEOF
16511 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16515 cat >>confdefs.h <<_ACEOF
16516 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16521 cat >>confdefs.h <<_ACEOF
16522 #define GPGEXT_GPG "gpg"
16526 if test "$have_w32_system" = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16536 # Provide information about the build.
16538 BUILD_REVISION="a4b25bcfe"
16541 cat >>confdefs.h <<_ACEOF
16542 #define BUILD_REVISION "$BUILD_REVISION"
16546 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16547 BUILD_VERSION="${BUILD_VERSION}42162"
16548 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16552 # Check whether --enable-build-timestamp was given.
16553 if test "${enable_build_timestamp+set}" = set; then :
16554 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16555 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16557 BUILD_TIMESTAMP="$enableval"
16559 BUILD_HOSTNAME="$ac_hostname"
16561 BUILD_TIMESTAMP="<none>"
16562 BUILD_HOSTNAME="<anon>"
16567 cat >>confdefs.h <<_ACEOF
16568 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16575 # Print errors here so that they are visible all
16576 # together and the user can acquire them all together.
16579 if test "$have_gpg_error" = "no"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}:
16583 *** You need libgpg-error to build this program.
16584 ** This library is for example available at
16585 *** https://gnupg.org/ftp/gcrypt/gpgrt
16586 *** (at least version $NEED_GPGRT_VERSION is required.)
16590 *** You need libgpg-error to build this program.
16591 ** This library is for example available at
16592 *** https://gnupg.org/ftp/gcrypt/gpgrt
16593 *** (at least version $NEED_GPGRT_VERSION is required.)
16596 if test "$have_libgcrypt" = "no"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}:
16600 *** You need libgcrypt to build this program.
16601 ** This library is for example available at
16602 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16603 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16607 *** You need libgcrypt to build this program.
16608 ** This library is for example available at
16609 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16610 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16613 if test "$have_libassuan" = "no"; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}:
16617 *** You need libassuan to build this program.
16618 *** This library is for example available at
16619 *** https://gnupg.org/ftp/gcrypt/libassuan/
16620 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16624 *** You need libassuan to build this program.
16625 *** This library is for example available at
16626 *** https://gnupg.org/ftp/gcrypt/libassuan/
16627 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16630 if test "$have_ksba" = "no"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}:
16634 *** You need libksba to build this program.
16635 *** This library is for example available at
16636 *** https://gnupg.org/ftp/gcrypt/libksba/
16637 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16641 *** You need libksba to build this program.
16642 *** This library is for example available at
16643 *** https://gnupg.org/ftp/gcrypt/libksba/
16644 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16647 if test "$gnupg_have_ldap" = yes; then
16648 if test "$have_w32ce_system" = yes; then
16649 { $as_echo "$as_me:${as_lineno-$LINENO}:
16650 *** Note that CeGCC might be broken, a package fixing this is:
16651 *** http://files.kolab.org/local/windows-ce/
16652 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16653 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16656 *** Note that CeGCC might be broken, a package fixing this is:
16657 *** http://files.kolab.org/local/windows-ce/
16658 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16659 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16663 if test "$have_npth" = "no"; then
16665 { $as_echo "$as_me:${as_lineno-$LINENO}:
16667 *** It is now required to build with support for the
16668 *** New Portable Threads Library (nPth). Please install this
16669 *** library first. The library is for example available at
16670 *** https://gnupg.org/ftp/gcrypt/npth/
16671 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16675 *** It is now required to build with support for the
16676 *** New Portable Threads Library (nPth). Please install this
16677 *** library first. The library is for example available at
16678 *** https://gnupg.org/ftp/gcrypt/npth/
16679 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16683 if test "$require_iconv" = yes; then
16684 if test "$am_func_iconv" != yes; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}:
16688 *** The system does not provide a working iconv function. Please
16689 *** install a suitable library; for example GNU Libiconv which is
16691 *** https://ftp.gnu.org/gnu/libiconv/
16695 *** The system does not provide a working iconv function. Please
16696 *** install a suitable library; for example GNU Libiconv which is
16698 *** https://ftp.gnu.org/gnu/libiconv/
16703 if test "$use_ccid_driver" = yes; then
16704 if test "$have_libusb" != yes; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}:
16708 *** You need libusb to build the internal ccid driver. Please
16709 *** install a libusb suitable for your system.
16713 *** You need libusb to build the internal ccid driver. Please
16714 *** install a libusb suitable for your system.
16719 if test "$die" = "yes"; then
16722 *** Required libraries not found. Please consult the above messages
16723 *** and install them before running configure again.
16729 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16733 cat >confcache <<\_ACEOF
16734 # This file is a shell script that caches the results of configure
16735 # tests run on this system so they can be shared between configure
16736 # scripts and configure runs, see configure's option --config-cache.
16737 # It is not useful on other systems. If it contains results you don't
16738 # want to keep, you may remove or edit it.
16740 # config.status only pays attention to the cache file if you give it
16741 # the --recheck option to rerun configure.
16743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16745 # following values.
16749 # The following way of writing the cache mishandles newlines in values,
16750 # but we know of no workaround that is simple, portable, and efficient.
16751 # So, we kill variables containing newlines.
16752 # Ultrix sh set writes to stderr and can't be redirected directly,
16753 # and sets the high bit in the cache file unless we assign to the vars.
16755 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16756 eval ac_val=\$$ac_var
16760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16761 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16764 _ | IFS | as_nl) ;; #(
16765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16766 *) { eval $ac_var=; unset $ac_var;} ;;
16772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16773 *${as_nl}ac_space=\ *)
16774 # `set' does not quote correctly, so add quotes: double-quote
16775 # substitution turns \\\\ into \\, and sed turns \\ into \.
16778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16781 # `set' quotes correctly as required by POSIX, so do not add quotes.
16782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16795 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16796 if test -w "$cache_file"; then
16797 if test "x$cache_file" != "x/dev/null"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16799 $as_echo "$as_me: updating cache $cache_file" >&6;}
16800 if test ! -f "$cache_file" || test -h "$cache_file"; then
16801 cat confcache >"$cache_file"
16803 case $cache_file in #(
16805 mv -f confcache "$cache_file"$$ &&
16806 mv -f "$cache_file"$$ "$cache_file" ;; #(
16808 mv -f confcache "$cache_file" ;;
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16814 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16820 # Let make expand exec_prefix.
16821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16823 DEFS=-DHAVE_CONFIG_H
16828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16829 # 1. Remove the extension, and $U if already installed.
16830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16833 # will be set to the directory where LIBOBJS objects are built.
16834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16837 LIBOBJS=$ac_libobjs
16839 LTLIBOBJS=$ac_ltlibobjs
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16843 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16844 if test -n "$am_sleep_pid"; then
16845 # Hide warnings about reused PIDs.
16846 wait $am_sleep_pid 2>/dev/null
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16849 $as_echo "done" >&6; }
16850 if test -n "$EXEEXT"; then
16852 am__EXEEXT_FALSE='#'
16854 am__EXEEXT_TRUE='#'
16858 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16859 as_fn_error $? "conditional \"AMDEP\" was never defined.
16860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16862 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16863 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16866 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16867 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16870 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16871 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16874 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16875 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16878 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16879 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16882 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16883 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16886 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16887 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16890 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16891 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16894 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16895 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16898 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16899 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16902 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16903 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16907 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16911 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16912 if test -n "$am_sleep_pid"; then
16913 # Hide warnings about reused PIDs.
16914 wait $am_sleep_pid 2>/dev/null
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16917 $as_echo "done" >&6; }
16918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16923 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16927 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16931 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16935 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16939 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16943 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16947 as_fn_error $? "conditional \"SQLITE3\" was never defined.
16948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16951 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16954 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16955 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16958 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16959 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16962 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
16963 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
16964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16966 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
16967 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
16968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16970 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16971 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16974 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16975 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16978 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16979 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16982 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16983 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16986 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16987 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16990 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16991 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16994 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
16995 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
16996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16998 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
16999 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17002 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17003 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17006 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17007 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17010 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17011 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17014 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17015 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17018 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17019 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17022 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17023 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17026 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17027 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17031 : "${CONFIG_STATUS=./config.status}"
17033 ac_clean_files_save=$ac_clean_files
17034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17040 # Generated by $as_me.
17041 # Run this file to recreate the current configuration.
17042 # Compiler output produced by configure, useful for debugging
17043 # configure, is in config.log if it exists.
17046 ac_cs_recheck=false
17049 SHELL=\${CONFIG_SHELL-$SHELL}
17052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17053 ## -------------------- ##
17054 ## M4sh Initialization. ##
17055 ## -------------------- ##
17057 # Be more Bourne compatible
17058 DUALCASE=1; export DUALCASE # for MKS sh
17059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17062 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17063 # is contrary to our usage. Disable this feature.
17064 alias -g '${1+"$@"}'='"$@"'
17065 setopt NO_GLOB_SUBST
17067 case `(set -o) 2>/dev/null` in #(
17079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17083 # Prefer a ksh shell builtin over an external printf program on Solaris,
17084 # but without wasting forks for bash or zsh.
17085 if test -z "$BASH_VERSION$ZSH_VERSION" \
17086 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17087 as_echo='print -r --'
17088 as_echo_n='print -rn --'
17089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17090 as_echo='printf %s\n'
17091 as_echo_n='printf %s'
17093 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17094 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17095 as_echo_n='/usr/ucb/echo -n'
17097 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17098 as_echo_n_body='eval
17102 expr "X$arg" : "X\\(.*\\)$as_nl";
17103 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17105 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17107 export as_echo_n_body
17108 as_echo_n='sh -c $as_echo_n_body as_echo'
17110 export as_echo_body
17111 as_echo='sh -c $as_echo_body as_echo'
17114 # The user is always right.
17115 if test "${PATH_SEPARATOR+set}" != set; then
17117 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17118 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17125 # We need space, tab and new line, in precisely that order. Quoting is
17126 # there to prevent editors from complaining about space-tab.
17127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17128 # splitting by setting IFS to empty value.)
17131 # Find who we are. Look in the path if we contain no directory separator.
17134 *[\\/]* ) as_myself=$0 ;;
17135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17136 for as_dir in $PATH
17139 test -z "$as_dir" && as_dir=.
17140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17146 # We did not find ourselves, most probably we were run as `sh COMMAND'
17147 # in which case we are not to be found in the path.
17148 if test "x$as_myself" = x; then
17151 if test ! -f "$as_myself"; then
17152 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17156 # Unset variables that we do not need and which cause bugs (e.g. in
17157 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17158 # suppresses any "Segmentation fault" message there. '((' could
17159 # trigger a bug in pdksh 5.2.14.
17160 for as_var in BASH_ENV ENV MAIL MAILPATH
17161 do eval test x\${$as_var+set} = xset \
17162 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17175 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17178 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17179 # ----------------------------------------
17180 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17181 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17182 # script with STATUS, using 1 if that was 0.
17185 as_status=$1; test $as_status -eq 0 && as_status=1
17187 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17188 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17190 $as_echo "$as_me: error: $2" >&2
17191 as_fn_exit $as_status
17195 # as_fn_set_status STATUS
17196 # -----------------------
17197 # Set $? to STATUS, without forking.
17198 as_fn_set_status ()
17201 } # as_fn_set_status
17203 # as_fn_exit STATUS
17204 # -----------------
17205 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17209 as_fn_set_status $1
17215 # Portably unset VAR.
17218 { eval $1=; unset $1;}
17220 as_unset=as_fn_unset
17221 # as_fn_append VAR VALUE
17222 # ----------------------
17223 # Append the text in VALUE to the end of the definition contained in VAR. Take
17224 # advantage of any shell optimizations that allow amortized linear growth over
17225 # repeated appends, instead of the typical quadratic growth present in naive
17227 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17228 eval 'as_fn_append ()
17239 # as_fn_arith ARG...
17240 # ------------------
17241 # Perform arithmetic evaluation on the ARGs, and store the result in the
17242 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17243 # must be portable across $(()) and expr.
17244 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17245 eval 'as_fn_arith ()
17252 as_val=`expr "$@" || test $? -eq 1`
17257 if expr a : '\(a\)' >/dev/null 2>&1 &&
17258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17264 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17265 as_basename=basename
17270 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17276 as_me=`$as_basename -- "$0" ||
17277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17278 X"$0" : 'X\(//\)$' \| \
17279 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17281 sed '/^.*\/\([^/][^/]*\)\/*$/{
17295 # Avoid depending upon Character Ranges.
17296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17299 as_cr_digits='0123456789'
17300 as_cr_alnum=$as_cr_Letters$as_cr_digits
17302 ECHO_C= ECHO_N= ECHO_T=
17303 case `echo -n x` in #(((((
17305 case `echo 'xy\c'` in
17306 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17308 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17315 rm -f conf$$ conf$$.exe conf$$.file
17316 if test -d conf$$.dir; then
17317 rm -f conf$$.dir/conf$$.file
17320 mkdir conf$$.dir 2>/dev/null
17322 if (echo >conf$$.file) 2>/dev/null; then
17323 if ln -s conf$$.file conf$$ 2>/dev/null; then
17325 # ... but there are two gotchas:
17326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17328 # In both cases, we have to default to `cp -pR'.
17329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17331 elif ln conf$$.file conf$$ 2>/dev/null; then
17339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17340 rmdir conf$$.dir 2>/dev/null
17345 # Create "$as_dir" as a directory, including parents if necessary.
17350 -*) as_dir=./$as_dir;;
17352 test -d "$as_dir" || eval $as_mkdir_p || {
17356 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17357 *) as_qdir=$as_dir;;
17359 as_dirs="'$as_qdir' $as_dirs"
17360 as_dir=`$as_dirname -- "$as_dir" ||
17361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17362 X"$as_dir" : 'X\(//\)[^/]' \| \
17363 X"$as_dir" : 'X\(//\)$' \| \
17364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17365 $as_echo X"$as_dir" |
17366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17370 /^X\(\/\/\)[^/].*/{
17383 test -d "$as_dir" && break
17385 test -z "$as_dirs" || eval "mkdir $as_dirs"
17386 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17390 if mkdir -p . 2>/dev/null; then
17391 as_mkdir_p='mkdir -p "$as_dir"'
17393 test -d ./-p && rmdir ./-p
17398 # as_fn_executable_p FILE
17399 # -----------------------
17400 # Test if FILE is an executable regular file.
17401 as_fn_executable_p ()
17403 test -f "$1" && test -x "$1"
17404 } # as_fn_executable_p
17405 as_test_x='test -x'
17406 as_executable_p=as_fn_executable_p
17408 # Sed expression to map a string onto a valid CPP name.
17409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17411 # Sed expression to map a string onto a valid variable name.
17412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17416 ## ----------------------------------- ##
17417 ## Main body of $CONFIG_STATUS script. ##
17418 ## ----------------------------------- ##
17420 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 # Save the log message, to keep $0 and so on meaningful, and to
17424 # report actual input values of CONFIG_FILES etc. instead of their
17425 # values after options handling.
17427 This file was extended by gnupg $as_me 2.3.5, which was
17428 generated by GNU Autoconf 2.69. Invocation command line was
17430 CONFIG_FILES = $CONFIG_FILES
17431 CONFIG_HEADERS = $CONFIG_HEADERS
17432 CONFIG_LINKS = $CONFIG_LINKS
17433 CONFIG_COMMANDS = $CONFIG_COMMANDS
17436 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17441 case $ac_config_files in *"
17442 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17445 case $ac_config_headers in *"
17446 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17451 # Files that config.status was made for.
17452 config_files="$ac_config_files"
17453 config_headers="$ac_config_headers"
17454 config_commands="$ac_config_commands"
17458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17460 \`$as_me' instantiates files and other configuration actions
17461 from templates according to the current configuration. Unless the files
17462 and actions are specified as TAGs, all are instantiated by default.
17464 Usage: $0 [OPTION]... [TAG]...
17466 -h, --help print this help, then exit
17467 -V, --version print version number and configuration settings, then exit
17468 --config print configuration, then exit
17469 -q, --quiet, --silent
17470 do not print progress messages
17471 -d, --debug don't remove temporary files
17472 --recheck update $as_me by reconfiguring in the same conditions
17473 --file=FILE[:TEMPLATE]
17474 instantiate the configuration file FILE
17475 --header=FILE[:TEMPLATE]
17476 instantiate the configuration header FILE
17478 Configuration files:
17481 Configuration headers:
17484 Configuration commands:
17487 Report bugs to <https://bugs.gnupg.org>."
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17493 gnupg config.status 2.3.5
17494 configured by $0, generated by GNU Autoconf 2.69,
17495 with options \\"\$ac_cs_config\\"
17497 Copyright (C) 2012 Free Software Foundation, Inc.
17498 This config.status script is free software; the Free Software Foundation
17499 gives unlimited permission to copy, distribute and modify it."
17506 test -n "\$AWK" || AWK=awk
17509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17510 # The default lists apply if the user does not specify any file.
17516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17533 # Handling of the options.
17534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17537 $as_echo "$ac_cs_version"; exit ;;
17538 --config | --confi | --conf | --con | --co | --c )
17539 $as_echo "$ac_cs_config"; exit ;;
17540 --debug | --debu | --deb | --de | --d | -d )
17542 --file | --fil | --fi | --f )
17545 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17546 '') as_fn_error $? "missing file argument" ;;
17548 as_fn_append CONFIG_FILES " '$ac_optarg'"
17549 ac_need_defaults=false;;
17550 --header | --heade | --head | --hea )
17553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17555 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17556 ac_need_defaults=false;;
17558 # Conflict between --help and --header
17559 as_fn_error $? "ambiguous option: \`$1'
17560 Try \`$0 --help' for more information.";;
17561 --help | --hel | -h )
17562 $as_echo "$ac_cs_usage"; exit ;;
17563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17567 # This is an error.
17568 -*) as_fn_error $? "unrecognized option: \`$1'
17569 Try \`$0 --help' for more information." ;;
17571 *) as_fn_append ac_config_targets " $1"
17572 ac_need_defaults=false ;;
17578 ac_configure_extra_args=
17580 if $ac_cs_silent; then
17582 ac_configure_extra_args="$ac_configure_extra_args --silent"
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 if \$ac_cs_recheck; then
17588 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17590 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17591 CONFIG_SHELL='$SHELL'
17592 export CONFIG_SHELL
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17602 ## Running $as_me. ##
17608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17612 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17613 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17614 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17615 # from automake < 1.5.
17616 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17617 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17618 LINGUAS="${LINGUAS-%UNSET%}"
17623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 # Handling of arguments.
17626 for ac_config_target in $ac_config_targets
17628 case $ac_config_target in
17629 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17630 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17631 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17632 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17633 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17634 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17635 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17636 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17637 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17638 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17639 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17640 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17641 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17642 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17643 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17644 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17645 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17646 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17647 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17648 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17649 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17650 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17651 "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17652 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17653 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17654 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17655 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17656 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17657 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17658 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17659 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17660 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17661 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17662 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17664 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17669 # If the user did not use the arguments to specify the items to instantiate,
17670 # then the envvar interface is used. Set only those that are not.
17671 # We use the long form for the default assignment because of an extremely
17672 # bizarre bug on SunOS 4.1.3.
17673 if $ac_need_defaults; then
17674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17679 # Have a temporary directory for convenience. Make it in the build tree
17680 # simply because there is no reason against having it here, and in addition,
17681 # creating and moving files from /tmp can sometimes cause problems.
17682 # Hook for its removal unless debugging.
17683 # Note that there is a small window in which the directory will not be cleaned:
17684 # after its creation but before its name has been assigned to `$tmp'.
17688 trap 'exit_status=$?
17689 : "${ac_tmp:=$tmp}"
17690 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17692 trap 'as_fn_exit 1' 1 2 13 15
17694 # Create a (secure) tmp directory for tmp files.
17697 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17701 tmp=./conf$$-$RANDOM
17702 (umask 077 && mkdir "$tmp")
17703 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17706 # Set up the scripts for CONFIG_FILES section.
17707 # No need to generate them if there are no CONFIG_FILES.
17708 # This happens for instance with `./config.status config.h'.
17709 if test -n "$CONFIG_FILES"; then
17712 ac_cr=`echo X | tr X '\015'`
17713 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17714 # But we know of no other shell where ac_cr would be empty at this
17715 # point, so we can use a bashism as a fallback.
17716 if test "x$ac_cr" = x; then
17717 eval ac_cr=\$\'\\r\'
17719 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17720 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17723 ac_cs_awk_cr=$ac_cr
17726 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17731 echo "cat >conf$$subs.awk <<_ACEOF" &&
17732 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17734 } >conf$$subs.sh ||
17735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17736 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17738 for ac_last_try in false false false false false :; do
17739 . ./conf$$subs.sh ||
17740 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17742 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17743 if test $ac_delim_n = $ac_delim_num; then
17745 elif $ac_last_try; then
17746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17748 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17751 rm -f conf$$subs.sh
17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17758 s/^/S["/; s/!.*/"]=/
17768 s/\(.\{148\}\)..*/\1/
17770 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17775 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17782 s/\(.\{148\}\)..*/\1/
17784 s/["\\]/\\&/g; s/^/"/; s/$/"/
17788 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17793 ' <conf$$subs.awk | sed '
17798 ' >>$CONFIG_STATUS || ac_write_fail=1
17799 rm -f conf$$subs.awk
17800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17802 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17803 for (key in S) S_is_set[key] = 1
17809 nfields = split(line, field, "@")
17811 len = length(field[1])
17812 for (i = 2; i < nfields; i++) {
17814 keylen = length(key)
17815 if (S_is_set[key]) {
17817 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17818 len += length(value) + length(field[++i])
17829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17830 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17831 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17834 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17835 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17838 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17839 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17840 # trailing colons and then remove the whole line if VPATH becomes empty
17841 # (actually we leave an empty line to preserve line numbers).
17842 if test "x$srcdir" = x.; then
17843 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862 fi # test -n "$CONFIG_FILES"
17864 # Set up the scripts for CONFIG_HEADERS section.
17865 # No need to generate them if there are no CONFIG_HEADERS.
17866 # This happens for instance with `./config.status Makefile'.
17867 if test -n "$CONFIG_HEADERS"; then
17868 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17872 # Transform confdefs.h into an awk script `defines.awk', embedded as
17873 # here-document in config.status, that substitutes the proper values into
17874 # config.h.in to produce config.h.
17876 # Create a delimiter string that does not exist in confdefs.h, to ease
17877 # handling of long lines.
17879 for ac_last_try in false false :; do
17880 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17881 if test -z "$ac_tt"; then
17883 elif $ac_last_try; then
17884 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17890 # For the awk script, D is an array of macro values keyed by name,
17891 # likewise P contains macro parameters if any. Preserve backslash
17892 # newline sequences.
17894 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17896 s/.\{148\}/&'"$ac_delim"'/g
17899 s/^[ ]*#[ ]*define[ ][ ]*/ /
17906 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17908 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17913 D["\1"]=" \3\\\\\\n"\\/p
17915 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17920 s/.\{148\}/&'"$ac_delim"'/g
17925 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17928 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17930 ' <confdefs.h | sed '
17931 s/'"$ac_delim"'/"\\\
17932 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17935 for (key in D) D_is_set[key] = 1
17938 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17940 split(line, arg, " ")
17941 if (arg[1] == "#") {
17945 defundef = substr(arg[1], 2)
17948 split(mac1, mac2, "(") #)
17950 prefix = substr(line, 1, index(line, defundef) - 1)
17951 if (D_is_set[macro]) {
17952 # Preserve the white space surrounding the "#".
17953 print prefix "define", macro P[macro] D[macro]
17956 # Replace #undef with comments. This is necessary, for example,
17957 # in the case of _POSIX_SOURCE, which is predefined and required
17958 # on some systems where configure will not decide to define it.
17959 if (defundef == "undef") {
17960 print "/*", prefix defundef, macro, "*/"
17968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17969 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17970 fi # test -n "$CONFIG_HEADERS"
17973 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17978 :[FHLC]) ac_mode=$ac_tag; continue;;
17980 case $ac_mode$ac_tag in
17982 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17983 :[FH]-) ac_tag=-:-;;
17984 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18001 -) ac_f="$ac_tmp/stdin";;
18002 *) # Look for the file first in the build tree, then in the source tree
18003 # (if the path is not absolute). The absolute path cannot be DOS-style,
18004 # because $ac_f cannot contain `:'.
18008 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18010 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18012 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18013 as_fn_append ac_file_inputs " '$ac_f'"
18016 # Let's still pretend it is `configure' which instantiates (i.e., don't
18017 # use $as_me), people would be surprised to read:
18018 # /* config.h. Generated by config.status. */
18019 configure_input='Generated from '`
18020 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18022 if test x"$ac_file" != x-; then
18023 configure_input="$ac_file. $configure_input"
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18025 $as_echo "$as_me: creating $ac_file" >&6;}
18027 # Neutralize special characters interpreted by sed in replacement strings.
18028 case $configure_input in #(
18029 *\&* | *\|* | *\\* )
18030 ac_sed_conf_input=`$as_echo "$configure_input" |
18031 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18032 *) ac_sed_conf_input=$configure_input;;
18036 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18042 ac_dir=`$as_dirname -- "$ac_file" ||
18043 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18044 X"$ac_file" : 'X\(//\)[^/]' \| \
18045 X"$ac_file" : 'X\(//\)$' \| \
18046 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18047 $as_echo X"$ac_file" |
18048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18052 /^X\(\/\/\)[^/].*/{
18065 as_dir="$ac_dir"; as_fn_mkdir_p
18069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18071 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18072 # A ".." for each directory in $ac_dir_suffix.
18073 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18074 case $ac_top_builddir_sub in
18075 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18076 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18079 ac_abs_top_builddir=$ac_pwd
18080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18081 # for backward compatibility:
18082 ac_top_builddir=$ac_top_build_prefix
18085 .) # We are building in place.
18087 ac_top_srcdir=$ac_top_builddir_sub
18088 ac_abs_top_srcdir=$ac_pwd ;;
18089 [\\/]* | ?:[\\/]* ) # Absolute name.
18090 ac_srcdir=$srcdir$ac_dir_suffix;
18091 ac_top_srcdir=$srcdir
18092 ac_abs_top_srcdir=$srcdir ;;
18093 *) # Relative name.
18094 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18095 ac_top_srcdir=$ac_top_build_prefix$srcdir
18096 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18108 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18109 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18111 ac_MKDIR_P=$MKDIR_P
18113 [\\/$]* | ?:[\\/]* ) ;;
18114 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18119 # If the template does not know about datarootdir, expand it.
18120 # FIXME: This hack should be removed a few years after 2.60.
18121 ac_datarootdir_hack=; ac_datarootdir_seen=
18132 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18133 *datarootdir*) ac_datarootdir_seen=yes;;
18134 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18136 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18139 ac_datarootdir_hack='
18140 s&@datadir@&$datadir&g
18141 s&@docdir@&$docdir&g
18142 s&@infodir@&$infodir&g
18143 s&@localedir@&$localedir&g
18144 s&@mandir@&$mandir&g
18145 s&\\\${datarootdir}&$datarootdir&g' ;;
18149 # Neutralize VPATH when `$srcdir' = `.'.
18150 # Shell code in configure.ac might set extrasub.
18151 # FIXME: do we really want to maintain this feature?
18152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18153 ac_sed_extra="$ac_vpsub
18156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18158 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18159 s|@configure_input@|$ac_sed_conf_input|;t t
18160 s&@top_builddir@&$ac_top_builddir_sub&;t t
18161 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18162 s&@srcdir@&$ac_srcdir&;t t
18163 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18164 s&@top_srcdir@&$ac_top_srcdir&;t t
18165 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18166 s&@builddir@&$ac_builddir&;t t
18167 s&@abs_builddir@&$ac_abs_builddir&;t t
18168 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18169 s&@INSTALL@&$ac_INSTALL&;t t
18170 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18171 $ac_datarootdir_hack
18173 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18174 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18177 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18179 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18181 which seems to be undefined. Please make sure it is defined" >&5
18182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18183 which seems to be undefined. Please make sure it is defined" >&2;}
18185 rm -f "$ac_tmp/stdin"
18187 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18188 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18196 if test x"$ac_file" != x-; then
18198 $as_echo "/* $configure_input */" \
18199 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18200 } >"$ac_tmp/config.h" \
18201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18202 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18207 mv "$ac_tmp/config.h" "$ac_file" \
18208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18211 $as_echo "/* $configure_input */" \
18212 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18213 || as_fn_error $? "could not create -" "$LINENO" 5
18215 # Compute "$ac_file"'s index in $config_headers.
18218 for _am_header in $config_headers :; do
18219 case $_am_header in
18220 $_am_arg | $_am_arg:* )
18223 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18226 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18227 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18228 X"$_am_arg" : 'X\(//\)[^/]' \| \
18229 X"$_am_arg" : 'X\(//\)$' \| \
18230 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18231 $as_echo X"$_am_arg" |
18232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18236 /^X\(\/\/\)[^/].*/{
18248 s/.*/./; q'`/stamp-h$_am_stamp_count
18251 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18252 $as_echo "$as_me: executing $ac_file commands" >&6;}
18257 case $ac_file$ac_mode in
18258 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18259 # Older Autoconf quotes --file arguments for eval, but not when files
18260 # are listed without --file. Let's play safe and only enable the eval
18261 # if we detect the quoting.
18262 # TODO: see whether this extra hack can be removed once we start
18263 # requiring Autoconf 2.70 or later.
18264 case $CONFIG_FILES in #(
18266 eval set x "$CONFIG_FILES" ;; #(
18268 set x $CONFIG_FILES ;; #(
18273 # Used to flag and report bootstrapping failures.
18277 # Strip MF so we end up with the name of the file.
18278 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18279 # Check whether this is an Automake generated Makefile which includes
18280 # dependency-tracking related rules and includes.
18281 # Grep'ing the whole file directly is not great: AIX grep has a line
18282 # limit of 2048, but all sed's we know have understand at least 4000.
18283 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18285 am_dirpart=`$as_dirname -- "$am_mf" ||
18286 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18287 X"$am_mf" : 'X\(//\)[^/]' \| \
18288 X"$am_mf" : 'X\(//\)$' \| \
18289 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18290 $as_echo X"$am_mf" |
18291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18295 /^X\(\/\/\)[^/].*/{
18308 am_filepart=`$as_basename -- "$am_mf" ||
18309 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18310 X"$am_mf" : 'X\(//\)$' \| \
18311 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18312 $as_echo X/"$am_mf" |
18313 sed '/^.*\/\([^/][^/]*\)\/*$/{
18326 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18327 && sed -e '/# am--include-marker/d' "$am_filepart" \
18328 | $MAKE -f - am--depfiles" >&5
18329 (cd "$am_dirpart" \
18330 && sed -e '/# am--include-marker/d' "$am_filepart" \
18331 | $MAKE -f - am--depfiles) >&5 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } || am_rc=$?
18336 if test $am_rc -ne 0; then
18337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18339 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18340 for automatic dependency tracking. If GNU make was not used, consider
18341 re-running the configure script with MAKE=\"gmake\" (or whatever is
18342 necessary). You can also try re-running configure with the
18343 '--disable-dependency-tracking' option to at least be able to build
18344 the package (albeit without support for automatic dependency tracking).
18345 See \`config.log' for more details" "$LINENO" 5; }
18347 { am_dirpart=; unset am_dirpart;}
18348 { am_filepart=; unset am_filepart;}
18349 { am_mf=; unset am_mf;}
18350 { am_rc=; unset am_rc;}
18351 rm -f conftest-deps.mk
18354 "po-directories":C)
18355 for ac_file in $CONFIG_FILES; do
18356 # Support "outfile[:infile[:infile...]]"
18358 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18360 # PO directories have a Makefile.in generated from Makefile.in.in.
18361 case "$ac_file" in */Makefile.in)
18362 # Adjust a relative srcdir.
18363 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18364 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18365 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18366 # In autoconf-2.13 it is called $ac_given_srcdir.
18367 # In autoconf-2.50 it is called $srcdir.
18368 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18369 case "$ac_given_srcdir" in
18370 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18371 /*) top_srcdir="$ac_given_srcdir" ;;
18372 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18374 # Treat a directory as a PO directory if and only if it has a
18375 # POTFILES.in file. This allows packages to have multiple PO
18376 # directories under different names or in different locations.
18377 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18378 rm -f "$ac_dir/POTFILES"
18379 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18380 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18381 POMAKEFILEDEPS="POTFILES.in"
18382 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18383 # on $ac_dir but don't depend on user-specified configuration
18385 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18386 # The LINGUAS file contains the set of available languages.
18387 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18388 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18390 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18391 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18392 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18393 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18395 # The set of available languages was given in configure.in.
18396 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18397 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18400 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18401 # Compute UPDATEPOFILES
18402 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18403 # Compute DUMMYPOFILES
18404 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18406 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18407 case "$ac_given_srcdir" in
18409 *) srcdirpre='$(srcdir)/' ;;
18415 for lang in $ALL_LINGUAS; do
18416 POFILES="$POFILES $srcdirpre$lang.po"
18417 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18418 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18419 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18421 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18422 # environment variable.
18424 if test -n "$ALL_LINGUAS"; then
18425 for presentlang in $ALL_LINGUAS; do
18427 if test "%UNSET%" != "$LINGUAS"; then
18428 desiredlanguages="$LINGUAS"
18430 desiredlanguages="$ALL_LINGUAS"
18432 for desiredlang in $desiredlanguages; do
18433 # Use the presentlang catalog if desiredlang is
18434 # a. equal to presentlang, or
18435 # b. a variant of presentlang (because in this case,
18436 # presentlang can be used as a fallback for messages
18437 # which are not translated in the desiredlang catalog).
18438 case "$desiredlang" in
18439 "$presentlang"*) useit=yes;;
18442 if test $useit = yes; then
18443 INST_LINGUAS="$INST_LINGUAS $presentlang"
18448 if test -n "$INST_LINGUAS"; then
18449 for lang in $INST_LINGUAS; do
18450 CATALOGS="$CATALOGS $lang.gmo"
18453 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18454 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18455 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18456 if test -f "$f"; then
18458 *.orig | *.bak | *~) ;;
18459 *) cat "$f" >> "$ac_dir/Makefile" ;;
18474 ac_clean_files=$ac_clean_files_save
18476 test $ac_write_fail = 0 ||
18477 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18480 # configure is writing to config.log, and then calls config.status.
18481 # config.status does its own redirection, appending to config.log.
18482 # Unfortunately, on DOS this fails, as config.log is still kept open
18483 # by configure, so config.status won't be able to write to it; its
18484 # output is simply discarded. So we exec the FD to /dev/null,
18485 # effectively closing config.log, so it can be properly (re)opened and
18486 # appended to by config.status. When coming back to configure, we
18487 # need to make the FD available again.
18488 if test "$no_create" != yes; then
18490 ac_config_status_args=
18491 test "$silent" = yes &&
18492 ac_config_status_args="$ac_config_status_args --quiet"
18494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18497 # would make configure fail if this is the last instruction.
18498 $ac_cs_success || as_fn_exit 1
18500 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18502 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18507 if test "$build_tpm2d" = "yes"; then
18508 show_tss_type="($have_libtss)"
18512 GnuPG v${VERSION} has been configured as follows:
18514 Revision: a4b25bcfe (42162)
18515 Platform: $PRINTABLE_OS_NAME ($host)
18517 OpenPGP: $build_gpg
18518 S/MIME: $build_gpgsm
18519 Agent: $build_agent
18520 Smartcard: $build_scdaemon $build_scdaemon_extra
18521 TPM: $build_tpm2d $show_tss_type
18523 Dirmngr: $build_dirmngr
18524 Keyboxd: $build_keyboxd
18525 Gpgtar: $build_gpgtar
18526 WKS tools: $build_wks_tools
18528 Protect tool: $show_gnupg_protect_tool_pgm
18529 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18530 Default agent: $show_gnupg_agent_pgm
18531 Default pinentry: $show_gnupg_pinentry_pgm
18532 Default scdaemon: $show_gnupg_scdaemon_pgm
18533 Default keyboxd: $show_gnupg_keyboxd_pgm
18534 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18535 Default dirmngr: $show_gnupg_dirmngr_pgm
18537 Dirmngr auto start: $dirmngr_auto_start
18538 Readline support: $gnupg_cv_have_readline
18539 LDAP support: $gnupg_have_ldap
18540 TLS support: $use_tls_library
18541 TOFU support: $use_tofu
18542 Tor support: $show_tor_support
18544 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18546 Warning: TPM support is compiled in but no software TPM
18547 for testing was discovered. TPM tests are disabled
18551 if test "x${gpg_config_script_warn}" != x; then
18553 Warning: Mismatches between the target platform and the
18554 to be used libraries have been detected for:
18555 ${gpg_config_script_warn}
18556 Please check above for more warning messages.
18560 if test "${build_gpg}" != "yes"; then
18562 Warning: The component "gpg" is used by other components as
18563 well as for the test suite. You have disabled
18564 this component and thus other things won't work.
18568 if test "${run_tests}" != "yes"; then
18570 Warning: The use of the test suite has been disabled!
18571 This is in almost all cases a bad idea. Take care.