2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.3.
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.3'
584 PACKAGE_STRING='gnupg 2.3.3'
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
688 BUILD_INCLUDED_LIBINTL
695 XGETTEXT_EXTRA_OPTIONS
703 GETTEXT_MACRO_VERSION
747 HAVE_ANDROID_SYSTEM_FALSE
748 HAVE_ANDROID_SYSTEM_TRUE
749 HAVE_W32CE_SYSTEM_FALSE
750 HAVE_W32CE_SYSTEM_TRUE
751 HAVE_W32_SYSTEM_FALSE
753 USE_SIMPLE_GETTEXT_FALSE
754 USE_SIMPLE_GETTEXT_TRUE
755 HAVE_DOSISH_SYSTEM_FALSE
756 HAVE_DOSISH_SYSTEM_TRUE
761 AWK_HEX_NUMBER_OPTION
772 MAINTAINER_MODE_FALSE
778 GNUPG_DIRMNGR_LDAP_PGM_FALSE
779 GNUPG_DIRMNGR_LDAP_PGM_TRUE
780 GNUPG_DIRMNGR_LDAP_PGM
781 GNUPG_PROTECT_TOOL_PGM_FALSE
782 GNUPG_PROTECT_TOOL_PGM_TRUE
783 GNUPG_PROTECT_TOOL_PGM
784 GNUPG_KEYBOXD_PGM_FALSE
785 GNUPG_KEYBOXD_PGM_TRUE
787 GNUPG_DIRMNGR_PGM_FALSE
788 GNUPG_DIRMNGR_PGM_TRUE
790 GNUPG_TPM2DAEMON_PGM_FALSE
791 GNUPG_TPM2DAEMON_PGM_TRUE
793 GNUPG_SCDAEMON_PGM_FALSE
794 GNUPG_SCDAEMON_PGM_TRUE
796 GNUPG_PINENTRY_PGM_FALSE
797 GNUPG_PINENTRY_PGM_TRUE
799 GNUPG_AGENT_PGM_FALSE
842 INSTALL_STRIP_PROGRAM
885 program_transform_name
899 enable_option_checking
901 enable_dependency_tracking
917 with_protect_tool_pgm
918 with_dirmngr_ldap_pgm
920 enable_selinux_support
922 with_agent_s2k_calibration
937 enable_gpg_camellia128
938 enable_gpg_camellia192
939 enable_gpg_camellia256
954 enable_dirmngr_auto_start
955 enable_maintainer_mode
957 with_libgpg_error_prefix
958 with_gpg_error_prefix
959 with_libgcrypt_prefix
960 with_libassuan_prefix
969 with_default_trust_store_file
988 enable_gnupg_builddir_envvar
989 enable_run_gnupg_user_socket
990 enable_build_timestamp
992 ac_precious_vars='build_alias
1013 # Initialize some variables set by options.
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1027 program_transform_name=s,x,x,
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 runstatedir='${localstatedir}/run'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1053 infodir='${datarootdir}/info'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1066 # If the previous option needs an argument, assign it.
1067 if test -n "$ac_prev"; then
1068 eval $ac_prev=\$ac_option
1074 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1079 # Accept the important Cygnus configure options, so we can diagnose typos.
1081 case $ac_dashdash$ac_option in
1085 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1087 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1088 bindir=$ac_optarg ;;
1090 -build | --build | --buil | --bui | --bu)
1091 ac_prev=build_alias ;;
1092 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1093 build_alias=$ac_optarg ;;
1095 -cache-file | --cache-file | --cache-fil | --cache-fi \
1096 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1097 ac_prev=cache_file ;;
1098 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1099 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1100 cache_file=$ac_optarg ;;
1102 --config-cache | -C)
1103 cache_file=config.cache ;;
1105 -datadir | --datadir | --datadi | --datad)
1107 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1108 datadir=$ac_optarg ;;
1110 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1111 | --dataroo | --dataro | --datar)
1112 ac_prev=datarootdir ;;
1113 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1114 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1115 datarootdir=$ac_optarg ;;
1117 -disable-* | --disable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121 as_fn_error $? "invalid feature name: $ac_useropt"
1122 ac_useropt_orig=$ac_useropt
1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124 case $ac_user_opts in
1126 "enable_$ac_useropt"
1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1129 ac_unrecognized_sep=', ';;
1131 eval enable_$ac_useropt=no ;;
1133 -docdir | --docdir | --docdi | --doc | --do)
1135 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1136 docdir=$ac_optarg ;;
1138 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1140 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1141 dvidir=$ac_optarg ;;
1143 -enable-* | --enable-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid feature name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_$ac_useropt"
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval enable_$ac_useropt=\$ac_optarg ;;
1159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161 | --exec | --exe | --ex)
1162 ac_prev=exec_prefix ;;
1163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165 | --exec=* | --exe=* | --ex=*)
1166 exec_prefix=$ac_optarg ;;
1168 -gas | --gas | --ga | --g)
1169 # Obsolete; use --with-gas.
1172 -help | --help | --hel | --he | -h)
1173 ac_init_help=long ;;
1174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175 ac_init_help=recursive ;;
1176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177 ac_init_help=short ;;
1179 -host | --host | --hos | --ho)
1180 ac_prev=host_alias ;;
1181 -host=* | --host=* | --hos=* | --ho=*)
1182 host_alias=$ac_optarg ;;
1184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1188 htmldir=$ac_optarg ;;
1190 -includedir | --includedir | --includedi | --included | --include \
1191 | --includ | --inclu | --incl | --inc)
1192 ac_prev=includedir ;;
1193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194 | --includ=* | --inclu=* | --incl=* | --inc=*)
1195 includedir=$ac_optarg ;;
1197 -infodir | --infodir | --infodi | --infod | --info | --inf)
1199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200 infodir=$ac_optarg ;;
1202 -libdir | --libdir | --libdi | --libd)
1204 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205 libdir=$ac_optarg ;;
1207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208 | --libexe | --libex | --libe)
1209 ac_prev=libexecdir ;;
1210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211 | --libexe=* | --libex=* | --libe=*)
1212 libexecdir=$ac_optarg ;;
1214 -localedir | --localedir | --localedi | --localed | --locale)
1215 ac_prev=localedir ;;
1216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217 localedir=$ac_optarg ;;
1219 -localstatedir | --localstatedir | --localstatedi | --localstated \
1220 | --localstate | --localstat | --localsta | --localst | --locals)
1221 ac_prev=localstatedir ;;
1222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224 localstatedir=$ac_optarg ;;
1226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229 mandir=$ac_optarg ;;
1231 -nfp | --nfp | --nf)
1232 # Obsolete; use --without-fp.
1235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236 | --no-cr | --no-c | -n)
1239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245 | --oldin | --oldi | --old | --ol | --o)
1246 ac_prev=oldincludedir ;;
1247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250 oldincludedir=$ac_optarg ;;
1252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255 prefix=$ac_optarg ;;
1257 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258 | --program-pre | --program-pr | --program-p)
1259 ac_prev=program_prefix ;;
1260 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262 program_prefix=$ac_optarg ;;
1264 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265 | --program-suf | --program-su | --program-s)
1266 ac_prev=program_suffix ;;
1267 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269 program_suffix=$ac_optarg ;;
1271 -program-transform-name | --program-transform-name \
1272 | --program-transform-nam | --program-transform-na \
1273 | --program-transform-n | --program-transform- \
1274 | --program-transform | --program-transfor \
1275 | --program-transfo | --program-transf \
1276 | --program-trans | --program-tran \
1277 | --progr-tra | --program-tr | --program-t)
1278 ac_prev=program_transform_name ;;
1279 -program-transform-name=* | --program-transform-name=* \
1280 | --program-transform-nam=* | --program-transform-na=* \
1281 | --program-transform-n=* | --program-transform-=* \
1282 | --program-transform=* | --program-transfor=* \
1283 | --program-transfo=* | --program-transf=* \
1284 | --program-trans=* | --program-tran=* \
1285 | --progr-tra=* | --program-tr=* | --program-t=*)
1286 program_transform_name=$ac_optarg ;;
1288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291 pdfdir=$ac_optarg ;;
1293 -psdir | --psdir | --psdi | --psd | --ps)
1295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299 | -silent | --silent | --silen | --sile | --sil)
1302 -runstatedir | --runstatedir | --runstatedi | --runstated \
1303 | --runstate | --runstat | --runsta | --runst | --runs \
1304 | --run | --ru | --r)
1305 ac_prev=runstatedir ;;
1306 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1307 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1308 | --run=* | --ru=* | --r=*)
1309 runstatedir=$ac_optarg ;;
1311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 sbindir=$ac_optarg ;;
1317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1319 | --sharedst | --shareds | --shared | --share | --shar \
1321 ac_prev=sharedstatedir ;;
1322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 sharedstatedir=$ac_optarg ;;
1328 -site | --site | --sit)
1330 -site=* | --site=* | --sit=*)
1333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1336 srcdir=$ac_optarg ;;
1338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1339 | --syscon | --sysco | --sysc | --sys | --sy)
1340 ac_prev=sysconfdir ;;
1341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1343 sysconfdir=$ac_optarg ;;
1345 -target | --target | --targe | --targ | --tar | --ta | --t)
1346 ac_prev=target_alias ;;
1347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1348 target_alias=$ac_optarg ;;
1350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353 -version | --version | --versio | --versi | --vers | -V)
1354 ac_init_version=: ;;
1357 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error $? "invalid package name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval with_$ac_useropt=\$ac_optarg ;;
1372 -without-* | --without-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1386 eval with_$ac_useropt=no ;;
1389 # Obsolete; use --with-x.
1392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1393 | --x-incl | --x-inc | --x-in | --x-i)
1394 ac_prev=x_includes ;;
1395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1397 x_includes=$ac_optarg ;;
1399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1401 ac_prev=x_libraries ;;
1402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1404 x_libraries=$ac_optarg ;;
1406 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information"
1411 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412 # Reject names that are not valid shell variable names.
1413 case $ac_envvar in #(
1414 '' | [0-9]* | *[!_$as_cr_alnum]* )
1415 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 eval $ac_envvar=\$ac_optarg
1418 export $ac_envvar ;;
1421 # FIXME: should be removed in autoconf 3.0.
1422 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1424 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1431 if test -n "$ac_prev"; then
1432 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1433 as_fn_error $? "missing argument to $ac_option"
1436 if test -n "$ac_unrecognized_opts"; then
1437 case $enable_option_checking in
1439 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1440 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1444 # Check all directory arguments for consistency.
1445 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446 datadir sysconfdir sharedstatedir localstatedir includedir \
1447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448 libdir localedir mandir runstatedir
1450 eval ac_val=\$$ac_var
1451 # Remove trailing slashes.
1454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455 eval $ac_var=\$ac_val;;
1457 # Be sure to have absolute directory names.
1459 [\\/$]* | ?:[\\/]* ) continue;;
1460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 elif test "x$build_alias" != "x$host_alias"; then
1482 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484 test "$silent" = yes && exec 6>/dev/null
1487 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1488 ac_ls_di=`ls -di .` &&
1489 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1490 as_fn_error $? "working directory cannot be determined"
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492 as_fn_error $? "pwd does not report name of working directory"
1495 # Find the source files, if location was not specified.
1496 if test -z "$srcdir"; then
1497 ac_srcdir_defaulted=yes
1498 # Try the directory containing this script, then the parent directory.
1499 ac_confdir=`$as_dirname -- "$as_myself" ||
1500 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1501 X"$as_myself" : 'X\(//\)[^/]' \| \
1502 X"$as_myself" : 'X\(//\)$' \| \
1503 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1504 $as_echo X"$as_myself" |
1505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1523 if test ! -r "$srcdir/$ac_unique_file"; then
1527 ac_srcdir_defaulted=no
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1531 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 # When building in place, set srcdir=.
1538 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 # Remove unnecessary trailing slashes from srcdir.
1542 # Double slashes in file names in object file debugging info
1543 # mess up M-x gdb in Emacs.
1545 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 for ac_var in $ac_precious_vars; do
1548 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_env_${ac_var}_value=\$${ac_var}
1550 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 # Report the --help message.
1557 if test "$ac_init_help" = "long"; then
1558 # Omit some internal or obsolete options to make the list less imposing.
1559 # This message is too long to be a string in the A/UX 3.1 sh.
1561 \`configure' configures gnupg 2.3.3 to adapt to many kinds of systems.
1563 Usage: $0 [OPTION]... [VAR=VALUE]...
1565 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1566 VAR=VALUE. See below for descriptions of some of the useful variables.
1568 Defaults for the options are specified in brackets.
1571 -h, --help display this help and exit
1572 --help=short display options specific to this package
1573 --help=recursive display the short help of all the included packages
1574 -V, --version display version information and exit
1575 -q, --quiet, --silent do not print \`checking ...' messages
1576 --cache-file=FILE cache test results in FILE [disabled]
1577 -C, --config-cache alias for \`--cache-file=config.cache'
1578 -n, --no-create do not create output files
1579 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581 Installation directories:
1582 --prefix=PREFIX install architecture-independent files in PREFIX
1583 [$ac_default_prefix]
1584 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 By default, \`make install' will install all the files in
1588 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1589 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1590 for instance \`--prefix=\$HOME'.
1592 For better control, use the options below.
1594 Fine tuning of the installation directories:
1595 --bindir=DIR user executables [EPREFIX/bin]
1596 --sbindir=DIR system admin executables [EPREFIX/sbin]
1597 --libexecdir=DIR program executables [EPREFIX/libexec]
1598 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1599 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1600 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1601 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1630 if test -n "$ac_init_help"; then
1631 case $ac_init_help in
1632 short | recursive ) echo "Configuration of gnupg 2.3.3:";;
1637 --disable-option-checking ignore unrecognized --enable/--with options
1638 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1639 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1640 --enable-silent-rules less verbose build output (undo: "make V=1")
1641 --disable-silent-rules verbose build output (undo: "make V=0")
1642 --enable-dependency-tracking
1643 do not reject slow dependency extractors
1644 --disable-dependency-tracking
1645 speeds up one-time build
1646 --disable-gpgsm do not build the gpgsm program
1647 --disable-scdaemon do not build the scdaemon program
1648 --enable-g13 build the g13 program
1649 --disable-dirmngr do not build the dirmngr program
1650 --disable-keyboxd do not build the keyboxd program
1651 --disable-tpm2d do not build the tpm2d program
1652 --disable-doc do not build the doc program
1653 --disable-gpgtar do not build the gpgtar program
1654 --disable-wks-tools do not build the wks-tools program
1655 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1656 --enable-selinux-support
1657 enable SELinux support
1658 --enable-large-secmem allocate extra secure memory
1659 --disable-trust-models disable all trust models except "always"
1660 --disable-tofu disable the TOFU trust model
1661 --disable-libdns do not build with libdns support
1662 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1663 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1664 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1665 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1666 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1667 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1668 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1669 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1670 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1671 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1672 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1673 --disable-gpg-camellia128
1674 disable the CAMELLIA128 cipher algorithm in gpg
1675 --disable-gpg-camellia192
1676 disable the CAMELLIA192 cipher algorithm in gpg
1677 --disable-gpg-camellia256
1678 disable the CAMELLIA256 cipher algorithm in gpg
1679 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1680 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1681 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1682 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1683 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1684 --disable-zip disable the ZIP and ZLIB compression algorithm
1685 --disable-bzip2 disable the BZIP2 compression algorithm
1686 --disable-exec disable all external program execution
1687 --disable-photo-viewers disable photo ID viewers
1688 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1689 --disable-card-support disable smartcard support
1690 --disable-ccid-driver disable the internal CCID driver
1691 --disable-dirmngr-auto-start
1692 disable auto starting of the dirmngr
1693 --enable-maintainer-mode
1694 enable make rules and dependencies not useful (and
1695 sometimes confusing) to the casual installer
1696 --disable-largefile omit support for large files
1697 --disable-sqlite disable the use of SQLITE
1698 --enable-npth-debug build with debug version of npth
1699 --disable-ntbtls disable the use of NTBTLS as TLS library
1700 --disable-gnutls disable GNUTLS as fallback TLS library
1701 --disable-ldap disable LDAP support
1702 --disable-rpath do not hardcode runtime library paths
1703 --disable-nls do not use Native Language Support
1704 --disable-endian-check disable the endian check and trust the OS provided
1706 --disable-optimization disable compiler optimization
1707 --enable-log-clock enable log_clock timestamps
1708 --enable-werror append -Werror to CFLAGS
1709 --enable-all-tests let "make check" run all tests
1710 --disable-tests do not run any tests
1712 --enable-run-gnupg-user-socket
1713 try /run/gnupg/user for sockets prior to /run/user
1714 --enable-build-timestamp
1715 set an explicit build timestamp for reproducibility.
1716 (default is the current time in ISO-8601 format)
1719 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1720 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1721 --with-agent-pgm=PATH Use PATH as the default for the agent)
1722 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1723 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1724 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1725 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1726 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1727 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1728 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1729 --with-agent-s2k-calibration=MSEC
1730 calibrate passphrase stretching (s2k) to MSEC
1732 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1733 --with-capabilities use linux capabilities default=no
1734 --with-libgpg-error-prefix=PFX
1735 prefix where GPG Error is installed (optional)
1737 --with-libgcrypt-prefix=PFX
1738 prefix where LIBGCRYPT is installed (optional)
1739 --with-libassuan-prefix=PFX
1740 prefix where LIBASSUAN is installed (optional)
1741 --with-libksba-prefix=PFX
1742 prefix where KSBA is installed (optional)
1743 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1744 --with-ntbtls-prefix=PFX
1745 prefix where NTBTLS is installed (optional)
1746 --with-default-trust-store-file=FILE
1747 Use FILE as system trust store
1748 --with-ldap=DIR look for the LDAP library in DIR
1749 --with-mailprog=NAME use "NAME -t" for mail transport
1750 --with-gnu-ld assume the C compiler uses GNU ld default=no
1751 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1752 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1753 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1754 --without-libintl-prefix don't search for libintl in includedir and libdir
1755 --with-zlib=DIR use libz in DIR
1756 --with-bzip2=DIR look for bzip2 in DIR
1757 --with-readline=DIR look for the readline library in DIR
1758 --with-tss=TSS use the specified TPM Software Stack (ibm, intel, or
1761 Some influential environment variables:
1762 CC C compiler command
1763 CFLAGS C compiler flags
1764 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1765 nonstandard directory <lib dir>
1766 LIBS libraries to pass to the linker, e.g. -l<library>
1767 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1768 you have headers in a nonstandard directory <include dir>
1770 SYSROOT locate config scripts also below that directory
1771 YAT2M tool to convert texi to man pages
1773 build system C compiler
1774 PKG_CONFIG path to pkg-config utility
1776 directories to add to pkg-config's search path
1778 path overriding pkg-config's built-in search path
1780 C compiler flags for SQLITE3, overriding pkg-config
1782 linker flags for SQLITE3, overriding pkg-config
1784 C compiler flags for LIBGNUTLS, overriding pkg-config
1786 linker flags for LIBGNUTLS, overriding pkg-config
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1791 Report bugs to <https://bugs.gnupg.org>.
1796 if test "$ac_init_help" = "recursive"; then
1797 # If there are subdirs, report their specific --help.
1798 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1799 test -d "$ac_dir" ||
1800 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1808 # A ".." for each directory in $ac_dir_suffix.
1809 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1810 case $ac_top_builddir_sub in
1811 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815 ac_abs_top_builddir=$ac_pwd
1816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1817 # for backward compatibility:
1818 ac_top_builddir=$ac_top_build_prefix
1821 .) # We are building in place.
1823 ac_top_srcdir=$ac_top_builddir_sub
1824 ac_abs_top_srcdir=$ac_pwd ;;
1825 [\\/]* | ?:[\\/]* ) # Absolute name.
1826 ac_srcdir=$srcdir$ac_dir_suffix;
1827 ac_top_srcdir=$srcdir
1828 ac_abs_top_srcdir=$srcdir ;;
1830 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1831 ac_top_srcdir=$ac_top_build_prefix$srcdir
1832 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1836 cd "$ac_dir" || { ac_status=$?; continue; }
1837 # Check for guested configure.
1838 if test -f "$ac_srcdir/configure.gnu"; then
1840 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1841 elif test -f "$ac_srcdir/configure"; then
1843 $SHELL "$ac_srcdir/configure" --help=recursive
1845 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1847 cd "$ac_pwd" || { ac_status=$?; break; }
1851 test -n "$ac_init_help" && exit $ac_status
1852 if $ac_init_version; then
1854 gnupg configure 2.3.3
1855 generated by GNU Autoconf 2.69
1857 Copyright (C) 2012 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1864 ## ------------------------ ##
1865 ## Autoconf initialization. ##
1866 ## ------------------------ ##
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 rm -f conftest.$ac_objext
1875 if { { ac_try="$ac_compile"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_compile") 2>conftest.err
1884 if test -s conftest.err; then
1885 grep -v '^ *+' conftest.err >conftest.er1
1886 cat conftest.er1 >&5
1887 mv -f conftest.er1 conftest.err
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && {
1891 test -z "$ac_c_werror_flag" ||
1892 test ! -s conftest.err
1893 } && test -s conftest.$ac_objext; then :
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_compile
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_cpp conftest.$ac_ext"
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1921 if test -s conftest.err; then
1922 grep -v '^ *+' conftest.err >conftest.er1
1923 cat conftest.er1 >&5
1924 mv -f conftest.er1 conftest.err
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; } > conftest.i && {
1928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929 test ! -s conftest.err
1933 $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1948 ac_fn_c_check_header_mongrel ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if eval \${$3+:} false; then :
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1961 # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 ac_header_compiler=yes
1972 ac_header_compiler=no
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986 ac_header_preproc=yes
1988 ac_header_preproc=no
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1994 # So? What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------------- ##
2014 ## Report this to https://bugs.gnupg.org ##
2015 ## ------------------------------------- ##"
2016 ) | sed "s/^/$as_me: WARNING: /" >&2
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2024 eval "$3=\$ac_header_compiler"
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2030 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2032 } # ac_fn_c_check_header_mongrel
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { { ac_try="$ac_link"
2043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_link") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052 { { case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_try") 2>&5
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; }; }; then :
2064 $as_echo "$as_me: program exited with status $ac_status" >&5
2065 $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2068 ac_retval=$ac_status
2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 as_fn_set_status $ac_retval
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2093 if ac_fn_c_try_compile "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105 } # ac_fn_c_check_header_compile
2107 # ac_fn_c_try_link LINENO
2108 # -----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 rm -f conftest.$ac_objext conftest$ac_exeext
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>conftest.err
2123 if test -s conftest.err; then
2124 grep -v '^ *+' conftest.err >conftest.er1
2125 cat conftest.er1 >&5
2126 mv -f conftest.er1 conftest.err
2128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129 test $ac_status = 0; } && {
2130 test -z "$ac_c_werror_flag" ||
2131 test ! -s conftest.err
2132 } && test -s conftest$ac_exeext && {
2133 test "$cross_compiling" = yes ||
2134 test -x conftest$ac_exeext
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145 # interfere with the next link command; also delete a directory that is
2146 # left behind by Apple's compiler. We do this before executing the actions.
2147 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_c_try_link
2153 # ac_fn_c_check_func LINENO FUNC VAR
2154 # ----------------------------------
2155 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2156 ac_fn_c_check_func ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2168 #define $2 innocuous_$2
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $2 (); below.
2172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173 <limits.h> exists even on freestanding compilers. */
2176 # include <limits.h>
2178 # include <assert.h>
2183 /* Override any GCC internal prototype to avoid an error.
2184 Use char because int might match the return type of a GCC
2185 builtin and then its argument prototype would still apply. */
2190 /* The GNU C library defines this for functions which it implements
2191 to always fail with ENOSYS. Some functions are actually named
2192 something starting with __ and the normal name is an alias. */
2193 #if defined __stub_$2 || defined __stub___$2
2205 if ac_fn_c_try_link "$LINENO"; then :
2210 rm -f core conftest.err conftest.$ac_objext \
2211 conftest$ac_exeext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 } # ac_fn_c_check_func
2220 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2221 # -------------------------------------------
2222 # Tests whether TYPE exists after having included INCLUDES, setting cache
2223 # variable VAR accordingly.
2224 ac_fn_c_check_type ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272 } # ac_fn_c_check_type
2274 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2275 # ---------------------------------------------
2276 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2278 ac_fn_c_check_decl ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 as_decl_name=`echo $2|sed 's/ *(.*//'`
2282 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2284 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 #ifndef $as_decl_name
2296 (void) $as_decl_use;
2298 (void) $as_decl_name;
2306 if ac_fn_c_try_compile "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_decl
2320 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2321 # --------------------------------------------
2322 # Tries to find the compile-time value of EXPR in a program that includes
2323 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2325 ac_fn_c_compute_int ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 if test "$cross_compiling" = yes; then
2329 # Depending upon the size, compute the lo and hi bounds.
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) >= 0)];
2338 return test_array [0];
2344 if ac_fn_c_try_compile "$LINENO"; then :
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2353 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2355 return test_array [0];
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362 ac_hi=$ac_mid; break
2364 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2365 if test $ac_lo -le $ac_mid; then
2369 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) < 0)];
2382 return test_array [0];
2388 if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2397 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2399 return test_array [0];
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 ac_lo=$ac_mid; break
2408 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2409 if test $ac_mid -le $ac_hi; then
2413 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 # Binary search between lo and hi bounds.
2424 while test "x$ac_lo" != "x$ac_hi"; do
2425 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2432 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2434 return test_array [0];
2440 if ac_fn_c_try_compile "$LINENO"; then :
2443 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2455 static long int longval () { return $2; }
2456 static unsigned long int ulongval () { return $2; }
2463 FILE *f = fopen ("conftest.val", "w");
2468 long int i = longval ();
2471 fprintf (f, "%ld", i);
2475 unsigned long int i = ulongval ();
2478 fprintf (f, "%lu", i);
2480 /* Do not output a trailing newline, as this causes \r\n confusion
2481 on some platforms. */
2482 return ferror (f) || fclose (f) != 0;
2488 if ac_fn_c_try_run "$LINENO"; then :
2489 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2494 conftest.$ac_objext conftest.beam conftest.$ac_ext
2498 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499 as_fn_set_status $ac_retval
2501 } # ac_fn_c_compute_int
2503 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2504 # ----------------------------------------------------
2505 # Tries to find if the field MEMBER exists in type AGGR, after including
2506 # INCLUDES, setting cache variable VAR accordingly.
2507 ac_fn_c_check_member ()
2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2511 $as_echo_n "checking for $2.$3... " >&6; }
2512 if eval \${$4+:} false; then :
2513 $as_echo_n "(cached) " >&6
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2528 if ac_fn_c_try_compile "$LINENO"; then :
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h. */
2538 if (sizeof ac_aggr.$3)
2544 if ac_fn_c_try_compile "$LINENO"; then :
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558 } # ac_fn_c_check_member
2559 cat >config.log <<_ACEOF
2560 This file contains any messages produced by compilers while
2561 running configure, to aid debugging if configure makes a mistake.
2563 It was created by gnupg $as_me 2.3.3, which was
2564 generated by GNU Autoconf 2.69. Invocation command line was
2576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 $as_echo "PATH: $as_dir"
2616 # Keep a trace of the command line.
2617 # Strip out --no-create and --no-recursion so they do not pile up.
2618 # Strip out --silent because we don't want to record it for future runs.
2619 # Also quote any args containing shell meta-characters.
2620 # Make two passes to allow for proper duplicate-argument suppression.
2624 ac_must_keep_next=false
2630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2632 | -silent | --silent | --silen | --sile | --sil)
2635 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2638 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2640 as_fn_append ac_configure_args1 " '$ac_arg'"
2641 if test $ac_must_keep_next = true; then
2642 ac_must_keep_next=false # Got value, back to normal.
2645 *=* | --config-cache | -C | -disable-* | --disable-* \
2646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2648 | -with-* | --with-* | -without-* | --without-* | --x)
2649 case "$ac_configure_args0 " in
2650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2653 -* ) ac_must_keep_next=true ;;
2656 as_fn_append ac_configure_args " '$ac_arg'"
2661 { ac_configure_args0=; unset ac_configure_args0;}
2662 { ac_configure_args1=; unset ac_configure_args1;}
2664 # When interrupted or exit'd, cleanup temporary files, and complete
2665 # config.log. We remove comments because anyway the quotes in there
2666 # would cause problems or look ugly.
2667 # WARNING: Use '\'' to represent an apostrophe within the trap.
2668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2669 trap 'exit_status=$?
2670 # Save into config.log some information that might help in debugging.
2674 $as_echo "## ---------------- ##
2675 ## Cache variables. ##
2676 ## ---------------- ##"
2678 # The following way of writing the cache mishandles newlines in values,
2680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2681 eval ac_val=\$$ac_var
2685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2689 _ | IFS | as_nl) ;; #(
2690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2691 *) { eval $ac_var=; unset $ac_var;} ;;
2696 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2697 *${as_nl}ac_space=\ *)
2699 "s/'\''/'\''\\\\'\'''\''/g;
2700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2703 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2710 $as_echo "## ----------------- ##
2711 ## Output variables. ##
2712 ## ----------------- ##"
2714 for ac_var in $ac_subst_vars
2716 eval ac_val=\$$ac_var
2718 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2720 $as_echo "$ac_var='\''$ac_val'\''"
2724 if test -n "$ac_subst_files"; then
2725 $as_echo "## ------------------- ##
2726 ## File substitutions. ##
2727 ## ------------------- ##"
2729 for ac_var in $ac_subst_files
2731 eval ac_val=\$$ac_var
2733 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2735 $as_echo "$ac_var='\''$ac_val'\''"
2740 if test -s confdefs.h; then
2741 $as_echo "## ----------- ##
2748 test "$ac_signal" != 0 &&
2749 $as_echo "$as_me: caught signal $ac_signal"
2750 $as_echo "$as_me: exit $exit_status"
2752 rm -f core *.core core.conftest.* &&
2753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2756 for ac_signal in 1 2 13 15; do
2757 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2762 rm -f -r conftest* confdefs.h
2764 $as_echo "/* confdefs.h */" > confdefs.h
2766 # Predefined preprocessor variables.
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_NAME "$PACKAGE_NAME"
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE_STRING "$PACKAGE_STRING"
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE_URL "$PACKAGE_URL"
2793 # Let the site file select an alternate cache file if it wants to.
2794 # Prefer an explicitly selected file to automatically selected ones.
2797 if test -n "$CONFIG_SITE"; then
2798 # We do not want a PATH search for config.site.
2799 case $CONFIG_SITE in #((
2800 -*) ac_site_file1=./$CONFIG_SITE;;
2801 */*) ac_site_file1=$CONFIG_SITE;;
2802 *) ac_site_file1=./$CONFIG_SITE;;
2804 elif test "x$prefix" != xNONE; then
2805 ac_site_file1=$prefix/share/config.site
2806 ac_site_file2=$prefix/etc/config.site
2808 ac_site_file1=$ac_default_prefix/share/config.site
2809 ac_site_file2=$ac_default_prefix/etc/config.site
2811 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2813 test "x$ac_site_file" = xNONE && continue
2814 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2816 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2817 sed 's/^/| /' "$ac_site_file" >&5
2819 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $? "failed to load site script $ac_site_file
2822 See \`config.log' for more details" "$LINENO" 5; }
2826 if test -r "$cache_file"; then
2827 # Some versions of bash will fail to source /dev/null (special files
2828 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2829 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2831 $as_echo "$as_me: loading cache $cache_file" >&6;}
2833 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2834 *) . "./$cache_file";;
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2839 $as_echo "$as_me: creating cache $cache_file" >&6;}
2843 gt_needs="$gt_needs need-ngettext"
2844 as_fn_append ac_header_list " sys/socket.h"
2845 # Check that the precious variables saved in the cache have kept the same
2847 ac_cache_corrupted=false
2848 for ac_var in $ac_precious_vars; do
2849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2850 eval ac_new_set=\$ac_env_${ac_var}_set
2851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2852 eval ac_new_val=\$ac_env_${ac_var}_value
2853 case $ac_old_set,$ac_new_set in
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2856 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2857 ac_cache_corrupted=: ;;
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2860 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2861 ac_cache_corrupted=: ;;
2864 if test "x$ac_old_val" != "x$ac_new_val"; then
2865 # differences in whitespace do not lead to failure.
2866 ac_old_val_w=`echo x $ac_old_val`
2867 ac_new_val_w=`echo x $ac_new_val`
2868 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2870 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2871 ac_cache_corrupted=:
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2874 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2875 eval $ac_var=\$ac_old_val
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2878 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2880 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2883 # Pass precious variables to config.status.
2884 if test "$ac_new_set" = set; then
2886 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2887 *) ac_arg=$ac_var=$ac_new_val ;;
2889 case " $ac_configure_args " in
2890 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2891 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2895 if $ac_cache_corrupted; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2899 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2900 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2902 ## -------------------- ##
2903 ## Main body of script. ##
2904 ## -------------------- ##
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 # When changing the SWDB tag please also adjust the hard coded tags in
2915 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2917 cat >>confdefs.h <<_ACEOF
2918 #define GNUPG_SWDB_TAG "gnupg24"
2922 NEED_GPGRT_VERSION=1.41
2924 NEED_LIBGCRYPT_API=1
2925 NEED_LIBGCRYPT_VERSION=1.9.1
2927 NEED_LIBASSUAN_API=2
2928 NEED_LIBASSUAN_VERSION=2.5.0
2931 NEED_KSBA_VERSION=1.3.4
2934 NEED_NTBTLS_VERSION=0.1.0
2937 NEED_NPTH_VERSION=1.2
2940 NEED_GNUTLS_VERSION=3.0
2942 NEED_SQLITE_VERSION=3.27
2944 development_version=no
2945 PACKAGE=$PACKAGE_NAME
2946 PACKAGE_GT=${PACKAGE_NAME}2
2947 VERSION=$PACKAGE_VERSION
2950 for ac_dir in build-aux "$srcdir"/build-aux; do
2951 if test -f "$ac_dir/install-sh"; then
2953 ac_install_sh="$ac_aux_dir/install-sh -c"
2955 elif test -f "$ac_dir/install.sh"; then
2957 ac_install_sh="$ac_aux_dir/install.sh -c"
2959 elif test -f "$ac_dir/shtool"; then
2961 ac_install_sh="$ac_aux_dir/shtool install -c"
2965 if test -z "$ac_aux_dir"; then
2966 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2979 ac_config_headers="$ac_config_headers config.h"
2981 am__api_version='1.16'
2983 # Find a good install program. We prefer a C program (faster),
2984 # so one script is as good as another. But avoid the broken or
2985 # incompatible versions:
2986 # SysV /etc/install, /usr/sbin/install
2987 # SunOS /usr/etc/install
2988 # IRIX /sbin/install
2990 # AmigaOS /C/install, which installs bootblocks on floppy discs
2991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2994 # OS/2's system install, which has a completely different semantic
2995 # ./install, which can be erroneously created by make from ./install.sh.
2996 # Reject install programs that cannot install multiple files.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2999 if test -z "$INSTALL"; then
3000 if ${ac_cv_path_install+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 # Account for people who put trailing slashes in PATH elements.
3009 case $as_dir/ in #((
3010 ./ | .// | /[cC]/* | \
3011 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3015 # OSF1 and SCO ODT 3.0 have their own names for install.
3016 # Don't use installbsd from OSF since it installs stuff as root
3018 for ac_prog in ginstall scoinst install; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021 if test $ac_prog = install &&
3022 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023 # AIX install. It has an incompatible calling convention.
3025 elif test $ac_prog = install &&
3026 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027 # program-specific install script used by HP pwplus--don't use.
3030 rm -rf conftest.one conftest.two conftest.dir
3031 echo one > conftest.one
3032 echo two > conftest.two
3034 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3035 test -s conftest.one && test -s conftest.two &&
3036 test -s conftest.dir/conftest.one &&
3037 test -s conftest.dir/conftest.two
3039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052 rm -rf conftest.one conftest.two conftest.dir
3055 if test "${ac_cv_path_install+set}" = set; then
3056 INSTALL=$ac_cv_path_install
3058 # As a last resort, use the slow shell script. Don't cache a
3059 # value for INSTALL within a source directory, because that will
3060 # break other packages using the cache if that directory is
3061 # removed, or if the value is a relative name.
3062 INSTALL=$ac_install_sh
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3066 $as_echo "$INSTALL" >&6; }
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3077 $as_echo_n "checking whether build environment is sane... " >&6; }
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name. Accept space and tab only in the latter.
3083 *[\\\"\#\$\&\'\`$am_lf]*)
3084 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3087 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3088 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3091 # Do 'set' in a subshell so we don't clobber the current shell's
3092 # arguments. Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3098 for am_try in 1 2; do
3099 echo "timestamp, slept: $am_has_slept" > conftest.file
3100 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3101 if test "$*" = "X"; then
3103 set X `ls -t "$srcdir/configure" conftest.file`
3105 if test "$*" != "X $srcdir/configure conftest.file" \
3106 && test "$*" != "X conftest.file $srcdir/configure"; then
3108 # If neither matched, then we have a broken ls. This can happen
3109 # if, for instance, CONFIG_SHELL is bash and it inherits a
3110 # broken ls alias from the environment. This has actually
3111 # happened. Such a system could not be considered "sane".
3112 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3113 alias in your environment" "$LINENO" 5
3115 if test "$2" = conftest.file || test $am_try -eq 2; then
3122 test "$2" = conftest.file
3128 as_fn_error $? "newly created file is older than distributed files!
3129 Check your system clock" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 # If we didn't sleep, we still need to ensure time stamps of config.status and
3134 # generated files are strictly newer.
3136 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3143 test "$program_prefix" != NONE &&
3144 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3145 # Use a double $ so make ignores it.
3146 test "$program_suffix" != NONE &&
3147 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3148 # Double any \ or $.
3149 # By default was `s,x,x', remove it if useless.
3150 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3151 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153 # Expand $ac_aux_dir to an absolute path.
3154 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3156 if test x"${MISSING+set}" != xset; then
3157 MISSING="\${SHELL} '$am_aux_dir/missing'"
3159 # Use eval to expand $SHELL
3160 if eval "$MISSING --is-lightweight"; then
3161 am_missing_run="$MISSING "
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3165 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3168 if test x"${install_sh+set}" != xset; then
3171 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3173 install_sh="\${SHELL} $am_aux_dir/install-sh"
3177 # Installed binaries are usually stripped using 'strip' when the user
3178 # run "make install-strip". However 'strip' might not be the right
3179 # tool to use in cross-compilation environments, therefore Automake
3180 # will honor the 'STRIP' environment variable to overrule this program.
3181 if test "$cross_compiling" != no; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}strip; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_STRIP+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$STRIP"; then
3191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 STRIP=$ac_cv_prog_STRIP
3211 if test -n "$STRIP"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3213 $as_echo "$STRIP" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_STRIP"; then
3223 # Extract the first word of "strip", so it can be a program name with args.
3224 set dummy strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_STRIP"; then
3231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_STRIP="strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3251 if test -n "$ac_ct_STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3253 $as_echo "$ac_ct_STRIP" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_STRIP" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3271 STRIP="$ac_cv_prog_STRIP"
3275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3279 if test -z "$MKDIR_P"; then
3280 if ${ac_cv_path_mkdir+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3287 test -z "$as_dir" && as_dir=.
3288 for ac_prog in mkdir gmkdir; do
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3292 'mkdir (GNU coreutils) '* | \
3293 'mkdir (coreutils) '* | \
3294 'mkdir (fileutils) '4.1*)
3295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3305 test -d ./--version && rmdir ./--version
3306 if test "${ac_cv_path_mkdir+set}" = set; then
3307 MKDIR_P="$ac_cv_path_mkdir -p"
3309 # As a last resort, use the slow shell script. Don't cache a
3310 # value for MKDIR_P within a source directory, because that will
3311 # break other packages using the cache if that directory is
3312 # removed, or if the value is a relative name.
3313 MKDIR_P="$ac_install_sh -d"
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3317 $as_echo "$MKDIR_P" >&6; }
3319 for ac_prog in gawk mawk nawk awk
3321 # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_AWK+:} false; then :
3326 $as_echo_n "(cached) " >&6
3328 if test -n "$AWK"; then
3329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338 ac_cv_prog_AWK="$ac_prog"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 if test -n "$AWK"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3351 $as_echo "$AWK" >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3358 test -n "$AWK" && break
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 cat >conftest.make <<\_ACEOF
3371 @echo '@@@%%%=$(MAKE)=@@@%%%'
3373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3376 eval ac_cv_prog_make_${ac_make}_set=yes;;
3378 eval ac_cv_prog_make_${ac_make}_set=no;;
3382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 SET_MAKE="MAKE=${MAKE-make}"
3392 rm -rf .tst 2>/dev/null
3393 mkdir .tst 2>/dev/null
3394 if test -d .tst; then
3399 rmdir .tst 2>/dev/null
3401 # Check whether --enable-silent-rules was given.
3402 if test "${enable_silent_rules+set}" = set; then :
3403 enableval=$enable_silent_rules;
3406 case $enable_silent_rules in # (((
3407 yes) AM_DEFAULT_VERBOSITY=0;;
3408 no) AM_DEFAULT_VERBOSITY=1;;
3409 *) AM_DEFAULT_VERBOSITY=1;;
3411 am_make=${MAKE-make}
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3413 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3414 if ${am_cv_make_support_nested_variables+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if $as_echo 'TRUE=$(BAR$(V))
3423 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3424 am_cv_make_support_nested_variables=yes
3426 am_cv_make_support_nested_variables=no
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3430 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3431 if test $am_cv_make_support_nested_variables = yes; then
3433 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3435 AM_V=$AM_DEFAULT_VERBOSITY
3436 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3441 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3442 # is not polluted with repeated "-I."
3443 am__isrc=' -I$(srcdir)'
3444 # test to see if srcdir already configured
3445 if test -f $srcdir/config.status; then
3446 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3450 # test whether we have cygpath
3451 if test -z "$CYGPATH_W"; then
3452 if (cygpath --version) >/dev/null 2>/dev/null; then
3453 CYGPATH_W='cygpath -w'
3460 # Define the identity of the package.
3465 cat >>confdefs.h <<_ACEOF
3466 #define PACKAGE "$PACKAGE"
3470 cat >>confdefs.h <<_ACEOF
3471 #define VERSION "$VERSION"
3474 # Some tools Automake needs.
3476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3490 # For better backward compatibility. To be removed once Automake 1.9.x
3491 # dies out for good. For more background, see:
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3493 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3494 mkdir_p='$(MKDIR_P)'
3496 # We need awk for the "check" target (and possibly the TAP driver). The
3497 # system "awk" is bad on some platforms.
3498 # Always define AMTAR for backward compatibility. Yes, it's still used
3499 # in the wild :-( We should find a proper way to deprecate it ...
3503 # We'll loop over all known methods to create a tar archive until one works.
3504 _am_tools='gnutar pax cpio none'
3506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes. So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present. This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message. This
3532 can help us improve future automake versions.
3535 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536 echo 'Configuration will proceed anyway, since you have set the' >&2
3537 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3541 Aborting the configuration process, to ensure you take notice of the issue.
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3551 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3560 $as_echo_n "checking build system type... " >&6; }
3561 if ${ac_cv_build+:} false; then :
3562 $as_echo_n "(cached) " >&6
3564 ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3574 $as_echo "$ac_cv_build" >&6; }
3575 case $ac_cv_build in
3577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3580 ac_save_IFS=$IFS; IFS='-'
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3594 $as_echo_n "checking host system type... " >&6; }
3595 if ${ac_cv_host+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test "x$host_alias" = x; then
3599 ac_cv_host=$ac_cv_build
3601 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3607 $as_echo "$ac_cv_host" >&6; }
3610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3613 ac_save_IFS=$IFS; IFS='-'
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3631 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3633 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3635 if test "$hostname"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3637 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3640 date=`date +%Y%m%d-%H%M%S`
3641 if test "$?" != 0; then
3644 if test "$date"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3646 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3650 DEPDIR="${am__leading_dot}deps"
3652 ac_config_commands="$ac_config_commands depfiles"
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3655 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3656 cat > confinc.mk << 'END'
3658 @echo this is the am__doit target >confinc.out
3663 # BSD make does it like this.
3664 echo '.include "confinc.mk" # ignored' > confmf.BSD
3665 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3666 echo 'include confinc.mk # ignored' > confmf.GNU
3668 for s in GNU BSD; do
3669 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3670 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }
3674 case $?:`cat confinc.out 2>/dev/null` in #(
3675 '0:this is the am__doit target') :
3678 am__include='.include' am__quote='"' ;; #(
3680 am__include='include' am__quote='' ;;
3685 if test "$am__include" != "#"; then
3686 _am_result="yes ($s style)"
3690 rm -f confinc.* confmf.*
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3692 $as_echo "${_am_result}" >&6; }
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696 enableval=$enable_dependency_tracking;
3699 if test "x$enable_dependency_tracking" != xno; then
3700 am_depcomp="$ac_aux_dir/depcomp"
3704 if test "x$enable_dependency_tracking" != xno; then
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_CC+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3757 if test -z "$ac_cv_prog_CC"; then
3759 # Extract the first word of "gcc", so it can be a program name with args.
3760 set dummy gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$ac_ct_CC"; then
3767 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_CC="gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 $as_echo "$ac_ct_CC" >&6; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3795 if test "x$ac_ct_CC" = x; then
3798 case $cross_compiling:$ac_tool_warned in
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3810 if test -z "$CC"; then
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}cc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3851 if test -z "$CC"; then
3852 # Extract the first word of "cc", so it can be a program name with args.
3853 set dummy cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871 ac_prog_rejected=yes
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 if test $ac_prog_rejected = yes; then
3883 # We found a bogon in the path, so make sure we never use it.
3884 set dummy $ac_cv_prog_CC
3886 if test $# != 0; then
3887 # We chose a different compiler from the bogus one.
3888 # However, it has the same basename, so the bogon will be chosen
3889 # first if we set CC to just the basename; use the full file name.
3891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3897 if test -n "$CC"; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3907 if test -z "$CC"; then
3908 if test -n "$ac_tool_prefix"; then
3909 for ac_prog in cl.exe
3911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_CC+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3948 test -n "$CC" && break
3951 if test -z "$CC"; then
3953 for ac_prog in cl.exe
3955 # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_prog_ac_ct_CC="$ac_prog"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3992 test -n "$ac_ct_CC" && break
3995 if test "x$ac_ct_CC" = x; then
3998 case $cross_compiling:$ac_tool_warned in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details" "$LINENO" 5; }
4016 # Provide some information about the compiler.
4017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020 for ac_option in --version -v -V -qversion; do
4021 { { ac_try="$ac_compiler $ac_option >&5"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4030 if test -s conftest.err; then
4032 ... rest of stderr output deleted ...
4033 10q' conftest.err >conftest.er1
4034 cat conftest.er1 >&5
4036 rm -f conftest.er1 conftest.err
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 ac_clean_files_save=$ac_clean_files
4053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4054 # Try to create an executable without -o first, disregard a.out.
4055 # It will help us diagnose broken compilers, and finding out an intuition
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4058 $as_echo_n "checking whether the C compiler works... " >&6; }
4059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061 # The possible output files:
4062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4065 for ac_file in $ac_files
4068 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4069 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4074 if { { ac_try="$ac_link_default"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_link_default") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4087 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4088 # so that the user can short-circuit this test for compilers unknown to
4090 for ac_file in $ac_files ''
4092 test -f "$ac_file" || continue
4094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4097 # We found the default executable, but exeext='' is most
4101 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4103 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4105 # We set ac_cv_exeext here because the later test for it is not
4106 # safe: cross compilers may not add the suffix if given an `-o'
4107 # argument, so we may need to know it at that point already.
4108 # Even if this section looks crufty: it has the advantage of
4115 test "$ac_cv_exeext" = no && ac_cv_exeext=
4120 if test -z "$ac_file"; then :
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error 77 "C compiler cannot create executables
4129 See \`config.log' for more details" "$LINENO" 5; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132 $as_echo "yes" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135 $as_echo_n "checking for C compiler default output file name... " >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4137 $as_echo "$ac_file" >&6; }
4138 ac_exeext=$ac_cv_exeext
4140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4141 ac_clean_files=$ac_clean_files_save
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4143 $as_echo_n "checking for suffix of executables... " >&6; }
4144 if { { ac_try="$ac_link"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_link") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4156 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4157 # work properly (i.e., refer to `conftest.exe'), while it won't with
4159 for ac_file in conftest.exe conftest conftest.*; do
4160 test -f "$ac_file" || continue
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4172 See \`config.log' for more details" "$LINENO" 5; }
4174 rm -f conftest conftest$ac_cv_exeext
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4176 $as_echo "$ac_cv_exeext" >&6; }
4178 rm -f conftest.$ac_ext
4179 EXEEXT=$ac_cv_exeext
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4187 FILE *f = fopen ("conftest.out", "w");
4188 return ferror (f) || fclose (f) != 0;
4194 ac_clean_files="$ac_clean_files conftest.out"
4195 # Check that the compiler produces executables we can run. If not, either
4196 # the compiler is broken, or we cross compile.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4198 $as_echo_n "checking whether we are cross compiling... " >&6; }
4199 if test "$cross_compiling" != yes; then
4200 { { ac_try="$ac_link"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207 (eval "$ac_link") 2>&5
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211 if { ac_try='./conftest$ac_cv_exeext'
4212 { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }; }; then
4224 if test "$cross_compiling" = maybe; then
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "cannot run C compiled programs.
4230 If you meant to cross compile, use \`--host'.
4231 See \`config.log' for more details" "$LINENO" 5; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4236 $as_echo "$cross_compiling" >&6; }
4238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4239 ac_clean_files=$ac_clean_files_save
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4241 $as_echo_n "checking for suffix of object files... " >&6; }
4242 if ${ac_cv_objext+:} false; then :
4243 $as_echo_n "(cached) " >&6
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4256 rm -f conftest.o conftest.obj
4257 if { { ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264 (eval "$ac_compile") 2>&5
4266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267 test $ac_status = 0; }; then :
4268 for ac_file in conftest.o conftest.obj conftest.*; do
4269 test -f "$ac_file" || continue;
4271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4277 $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error $? "cannot compute suffix of object files: cannot compile
4283 See \`config.log' for more details" "$LINENO" 5; }
4285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4288 $as_echo "$ac_cv_objext" >&6; }
4289 OBJEXT=$ac_cv_objext
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4293 if ${ac_cv_c_compiler_gnu+:} false; then :
4294 $as_echo_n "(cached) " >&6
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4310 if ac_fn_c_try_compile "$LINENO"; then :
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4321 if test $ac_compiler_gnu = yes; then
4326 ac_test_CFLAGS=${CFLAGS+set}
4327 ac_save_CFLAGS=$CFLAGS
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4330 if ${ac_cv_prog_cc_g+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 ac_save_c_werror_flag=$ac_c_werror_flag
4334 ac_c_werror_flag=yes
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4348 if ac_fn_c_try_compile "$LINENO"; then :
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4363 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_c_werror_flag=$ac_save_c_werror_flag
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4379 if ac_fn_c_try_compile "$LINENO"; then :
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 ac_c_werror_flag=$ac_save_c_werror_flag
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4390 $as_echo "$ac_cv_prog_cc_g" >&6; }
4391 if test "$ac_test_CFLAGS" = set; then
4392 CFLAGS=$ac_save_CFLAGS
4393 elif test $ac_cv_prog_cc_g = yes; then
4394 if test "$GCC" = yes; then
4400 if test "$GCC" = yes; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4408 if ${ac_cv_prog_cc_c89+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 ac_cv_prog_cc_c89=no
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4432 s = g (p, va_arg (v,int));
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4475 rm -f conftest.$ac_ext
4480 case "x$ac_cv_prog_cc_c89" in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4508 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4509 if ${am_cv_prog_cc_c_o+:} false; then :
4510 $as_echo_n "(cached) " >&6
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4523 # Make sure it works both with $CC and with simple cc.
4524 # Following AC_PROG_CC_C_O, we do the test twice because some
4525 # compilers refuse to overwrite an existing .o file with -o,
4526 # though they will create one.
4527 am_cv_prog_cc_c_o=yes
4529 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4530 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } \
4534 && test -f conftest2.$ac_objext; then
4537 am_cv_prog_cc_c_o=no
4541 rm -f core conftest*
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4545 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4546 if test "$am_cv_prog_cc_c_o" != yes; then
4547 # Losing compiler, so override with the script.
4548 # FIXME: It is wrong to rewrite CC.
4549 # But if we don't then we get into trouble of one sort or another.
4550 # A longer-term fix would be to have automake use am__CC in this case,
4551 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4552 CC="$am_aux_dir/compile $CC"
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 depcc="$CC" am_compiler_list=
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4564 $as_echo_n "checking dependency style of $depcc... " >&6; }
4565 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4569 # We make a subdir and do the tests there. Otherwise we can end up
4570 # making bogus files that we don't know about and never remove. For
4571 # instance it was reported that on HP-UX the gcc test will end up
4572 # making a dummy file named 'D' -- because '-MD' means "put the output
4576 # Copy depcomp to subdir because otherwise we won't find it if we're
4577 # using a relative directory.
4578 cp "$am_depcomp" conftest.dir
4580 # We will build objects and dependencies in a subdirectory because
4581 # it helps to detect inapplicable dependency modes. For instance
4582 # both Tru64's cc and ICC support -MD to output dependencies as a
4583 # side effect of compilation, but ICC will put the dependencies in
4584 # the current directory while Tru64 will put them in the object
4588 am_cv_CC_dependencies_compiler_type=none
4589 if test "$am_compiler_list" = ""; then
4590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4593 case " $depcc " in #(
4594 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4597 for depmode in $am_compiler_list; do
4598 # Setup a source with many dependencies, because some compilers
4599 # like to wrap large dependency lists on column 80 (with \), and
4600 # we should not choose a depcomp mode which is confused by this.
4602 # We need to recreate these files for each test, as the compiler may
4603 # overwrite some of them when testing with obscure command lines.
4604 # This happens at least with the AIX C compiler.
4606 for i in 1 2 3 4 5 6; do
4607 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4609 # Solaris 10 /bin/sh.
4610 echo '/* dummy */' > sub/conftst$i.h
4612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4614 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4615 # mode. It turns out that the SunPro C++ compiler does not properly
4616 # handle '-M -o', and we need to detect this. Also, some Intel
4617 # versions had trouble with output in subdirs.
4618 am__obj=sub/conftest.${OBJEXT-o}
4619 am__minus_obj="-o $am__obj"
4622 # This depmode causes a compiler race in universal mode.
4623 test "$am__universal" = false || continue
4626 # After this tag, mechanisms are not by side-effect, so they'll
4627 # only be used when explicitly requested.
4628 if test "x$enable_dependency_tracking" = xyes; then
4634 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4635 # This compiler won't grok '-c -o', but also, the minuso test has
4636 # not run yet. These depmodes are late enough in the game, and
4637 # so weak that their functioning should not be impacted.
4638 am__obj=conftest.${OBJEXT-o}
4643 if depmode=$depmode \
4644 source=sub/conftest.c object=$am__obj \
4645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4647 >/dev/null 2>conftest.err &&
4648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4652 # icc doesn't choke on unknown options, it will just issue warnings
4653 # or remarks (even with -Werror). So we grep stderr for any message
4654 # that says an option was ignored or not supported.
4655 # When given -MP, icc 7.0 and 7.1 complain thusly:
4656 # icc: Command line warning: ignoring option '-M'; no argument required
4657 # The diagnosis changed in icc 8.0:
4658 # icc: Command line remark: option '-MP' not supported
4659 if (grep 'ignoring option' conftest.err ||
4660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4661 am_cv_CC_dependencies_compiler_type=$depmode
4670 am_cv_CC_dependencies_compiler_type=none
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4675 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4676 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4679 test "x$enable_dependency_tracking" != xno \
4680 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4682 am__fastdepCC_FALSE='#'
4684 am__fastdepCC_TRUE='#'
4685 am__fastdepCC_FALSE=
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4697 # On Suns, sometimes $CPP names a directory.
4698 if test -n "$CPP" && test -d "$CPP"; then
4701 if test -z "$CPP"; then
4702 if ${ac_cv_prog_CPP+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 # Double quotes because CPP needs to be expanded
4706 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709 for ac_c_preproc_warn_flag in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4729 # Broken: fails on valid input.
4732 rm -f conftest.err conftest.i conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <ac_nonexistent.h>
4740 if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4744 # Passes both tests.
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.i conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then :
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4766 $as_echo "$CPP" >&6; }
4768 for ac_c_preproc_warn_flag in '' yes
4770 # Use a header file that comes with gcc, so configuring glibc
4771 # with a fresh cross-compiler works.
4772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773 # <limits.h> exists even on freestanding compilers.
4774 # On the NeXT, cc -E runs the code through the compiler's parser,
4775 # not just through cpp. "Syntax error" is here to catch this case.
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4779 # include <limits.h>
4781 # include <assert.h>
4785 if ac_fn_c_try_cpp "$LINENO"; then :
4788 # Broken: fails on valid input.
4791 rm -f conftest.err conftest.i conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <ac_nonexistent.h>
4799 if ac_fn_c_try_cpp "$LINENO"; then :
4800 # Broken: success on invalid input.
4803 # Passes both tests.
4807 rm -f conftest.err conftest.i conftest.$ac_ext
4810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4811 rm -f conftest.i conftest.err conftest.$ac_ext
4812 if $ac_preproc_ok; then :
4815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4818 See \`config.log' for more details" "$LINENO" 5; }
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4830 if ${ac_cv_path_GREP+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 if test -z "$GREP"; then
4834 ac_path_GREP_found=false
4835 # Loop through the user's path and test for each of PROGNAME-LIST
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4840 test -z "$as_dir" && as_dir=.
4841 for ac_prog in grep ggrep; do
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4844 as_fn_executable_p "$ac_path_GREP" || continue
4845 # Check for GNU ac_path_GREP and select it if it is found.
4846 # Check for GNU $ac_path_GREP
4847 case `"$ac_path_GREP" --version 2>&1` in
4849 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4852 $as_echo_n 0123456789 >"conftest.in"
4855 cat "conftest.in" "conftest.in" >"conftest.tmp"
4856 mv "conftest.tmp" "conftest.in"
4857 cp "conftest.in" "conftest.nl"
4858 $as_echo 'GREP' >> "conftest.nl"
4859 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861 as_fn_arith $ac_count + 1 && ac_count=$as_val
4862 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4863 # Best one so far, save it but keep looking for a better one
4864 ac_cv_path_GREP="$ac_path_GREP"
4865 ac_path_GREP_max=$ac_count
4867 # 10*(2^10) chars as input seems more than enough
4868 test $ac_count -gt 10 && break
4870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4873 $ac_path_GREP_found && break 3
4878 if test -z "$ac_cv_path_GREP"; then
4879 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4882 ac_cv_path_GREP=$GREP
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4887 $as_echo "$ac_cv_path_GREP" >&6; }
4888 GREP="$ac_cv_path_GREP"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4892 $as_echo_n "checking for egrep... " >&6; }
4893 if ${ac_cv_path_EGREP+:} false; then :
4894 $as_echo_n "(cached) " >&6
4896 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4897 then ac_cv_path_EGREP="$GREP -E"
4899 if test -z "$EGREP"; then
4900 ac_path_EGREP_found=false
4901 # Loop through the user's path and test for each of PROGNAME-LIST
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906 test -z "$as_dir" && as_dir=.
4907 for ac_prog in egrep; do
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4910 as_fn_executable_p "$ac_path_EGREP" || continue
4911 # Check for GNU ac_path_EGREP and select it if it is found.
4912 # Check for GNU $ac_path_EGREP
4913 case `"$ac_path_EGREP" --version 2>&1` in
4915 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4918 $as_echo_n 0123456789 >"conftest.in"
4921 cat "conftest.in" "conftest.in" >"conftest.tmp"
4922 mv "conftest.tmp" "conftest.in"
4923 cp "conftest.in" "conftest.nl"
4924 $as_echo 'EGREP' >> "conftest.nl"
4925 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927 as_fn_arith $ac_count + 1 && ac_count=$as_val
4928 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4929 # Best one so far, save it but keep looking for a better one
4930 ac_cv_path_EGREP="$ac_path_EGREP"
4931 ac_path_EGREP_max=$ac_count
4933 # 10*(2^10) chars as input seems more than enough
4934 test $ac_count -gt 10 && break
4936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 $ac_path_EGREP_found && break 3
4944 if test -z "$ac_cv_path_EGREP"; then
4945 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4948 ac_cv_path_EGREP=$EGREP
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4954 $as_echo "$ac_cv_path_EGREP" >&6; }
4955 EGREP="$ac_cv_path_EGREP"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4959 $as_echo_n "checking for ANSI C header files... " >&6; }
4960 if ${ac_cv_header_stdc+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979 ac_cv_header_stdc=yes
4981 ac_cv_header_stdc=no
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 if test $ac_cv_header_stdc = yes; then
4986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 $EGREP "memchr" >/dev/null 2>&1; then :
4996 ac_cv_header_stdc=no
5002 if test $ac_cv_header_stdc = yes; then
5003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "free" >/dev/null 2>&1; then :
5013 ac_cv_header_stdc=no
5019 if test $ac_cv_header_stdc = yes; then
5020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5021 if test "$cross_compiling" = yes; then :
5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h. */
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 # define ISLOWER(c) \
5033 (('a' <= (c) && (c) <= 'i') \
5034 || ('j' <= (c) && (c) <= 'r') \
5035 || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5044 for (i = 0; i < 256; i++)
5045 if (XOR (islower (i), ISLOWER (i))
5046 || toupper (i) != TOUPPER (i))
5051 if ac_fn_c_try_run "$LINENO"; then :
5054 ac_cv_header_stdc=no
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5057 conftest.$ac_objext conftest.beam conftest.$ac_ext
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5063 $as_echo "$ac_cv_header_stdc" >&6; }
5064 if test $ac_cv_header_stdc = yes; then
5066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5072 inttypes.h stdint.h unistd.h
5074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5078 cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5088 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5089 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5096 if test "$MINIX" = yes; then
5098 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5101 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5104 $as_echo "#define _MINIX 1" >>confdefs.h
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5110 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5111 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5117 # define __EXTENSIONS__ 1
5118 $ac_includes_default
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_safe_to_define___extensions__=yes
5130 ac_cv_safe_to_define___extensions__=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5135 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5136 test $ac_cv_safe_to_define___extensions__ = yes &&
5137 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5139 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5141 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5143 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5145 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5150 # Some status variables.
5161 have_system_resolver=no
5162 gnupg_have_ldap="n/a"
5167 use_trust_models=yes
5171 use_ccid_driver=auto
5172 dirmngr_auto_start=yes
5177 # gpg is a required part and can't be disabled anymore.
5182 # Check whether --enable-gpgsm was given.
5183 if test "${enable_gpgsm+set}" = set; then :
5184 enableval=$enable_gpgsm; build_gpgsm=$enableval
5190 case "$build_gpgsm" in
5194 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5199 # The agent is a required part and can't be disabled anymore.
5204 # Check whether --enable-scdaemon was given.
5205 if test "${enable_scdaemon+set}" = set; then :
5206 enableval=$enable_scdaemon; build_scdaemon=$enableval
5212 case "$build_scdaemon" in
5216 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5224 # Check whether --enable-g13 was given.
5225 if test "${enable_g13+set}" = set; then :
5226 enableval=$enable_g13; build_g13=$enableval
5232 case "$build_g13" in
5236 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5244 # Check whether --enable-dirmngr was given.
5245 if test "${enable_dirmngr+set}" = set; then :
5246 enableval=$enable_dirmngr; build_dirmngr=$enableval
5252 case "$build_dirmngr" in
5256 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5264 # Check whether --enable-keyboxd was given.
5265 if test "${enable_keyboxd+set}" = set; then :
5266 enableval=$enable_keyboxd; build_keyboxd=$enableval
5272 case "$build_keyboxd" in
5276 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5284 # Check whether --enable-tpm2d was given.
5285 if test "${enable_tpm2d+set}" = set; then :
5286 enableval=$enable_tpm2d; build_tpm2d=$enableval
5292 case "$build_tpm2d" in
5296 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5304 # Check whether --enable-doc was given.
5305 if test "${enable_doc+set}" = set; then :
5306 enableval=$enable_doc; build_doc=$enableval
5312 case "$build_doc" in
5316 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5321 # We use gpgtar to unpack test data, hence we always build it. If the
5322 # user opts out, we simply don't install it.
5326 # Check whether --enable-gpgtar was given.
5327 if test "${enable_gpgtar+set}" = set; then :
5328 enableval=$enable_gpgtar; build_gpgtar=$enableval
5334 case "$build_gpgtar" in
5338 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5343 # We also install the gpg-wks-server tool by default but disable it
5344 # later for platforms where it can't be build.
5348 # Check whether --enable-wks-tools was given.
5349 if test "${enable_wks_tools+set}" = set; then :
5350 enableval=$enable_wks_tools; build_wks_tools=$enableval
5356 case "$build_wks_tools" in
5360 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5371 cat >>confdefs.h <<_ACEOF
5372 #define PACKAGE "$PACKAGE"
5376 cat >>confdefs.h <<_ACEOF
5377 #define PACKAGE_GT "$PACKAGE_GT"
5381 cat >>confdefs.h <<_ACEOF
5382 #define VERSION "$VERSION"
5386 cat >>confdefs.h <<_ACEOF
5387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5391 cat >>confdefs.h <<_ACEOF
5392 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5396 cat >>confdefs.h <<_ACEOF
5397 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5401 cat >>confdefs.h <<_ACEOF
5402 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5408 # The default is to use the modules from this package and the few
5409 # other packages in a standard place; i.e where this package gets
5410 # installed. With these options it is possible to override these
5411 # ${prefix} depended values with fixed paths, which can't be replaced
5412 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5414 # Check whether --with-agent-pgm was given.
5415 if test "${with_agent_pgm+set}" = set; then :
5416 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5422 if test -n "$GNUPG_AGENT_PGM"; then
5423 GNUPG_AGENT_PGM_TRUE=
5424 GNUPG_AGENT_PGM_FALSE='#'
5426 GNUPG_AGENT_PGM_TRUE='#'
5427 GNUPG_AGENT_PGM_FALSE=
5430 show_gnupg_agent_pgm="(default)"
5431 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5434 # Check whether --with-pinentry-pgm was given.
5435 if test "${with_pinentry_pgm+set}" = set; then :
5436 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5438 GNUPG_PINENTRY_PGM=""
5442 if test -n "$GNUPG_PINENTRY_PGM"; then
5443 GNUPG_PINENTRY_PGM_TRUE=
5444 GNUPG_PINENTRY_PGM_FALSE='#'
5446 GNUPG_PINENTRY_PGM_TRUE='#'
5447 GNUPG_PINENTRY_PGM_FALSE=
5450 show_gnupg_pinentry_pgm="(default)"
5451 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5455 # Check whether --with-scdaemon-pgm was given.
5456 if test "${with_scdaemon_pgm+set}" = set; then :
5457 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5459 GNUPG_SCDAEMON_PGM=""
5463 if test -n "$GNUPG_SCDAEMON_PGM"; then
5464 GNUPG_SCDAEMON_PGM_TRUE=
5465 GNUPG_SCDAEMON_PGM_FALSE='#'
5467 GNUPG_SCDAEMON_PGM_TRUE='#'
5468 GNUPG_SCDAEMON_PGM_FALSE=
5471 show_gnupg_scdaemon_pgm="(default)"
5472 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5476 # Check whether --with-tpm2daemon-pgm was given.
5477 if test "${with_tpm2daemon_pgm+set}" = set; then :
5478 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5480 GNUPG_TPM2DAEMON_PGM=""
5484 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5485 GNUPG_TPM2DAEMON_PGM_TRUE=
5486 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5488 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5489 GNUPG_TPM2DAEMON_PGM_FALSE=
5492 show_gnupg_tpm2daemon_pgm="(default)"
5493 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5497 # Check whether --with-dirmngr-pgm was given.
5498 if test "${with_dirmngr_pgm+set}" = set; then :
5499 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5501 GNUPG_DIRMNGR_PGM=""
5505 if test -n "$GNUPG_DIRMNGR_PGM"; then
5506 GNUPG_DIRMNGR_PGM_TRUE=
5507 GNUPG_DIRMNGR_PGM_FALSE='#'
5509 GNUPG_DIRMNGR_PGM_TRUE='#'
5510 GNUPG_DIRMNGR_PGM_FALSE=
5513 show_gnupg_dirmngr_pgm="(default)"
5514 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5517 # Check whether --with-keyboxd-pgm was given.
5518 if test "${with_keyboxd_pgm+set}" = set; then :
5519 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5521 GNUPG_KEYBOXD_PGM=""
5525 if test -n "$GNUPG_KEYBOXD_PGM"; then
5526 GNUPG_KEYBOXD_PGM_TRUE=
5527 GNUPG_KEYBOXD_PGM_FALSE='#'
5529 GNUPG_KEYBOXD_PGM_TRUE='#'
5530 GNUPG_KEYBOXD_PGM_FALSE=
5533 show_gnupg_keyboxd_pgm="(default)"
5534 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5537 # Check whether --with-protect-tool-pgm was given.
5538 if test "${with_protect_tool_pgm+set}" = set; then :
5539 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5541 GNUPG_PROTECT_TOOL_PGM=""
5545 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5546 GNUPG_PROTECT_TOOL_PGM_TRUE=
5547 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5549 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5550 GNUPG_PROTECT_TOOL_PGM_FALSE=
5553 show_gnupg_protect_tool_pgm="(default)"
5554 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5555 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5558 # Check whether --with-dirmngr-ldap-pgm was given.
5559 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5560 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5562 GNUPG_DIRMNGR_LDAP_PGM=""
5566 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5567 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5568 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5570 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5571 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5574 show_gnupg_dirmngr_ldap_pgm="(default)"
5575 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5576 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5580 # For a long time gpg 2.x was installed as gpg2. This changed with
5581 # 2.2. This option can be used to install gpg under the name gpg2.
5583 # Check whether --enable-gpg-is-gpg2 was given.
5584 if test "${enable_gpg_is_gpg2+set}" = set; then :
5585 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5588 if test "$gpg_is_gpg2" = "yes"; then
5590 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5593 if test "$gpg_is_gpg2" = "yes"; then
5595 USE_GPG2_HACK_FALSE='#'
5597 USE_GPG2_HACK_TRUE='#'
5598 USE_GPG2_HACK_FALSE=
5603 # SELinux support includes tracking of sensitive files to avoid
5604 # leaking their contents through processing these files by gpg itself
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5606 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5607 # Check whether --enable-selinux-support was given.
5608 if test "${enable_selinux_support+set}" = set; then :
5609 enableval=$enable_selinux_support; selinux_support=$enableval
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5615 $as_echo "$selinux_support" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5619 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5620 # Check whether --enable-large-secmem was given.
5621 if test "${enable_large_secmem+set}" = set; then :
5622 enableval=$enable_large_secmem; large_secmem=$enableval
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5628 $as_echo "$large_secmem" >&6; }
5629 if test "$large_secmem" = yes ; then
5630 SECMEM_BUFFER_SIZE=65536
5632 SECMEM_BUFFER_SIZE=32768
5635 cat >>confdefs.h <<_ACEOF
5636 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5641 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5643 # Check whether --with-agent-s2k-calibration was given.
5644 if test "${with_agent_s2k_calibration+set}" = set; then :
5645 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5647 agent_s2k_calibration=100
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5651 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5653 cat >>confdefs.h <<_ACEOF
5654 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5659 $as_echo_n "checking whether to enable trust models... " >&6; }
5660 # Check whether --enable-trust-models was given.
5661 if test "${enable_trust_models+set}" = set; then :
5662 enableval=$enable_trust_models; use_trust_models=$enableval
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5666 $as_echo "$use_trust_models" >&6; }
5667 if test "$use_trust_models" = no ; then
5669 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5674 $as_echo_n "checking whether to enable TOFU... " >&6; }
5675 # Check whether --enable-tofu was given.
5676 if test "${enable_tofu+set}" = set; then :
5677 enableval=$enable_tofu; use_tofu=$enableval
5679 use_tofu=$use_trust_models
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5683 $as_echo "$use_tofu" >&6; }
5684 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5685 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5689 $as_echo_n "checking whether to enable libdns... " >&6; }
5690 # Check whether --enable-libdns was given.
5691 if test "${enable_libdns+set}" = set; then :
5692 enableval=$enable_libdns; use_libdns=$enableval
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5698 $as_echo "$use_libdns" >&6; }
5699 if test x"$use_libdns" = xyes ; then
5701 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5704 if test "$use_libdns" = yes; then
5706 USE_LIBDNS_FALSE='#'
5715 # Options to disable algorithm
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5719 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5720 # Check whether --enable-gpg-rsa was given.
5721 if test "${enable_gpg_rsa+set}" = set; then :
5722 enableval=$enable_gpg_rsa;
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5728 $as_echo "$enableval" >&6; }
5729 if test x"$enableval" = xyes ; then
5731 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5735 # Elgamal is a MUST algorithm
5736 # DSA is a MUST algorithm
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5738 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5739 # Check whether --enable-gpg-ecdh was given.
5740 if test "${enable_gpg_ecdh+set}" = set; then :
5741 enableval=$enable_gpg_ecdh;
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5747 $as_echo "$enableval" >&6; }
5748 if test x"$enableval" = xyes ; then
5750 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5755 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5756 # Check whether --enable-gpg-ecdsa was given.
5757 if test "${enable_gpg_ecdsa+set}" = set; then :
5758 enableval=$enable_gpg_ecdsa;
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5764 $as_echo "$enableval" >&6; }
5765 if test x"$enableval" = xyes ; then
5767 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5772 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5773 # Check whether --enable-gpg-eddsa was given.
5774 if test "${enable_gpg_eddsa+set}" = set; then :
5775 enableval=$enable_gpg_eddsa;
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5781 $as_echo "$enableval" >&6; }
5782 if test x"$enableval" = xyes ; then
5784 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5790 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5791 # Check whether --enable-gpg-idea was given.
5792 if test "${enable_gpg_idea+set}" = set; then :
5793 enableval=$enable_gpg_idea;
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5799 $as_echo "$enableval" >&6; }
5800 if test x"$enableval" = xyes ; then
5802 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5806 # 3DES is a MUST algorithm
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5808 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5809 # Check whether --enable-gpg-cast5 was given.
5810 if test "${enable_gpg_cast5+set}" = set; then :
5811 enableval=$enable_gpg_cast5;
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5817 $as_echo "$enableval" >&6; }
5818 if test x"$enableval" = xyes ; then
5820 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5825 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5826 # Check whether --enable-gpg-blowfish was given.
5827 if test "${enable_gpg_blowfish+set}" = set; then :
5828 enableval=$enable_gpg_blowfish;
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5834 $as_echo "$enableval" >&6; }
5835 if test x"$enableval" = xyes ; then
5837 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5842 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5843 # Check whether --enable-gpg-aes128 was given.
5844 if test "${enable_gpg_aes128+set}" = set; then :
5845 enableval=$enable_gpg_aes128;
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5851 $as_echo "$enableval" >&6; }
5852 if test x"$enableval" = xyes ; then
5854 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5859 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5860 # Check whether --enable-gpg-aes192 was given.
5861 if test "${enable_gpg_aes192+set}" = set; then :
5862 enableval=$enable_gpg_aes192;
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5868 $as_echo "$enableval" >&6; }
5869 if test x"$enableval" = xyes ; then
5871 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5876 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5877 # Check whether --enable-gpg-aes256 was given.
5878 if test "${enable_gpg_aes256+set}" = set; then :
5879 enableval=$enable_gpg_aes256;
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5885 $as_echo "$enableval" >&6; }
5886 if test x"$enableval" = xyes ; then
5888 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5893 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5894 # Check whether --enable-gpg-twofish was given.
5895 if test "${enable_gpg_twofish+set}" = set; then :
5896 enableval=$enable_gpg_twofish;
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5902 $as_echo "$enableval" >&6; }
5903 if test x"$enableval" = xyes ; then
5905 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5910 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5911 # Check whether --enable-gpg-camellia128 was given.
5912 if test "${enable_gpg_camellia128+set}" = set; then :
5913 enableval=$enable_gpg_camellia128;
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5919 $as_echo "$enableval" >&6; }
5920 if test x"$enableval" = xyes ; then
5922 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5927 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5928 # Check whether --enable-gpg-camellia192 was given.
5929 if test "${enable_gpg_camellia192+set}" = set; then :
5930 enableval=$enable_gpg_camellia192;
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5936 $as_echo "$enableval" >&6; }
5937 if test x"$enableval" = xyes ; then
5939 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5944 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5945 # Check whether --enable-gpg-camellia256 was given.
5946 if test "${enable_gpg_camellia256+set}" = set; then :
5947 enableval=$enable_gpg_camellia256;
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5953 $as_echo "$enableval" >&6; }
5954 if test x"$enableval" = xyes ; then
5956 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5962 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5963 # Check whether --enable-gpg-md5 was given.
5964 if test "${enable_gpg_md5+set}" = set; then :
5965 enableval=$enable_gpg_md5;
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5971 $as_echo "$enableval" >&6; }
5972 if test x"$enableval" = xyes ; then
5974 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5978 # SHA1 is a MUST algorithm
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5980 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5981 # Check whether --enable-gpg-rmd160 was given.
5982 if test "${enable_gpg_rmd160+set}" = set; then :
5983 enableval=$enable_gpg_rmd160;
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5989 $as_echo "$enableval" >&6; }
5990 if test x"$enableval" = xyes ; then
5992 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5997 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5998 # Check whether --enable-gpg-sha224 was given.
5999 if test "${enable_gpg_sha224+set}" = set; then :
6000 enableval=$enable_gpg_sha224;
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6006 $as_echo "$enableval" >&6; }
6007 if test x"$enableval" = xyes ; then
6009 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6013 # SHA256 is a MUST algorithm for GnuPG.
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6015 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6016 # Check whether --enable-gpg-sha384 was given.
6017 if test "${enable_gpg_sha384+set}" = set; then :
6018 enableval=$enable_gpg_sha384;
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6024 $as_echo "$enableval" >&6; }
6025 if test x"$enableval" = xyes ; then
6027 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6032 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6033 # Check whether --enable-gpg-sha512 was given.
6034 if test "${enable_gpg_sha512+set}" = set; then :
6035 enableval=$enable_gpg_sha512;
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6041 $as_echo "$enableval" >&6; }
6042 if test x"$enableval" = xyes ; then
6044 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6050 # Allow disabling of zip support.
6051 # This is in general not a good idea because according to rfc4880 OpenPGP
6052 # implementations SHOULD support ZLIB.
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6054 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6055 # Check whether --enable-zip was given.
6056 if test "${enable_zip+set}" = set; then :
6057 enableval=$enable_zip; use_zip=$enableval
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6061 $as_echo "$use_zip" >&6; }
6063 # Allow disabling of bzib2 support.
6064 # It is defined only after we confirm the library is available later
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6066 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6067 # Check whether --enable-bzip2 was given.
6068 if test "${enable_bzip2+set}" = set; then :
6069 enableval=$enable_bzip2; use_bzip2=$enableval
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6073 $as_echo "$use_bzip2" >&6; }
6075 # Configure option to allow or disallow execution of external
6076 # programs, like a photo viewer.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6078 $as_echo_n "checking whether to enable external program execution... " >&6; }
6079 # Check whether --enable-exec was given.
6080 if test "${enable_exec+set}" = set; then :
6081 enableval=$enable_exec; use_exec=$enableval
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6085 $as_echo "$use_exec" >&6; }
6086 if test "$use_exec" = no ; then
6088 $as_echo "#define NO_EXEC 1" >>confdefs.h
6092 if test "$use_exec" = yes ; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6094 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6095 # Check whether --enable-photo-viewers was given.
6096 if test "${enable_photo_viewers+set}" = set; then :
6097 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6099 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6106 gnupg_cv_enable_photo_viewers=$enableval
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6108 $as_echo "$enableval" >&6; }
6110 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6112 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6114 # Check whether --with-photo-viewer was given.
6115 if test "${with_photo_viewer+set}" = set; then :
6116 withval=$with_photo_viewer; if test "$withval" = yes ; then
6118 elif test "$withval" != no ; then
6120 cat >>confdefs.h <<_ACEOF
6121 #define FIXED_PHOTO_VIEWER "$withval"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6130 $as_echo "$withval" >&6; }
6136 # Check for the key/uid cache size. This can't be zero, but can be
6137 # pretty small on embedded systems. This is used for the gpg part.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6140 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6141 # Check whether --enable-key-cache was given.
6142 if test "${enable_key_cache+set}" = set; then :
6143 enableval=$enable_key_cache;
6148 if test "$enableval" = "no"; then
6150 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6153 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6154 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6155 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6158 $as_echo "$key_cache_size" >&6; }
6160 cat >>confdefs.h <<_ACEOF
6161 #define PK_UID_CACHE_SIZE $key_cache_size
6168 # Check whether we want to use Linux capabilities
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6171 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6173 # Check whether --with-capabilities was given.
6174 if test "${with_capabilities+set}" = set; then :
6175 withval=$with_capabilities; use_capabilities="$withval"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6181 $as_echo "$use_capabilities" >&6; }
6184 # Check whether to disable the card support
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6186 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6187 # Check whether --enable-card-support was given.
6188 if test "${enable_card_support+set}" = set; then :
6189 enableval=$enable_card_support; card_support=$enableval
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6193 $as_echo "$card_support" >&6; }
6194 if test "$card_support" = yes ; then
6196 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6203 # Allow disabling of internal CCID support.
6204 # It is defined only after we confirm the library is available later
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6207 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6208 # Check whether --enable-ccid-driver was given.
6209 if test "${enable_ccid_driver+set}" = set; then :
6210 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6214 $as_echo "$use_ccid_driver" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6217 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6218 # Check whether --enable-dirmngr-auto-start was given.
6219 if test "${enable_dirmngr_auto_start+set}" = set; then :
6220 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6224 $as_echo "$dirmngr_auto_start" >&6; }
6225 if test "$dirmngr_auto_start" = yes ; then
6227 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6233 # To avoid double inclusion of config.h which might happen at some
6234 # places, we add the usual double inclusion protection at the top of
6240 # Stuff which goes at the bottom of config.h.
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6247 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6248 # Check whether --enable-maintainer-mode was given.
6249 if test "${enable_maintainer_mode+set}" = set; then :
6250 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6252 USE_MAINTAINER_MODE=no
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6256 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6257 if test $USE_MAINTAINER_MODE = yes; then
6258 MAINTAINER_MODE_TRUE=
6259 MAINTAINER_MODE_FALSE='#'
6261 MAINTAINER_MODE_TRUE='#'
6262 MAINTAINER_MODE_FALSE=
6265 MAINT=$MAINTAINER_MODE_TRUE
6270 # Checks for programs.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6272 $as_echo "$as_me: checking for programs" >&6;}
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 cat >conftest.make <<\_ACEOF
6283 @echo '@@@%%%=$(MAKE)=@@@%%%'
6285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6288 eval ac_cv_prog_make_${ac_make}_set=yes;;
6290 eval ac_cv_prog_make_${ac_make}_set=no;;
6294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296 $as_echo "yes" >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 SET_MAKE="MAKE=${MAKE-make}"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6305 $as_echo_n "checking whether build environment is sane... " >&6; }
6306 # Reject unsafe characters in $srcdir or the absolute working directory
6307 # name. Accept space and tab only in the latter.
6311 *[\\\"\#\$\&\'\`$am_lf]*)
6312 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6315 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6316 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6319 # Do 'set' in a subshell so we don't clobber the current shell's
6320 # arguments. Must try -L first in case configure is actually a
6321 # symlink; some systems play weird games with the mod time of symlinks
6322 # (eg FreeBSD returns the mod time of the symlink's containing
6326 for am_try in 1 2; do
6327 echo "timestamp, slept: $am_has_slept" > conftest.file
6328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6329 if test "$*" = "X"; then
6331 set X `ls -t "$srcdir/configure" conftest.file`
6333 if test "$*" != "X $srcdir/configure conftest.file" \
6334 && test "$*" != "X conftest.file $srcdir/configure"; then
6336 # If neither matched, then we have a broken ls. This can happen
6337 # if, for instance, CONFIG_SHELL is bash and it inherits a
6338 # broken ls alias from the environment. This has actually
6339 # happened. Such a system could not be considered "sane".
6340 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6341 alias in your environment" "$LINENO" 5
6343 if test "$2" = conftest.file || test $am_try -eq 2; then
6350 test "$2" = conftest.file
6356 as_fn_error $? "newly created file is older than distributed files!
6357 Check your system clock" "$LINENO" 5
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6360 $as_echo "yes" >&6; }
6361 # If we didn't sleep, we still need to ensure time stamps of config.status and
6362 # generated files are strictly newer.
6364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6371 missing_dir=`cd $ac_aux_dir && pwd`
6373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6387 # Check whether --enable-silent-rules was given.
6388 if test "${enable_silent_rules+set}" = set; then :
6389 enableval=$enable_silent_rules;
6392 case $enable_silent_rules in # (((
6393 yes) AM_DEFAULT_VERBOSITY=0;;
6394 no) AM_DEFAULT_VERBOSITY=1;;
6395 *) AM_DEFAULT_VERBOSITY=1;;
6397 am_make=${MAKE-make}
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6399 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6400 if ${am_cv_make_support_nested_variables+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if $as_echo 'TRUE=$(BAR$(V))
6409 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6410 am_cv_make_support_nested_variables=yes
6412 am_cv_make_support_nested_variables=no
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6416 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6417 if test $am_cv_make_support_nested_variables = yes; then
6419 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6421 AM_V=$AM_DEFAULT_VERBOSITY
6422 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6426 for ac_prog in gawk mawk nawk awk
6428 # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_AWK+:} false; then :
6433 $as_echo_n "(cached) " >&6
6435 if test -n "$AWK"; then
6436 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_AWK="$ac_prog"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 if test -n "$AWK"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6458 $as_echo "$AWK" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6465 test -n "$AWK" && break
6469 ac_cpp='$CPP $CPPFLAGS'
6470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_CC+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$CC"; then
6482 ac_cv_prog_CC="$CC" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 if test -n "$CC"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6504 $as_echo "$CC" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6512 if test -z "$ac_cv_prog_CC"; then
6514 # Extract the first word of "gcc", so it can be a program name with args.
6515 set dummy gcc; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$ac_ct_CC"; then
6522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_ac_ct_CC="gcc"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6542 if test -n "$ac_ct_CC"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6544 $as_echo "$ac_ct_CC" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6550 if test "x$ac_ct_CC" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6565 if test -z "$CC"; then
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}cc; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_CC+:} false; then :
6572 $as_echo_n "(cached) " >&6
6574 if test -n "$CC"; then
6575 ac_cv_prog_CC="$CC" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_CC="${ac_tool_prefix}cc"
6585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 if test -n "$CC"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6597 $as_echo "$CC" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6606 if test -z "$CC"; then
6607 # Extract the first word of "cc", so it can be a program name with args.
6608 set dummy cc; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_CC+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$CC"; then
6615 ac_cv_prog_CC="$CC" # Let the user override the test.
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6626 ac_prog_rejected=yes
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 if test $ac_prog_rejected = yes; then
6638 # We found a bogon in the path, so make sure we never use it.
6639 set dummy $ac_cv_prog_CC
6641 if test $# != 0; then
6642 # We chose a different compiler from the bogus one.
6643 # However, it has the same basename, so the bogon will be chosen
6644 # first if we set CC to just the basename; use the full file name.
6646 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6652 if test -n "$CC"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6654 $as_echo "$CC" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$CC"; then
6663 if test -n "$ac_tool_prefix"; then
6664 for ac_prog in cl.exe
6666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_CC+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 if test -n "$CC"; then
6674 ac_cv_prog_CC="$CC" # Let the user override the test.
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 if test -n "$CC"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6696 $as_echo "$CC" >&6; }
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6703 test -n "$CC" && break
6706 if test -z "$CC"; then
6708 for ac_prog in cl.exe
6710 # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6715 $as_echo_n "(cached) " >&6
6717 if test -n "$ac_ct_CC"; then
6718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_CC="$ac_prog"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6738 if test -n "$ac_ct_CC"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6740 $as_echo "$ac_ct_CC" >&6; }
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6747 test -n "$ac_ct_CC" && break
6750 if test "x$ac_ct_CC" = x; then
6753 case $cross_compiling:$ac_tool_warned in
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6766 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 as_fn_error $? "no acceptable C compiler found in \$PATH
6769 See \`config.log' for more details" "$LINENO" 5; }
6771 # Provide some information about the compiler.
6772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6775 for ac_option in --version -v -V -qversion; do
6776 { { ac_try="$ac_compiler $ac_option >&5"
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6782 $as_echo "$ac_try_echo"; } >&5
6783 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6785 if test -s conftest.err; then
6787 ... rest of stderr output deleted ...
6788 10q' conftest.err >conftest.er1
6789 cat conftest.er1 >&5
6791 rm -f conftest.er1 conftest.err
6792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793 test $ac_status = 0; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6798 if ${ac_cv_c_compiler_gnu+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6815 if ac_fn_c_try_compile "$LINENO"; then :
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6826 if test $ac_compiler_gnu = yes; then
6831 ac_test_CFLAGS=${CFLAGS+set}
6832 ac_save_CFLAGS=$CFLAGS
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6835 if ${ac_cv_prog_cc_g+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 ac_save_c_werror_flag=$ac_c_werror_flag
6839 ac_c_werror_flag=yes
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6853 if ac_fn_c_try_compile "$LINENO"; then :
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6868 if ac_fn_c_try_compile "$LINENO"; then :
6871 ac_c_werror_flag=$ac_save_c_werror_flag
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6884 if ac_fn_c_try_compile "$LINENO"; then :
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 ac_c_werror_flag=$ac_save_c_werror_flag
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6895 $as_echo "$ac_cv_prog_cc_g" >&6; }
6896 if test "$ac_test_CFLAGS" = set; then
6897 CFLAGS=$ac_save_CFLAGS
6898 elif test $ac_cv_prog_cc_g = yes; then
6899 if test "$GCC" = yes; then
6905 if test "$GCC" = yes; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6913 if ${ac_cv_prog_cc_c89+:} false; then :
6914 $as_echo_n "(cached) " >&6
6916 ac_cv_prog_cc_c89=no
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6924 struct buf { int x; };
6925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6926 static char *e (p, i)
6932 static char *f (char * (*g) (char **, int), char **p, ...)
6937 s = g (p, va_arg (v,int));
6942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6943 function prototypes and stuff, but not '\xHH' hex character constants.
6944 These don't provoke an error unfortunately, instead are silently treated
6945 as 'x'. The following induces an error, until -std is added to get
6946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6947 array size at least. It's necessary to write '\x00'==0 to get something
6948 that's true only with -std. */
6949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6952 inside strings and character constants. */
6954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6956 int test (int i, double x);
6957 struct s1 {int (*f) (int a);};
6958 struct s2 {int (*f) (double a);};
6959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6973 CC="$ac_save_CC $ac_arg"
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975 ac_cv_prog_cc_c89=$ac_arg
6977 rm -f core conftest.err conftest.$ac_objext
6978 test "x$ac_cv_prog_cc_c89" != "xno" && break
6980 rm -f conftest.$ac_ext
6985 case "x$ac_cv_prog_cc_c89" in
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6988 $as_echo "none needed" >&6; } ;;
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6991 $as_echo "unsupported" >&6; } ;;
6993 CC="$CC $ac_cv_prog_cc_c89"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6997 if test "x$ac_cv_prog_cc_c89" != xno; then :
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7014 if ${am_cv_prog_cc_c_o+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7028 # Make sure it works both with $CC and with simple cc.
7029 # Following AC_PROG_CC_C_O, we do the test twice because some
7030 # compilers refuse to overwrite an existing .o file with -o,
7031 # though they will create one.
7032 am_cv_prog_cc_c_o=yes
7034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } \
7039 && test -f conftest2.$ac_objext; then
7042 am_cv_prog_cc_c_o=no
7046 rm -f core conftest*
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7051 if test "$am_cv_prog_cc_c_o" != yes; then
7052 # Losing compiler, so override with the script.
7053 # FIXME: It is wrong to rewrite CC.
7054 # But if we don't then we get into trouble of one sort or another.
7055 # A longer-term fix would be to have automake use am__CC in this case,
7056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7057 CC="$am_aux_dir/compile $CC"
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066 depcc="$CC" am_compiler_list=
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7069 $as_echo_n "checking dependency style of $depcc... " >&6; }
7070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7071 $as_echo_n "(cached) " >&6
7073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7074 # We make a subdir and do the tests there. Otherwise we can end up
7075 # making bogus files that we don't know about and never remove. For
7076 # instance it was reported that on HP-UX the gcc test will end up
7077 # making a dummy file named 'D' -- because '-MD' means "put the output
7081 # Copy depcomp to subdir because otherwise we won't find it if we're
7082 # using a relative directory.
7083 cp "$am_depcomp" conftest.dir
7085 # We will build objects and dependencies in a subdirectory because
7086 # it helps to detect inapplicable dependency modes. For instance
7087 # both Tru64's cc and ICC support -MD to output dependencies as a
7088 # side effect of compilation, but ICC will put the dependencies in
7089 # the current directory while Tru64 will put them in the object
7093 am_cv_CC_dependencies_compiler_type=none
7094 if test "$am_compiler_list" = ""; then
7095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7098 case " $depcc " in #(
7099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7102 for depmode in $am_compiler_list; do
7103 # Setup a source with many dependencies, because some compilers
7104 # like to wrap large dependency lists on column 80 (with \), and
7105 # we should not choose a depcomp mode which is confused by this.
7107 # We need to recreate these files for each test, as the compiler may
7108 # overwrite some of them when testing with obscure command lines.
7109 # This happens at least with the AIX C compiler.
7111 for i in 1 2 3 4 5 6; do
7112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7114 # Solaris 10 /bin/sh.
7115 echo '/* dummy */' > sub/conftst$i.h
7117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7120 # mode. It turns out that the SunPro C++ compiler does not properly
7121 # handle '-M -o', and we need to detect this. Also, some Intel
7122 # versions had trouble with output in subdirs.
7123 am__obj=sub/conftest.${OBJEXT-o}
7124 am__minus_obj="-o $am__obj"
7127 # This depmode causes a compiler race in universal mode.
7128 test "$am__universal" = false || continue
7131 # After this tag, mechanisms are not by side-effect, so they'll
7132 # only be used when explicitly requested.
7133 if test "x$enable_dependency_tracking" = xyes; then
7139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7140 # This compiler won't grok '-c -o', but also, the minuso test has
7141 # not run yet. These depmodes are late enough in the game, and
7142 # so weak that their functioning should not be impacted.
7143 am__obj=conftest.${OBJEXT-o}
7148 if depmode=$depmode \
7149 source=sub/conftest.c object=$am__obj \
7150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7152 >/dev/null 2>conftest.err &&
7153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7157 # icc doesn't choke on unknown options, it will just issue warnings
7158 # or remarks (even with -Werror). So we grep stderr for any message
7159 # that says an option was ignored or not supported.
7160 # When given -MP, icc 7.0 and 7.1 complain thusly:
7161 # icc: Command line warning: ignoring option '-M'; no argument required
7162 # The diagnosis changed in icc 8.0:
7163 # icc: Command line remark: option '-MP' not supported
7164 if (grep 'ignoring option' conftest.err ||
7165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7166 am_cv_CC_dependencies_compiler_type=$depmode
7175 am_cv_CC_dependencies_compiler_type=none
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7184 test "x$enable_dependency_tracking" != xno \
7185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7187 am__fastdepCC_FALSE='#'
7189 am__fastdepCC_TRUE='#'
7190 am__fastdepCC_FALSE=
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7201 # On Suns, sometimes $CPP names a directory.
7202 if test -n "$CPP" && test -d "$CPP"; then
7205 if test -z "$CPP"; then
7206 if ${ac_cv_prog_CPP+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 # Double quotes because CPP needs to be expanded
7210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7213 for ac_c_preproc_warn_flag in '' yes
7215 # Use a header file that comes with gcc, so configuring glibc
7216 # with a fresh cross-compiler works.
7217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218 # <limits.h> exists even on freestanding compilers.
7219 # On the NeXT, cc -E runs the code through the compiler's parser,
7220 # not just through cpp. "Syntax error" is here to catch this case.
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 # include <limits.h>
7226 # include <assert.h>
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7233 # Broken: fails on valid input.
7236 rm -f conftest.err conftest.i conftest.$ac_ext
7238 # OK, works on sane cases. Now check whether nonexistent headers
7239 # can be detected and how.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <ac_nonexistent.h>
7244 if ac_fn_c_try_cpp "$LINENO"; then :
7245 # Broken: success on invalid input.
7248 # Passes both tests.
7252 rm -f conftest.err conftest.i conftest.$ac_ext
7255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7256 rm -f conftest.i conftest.err conftest.$ac_ext
7257 if $ac_preproc_ok; then :
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7270 $as_echo "$CPP" >&6; }
7272 for ac_c_preproc_warn_flag in '' yes
7274 # Use a header file that comes with gcc, so configuring glibc
7275 # with a fresh cross-compiler works.
7276 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 # <limits.h> exists even on freestanding compilers.
7278 # On the NeXT, cc -E runs the code through the compiler's parser,
7279 # not just through cpp. "Syntax error" is here to catch this case.
7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h. */
7283 # include <limits.h>
7285 # include <assert.h>
7289 if ac_fn_c_try_cpp "$LINENO"; then :
7292 # Broken: fails on valid input.
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7297 # OK, works on sane cases. Now check whether nonexistent headers
7298 # can be detected and how.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #include <ac_nonexistent.h>
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7304 # Broken: success on invalid input.
7307 # Passes both tests.
7311 rm -f conftest.err conftest.i conftest.$ac_ext
7314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315 rm -f conftest.i conftest.err conftest.$ac_ext
7316 if $ac_preproc_ok; then :
7319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7322 See \`config.log' for more details" "$LINENO" 5; }
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7332 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7333 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7337 $as_echo_n "checking whether ln -s works... " >&6; }
7339 if test "$LN_S" = "ln -s"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7344 $as_echo "no, using $LN_S" >&6; }
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_RANLIB+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$RANLIB"; then
7356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 RANLIB=$ac_cv_prog_RANLIB
7376 if test -n "$RANLIB"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7378 $as_echo "$RANLIB" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test -z "$ac_cv_prog_RANLIB"; then
7387 ac_ct_RANLIB=$RANLIB
7388 # Extract the first word of "ranlib", so it can be a program name with args.
7389 set dummy ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$ac_ct_RANLIB"; then
7396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_RANLIB="ranlib"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7416 if test -n "$ac_ct_RANLIB"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7418 $as_echo "$ac_ct_RANLIB" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7424 if test "x$ac_ct_RANLIB" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7433 RANLIB=$ac_ct_RANLIB
7436 RANLIB="$ac_cv_prog_RANLIB"
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}ar; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_AR+:} false; then :
7445 $as_echo_n "(cached) " >&6
7447 if test -n "$AR"; then
7448 ac_cv_prog_AR="$AR" # Let the user override the test.
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457 ac_cv_prog_AR="${ac_tool_prefix}ar"
7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 if test -n "$AR"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7470 $as_echo "$AR" >&6; }
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7478 if test -z "$ac_cv_prog_AR"; then
7480 # Extract the first word of "ar", so it can be a program name with args.
7481 set dummy ar; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$ac_ct_AR"; then
7488 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_ac_ct_AR="ar"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7508 if test -n "$ac_ct_AR"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7510 $as_echo "$ac_ct_AR" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7516 if test "x$ac_ct_AR" = x; then
7519 case $cross_compiling:$ac_tool_warned in
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7531 # Extract the first word of ""perl"", so it can be a program name with args.
7532 set dummy "perl"; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_PERL+:} false; then :
7536 $as_echo_n "(cached) " >&6
7540 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 PERL=$ac_cv_path_PERL
7562 if test -n "$PERL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7564 $as_echo "$PERL" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7571 if test -n "$ac_tool_prefix"; then
7572 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}windres; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_WINDRES+:} false; then :
7577 $as_echo_n "(cached) " >&6
7579 if test -n "$WINDRES"; then
7580 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7599 WINDRES=$ac_cv_prog_WINDRES
7600 if test -n "$WINDRES"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7602 $as_echo "$WINDRES" >&6; }
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7610 if test -z "$ac_cv_prog_WINDRES"; then
7611 ac_ct_WINDRES=$WINDRES
7612 # Extract the first word of "windres", so it can be a program name with args.
7613 set dummy windres; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7617 $as_echo_n "(cached) " >&6
7619 if test -n "$ac_ct_WINDRES"; then
7620 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_WINDRES="windres"
7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7640 if test -n "$ac_ct_WINDRES"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7642 $as_echo "$ac_ct_WINDRES" >&6; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7648 if test "x$ac_ct_WINDRES" = x; then
7651 case $cross_compiling:$ac_tool_warned in
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7657 WINDRES=$ac_ct_WINDRES
7660 WINDRES="$ac_cv_prog_WINDRES"
7663 # Extract the first word of ""yat2m"", so it can be a program name with args.
7664 set dummy "yat2m"; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_path_YAT2M+:} false; then :
7668 $as_echo_n "(cached) " >&6
7672 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7694 YAT2M=$ac_cv_path_YAT2M
7695 if test -n "$YAT2M"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7697 $as_echo "$YAT2M" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -n "$ac_cv_path_YAT2M"; then
7707 HAVE_YAT2M_FALSE='#'
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7714 $as_echo_n "checking for library containing strerror... " >&6; }
7715 if ${ac_cv_search_strerror+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 ac_func_search_save_LIBS=$LIBS
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7722 /* Override any GCC internal prototype to avoid an error.
7723 Use char because int might match the return type of a GCC
7724 builtin and then its argument prototype would still apply. */
7737 for ac_lib in '' cposix; do
7738 if test -z "$ac_lib"; then
7739 ac_res="none required"
7742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7744 if ac_fn_c_try_link "$LINENO"; then :
7745 ac_cv_search_strerror=$ac_res
7747 rm -f core conftest.err conftest.$ac_objext \
7749 if ${ac_cv_search_strerror+:} false; then :
7753 if ${ac_cv_search_strerror+:} false; then :
7756 ac_cv_search_strerror=no
7759 LIBS=$ac_func_search_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7762 $as_echo "$ac_cv_search_strerror" >&6; }
7763 ac_res=$ac_cv_search_strerror
7764 if test "$ac_res" != no; then :
7765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7769 # Check whether --enable-largefile was given.
7770 if test "${enable_largefile+set}" = set; then :
7771 enableval=$enable_largefile;
7774 if test "$enable_largefile" != no; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7778 if ${ac_cv_sys_largefile_CC+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_cv_sys_largefile_CC=no
7782 if test "$GCC" != yes; then
7785 # IRIX 6.2 and later do not support large files by default,
7786 # so use the C compiler's -n32 option if that helps.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 #include <sys/types.h>
7790 /* Check that off_t can represent 2**63 - 1 correctly.
7791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7792 since some C++ compilers masquerading as C compilers
7793 incorrectly reject 9223372036854775807. */
7794 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7796 && LARGE_OFF_T % 2147483647 == 1)
7806 if ac_fn_c_try_compile "$LINENO"; then :
7809 rm -f core conftest.err conftest.$ac_objext
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 ac_cv_sys_largefile_CC=' -n32'; break
7814 rm -f core conftest.err conftest.$ac_objext
7818 rm -f conftest.$ac_ext
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7822 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7823 if test "$ac_cv_sys_largefile_CC" != no; then
7824 CC=$CC$ac_cv_sys_largefile_CC
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7828 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7829 if ${ac_cv_sys_file_offset_bits+:} false; then :
7830 $as_echo_n "(cached) " >&6
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 /* Check that off_t can represent 2**63 - 1 correctly.
7837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7838 since some C++ compilers masquerading as C compilers
7839 incorrectly reject 9223372036854775807. */
7840 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7842 && LARGE_OFF_T % 2147483647 == 1)
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853 ac_cv_sys_file_offset_bits=no; break
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 #define _FILE_OFFSET_BITS 64
7859 #include <sys/types.h>
7860 /* Check that off_t can represent 2**63 - 1 correctly.
7861 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7862 since some C++ compilers masquerading as C compilers
7863 incorrectly reject 9223372036854775807. */
7864 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7865 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7866 && LARGE_OFF_T % 2147483647 == 1)
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877 ac_cv_sys_file_offset_bits=64; break
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 ac_cv_sys_file_offset_bits=unknown
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7885 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7886 case $ac_cv_sys_file_offset_bits in #(
7889 cat >>confdefs.h <<_ACEOF
7890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7895 if test $ac_cv_sys_file_offset_bits = unknown; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7897 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7898 if ${ac_cv_sys_large_files+:} false; then :
7899 $as_echo_n "(cached) " >&6
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h. */
7904 #include <sys/types.h>
7905 /* Check that off_t can represent 2**63 - 1 correctly.
7906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7907 since some C++ compilers masquerading as C compilers
7908 incorrectly reject 9223372036854775807. */
7909 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7911 && LARGE_OFF_T % 2147483647 == 1)
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922 ac_cv_sys_large_files=no; break
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 #define _LARGE_FILES 1
7928 #include <sys/types.h>
7929 /* Check that off_t can represent 2**63 - 1 correctly.
7930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7931 since some C++ compilers masquerading as C compilers
7932 incorrectly reject 9223372036854775807. */
7933 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7935 && LARGE_OFF_T % 2147483647 == 1)
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946 ac_cv_sys_large_files=1; break
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949 ac_cv_sys_large_files=unknown
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7954 $as_echo "$ac_cv_sys_large_files" >&6; }
7955 case $ac_cv_sys_large_files in #(
7958 cat >>confdefs.h <<_ACEOF
7959 #define _LARGE_FILES $ac_cv_sys_large_files
7971 # GNU AWK requires -n option to interpret "0xHH" as a number
7972 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7973 AWK_HEX_NUMBER_OPTION=''
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7975 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7977 AWK_HEX_NUMBER_OPTION='-n'
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7979 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7983 # We need to compile and run a program on the build machine. A
7984 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7985 # the AC archive is broken for autoconf 2.57. Given that there is no
7986 # newer version of that macro, we assume that it is also broken for
7987 # autoconf 2.61 and thus we use a simple but usually sufficient
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7990 $as_echo_n "checking for cc for build... " >&6; }
7991 if test "$cross_compiling" = "yes"; then
7992 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7994 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7997 $as_echo "$CC_FOR_BUILD" >&6; }
8000 # We need to call this macro because other pkg-config macros are
8009 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8016 $as_echo_n "(cached) " >&6
8020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8042 if test -n "$PKG_CONFIG"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8044 $as_echo "$PKG_CONFIG" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_path_PKG_CONFIG"; then
8053 ac_pt_PKG_CONFIG=$PKG_CONFIG
8054 # Extract the first word of "pkg-config", so it can be a program name with args.
8055 set dummy pkg-config; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 case $ac_pt_PKG_CONFIG in
8063 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8085 if test -n "$ac_pt_PKG_CONFIG"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8087 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8093 if test "x$ac_pt_PKG_CONFIG" = x; then
8096 case $cross_compiling:$ac_tool_warned in
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8102 PKG_CONFIG=$ac_pt_PKG_CONFIG
8105 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8109 if test -n "$PKG_CONFIG"; then
8110 _pkg_min_version=0.9.0
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8112 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8113 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115 $as_echo "yes" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8126 have_dosish_system=no
8128 have_w32ce_system=no
8129 have_android_system=no
8130 use_simple_gettext=no
8132 require_pipe_to_unblock_pselect=yes
8135 # special stuff for Windoze NT
8136 ac_cv_have_dev_random=no
8138 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8141 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8143 have_dosish_system=yes
8146 require_pipe_to_unblock_pselect=no
8149 have_w32ce_system=yes
8153 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8158 use_simple_gettext=yes
8162 i?86-emx-os2 | i?86-*-os2*emx )
8163 # OS/2 with the EMX environment
8164 ac_cv_have_dev_random=no
8165 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8167 have_dosish_system=yes
8173 # DOS with the DJGPP environment
8174 ac_cv_have_dev_random=no
8175 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8177 have_dosish_system=yes
8183 if test -z "$GCC" ; then
8184 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8188 if test -z "$GCC" ; then
8189 # Suppress all warnings
8190 # to get rid of the unsigned/signed char mismatch warnings.
8195 if test -z "$GCC" ; then
8196 # Use the newer compiler `-msg_disable ptrmismatch1' to
8197 # get rid of the unsigned/signed char mismatch warnings.
8198 # Using this may hide other pointer mismatch warnings, but
8199 # it at least lets other warning classes through
8200 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8206 have_android_system=yes
8207 # Android is fully utf-8 and we do not want to use iconv to
8208 # keeps things simple
8214 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8218 require_pipe_to_unblock_pselect=yes
8224 if test "$require_pipe_to_unblock_pselect" = yes; then
8226 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8230 if test "$have_dosish_system" = yes; then
8232 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8235 if test "$have_dosish_system" = yes; then
8236 HAVE_DOSISH_SYSTEM_TRUE=
8237 HAVE_DOSISH_SYSTEM_FALSE='#'
8239 HAVE_DOSISH_SYSTEM_TRUE='#'
8240 HAVE_DOSISH_SYSTEM_FALSE=
8244 if test x"$use_simple_gettext" = xyes; then
8245 USE_SIMPLE_GETTEXT_TRUE=
8246 USE_SIMPLE_GETTEXT_FALSE='#'
8248 USE_SIMPLE_GETTEXT_TRUE='#'
8249 USE_SIMPLE_GETTEXT_FALSE=
8253 if test "$have_w32_system" = yes; then
8255 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8257 if test "$have_w32ce_system" = yes; then
8259 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8263 if test "$have_w32_system" = yes; then
8264 HAVE_W32_SYSTEM_TRUE=
8265 HAVE_W32_SYSTEM_FALSE='#'
8267 HAVE_W32_SYSTEM_TRUE='#'
8268 HAVE_W32_SYSTEM_FALSE=
8271 if test "$have_w32ce_system" = yes; then
8272 HAVE_W32CE_SYSTEM_TRUE=
8273 HAVE_W32CE_SYSTEM_FALSE='#'
8275 HAVE_W32CE_SYSTEM_TRUE='#'
8276 HAVE_W32CE_SYSTEM_FALSE=
8280 if test "$have_android_system" = yes; then
8282 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8285 if test "$have_android_system" = yes; then
8286 HAVE_ANDROID_SYSTEM_TRUE=
8287 HAVE_ANDROID_SYSTEM_FALSE='#'
8289 HAVE_ANDROID_SYSTEM_TRUE='#'
8290 HAVE_ANDROID_SYSTEM_FALSE=
8295 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8297 cat >>confdefs.h <<_ACEOF
8298 #define EXEEXT "$EXEEXT"
8304 # Checks for libraries.
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8307 $as_echo "$as_me: checking for libraries" >&6;}
8311 # gpgrt (aka libgpg-error) is a library with error codes shared
8312 # between GnuPG related projects.
8315 gpg_error_config_prefix=""
8317 # Check whether --with-libgpg-error-prefix was given.
8318 if test "${with_libgpg_error_prefix+set}" = set; then :
8319 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8324 # Check whether --with-gpg-error-prefix was given.
8325 if test "${with_gpg_error_prefix+set}" = set; then :
8326 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8330 if test x"${GPG_ERROR_CONFIG}" = x ; then
8331 if test x"${gpg_error_config_prefix}" != x ; then
8332 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8334 case "${SYSROOT}" in
8336 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8337 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8344 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8350 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8351 set dummy gpg-error-config; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 case $GPG_ERROR_CONFIG in
8359 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8381 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8382 if test -n "$GPG_ERROR_CONFIG"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8384 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 min_gpg_error_version="$NEED_GPGRT_VERSION"
8394 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8395 set dummy gpgrt-config; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8399 $as_echo_n "(cached) " >&6
8401 case $GPGRT_CONFIG in
8403 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 as_dummy="$prefix/bin:$PATH"
8408 for as_dir in $as_dummy
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8426 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8427 if test -n "$GPGRT_CONFIG"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8429 $as_echo "$GPGRT_CONFIG" >&6; }
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8436 if test "$GPGRT_CONFIG" != "no"; then
8437 # Determine gpgrt_libdir
8439 # Get the prefix of gpgrt-config assuming it's something like:
8440 # <PREFIX>/bin/gpgrt-config
8441 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8442 possible_libdir1=${gpgrt_prefix}/lib
8443 # Determine by using system libdir-format with CC, it's like:
8444 # Normal style: /usr/lib
8445 # GNU cross style: /usr/<triplet>/lib
8446 # Debian style: /usr/lib/<multiarch-name>
8447 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8448 # It is assumed that CC is specified to the one of host on cross build.
8449 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8450 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8452 # From the output of -print-search-dirs, select valid pkgconfig dirs.
8453 libdir_candidates=$(for dir in $libdir_candidates; do
8454 if p=$(cd $dir 2>/dev/null && pwd); then
8455 test -d "$p/pkgconfig" && echo $p;
8459 for possible_libdir0 in $libdir_candidates; do
8461 # Fallback candidate, the one of system-installed (by $CC)
8462 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8464 # Another candidate, user-locally-installed
8465 # (<gpgrt_prefix>/lib)
8468 # (<gpgrt_prefix>/<triplet>/lib,
8469 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8470 if test "${possible_libdir0##*/}" = "lib"; then
8471 possible_prefix0=${possible_libdir0%/lib}
8472 possible_prefix0_triplet=${possible_prefix0##*/}
8473 if test -z "$possible_prefix0_triplet"; then
8476 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8478 possible_prefix0=${possible_libdir0%%/lib*}
8479 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8481 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8482 gpgrt_libdir=${possible_libdir2}
8483 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8484 gpgrt_libdir=${possible_libdir1}
8485 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8486 gpgrt_libdir=${possible_libdir0}
8488 if test -n "$gpgrt_libdir"; then break; fi
8491 # When we cannot determine system libdir-format, use this:
8492 gpgrt_libdir=${possible_libdir1}
8498 if test -n "$gpgrt_libdir"; then
8499 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8500 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8501 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8503 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8504 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8508 elif test "$GPG_ERROR_CONFIG" != "no"; then
8509 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8511 if test "$GPG_ERROR_CONFIG" != "no"; then
8512 req_major=`echo $min_gpg_error_version | \
8513 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8514 req_minor=`echo $min_gpg_error_version | \
8515 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8516 major=`echo $gpg_error_config_version | \
8517 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8518 minor=`echo $gpg_error_config_version | \
8519 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8520 if test "$major" -gt "$req_major"; then
8523 if test "$major" -eq "$req_major"; then
8524 if test "$minor" -ge "$req_minor"; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8531 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8532 if test $ok = yes; then
8533 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8534 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8535 if test -z "$GPGRT_CONFIG"; then
8536 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8537 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8539 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8540 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8541 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8542 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8545 $as_echo "yes ($gpg_error_config_version)" >&6; }
8547 if test -z "$GPGRT_CONFIG"; then
8548 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8550 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8552 if test x"$gpg_error_config_host" != xnone ; then
8553 if test x"$gpg_error_config_host" != x"$host" ; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8556 *** The config script \"$GPG_ERROR_CONFIG\" was
8557 *** built for $gpg_error_config_host and thus may not match the
8558 *** used host $host.
8559 *** You may want to use the configure option --with-libgpg-error-prefix
8560 *** to specify a matching config script or use \$SYSROOT.
8562 $as_echo "$as_me: WARNING:
8564 *** The config script \"$GPG_ERROR_CONFIG\" was
8565 *** built for $gpg_error_config_host and thus may not match the
8566 *** used host $host.
8567 *** You may want to use the configure option --with-libgpg-error-prefix
8568 *** to specify a matching config script or use \$SYSROOT.
8570 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8576 GPG_ERROR_MT_CFLAGS=""
8577 GPG_ERROR_MT_LIBS=""
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8590 # Libgcrypt is our generic crypto library
8594 # Check whether --with-libgcrypt-prefix was given.
8595 if test "${with_libgcrypt_prefix+set}" = set; then :
8596 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8598 libgcrypt_config_prefix=""
8601 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8602 if test x"${libgcrypt_config_prefix}" != x ; then
8603 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8608 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8609 if $GPGRT_CONFIG libgcrypt --exists; then
8610 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8612 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8613 use_gpgrt_config=yes
8616 if test -z "$use_gpgrt_config"; then
8617 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8618 case "${SYSROOT}" in
8620 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8621 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8628 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8632 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8633 set dummy libgcrypt-config; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8637 $as_echo_n "(cached) " >&6
8639 case $LIBGCRYPT_CONFIG in
8641 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8659 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8663 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8664 if test -n "$LIBGCRYPT_CONFIG"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8666 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8675 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8676 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8677 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8678 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8681 min_libgcrypt_version="$tmp"
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8685 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8687 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8688 req_major=`echo $min_libgcrypt_version | \
8689 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8690 req_minor=`echo $min_libgcrypt_version | \
8691 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8692 req_micro=`echo $min_libgcrypt_version | \
8693 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8694 if test -z "$use_gpgrt_config"; then
8695 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8697 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8699 major=`echo $libgcrypt_config_version | \
8700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8701 minor=`echo $libgcrypt_config_version | \
8702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8703 micro=`echo $libgcrypt_config_version | \
8704 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8705 if test "$major" -gt "$req_major"; then
8708 if test "$major" -eq "$req_major"; then
8709 if test "$minor" -gt "$req_minor"; then
8712 if test "$minor" -eq "$req_minor"; then
8713 if test "$micro" -ge "$req_micro"; then
8721 if test $ok = yes; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8723 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8728 if test $ok = yes; then
8729 # If we have a recent libgcrypt, we should also check that the
8731 if test "$req_libgcrypt_api" -gt 0 ; then
8732 if test -z "$use_gpgrt_config"; then
8733 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8735 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8737 if test "$tmp" -gt 0 ; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8739 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8740 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8742 $as_echo "okay" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8746 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8751 if test $ok = yes; then
8752 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8753 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8755 if test -z "$use_gpgrt_config"; then
8756 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8758 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8760 if test x"$libgcrypt_config_host" != xnone ; then
8761 if test x"$libgcrypt_config_host" != x"$host" ; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8764 *** The config script \"$LIBGCRYPT_CONFIG\" was
8765 *** built for $libgcrypt_config_host and thus may not match the
8766 *** used host $host.
8767 *** You may want to use the configure option --with-libgcrypt-prefix
8768 *** to specify a matching config script or use \$SYSROOT.
8770 $as_echo "$as_me: WARNING:
8772 *** The config script \"$LIBGCRYPT_CONFIG\" was
8773 *** built for $libgcrypt_config_host and thus may not match the
8774 *** used host $host.
8775 *** You may want to use the configure option --with-libgcrypt-prefix
8776 *** to specify a matching config script or use \$SYSROOT.
8778 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8789 # And, then, check if it's newer than 1.9.0 so that we can
8790 # conditionally build some programs.
8791 # Note: This is not anymore needed but keep the code commented in case
8792 # we need it again with some future libgcrypt.
8793 #have_libgcrypt_newer=no
8794 #if test $ok = yes; then
8795 # if test "$major" -gt 1; then
8796 # have_libgcrypt_newer=yes
8798 # if test "$major" -eq 1; then
8799 # if test "$minor" -gt 9; then
8800 # have_libgcrypt_newer=yes
8802 # if test "$minor" -eq 9; then
8803 # if test "$micro" -ge 0; then
8804 # have_libgcrypt_newer=yes
8811 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8814 # libassuan is used for IPC
8818 # Check whether --with-libassuan-prefix was given.
8819 if test "${with_libassuan_prefix+set}" = set; then :
8820 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8822 libassuan_config_prefix=""
8825 if test x$libassuan_config_prefix != x ; then
8826 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8827 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8832 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8833 if $GPGRT_CONFIG libassuan --exists; then
8834 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8836 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8837 use_gpgrt_config=yes
8840 if test -z "$use_gpgrt_config"; then
8841 # Extract the first word of "libassuan-config", so it can be a program name with args.
8842 set dummy libassuan-config; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 case $LIBASSUAN_CONFIG in
8850 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857 test -z "$as_dir" && as_dir=.
8858 for ac_exec_ext in '' $ac_executable_extensions; do
8859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8872 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8873 if test -n "$LIBASSUAN_CONFIG"; then
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8875 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8884 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8885 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8886 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8887 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8890 min_libassuan_version="$tmp"
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8894 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8896 if test "$LIBASSUAN_CONFIG" != "no"; then
8897 req_major=`echo $min_libassuan_version | \
8898 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8899 req_minor=`echo $min_libassuan_version | \
8900 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8901 req_micro=`echo $min_libassuan_version | \
8902 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8904 if test -z "$use_gpgrt_config"; then
8905 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8907 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8909 major=`echo $libassuan_config_version | \
8910 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8911 minor=`echo $libassuan_config_version | \
8912 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8913 micro=`echo $libassuan_config_version | \
8914 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8916 if test "$major" -gt "$req_major"; then
8919 if test "$major" -eq "$req_major"; then
8920 if test "$minor" -gt "$req_minor"; then
8923 if test "$minor" -eq "$req_minor"; then
8924 if test "$micro" -ge "$req_micro"; then
8933 if test $ok = yes; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8935 $as_echo "yes ($libassuan_config_version)" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8941 if test $ok = yes; then
8942 if test "$req_libassuan_api" -gt 0 ; then
8943 if test -z "$use_gpgrt_config"; then
8944 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8946 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8948 if test "$tmp" -gt 0 ; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8950 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8951 if test "$req_libassuan_api" -eq "$tmp" ; then
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8953 $as_echo "okay" >&6; }
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8957 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8963 if test $ok = yes; then
8964 if test x"$host" != x ; then
8965 if test -z "$use_gpgrt_config"; then
8966 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8968 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8970 if test x"$libassuan_config_host" != xnone ; then
8971 if test x"$libassuan_config_host" != x"$host" ; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8974 *** The config script \"$LIBASSUAN_CONFIG\" was
8975 *** built for $libassuan_config_host and thus may not match the
8976 *** used host $host.
8977 *** You may want to use the configure option --with-libassuan-prefix
8978 *** to specify a matching config script.
8980 $as_echo "$as_me: WARNING:
8982 *** The config script \"$LIBASSUAN_CONFIG\" was
8983 *** built for $libassuan_config_host and thus may not match the
8984 *** used host $host.
8985 *** You may want to use the configure option --with-libassuan-prefix
8986 *** to specify a matching config script.
8993 if test $ok = yes; then
8994 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8995 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9005 if test "$have_libassuan" = "yes"; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9011 show_tor_support="only .onion"
9016 # libksba is our X.509 support library
9020 # Check whether --with-libksba-prefix was given.
9021 if test "${with_libksba_prefix+set}" = set; then :
9022 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9024 ksba_config_prefix=""
9029 # Check whether --with-ksba-prefix was given.
9030 if test "${with_ksba_prefix+set}" = set; then :
9031 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9033 ksba_config_prefix=""
9037 if test x$ksba_config_prefix != x ; then
9038 if test x${KSBA_CONFIG+set} != xset ; then
9039 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9044 if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9045 if $GPGRT_CONFIG ksba --exists; then
9046 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9048 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9049 use_gpgrt_config=yes
9052 if test -z "$use_gpgrt_config"; then
9053 # Extract the first word of "ksba-config", so it can be a program name with args.
9054 set dummy ksba-config; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9058 $as_echo_n "(cached) " >&6
9060 case $KSBA_CONFIG in
9062 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9084 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9085 if test -n "$KSBA_CONFIG"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9087 $as_echo "$KSBA_CONFIG" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9096 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9097 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9098 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9099 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9102 min_ksba_version="$tmp"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9106 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9108 if test "$KSBA_CONFIG" != "no" ; then
9109 req_major=`echo $min_ksba_version | \
9110 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9111 req_minor=`echo $min_ksba_version | \
9112 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9113 req_micro=`echo $min_ksba_version | \
9114 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9115 if test -z "$use_gpgrt_config"; then
9116 ksba_config_version=`$KSBA_CONFIG --version`
9118 ksba_config_version=`$KSBA_CONFIG --modversion`
9120 major=`echo $ksba_config_version | \
9121 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9122 minor=`echo $ksba_config_version | \
9123 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9124 micro=`echo $ksba_config_version | \
9125 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9126 if test "$major" -gt "$req_major"; then
9129 if test "$major" -eq "$req_major"; then
9130 if test "$minor" -gt "$req_minor"; then
9133 if test "$minor" -eq "$req_minor"; then
9134 if test "$micro" -ge "$req_micro"; then
9142 if test $ok = yes; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9144 $as_echo "yes ($ksba_config_version)" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9149 if test $ok = yes; then
9150 # Even if we have a recent libksba, we should check that the
9151 # API is compatible.
9152 if test "$req_ksba_api" -gt 0 ; then
9153 if test -z "$use_gpgrt_config"; then
9154 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9156 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9158 if test "$tmp" -gt 0 ; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9160 $as_echo_n "checking KSBA API version... " >&6; }
9161 if test "$req_ksba_api" -eq "$tmp" ; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9163 $as_echo "okay" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9167 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
9172 if test $ok = yes; then
9173 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9174 KSBA_LIBS=`$KSBA_CONFIG --libs`
9176 if test -z "$use_gpgrt_config"; then
9177 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9179 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9181 if test x"$libksba_config_host" != xnone ; then
9182 if test x"$libksba_config_host" != x"$host" ; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9185 *** The config script \"$KSBA_CONFIG\" was
9186 *** built for $libksba_config_host and thus may not match the
9187 *** used host $host.
9188 *** You may want to use the configure option --with-libksba-prefix
9189 *** to specify a matching config script.
9191 $as_echo "$as_me: WARNING:
9193 *** The config script \"$KSBA_CONFIG\" was
9194 *** built for $libksba_config_host and thus may not match the
9195 *** used host $host.
9196 *** You may want to use the configure option --with-libksba-prefix
9197 *** to specify a matching config script.
9212 # libusb allows us to use the integrated CCID smartcard reader driver.
9214 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9215 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9224 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9227 # FreeBSD has a native 1.0 compatible library by -lusb.
9237 if test x"$LIBUSB_NAME" != x ; then
9238 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9240 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9241 if eval \${$as_ac_Lib+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-l$LIBUSB_NAME $LIBS"
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9255 char libusb_init ();
9259 return libusb_init ();
9264 if ac_fn_c_try_link "$LINENO"; then :
9265 eval "$as_ac_Lib=yes"
9267 eval "$as_ac_Lib=no"
9269 rm -f core conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271 LIBS=$ac_check_lib_save_LIBS
9273 eval ac_res=\$$as_ac_Lib
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9275 $as_echo "$ac_res" >&6; }
9276 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9277 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9282 $as_echo_n "checking libusb include dir... " >&6; }
9283 usb_incdir_found="no"
9284 for _incdir in "" "/usr/include/libusb-1.0" \
9285 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9286 _libusb_save_cppflags=$CPPFLAGS
9287 if test -n "${_incdir}"; then
9288 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9294 if ac_fn_c_try_cpp "$LINENO"; then :
9295 usb_incdir=${_incdir}; usb_incdir_found="yes"
9297 rm -f conftest.err conftest.i conftest.$ac_ext
9298 CPPFLAGS=${_libusb_save_cppflags}
9299 if test "$usb_incdir_found" = "yes"; then
9303 if test "$usb_incdir_found" = "yes"; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9305 $as_echo "${usb_incdir}" >&6; }
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9308 $as_echo "not found" >&6; }
9311 if test "$use_ccid_driver" != yes; then
9317 if test "$have_libusb" = yes; then
9319 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9322 if test x"$usb_incdir" = x; then
9325 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9332 # Check whether it is necessary to link against libdl.
9333 # (For example to load libpcsclite)
9335 gnupg_dlopen_save_libs="$LIBS"
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9338 $as_echo_n "checking for library containing dlopen... " >&6; }
9339 if ${ac_cv_search_dlopen+:} false; then :
9340 $as_echo_n "(cached) " >&6
9342 ac_func_search_save_LIBS=$LIBS
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h. */
9346 /* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9361 for ac_lib in '' c dl; do
9362 if test -z "$ac_lib"; then
9363 ac_res="none required"
9366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 ac_cv_search_dlopen=$ac_res
9371 rm -f core conftest.err conftest.$ac_objext \
9373 if ${ac_cv_search_dlopen+:} false; then :
9377 if ${ac_cv_search_dlopen+:} false; then :
9380 ac_cv_search_dlopen=no
9383 LIBS=$ac_func_search_save_LIBS
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9386 $as_echo "$ac_cv_search_dlopen" >&6; }
9387 ac_res=$ac_cv_search_dlopen
9388 if test "$ac_res" != no; then :
9389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9395 LIBS="$gnupg_dlopen_save_libs"
9400 # Check whether --enable-sqlite was given.
9401 if test "${enable_sqlite+set}" = set; then :
9402 enableval=$enable_sqlite; try_sqlite=$enableval
9408 if test x"$use_tofu" = xyes ; then
9409 if test x"$try_sqlite" = xyes ; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9413 $as_echo_n "checking for SQLITE3... " >&6; }
9415 if test -n "$SQLITE3_CFLAGS"; then
9416 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9417 elif test -n "$PKG_CONFIG"; then
9418 if test -n "$PKG_CONFIG" && \
9419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9420 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423 test $ac_status = 0; }; then
9424 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9425 test "x$?" != "x0" && pkg_failed=yes
9432 if test -n "$SQLITE3_LIBS"; then
9433 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9434 elif test -n "$PKG_CONFIG"; then
9435 if test -n "$PKG_CONFIG" && \
9436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9437 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9440 test $ac_status = 0; }; then
9441 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9442 test "x$?" != "x0" && pkg_failed=yes
9452 if test $pkg_failed = yes; then
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9457 _pkg_short_errors_supported=yes
9459 _pkg_short_errors_supported=no
9461 if test $_pkg_short_errors_supported = yes; then
9462 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9464 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9466 # Put the nasty error message in config.log where it belongs
9467 echo "$SQLITE3_PKG_ERRORS" >&5
9470 elif test $pkg_failed = untried; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9475 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9476 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478 $as_echo "yes" >&6; }
9482 if test "$have_sqlite" = "yes"; then
9488 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9491 *** Building without SQLite support - TOFU and Keyboxd disabled
9494 $as_echo "$as_me: WARNING:
9496 *** Building without SQLite support - TOFU and Keyboxd disabled
9501 if test "$have_sqlite" != "yes"; then
9506 if test "$have_sqlite" = "yes"; then
9515 if test x"$use_tofu" = xyes ; then
9517 $as_echo "#define USE_TOFU 1" >>confdefs.h
9524 # Extract the first word of "encfs", so it can be a program name with args.
9525 set dummy encfs; ac_word=$2
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527 $as_echo_n "checking for $ac_word... " >&6; }
9528 if ${ac_cv_path_ENCFS+:} false; then :
9529 $as_echo_n "(cached) " >&6
9533 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540 test -z "$as_dir" && as_dir=.
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9551 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9555 ENCFS=$ac_cv_path_ENCFS
9556 if test -n "$ENCFS"; then
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9558 $as_echo "$ENCFS" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9566 cat >>confdefs.h <<_ACEOF
9567 #define ENCFS "${ENCFS}"
9571 # Extract the first word of "fusermount", so it can be a program name with args.
9572 set dummy fusermount; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9576 $as_echo_n "(cached) " >&6
9580 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9602 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9603 if test -n "$FUSERMOUNT"; then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9605 $as_echo "$FUSERMOUNT" >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9613 cat >>confdefs.h <<_ACEOF
9614 #define FUSERMOUNT "${FUSERMOUNT}"
9621 # Check whether the nPth library is available
9624 # Check whether --with-npth-prefix was given.
9625 if test "${with_npth_prefix+set}" = set; then :
9626 withval=$with_npth_prefix; npth_config_prefix="$withval"
9628 npth_config_prefix=""
9631 if test "x$npth_config_prefix" != x ; then
9632 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9636 if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9637 if $GPGRT_CONFIG npth --exists; then
9638 NPTH_CONFIG="$GPGRT_CONFIG npth"
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9640 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9641 use_gpgrt_config=yes
9644 if test -z "$use_gpgrt_config"; then
9645 # Extract the first word of "npth-config", so it can be a program name with args.
9646 set dummy npth-config; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9650 $as_echo_n "(cached) " >&6
9652 case $NPTH_CONFIG in
9654 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9676 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9677 if test -n "$NPTH_CONFIG"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9679 $as_echo "$NPTH_CONFIG" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9688 if test "$NPTH_CONFIG" != "no" ; then
9689 if test -z "$use_gpgrt_config"; then
9690 npth_version=`$NPTH_CONFIG --version`
9692 npth_version=`$NPTH_CONFIG --modversion`
9695 npth_version_major=`echo $npth_version | \
9696 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9697 npth_version_minor=`echo $npth_version | \
9698 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9700 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9701 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9702 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9703 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9706 min_npth_version="$tmp"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9710 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9712 if test "$NPTH_CONFIG" != "no" ; then
9713 req_major=`echo $min_npth_version | \
9714 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9715 req_minor=`echo $min_npth_version | \
9716 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9717 if test "$npth_version_major" -gt "$req_major"; then
9720 if test "$npth_version_major" -eq "$req_major"; then
9721 if test "$npth_version_minor" -gt "$req_minor"; then
9724 if test "$npth_version_minor" -eq "$req_minor"; then
9731 if test $ok = yes; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9733 $as_echo "yes ($npth_version)" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9738 if test $ok = yes; then
9739 # If we have a recent NPTH, we should also check that the
9740 # API is compatible.
9741 if test "$req_npth_api" -gt 0 ; then
9742 if test -z "$use_gpgrt_config"; then
9743 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9745 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9747 if test "$tmp" -gt 0 ; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9749 $as_echo_n "checking NPTH API version... " >&6; }
9750 if test "$req_npth_api" -eq "$tmp" ; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9752 $as_echo "okay" >&6; }
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9756 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9761 if test $ok = yes; then
9762 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9763 NPTH_LIBS=`$NPTH_CONFIG --libs`
9765 if test -z "$use_gpgrt_config"; then
9766 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9768 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9770 if test x"$npth_config_host" != xnone ; then
9771 if test x"$npth_config_host" != x"$host" ; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9774 *** The config script \"$NPTH_CONFIG\" was
9775 *** built for $npth_config_host and thus may not match the
9776 *** used host $host.
9777 *** You may want to use the configure option --with-npth-prefix
9778 *** to specify a matching config script.
9780 $as_echo "$as_me: WARNING:
9782 *** The config script \"$NPTH_CONFIG\" was
9783 *** built for $npth_config_host and thus may not match the
9784 *** used host $host.
9785 *** You may want to use the configure option --with-npth-prefix
9786 *** to specify a matching config script.
9798 if test "$have_npth" = "yes"; then
9800 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9803 $as_echo "#define USE_NPTH 1" >>confdefs.h
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9808 *** To support concurrent access for example in gpg-agent and the SCdaemon
9809 *** we need the support of the New Portable Threads Library.
9811 $as_echo "$as_me: WARNING:
9813 *** To support concurrent access for example in gpg-agent and the SCdaemon
9814 *** we need the support of the New Portable Threads Library.
9818 # Enable debugging of nPth
9820 # Check whether --enable-npth-debug was given.
9821 if test "${enable_npth_debug+set}" = set; then :
9822 enableval=$enable_npth_debug; if test $enableval = yes ; then
9824 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9833 # NTBTLS is our TLS library. If it is not available we fall back to
9836 # Check whether --enable-ntbtls was given.
9837 if test "${enable_ntbtls+set}" = set; then :
9838 enableval=$enable_ntbtls; try_ntbtls=$enableval
9843 if test x"$try_ntbtls" = xyes ; then
9846 # Check whether --with-ntbtls-prefix was given.
9847 if test "${with_ntbtls_prefix+set}" = set; then :
9848 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9850 ntbtls_config_prefix=""
9853 if test x"${NTBTLS_CONFIG}" = x ; then
9854 if test x"${ntbtls_config_prefix}" != x ; then
9855 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9860 if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9861 if $GPGRT_CONFIG ntbtls --exists; then
9862 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9864 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9865 use_gpgrt_config=yes
9868 if test -z "$use_gpgrt_config"; then
9869 if test x"${NTBTLS_CONFIG}" = x ; then
9870 case "${SYSROOT}" in
9872 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9873 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9880 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9884 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9885 set dummy ntbtls-config; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9889 $as_echo_n "(cached) " >&6
9891 case $NTBTLS_CONFIG in
9893 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9915 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9916 if test -n "$NTBTLS_CONFIG"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9918 $as_echo "$NTBTLS_CONFIG" >&6; }
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9927 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9928 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9929 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9930 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9933 min_ntbtls_version="$tmp"
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9937 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9939 if test "$NTBTLS_CONFIG" != "no" ; then
9940 req_major=`echo $min_ntbtls_version | \
9941 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9942 req_minor=`echo $min_ntbtls_version | \
9943 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9944 req_micro=`echo $min_ntbtls_version | \
9945 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9946 if test -z "$use_gpgrt_config"; then
9947 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9949 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9951 major=`echo $ntbtls_config_version | \
9952 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9953 minor=`echo $ntbtls_config_version | \
9954 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9955 micro=`echo $ntbtls_config_version | \
9956 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9957 if test "$major" -gt "$req_major"; then
9960 if test "$major" -eq "$req_major"; then
9961 if test "$minor" -gt "$req_minor"; then
9964 if test "$minor" -eq "$req_minor"; then
9965 if test "$micro" -ge "$req_micro"; then
9973 if test $ok = yes; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9975 $as_echo "yes ($ntbtls_config_version)" >&6; }
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9980 if test $ok = yes; then
9981 # If we have a recent ntbtls, we should also check that the
9983 if test "$req_ntbtls_api" -gt 0 ; then
9984 if test -z "$use_gpgrt_config"; then
9985 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9987 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9989 if test "$tmp" -gt 0 ; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9991 $as_echo_n "checking NTBTLS API version... " >&6; }
9992 if test "$req_ntbtls_api" -eq "$tmp" ; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9994 $as_echo "okay" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9998 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
10003 if test $ok = yes; then
10004 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10005 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10007 if test -z "$use_gpgrt_config"; then
10008 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10010 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10012 if test x"$ntbtls_config_host" != xnone ; then
10013 if test x"$ntbtls_config_host" != x"$host" ; then
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10016 *** The config script \"$NTBTLS_CONFIG\" was
10017 *** built for $ntbtls_config_host and thus may not match the
10018 *** used host $host.
10019 *** You may want to use the configure option --with-ntbtls-prefix
10020 *** to specify a matching config script or use \$SYSROOT.
10022 $as_echo "$as_me: WARNING:
10024 *** The config script \"$NTBTLS_CONFIG\" was
10025 *** built for $ntbtls_config_host and thus may not match the
10026 *** used host $host.
10027 *** You may want to use the configure option --with-ntbtls-prefix
10028 *** to specify a matching config script or use \$SYSROOT.
10030 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10042 if test "$have_ntbtls" = yes ; then
10043 use_tls_library=ntbtls
10045 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10048 # Check whether --enable-gnutls was given.
10049 if test "${enable_gnutls+set}" = set; then :
10050 enableval=$enable_gnutls; try_gnutls=$enableval
10055 if test x"$try_gnutls" = xyes ; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10059 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10061 if test -n "$LIBGNUTLS_CFLAGS"; then
10062 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10063 elif test -n "$PKG_CONFIG"; then
10064 if test -n "$PKG_CONFIG" && \
10065 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10066 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069 test $ac_status = 0; }; then
10070 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10071 test "x$?" != "x0" && pkg_failed=yes
10078 if test -n "$LIBGNUTLS_LIBS"; then
10079 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10080 elif test -n "$PKG_CONFIG"; then
10081 if test -n "$PKG_CONFIG" && \
10082 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10083 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086 test $ac_status = 0; }; then
10087 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10088 test "x$?" != "x0" && pkg_failed=yes
10098 if test $pkg_failed = yes; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10103 _pkg_short_errors_supported=yes
10105 _pkg_short_errors_supported=no
10107 if test $_pkg_short_errors_supported = yes; then
10108 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10110 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10112 # Put the nasty error message in config.log where it belongs
10113 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10116 elif test $pkg_failed = untried; then
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10121 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10122 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124 $as_echo "yes" >&6; }
10128 if test "$have_gnutls" = "yes"; then
10131 use_tls_library=gnutls
10133 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10136 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10140 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10143 $as_echo "$as_me: WARNING:
10145 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10152 # Allow to set a fixed trust store file for system provided certificates.
10155 # Check whether --with-default-trust-store-file was given.
10156 if test "${with_default_trust_store_file+set}" = set; then :
10157 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10159 default_trust_store_file=""
10162 if test x"$default_trust_store_file" = xno;then
10163 default_trust_store_file=""
10165 if test x"$default_trust_store_file" != x ; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10175 $as_echo "$as_me: checking for networking options" >&6;}
10178 # Must check for network library requirements before doing link tests
10179 # for ldap, for example. If ldap libs are static (or dynamic and without
10180 # ELF runtime link paths), then link will fail and LDAP support won't
10183 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10184 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10188 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10189 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10190 $as_echo_n "(cached) " >&6
10192 ac_check_lib_save_LIBS=$LIBS
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10203 char gethostbyname ();
10207 return gethostbyname ();
10212 if ac_fn_c_try_link "$LINENO"; then :
10213 ac_cv_lib_nsl_gethostbyname=yes
10215 ac_cv_lib_nsl_gethostbyname=no
10217 rm -f core conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10222 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10223 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10224 NETLIBS="-lnsl $NETLIBS"
10229 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10230 if test "x$ac_cv_func_setsockopt" = xyes; then :
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10234 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10235 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10236 $as_echo_n "(cached) " >&6
10238 ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-lsocket $LIBS"
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10249 char setsockopt ();
10253 return setsockopt ();
10258 if ac_fn_c_try_link "$LINENO"; then :
10259 ac_cv_lib_socket_setsockopt=yes
10261 ac_cv_lib_socket_setsockopt=no
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10268 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10269 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10270 NETLIBS="-lsocket $NETLIBS"
10278 # Check standard resolver functions.
10280 if test "$build_dirmngr" = "yes"; then
10281 _dns_save_libs=$LIBS
10284 # Find the system resolver which can always be enabled with
10285 # the dirmngr option --standard-resolver.
10287 # the double underscore thing is a glibc-ism?
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10289 $as_echo_n "checking for library containing res_query... " >&6; }
10290 if ${ac_cv_search_res_query+:} false; then :
10291 $as_echo_n "(cached) " >&6
10293 ac_func_search_save_LIBS=$LIBS
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10307 return res_query ();
10312 for ac_lib in '' resolv bind; do
10313 if test -z "$ac_lib"; then
10314 ac_res="none required"
10317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10319 if ac_fn_c_try_link "$LINENO"; then :
10320 ac_cv_search_res_query=$ac_res
10322 rm -f core conftest.err conftest.$ac_objext \
10324 if ${ac_cv_search_res_query+:} false; then :
10328 if ${ac_cv_search_res_query+:} false; then :
10331 ac_cv_search_res_query=no
10333 rm conftest.$ac_ext
10334 LIBS=$ac_func_search_save_LIBS
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10337 $as_echo "$ac_cv_search_res_query" >&6; }
10338 ac_res=$ac_cv_search_res_query
10339 if test "$ac_res" != no; then :
10340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10344 $as_echo_n "checking for library containing __res_query... " >&6; }
10345 if ${ac_cv_search___res_query+:} false; then :
10346 $as_echo_n "(cached) " >&6
10348 ac_func_search_save_LIBS=$LIBS
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10352 /* Override any GCC internal prototype to avoid an error.
10353 Use char because int might match the return type of a GCC
10354 builtin and then its argument prototype would still apply. */
10358 char __res_query ();
10362 return __res_query ();
10367 for ac_lib in '' resolv bind; do
10368 if test -z "$ac_lib"; then
10369 ac_res="none required"
10372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10374 if ac_fn_c_try_link "$LINENO"; then :
10375 ac_cv_search___res_query=$ac_res
10377 rm -f core conftest.err conftest.$ac_objext \
10379 if ${ac_cv_search___res_query+:} false; then :
10383 if ${ac_cv_search___res_query+:} false; then :
10386 ac_cv_search___res_query=no
10388 rm conftest.$ac_ext
10389 LIBS=$ac_func_search_save_LIBS
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10392 $as_echo "$ac_cv_search___res_query" >&6; }
10393 ac_res=$ac_cv_search___res_query
10394 if test "$ac_res" != no; then :
10395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10404 $as_echo_n "checking for library containing dn_expand... " >&6; }
10405 if ${ac_cv_search_dn_expand+:} false; then :
10406 $as_echo_n "(cached) " >&6
10408 ac_func_search_save_LIBS=$LIBS
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10422 return dn_expand ();
10427 for ac_lib in '' resolv bind; do
10428 if test -z "$ac_lib"; then
10429 ac_res="none required"
10432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10434 if ac_fn_c_try_link "$LINENO"; then :
10435 ac_cv_search_dn_expand=$ac_res
10437 rm -f core conftest.err conftest.$ac_objext \
10439 if ${ac_cv_search_dn_expand+:} false; then :
10443 if ${ac_cv_search_dn_expand+:} false; then :
10446 ac_cv_search_dn_expand=no
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10452 $as_echo "$ac_cv_search_dn_expand" >&6; }
10453 ac_res=$ac_cv_search_dn_expand
10454 if test "$ac_res" != no; then :
10455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10459 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10460 if ${ac_cv_search___dn_expand+:} false; then :
10461 $as_echo_n "(cached) " >&6
10463 ac_func_search_save_LIBS=$LIBS
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10467 /* Override any GCC internal prototype to avoid an error.
10468 Use char because int might match the return type of a GCC
10469 builtin and then its argument prototype would still apply. */
10473 char __dn_expand ();
10477 return __dn_expand ();
10482 for ac_lib in '' resolv bind; do
10483 if test -z "$ac_lib"; then
10484 ac_res="none required"
10487 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 ac_cv_search___dn_expand=$ac_res
10492 rm -f core conftest.err conftest.$ac_objext \
10494 if ${ac_cv_search___dn_expand+:} false; then :
10498 if ${ac_cv_search___dn_expand+:} false; then :
10501 ac_cv_search___dn_expand=no
10503 rm conftest.$ac_ext
10504 LIBS=$ac_func_search_save_LIBS
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10507 $as_echo "$ac_cv_search___dn_expand" >&6; }
10508 ac_res=$ac_cv_search___dn_expand
10509 if test "$ac_res" != no; then :
10510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10519 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10520 # and for some reason fools us into believing we don't need
10521 # -lresolv even if we do. Since the test program checking for the
10522 # symbol does not include <resolv.h>, we need to check for the
10523 # renamed symbol explicitly.
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10525 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10526 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10527 $as_echo_n "(cached) " >&6
10529 ac_func_search_save_LIBS=$LIBS
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10539 char res_9_dn_skipname ();
10543 return res_9_dn_skipname ();
10548 for ac_lib in '' resolv bind; do
10549 if test -z "$ac_lib"; then
10550 ac_res="none required"
10553 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_search_res_9_dn_skipname=$ac_res
10558 rm -f core conftest.err conftest.$ac_objext \
10560 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10564 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10567 ac_cv_search_res_9_dn_skipname=no
10569 rm conftest.$ac_ext
10570 LIBS=$ac_func_search_save_LIBS
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10573 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10574 ac_res=$ac_cv_search_res_9_dn_skipname
10575 if test "$ac_res" != no; then :
10576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10580 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10581 if ${ac_cv_search_dn_skipname+:} false; then :
10582 $as_echo_n "(cached) " >&6
10584 ac_func_search_save_LIBS=$LIBS
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10594 char dn_skipname ();
10598 return dn_skipname ();
10603 for ac_lib in '' resolv bind; do
10604 if test -z "$ac_lib"; then
10605 ac_res="none required"
10608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_search_dn_skipname=$ac_res
10613 rm -f core conftest.err conftest.$ac_objext \
10615 if ${ac_cv_search_dn_skipname+:} false; then :
10619 if ${ac_cv_search_dn_skipname+:} false; then :
10622 ac_cv_search_dn_skipname=no
10624 rm conftest.$ac_ext
10625 LIBS=$ac_func_search_save_LIBS
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10628 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10629 ac_res=$ac_cv_search_dn_skipname
10630 if test "$ac_res" != no; then :
10631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10635 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10636 if ${ac_cv_search___dn_skipname+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_func_search_save_LIBS=$LIBS
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h. */
10643 /* Override any GCC internal prototype to avoid an error.
10644 Use char because int might match the return type of a GCC
10645 builtin and then its argument prototype would still apply. */
10649 char __dn_skipname ();
10653 return __dn_skipname ();
10658 for ac_lib in '' resolv bind; do
10659 if test -z "$ac_lib"; then
10660 ac_res="none required"
10663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10665 if ac_fn_c_try_link "$LINENO"; then :
10666 ac_cv_search___dn_skipname=$ac_res
10668 rm -f core conftest.err conftest.$ac_objext \
10670 if ${ac_cv_search___dn_skipname+:} false; then :
10674 if ${ac_cv_search___dn_skipname+:} false; then :
10677 ac_cv_search___dn_skipname=no
10679 rm conftest.$ac_ext
10680 LIBS=$ac_func_search_save_LIBS
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10683 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10684 ac_res=$ac_cv_search___dn_skipname
10685 if test "$ac_res" != no; then :
10686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10697 if test x"$have_resolver" != xno ; then
10699 # Make sure that the BIND 4 resolver interface is workable before
10700 # enabling any code that calls it. At some point I'll rewrite the
10701 # code to use the BIND 8 resolver API.
10702 # We might also want to use libdns instead.
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10705 $as_echo_n "checking whether the resolver is usable... " >&6; }
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708 #include <sys/types.h>
10709 #include <netinet/in.h>
10710 #include <arpa/nameser.h>
10711 #include <resolv.h>
10715 unsigned char answer[PACKETSZ];
10716 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10718 dn_expand(0,0,0,0,0);
10724 if ac_fn_c_try_link "$LINENO"; then :
10729 rm -f core conftest.err conftest.$ac_objext \
10730 conftest$ac_exeext conftest.$ac_ext
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10732 $as_echo "$have_resolver" >&6; }
10734 # This is Apple-specific and somewhat bizarre as they changed the
10735 # define in bind 8 for some reason.
10737 if test x"$have_resolver" != xyes ; then
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10739 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #define BIND_8_COMPAT
10743 #include <sys/types.h>
10744 #include <netinet/in.h>
10745 #include <arpa/nameser.h>
10746 #include <resolv.h>
10750 unsigned char answer[PACKETSZ];
10751 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10752 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10758 if ac_fn_c_try_link "$LINENO"; then :
10759 have_resolver=yes ; need_compat=yes
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10764 $as_echo "$have_resolver" >&6; }
10768 if test x"$have_resolver" = xyes ; then
10770 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10772 DNSLIBS="$DNSLIBS $LIBS"
10773 if test x"$need_compat" = xyes ; then
10775 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10778 if test "$use_libdns" = yes; then
10779 show_tor_support=yes
10781 elif test "$use_libdns" = yes; then
10782 show_tor_support=yes
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10786 *** The system's DNS resolver is not usable.
10787 *** Dirmngr functionality is limited.
10789 $as_echo "$as_me: WARNING:
10791 *** The system's DNS resolver is not usable.
10792 *** Dirmngr functionality is limited.
10794 show_tor_support="${show_tor_support} (no system resolver)"
10797 if test "$have_w32_system" = yes; then
10798 if test "$use_libdns" = yes; then
10799 DNSLIBS="$DNSLIBS -liphlpapi"
10803 LIBS=$_dns_save_libs
10812 # Note that running the check changes the variable
10813 # gnupg_have_ldap from "n/a" to "no" or "yes".
10815 # Check whether --enable-ldap was given.
10816 if test "${enable_ldap+set}" = set; then :
10817 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10821 if test "$gnupg_have_ldap" != "no" ; then
10822 if test "$build_dirmngr" = "yes" ; then
10824 # Try and link a LDAP test program to weed out unusable LDAP
10825 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10826 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10827 # If all else fails, the user can play guess-the-dependency by using
10828 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10831 # Check whether --with-ldap was given.
10832 if test "${with_ldap+set}" = set; then :
10833 withval=$with_ldap; _ldap_with=$withval
10837 if test x$_ldap_with != xno ; then
10839 if test -d "$withval" ; then
10840 LDAP_CPPFLAGS="-I$withval/include"
10841 LDAP_LDFLAGS="-L$withval/lib"
10844 _ldap_save_cppflags=$CPPFLAGS
10845 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10846 _ldap_save_ldflags=$LDFLAGS
10847 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10849 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10850 _ldap_save_libs=$LIBS
10851 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10854 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10859 #include <winsock2.h>
10860 #include <winldap.h>
10868 ldap_open("foobar",1234);
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 gnupg_cv_func_ldap_init=yes
10876 gnupg_cv_func_ldap_init=no
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10881 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10883 if test $gnupg_cv_func_ldap_init = no; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10885 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10893 ldap_open("foobar",1234);
10898 if ac_fn_c_try_link "$LINENO"; then :
10899 gnupg_cv_func_ldaplber_init=yes
10901 gnupg_cv_func_ldaplber_init=no
10903 rm -f core conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10906 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10909 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10911 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10915 if test "$gnupg_cv_func_ldap_init" = yes || \
10916 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10917 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10918 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10919 gnupg_have_ldap=yes
10921 for ac_func in ldap_get_option ldap_set_option
10923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10926 cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10933 # The extra test for ldap_start_tls_sA is for W32 because
10934 # that is the actual function in the library.
10935 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10940 cat >>confdefs.h <<_ACEOF
10941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10948 if test "$ac_cv_func_ldap_get_option" != yes ; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10950 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10957 LDAP *ldap; ldap->ld_errno;
10962 if ac_fn_c_try_link "$LINENO"; then :
10963 gnupg_cv_func_ldap_ld_errno=yes
10965 gnupg_cv_func_ldap_ld_errno=no
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10970 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10972 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10974 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10980 LIBS=$_ldap_save_libs
10982 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10989 CPPFLAGS=$_ldap_save_cppflags
10990 LDFLAGS=$_ldap_save_ldflags
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10994 $as_echo_n "checking for ber_free in -llber... " >&6; }
10995 if ${ac_cv_lib_lber_ber_free+:} false; then :
10996 $as_echo_n "(cached) " >&6
10998 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-llber $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11013 return ber_free ();
11018 if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_lber_ber_free=yes
11021 ac_cv_lib_lber_ber_free=no
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11028 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11029 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11030 LBER_LIBS="$LBER_LIBS -llber"
11032 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11041 if test "$gnupg_have_ldap" = "no"; then
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11044 *** Building without LDAP support.
11045 *** No CRL access or X.509 certificate search available.
11047 $as_echo "$as_me: WARNING:
11049 *** Building without LDAP support.
11050 *** No CRL access or X.509 certificate search available.
11054 if test "$gnupg_have_ldap" = yes; then
11062 if test "$gnupg_have_ldap" = yes ; then
11064 $as_echo "#define USE_LDAP 1" >>confdefs.h
11071 # Check for sendmail
11073 # This isn't necessarily sendmail itself, but anything that gives a
11074 # sendmail-ish interface to the outside world. That includes Exim,
11075 # Postfix, etc. Basically, anything that can handle "sendmail -t".
11077 # Check whether --with-mailprog was given.
11078 if test "${with_mailprog+set}" = set; then :
11079 withval=$with_mailprog;
11084 if test x"$with_mailprog" = xyes ; then
11085 # Extract the first word of "sendmail", so it can be a program name with args.
11086 set dummy sendmail; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if ${ac_cv_path_SENDMAIL+:} false; then :
11090 $as_echo_n "(cached) " >&6
11094 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11099 for as_dir in $as_dummy
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 SENDMAIL=$ac_cv_path_SENDMAIL
11117 if test -n "$SENDMAIL"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11119 $as_echo "$SENDMAIL" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11126 elif test x"$with_mailprog" != xno ; then
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11128 $as_echo_n "checking for a mail transport program... " >&6; }
11129 SENDMAIL=$with_mailprog
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11132 $as_echo "$with_mailprog" >&6; }
11135 cat >>confdefs.h <<_ACEOF
11136 #define NAME_OF_SENDMAIL "$SENDMAIL"
11142 # Construct a printable name of the OS
11146 PRINTABLE_OS_NAME="W32CE"
11149 PRINTABLE_OS_NAME="MingW32"
11152 PRINTABLE_OS_NAME="Cygwin"
11154 i?86-emx-os2 | i?86-*-os2*emx )
11155 PRINTABLE_OS_NAME="OS/2"
11157 i?86-*-msdosdjgpp*)
11158 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11162 PRINTABLE_OS_NAME="GNU/Linux"
11165 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11169 cat >>confdefs.h <<_ACEOF
11170 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11176 # Checking for iconv
11178 if test "$require_iconv" = yes; then
11180 if test "X$prefix" = "XNONE"; then
11181 acl_final_prefix="$ac_default_prefix"
11183 acl_final_prefix="$prefix"
11185 if test "X$exec_prefix" = "XNONE"; then
11186 acl_final_exec_prefix='${prefix}'
11188 acl_final_exec_prefix="$exec_prefix"
11190 acl_save_prefix="$prefix"
11191 prefix="$acl_final_prefix"
11192 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11193 prefix="$acl_save_prefix"
11196 # Check whether --with-gnu-ld was given.
11197 if test "${with_gnu_ld+set}" = set; then :
11198 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11203 # Prepare PATH_SEPARATOR.
11204 # The user is always right.
11205 if test "${PATH_SEPARATOR+set}" != set; then
11206 echo "#! /bin/sh" >conf$$.sh
11207 echo "exit 0" >>conf$$.sh
11209 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11217 if test "$GCC" = yes; then
11218 # Check if gcc -print-prog-name=ld gives a path.
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11220 $as_echo_n "checking for ld used by GCC... " >&6; }
11223 # gcc leaves a trailing carriage return which upsets mingw
11224 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11226 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11229 # Accept absolute paths.
11230 [\\/]* | [A-Za-z]:[\\/]*)
11231 re_direlt='/[^/][^/]*/\.\./'
11232 # Canonicalize the path of ld
11233 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11234 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11235 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11237 test -z "$LD" && LD="$ac_prog"
11240 # If it fails, then pretend we aren't using GCC.
11244 # If it is relative, then search for the first ld in PATH.
11245 with_gnu_ld=unknown
11248 elif test "$with_gnu_ld" = yes; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11250 $as_echo_n "checking for GNU ld... " >&6; }
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11253 $as_echo_n "checking for non-GNU ld... " >&6; }
11255 if ${acl_cv_path_LD+:} false; then :
11256 $as_echo_n "(cached) " >&6
11258 if test -z "$LD"; then
11259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11260 for ac_dir in $PATH; do
11261 test -z "$ac_dir" && ac_dir=.
11262 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11263 acl_cv_path_LD="$ac_dir/$ac_prog"
11264 # Check to see if the program is GNU ld. I'd rather use --version,
11265 # but apparently some GNU ld's only accept -v.
11266 # Break only if it was the GNU/non-GNU ld that we prefer.
11267 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11268 *GNU* | *'with BFD'*)
11269 test "$with_gnu_ld" != no && break ;;
11271 test "$with_gnu_ld" != yes && break ;;
11277 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11281 LD="$acl_cv_path_LD"
11282 if test -n "$LD"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11284 $as_echo "$LD" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11292 if ${acl_cv_prog_gnu_ld+:} false; then :
11293 $as_echo_n "(cached) " >&6
11295 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11296 case `$LD -v 2>&1 </dev/null` in
11297 *GNU* | *'with BFD'*)
11298 acl_cv_prog_gnu_ld=yes ;;
11300 acl_cv_prog_gnu_ld=no ;;
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11304 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11305 with_gnu_ld=$acl_cv_prog_gnu_ld
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11311 $as_echo_n "checking for shared library run path origin... " >&6; }
11312 if ${acl_cv_rpath+:} false; then :
11313 $as_echo_n "(cached) " >&6
11316 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11317 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11319 rm -f ./conftest.sh
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11324 $as_echo "$acl_cv_rpath" >&6; }
11326 acl_libext="$acl_cv_libext"
11327 acl_shlibext="$acl_cv_shlibext"
11328 acl_libname_spec="$acl_cv_libname_spec"
11329 acl_library_names_spec="$acl_cv_library_names_spec"
11330 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11331 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11332 acl_hardcode_direct="$acl_cv_hardcode_direct"
11333 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11334 # Check whether --enable-rpath was given.
11335 if test "${enable_rpath+set}" = set; then :
11336 enableval=$enable_rpath; :
11344 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11345 if test -n "$searchpath"; then
11346 acl_save_IFS="${IFS= }"; IFS=":"
11347 for searchdir in $searchpath; do
11348 if test -d "$searchdir"; then
11349 case "$searchdir" in
11350 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11351 *) searchdir=`cd "$searchdir" && pwd`
11352 case "$searchdir" in
11353 */lib64 ) acl_libdirstem=lib64 ;;
11358 IFS="$acl_save_IFS"
11371 acl_save_prefix="$prefix"
11372 prefix="$acl_final_prefix"
11373 acl_save_exec_prefix="$exec_prefix"
11374 exec_prefix="$acl_final_exec_prefix"
11376 eval additional_includedir=\"$includedir\"
11377 eval additional_libdir=\"$libdir\"
11379 exec_prefix="$acl_save_exec_prefix"
11380 prefix="$acl_save_prefix"
11383 # Check whether --with-libiconv-prefix was given.
11384 if test "${with_libiconv_prefix+set}" = set; then :
11385 withval=$with_libiconv_prefix;
11386 if test "X$withval" = "Xno"; then
11389 if test "X$withval" = "X"; then
11391 acl_save_prefix="$prefix"
11392 prefix="$acl_final_prefix"
11393 acl_save_exec_prefix="$exec_prefix"
11394 exec_prefix="$acl_final_exec_prefix"
11396 eval additional_includedir=\"$includedir\"
11397 eval additional_libdir=\"$libdir\"
11399 exec_prefix="$acl_save_exec_prefix"
11400 prefix="$acl_save_prefix"
11403 additional_includedir="$withval/include"
11404 additional_libdir="$withval/$acl_libdirstem"
11416 names_already_handled=
11417 names_next_round='iconv '
11418 while test -n "$names_next_round"; do
11419 names_this_round="$names_next_round"
11421 for name in $names_this_round; do
11423 for n in $names_already_handled; do
11424 if test "$n" = "$name"; then
11425 already_handled=yes
11429 if test -z "$already_handled"; then
11430 names_already_handled="$names_already_handled $name"
11431 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11432 eval value=\"\$HAVE_LIB$uppername\"
11433 if test -n "$value"; then
11434 if test "$value" = yes; then
11435 eval value=\"\$LIB$uppername\"
11436 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11437 eval value=\"\$LTLIB$uppername\"
11438 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11447 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11448 if test -n "$acl_shlibext"; then
11449 shrext=".$acl_shlibext" # typically: shrext=.so
11453 if test $use_additional = yes; then
11454 dir="$additional_libdir"
11455 if test -n "$acl_shlibext"; then
11456 if test -f "$dir/$libname$shrext"; then
11458 found_so="$dir/$libname$shrext"
11460 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11461 ver=`(cd "$dir" && \
11462 for f in "$libname$shrext".*; do echo "$f"; done \
11463 | sed -e "s,^$libname$shrext\\\\.,," \
11464 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11465 | sed 1q ) 2>/dev/null`
11466 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11468 found_so="$dir/$libname$shrext.$ver"
11471 eval library_names=\"$acl_library_names_spec\"
11472 for f in $library_names; do
11473 if test -f "$dir/$f"; then
11482 if test "X$found_dir" = "X"; then
11483 if test -f "$dir/$libname.$acl_libext"; then
11485 found_a="$dir/$libname.$acl_libext"
11488 if test "X$found_dir" != "X"; then
11489 if test -f "$dir/$libname.la"; then
11490 found_la="$dir/$libname.la"
11494 if test "X$found_dir" = "X"; then
11495 for x in $LDFLAGS $LTLIBICONV; do
11497 acl_save_prefix="$prefix"
11498 prefix="$acl_final_prefix"
11499 acl_save_exec_prefix="$exec_prefix"
11500 exec_prefix="$acl_final_exec_prefix"
11502 exec_prefix="$acl_save_exec_prefix"
11503 prefix="$acl_save_prefix"
11507 dir=`echo "X$x" | sed -e 's/^X-L//'`
11508 if test -n "$acl_shlibext"; then
11509 if test -f "$dir/$libname$shrext"; then
11511 found_so="$dir/$libname$shrext"
11513 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11514 ver=`(cd "$dir" && \
11515 for f in "$libname$shrext".*; do echo "$f"; done \
11516 | sed -e "s,^$libname$shrext\\\\.,," \
11517 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11518 | sed 1q ) 2>/dev/null`
11519 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11521 found_so="$dir/$libname$shrext.$ver"
11524 eval library_names=\"$acl_library_names_spec\"
11525 for f in $library_names; do
11526 if test -f "$dir/$f"; then
11535 if test "X$found_dir" = "X"; then
11536 if test -f "$dir/$libname.$acl_libext"; then
11538 found_a="$dir/$libname.$acl_libext"
11541 if test "X$found_dir" != "X"; then
11542 if test -f "$dir/$libname.la"; then
11543 found_la="$dir/$libname.la"
11548 if test "X$found_dir" != "X"; then
11553 if test "X$found_dir" != "X"; then
11554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11555 if test "X$found_so" != "X"; then
11556 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11560 for x in $ltrpathdirs; do
11561 if test "X$x" = "X$found_dir"; then
11566 if test -z "$haveit"; then
11567 ltrpathdirs="$ltrpathdirs $found_dir"
11569 if test "$acl_hardcode_direct" = yes; then
11570 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11572 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11573 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11575 for x in $rpathdirs; do
11576 if test "X$x" = "X$found_dir"; then
11581 if test -z "$haveit"; then
11582 rpathdirs="$rpathdirs $found_dir"
11586 for x in $LDFLAGS $LIBICONV; do
11588 acl_save_prefix="$prefix"
11589 prefix="$acl_final_prefix"
11590 acl_save_exec_prefix="$exec_prefix"
11591 exec_prefix="$acl_final_exec_prefix"
11593 exec_prefix="$acl_save_exec_prefix"
11594 prefix="$acl_save_prefix"
11596 if test "X$x" = "X-L$found_dir"; then
11601 if test -z "$haveit"; then
11602 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11604 if test "$acl_hardcode_minus_L" != no; then
11605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11607 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11613 if test "X$found_a" != "X"; then
11614 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11616 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11619 additional_includedir=
11620 case "$found_dir" in
11621 */$acl_libdirstem | */$acl_libdirstem/)
11622 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11623 LIBICONV_PREFIX="$basedir"
11624 additional_includedir="$basedir/include"
11627 if test "X$additional_includedir" != "X"; then
11628 if test "X$additional_includedir" != "X/usr/include"; then
11630 if test "X$additional_includedir" = "X/usr/local/include"; then
11631 if test -n "$GCC"; then
11633 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11637 if test -z "$haveit"; then
11638 for x in $CPPFLAGS $INCICONV; do
11640 acl_save_prefix="$prefix"
11641 prefix="$acl_final_prefix"
11642 acl_save_exec_prefix="$exec_prefix"
11643 exec_prefix="$acl_final_exec_prefix"
11645 exec_prefix="$acl_save_exec_prefix"
11646 prefix="$acl_save_prefix"
11648 if test "X$x" = "X-I$additional_includedir"; then
11653 if test -z "$haveit"; then
11654 if test -d "$additional_includedir"; then
11655 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11661 if test -n "$found_la"; then
11662 save_libdir="$libdir"
11663 case "$found_la" in
11664 */* | *\\*) . "$found_la" ;;
11665 *) . "./$found_la" ;;
11667 libdir="$save_libdir"
11668 for dep in $dependency_libs; do
11671 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11672 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11674 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11675 if test -n "$GCC"; then
11677 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11681 if test -z "$haveit"; then
11683 for x in $LDFLAGS $LIBICONV; do
11685 acl_save_prefix="$prefix"
11686 prefix="$acl_final_prefix"
11687 acl_save_exec_prefix="$exec_prefix"
11688 exec_prefix="$acl_final_exec_prefix"
11690 exec_prefix="$acl_save_exec_prefix"
11691 prefix="$acl_save_prefix"
11693 if test "X$x" = "X-L$additional_libdir"; then
11698 if test -z "$haveit"; then
11699 if test -d "$additional_libdir"; then
11700 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11704 for x in $LDFLAGS $LTLIBICONV; do
11706 acl_save_prefix="$prefix"
11707 prefix="$acl_final_prefix"
11708 acl_save_exec_prefix="$exec_prefix"
11709 exec_prefix="$acl_final_exec_prefix"
11711 exec_prefix="$acl_save_exec_prefix"
11712 prefix="$acl_save_prefix"
11714 if test "X$x" = "X-L$additional_libdir"; then
11719 if test -z "$haveit"; then
11720 if test -d "$additional_libdir"; then
11721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11728 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11729 if test "$enable_rpath" != no; then
11731 for x in $rpathdirs; do
11732 if test "X$x" = "X$dir"; then
11737 if test -z "$haveit"; then
11738 rpathdirs="$rpathdirs $dir"
11741 for x in $ltrpathdirs; do
11742 if test "X$x" = "X$dir"; then
11747 if test -z "$haveit"; then
11748 ltrpathdirs="$ltrpathdirs $dir"
11753 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11756 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11759 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11760 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11766 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11767 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11773 if test "X$rpathdirs" != "X"; then
11774 if test -n "$acl_hardcode_libdir_separator"; then
11776 for found_dir in $rpathdirs; do
11777 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11779 acl_save_libdir="$libdir"
11781 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11782 libdir="$acl_save_libdir"
11783 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11785 for found_dir in $rpathdirs; do
11786 acl_save_libdir="$libdir"
11787 libdir="$found_dir"
11788 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11789 libdir="$acl_save_libdir"
11790 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11794 if test "X$ltrpathdirs" != "X"; then
11795 for found_dir in $ltrpathdirs; do
11796 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11806 am_save_CPPFLAGS="$CPPFLAGS"
11808 for element in $INCICONV; do
11810 for x in $CPPFLAGS; do
11812 acl_save_prefix="$prefix"
11813 prefix="$acl_final_prefix"
11814 acl_save_exec_prefix="$exec_prefix"
11815 exec_prefix="$acl_final_exec_prefix"
11817 exec_prefix="$acl_save_exec_prefix"
11818 prefix="$acl_save_prefix"
11820 if test "X$x" = "X$element"; then
11825 if test -z "$haveit"; then
11826 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11832 $as_echo_n "checking for iconv... " >&6; }
11833 if ${am_cv_func_iconv+:} false; then :
11834 $as_echo_n "(cached) " >&6
11837 am_cv_func_iconv="no, consider installing GNU libiconv"
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11842 #include <stdlib.h>
11848 iconv_t cd = iconv_open("","");
11849 iconv(cd,NULL,NULL,NULL,NULL);
11855 if ac_fn_c_try_link "$LINENO"; then :
11856 am_cv_func_iconv=yes
11858 rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 if test "$am_cv_func_iconv" != yes; then
11861 am_save_LIBS="$LIBS"
11862 LIBS="$LIBS $LIBICONV"
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11866 #include <stdlib.h>
11872 iconv_t cd = iconv_open("","");
11873 iconv(cd,NULL,NULL,NULL,NULL);
11879 if ac_fn_c_try_link "$LINENO"; then :
11880 am_cv_lib_iconv=yes
11881 am_cv_func_iconv=yes
11883 rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885 LIBS="$am_save_LIBS"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11890 $as_echo "$am_cv_func_iconv" >&6; }
11891 if test "$am_cv_func_iconv" = yes; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11893 $as_echo_n "checking for working iconv... " >&6; }
11894 if ${am_cv_func_iconv_works+:} false; then :
11895 $as_echo_n "(cached) " >&6
11898 am_save_LIBS="$LIBS"
11899 if test $am_cv_lib_iconv = yes; then
11900 LIBS="$LIBS $LIBICONV"
11902 am_cv_func_iconv_works=no
11903 for ac_iconv_const in '' 'const'; do
11904 if test "$cross_compiling" = yes; then :
11906 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11907 *) am_cv_func_iconv_works="guessing yes" ;;
11910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h. */
11914 #include <string.h>
11916 #ifndef ICONV_CONST
11917 # define ICONV_CONST $ac_iconv_const
11924 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11927 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11928 if (cd_utf8_to_88591 != (iconv_t)(-1))
11930 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11932 ICONV_CONST char *inptr = input;
11933 size_t inbytesleft = strlen (input);
11934 char *outptr = buf;
11935 size_t outbytesleft = sizeof (buf);
11936 size_t res = iconv (cd_utf8_to_88591,
11937 &inptr, &inbytesleft,
11938 &outptr, &outbytesleft);
11941 iconv_close (cd_utf8_to_88591);
11944 /* Test against Solaris 10 bug: Failures are not distinguishable from
11945 successful returns. */
11947 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11948 if (cd_ascii_to_88591 != (iconv_t)(-1))
11950 static ICONV_CONST char input[] = "\263";
11952 ICONV_CONST char *inptr = input;
11953 size_t inbytesleft = strlen (input);
11954 char *outptr = buf;
11955 size_t outbytesleft = sizeof (buf);
11956 size_t res = iconv (cd_ascii_to_88591,
11957 &inptr, &inbytesleft,
11958 &outptr, &outbytesleft);
11961 iconv_close (cd_ascii_to_88591);
11964 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11966 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11967 if (cd_88591_to_utf8 != (iconv_t)(-1))
11969 static ICONV_CONST char input[] = "\304";
11970 static char buf[2] = { (char)0xDE, (char)0xAD };
11971 ICONV_CONST char *inptr = input;
11972 size_t inbytesleft = 1;
11973 char *outptr = buf;
11974 size_t outbytesleft = 1;
11975 size_t res = iconv (cd_88591_to_utf8,
11976 &inptr, &inbytesleft,
11977 &outptr, &outbytesleft);
11978 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11980 iconv_close (cd_88591_to_utf8);
11983 #if 0 /* This bug could be worked around by the caller. */
11984 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11986 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11987 if (cd_88591_to_utf8 != (iconv_t)(-1))
11989 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11991 ICONV_CONST char *inptr = input;
11992 size_t inbytesleft = strlen (input);
11993 char *outptr = buf;
11994 size_t outbytesleft = sizeof (buf);
11995 size_t res = iconv (cd_88591_to_utf8,
11996 &inptr, &inbytesleft,
11997 &outptr, &outbytesleft);
12000 iconv_close (cd_88591_to_utf8);
12004 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12007 /* Try standardized names. */
12008 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12009 /* Try IRIX, OSF/1 names. */
12010 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12011 /* Try AIX names. */
12012 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12013 /* Try HP-UX names. */
12014 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12015 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12016 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12018 if (cd1 != (iconv_t)(-1))
12020 if (cd2 != (iconv_t)(-1))
12022 if (cd3 != (iconv_t)(-1))
12024 if (cd4 != (iconv_t)(-1))
12033 if ac_fn_c_try_run "$LINENO"; then :
12034 am_cv_func_iconv_works=yes
12036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037 conftest.$ac_objext conftest.beam conftest.$ac_ext
12040 test "$am_cv_func_iconv_works" = no || break
12042 LIBS="$am_save_LIBS"
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12046 $as_echo "$am_cv_func_iconv_works" >&6; }
12047 case "$am_cv_func_iconv_works" in
12048 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12049 *) am_func_iconv=yes ;;
12052 am_func_iconv=no am_cv_lib_iconv=no
12054 if test "$am_func_iconv" = yes; then
12056 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12059 if test "$am_cv_lib_iconv" = yes; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12061 $as_echo_n "checking how to link with libiconv... " >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12063 $as_echo "$LIBICONV" >&6; }
12065 CPPFLAGS="$am_save_CPPFLAGS"
12072 if test "$am_cv_func_iconv" = yes; then
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12074 $as_echo_n "checking for iconv declaration... " >&6; }
12075 if ${am_cv_proto_iconv+:} false; then :
12076 $as_echo_n "(cached) " >&6
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 #include <stdlib.h>
12088 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12089 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 am_cv_proto_iconv_arg1=""
12105 am_cv_proto_iconv_arg1="const"
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 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);"
12111 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12113 $am_cv_proto_iconv" >&5
12115 $am_cv_proto_iconv" >&6; }
12117 am_cv_proto_iconv_arg1=""
12120 cat >>confdefs.h <<_ACEOF
12121 #define ICONV_CONST $am_cv_proto_iconv_arg1
12135 # Check for gettext
12137 # This is "GNU gnupg" - The project-id script from gettext
12138 # needs this string
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12141 $as_echo "$as_me: checking for gettext" >&6;}
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12144 $as_echo_n "checking whether NLS is requested... " >&6; }
12145 # Check whether --enable-nls was given.
12146 if test "${enable_nls+set}" = set; then :
12147 enableval=$enable_nls; USE_NLS=$enableval
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12153 $as_echo "$USE_NLS" >&6; }
12158 GETTEXT_MACRO_VERSION=0.17
12163 # Prepare PATH_SEPARATOR.
12164 # The user is always right.
12165 if test "${PATH_SEPARATOR+set}" != set; then
12166 echo "#! /bin/sh" >conf$$.sh
12167 echo "exit 0" >>conf$$.sh
12169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12177 # Find out how to test for executable files. Don't use a zero-byte file,
12178 # as systems may use methods other than mode bits to determine executability.
12179 cat >conf$$.file <<_ASEOF
12183 chmod +x conf$$.file
12184 if test -x conf$$.file >/dev/null 2>&1; then
12185 ac_executable_p="test -x"
12187 ac_executable_p="test -f"
12191 # Extract the first word of "msgfmt", so it can be a program name with args.
12192 set dummy msgfmt; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_path_MSGFMT+:} false; then :
12196 $as_echo_n "(cached) " >&6
12200 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12203 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12204 for ac_dir in $PATH; do
12206 test -z "$ac_dir" && ac_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12209 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12210 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12211 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12212 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12219 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12223 MSGFMT="$ac_cv_path_MSGFMT"
12224 if test "$MSGFMT" != ":"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12226 $as_echo "$MSGFMT" >&6; }
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12232 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12233 set dummy gmsgfmt; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_GMSGFMT+:} false; then :
12237 $as_echo_n "(cached) " >&6
12241 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12263 GMSGFMT=$ac_cv_path_GMSGFMT
12264 if test -n "$GMSGFMT"; then
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12266 $as_echo "$GMSGFMT" >&6; }
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12274 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12275 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12276 *) MSGFMT_015=$MSGFMT ;;
12279 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12280 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12281 *) GMSGFMT_015=$GMSGFMT ;;
12286 # Prepare PATH_SEPARATOR.
12287 # The user is always right.
12288 if test "${PATH_SEPARATOR+set}" != set; then
12289 echo "#! /bin/sh" >conf$$.sh
12290 echo "exit 0" >>conf$$.sh
12292 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12300 # Find out how to test for executable files. Don't use a zero-byte file,
12301 # as systems may use methods other than mode bits to determine executability.
12302 cat >conf$$.file <<_ASEOF
12306 chmod +x conf$$.file
12307 if test -x conf$$.file >/dev/null 2>&1; then
12308 ac_executable_p="test -x"
12310 ac_executable_p="test -f"
12314 # Extract the first word of "xgettext", so it can be a program name with args.
12315 set dummy xgettext; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_path_XGETTEXT+:} false; then :
12319 $as_echo_n "(cached) " >&6
12321 case "$XGETTEXT" in
12323 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12326 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12327 for ac_dir in $PATH; do
12329 test -z "$ac_dir" && ac_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12332 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12333 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12334 (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
12335 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12342 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12346 XGETTEXT="$ac_cv_path_XGETTEXT"
12347 if test "$XGETTEXT" != ":"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12349 $as_echo "$XGETTEXT" >&6; }
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12357 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12358 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12359 *) XGETTEXT_015=$XGETTEXT ;;
12364 # Prepare PATH_SEPARATOR.
12365 # The user is always right.
12366 if test "${PATH_SEPARATOR+set}" != set; then
12367 echo "#! /bin/sh" >conf$$.sh
12368 echo "exit 0" >>conf$$.sh
12370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12378 # Find out how to test for executable files. Don't use a zero-byte file,
12379 # as systems may use methods other than mode bits to determine executability.
12380 cat >conf$$.file <<_ASEOF
12384 chmod +x conf$$.file
12385 if test -x conf$$.file >/dev/null 2>&1; then
12386 ac_executable_p="test -x"
12388 ac_executable_p="test -f"
12392 # Extract the first word of "msgmerge", so it can be a program name with args.
12393 set dummy msgmerge; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_MSGMERGE+:} false; then :
12397 $as_echo_n "(cached) " >&6
12399 case "$MSGMERGE" in
12401 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12404 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12405 for ac_dir in $PATH; do
12407 test -z "$ac_dir" && ac_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12410 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12411 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12412 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12419 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12423 MSGMERGE="$ac_cv_path_MSGMERGE"
12424 if test "$MSGMERGE" != ":"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12426 $as_echo "$MSGMERGE" >&6; }
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12433 test -n "$localedir" || localedir='${datadir}/locale'
12436 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12439 ac_config_commands="$ac_config_commands po-directories"
12443 if test "$try_gettext" = yes; then
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12468 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12469 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12470 $as_echo_n "(cached) " >&6
12472 gt_save_LIBS="$LIBS"
12473 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12476 #include <CoreFoundation/CFPreferences.h>
12480 CFPreferencesCopyAppValue(NULL, NULL)
12485 if ac_fn_c_try_link "$LINENO"; then :
12486 gt_cv_func_CFPreferencesCopyAppValue=yes
12488 gt_cv_func_CFPreferencesCopyAppValue=no
12490 rm -f core conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12492 LIBS="$gt_save_LIBS"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12495 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12496 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12498 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12502 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12503 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12504 $as_echo_n "(cached) " >&6
12506 gt_save_LIBS="$LIBS"
12507 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <CoreFoundation/CFLocale.h>
12514 CFLocaleCopyCurrent();
12519 if ac_fn_c_try_link "$LINENO"; then :
12520 gt_cv_func_CFLocaleCopyCurrent=yes
12522 gt_cv_func_CFLocaleCopyCurrent=no
12524 rm -f core conftest.err conftest.$ac_objext \
12525 conftest$ac_exeext conftest.$ac_ext
12526 LIBS="$gt_save_LIBS"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12529 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12530 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12532 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12536 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12537 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12549 case " $gt_needs " in
12550 *" need-formatstring-macros "*) gt_api_version=3 ;;
12551 *" need-ngettext "*) gt_api_version=2 ;;
12552 *) gt_api_version=1 ;;
12554 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12555 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12557 if test "$USE_NLS" = "yes"; then
12558 gt_use_preinstalled_gnugettext=no
12561 if test $gt_api_version -ge 3; then
12562 gt_revision_test_code='
12563 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12564 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12566 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12569 gt_revision_test_code=
12571 if test $gt_api_version -ge 2; then
12572 gt_expression_test_code=' + * ngettext ("", "", 0)'
12574 gt_expression_test_code=
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12578 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12579 if eval \${$gt_func_gnugettext_libc+:} false; then :
12580 $as_echo_n "(cached) " >&6
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 #include <libintl.h>
12586 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12587 extern int _nl_msg_cat_cntr;
12588 extern int *_nl_domain_bindings;
12589 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12591 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12593 $gt_revision_test_code
12599 bindtextdomain ("", "");
12600 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 eval "$gt_func_gnugettext_libc=yes"
12609 eval "$gt_func_gnugettext_libc=no"
12611 rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12614 eval ac_res=\$$gt_func_gnugettext_libc
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12616 $as_echo "$ac_res" >&6; }
12618 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12624 am_save_CPPFLAGS="$CPPFLAGS"
12626 for element in $INCICONV; do
12628 for x in $CPPFLAGS; do
12630 acl_save_prefix="$prefix"
12631 prefix="$acl_final_prefix"
12632 acl_save_exec_prefix="$exec_prefix"
12633 exec_prefix="$acl_final_exec_prefix"
12635 exec_prefix="$acl_save_exec_prefix"
12636 prefix="$acl_save_prefix"
12638 if test "X$x" = "X$element"; then
12643 if test -z "$haveit"; then
12644 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12650 $as_echo_n "checking for iconv... " >&6; }
12651 if ${am_cv_func_iconv+:} false; then :
12652 $as_echo_n "(cached) " >&6
12655 am_cv_func_iconv="no, consider installing GNU libiconv"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12660 #include <stdlib.h>
12666 iconv_t cd = iconv_open("","");
12667 iconv(cd,NULL,NULL,NULL,NULL);
12673 if ac_fn_c_try_link "$LINENO"; then :
12674 am_cv_func_iconv=yes
12676 rm -f core conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 if test "$am_cv_func_iconv" != yes; then
12679 am_save_LIBS="$LIBS"
12680 LIBS="$LIBS $LIBICONV"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h. */
12684 #include <stdlib.h>
12690 iconv_t cd = iconv_open("","");
12691 iconv(cd,NULL,NULL,NULL,NULL);
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 am_cv_lib_iconv=yes
12699 am_cv_func_iconv=yes
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS="$am_save_LIBS"
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12708 $as_echo "$am_cv_func_iconv" >&6; }
12709 if test "$am_cv_func_iconv" = yes; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12711 $as_echo_n "checking for working iconv... " >&6; }
12712 if ${am_cv_func_iconv_works+:} false; then :
12713 $as_echo_n "(cached) " >&6
12716 am_save_LIBS="$LIBS"
12717 if test $am_cv_lib_iconv = yes; then
12718 LIBS="$LIBS $LIBICONV"
12720 am_cv_func_iconv_works=no
12721 for ac_iconv_const in '' 'const'; do
12722 if test "$cross_compiling" = yes; then :
12724 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12725 *) am_cv_func_iconv_works="guessing yes" ;;
12728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h. */
12732 #include <string.h>
12734 #ifndef ICONV_CONST
12735 # define ICONV_CONST $ac_iconv_const
12742 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12745 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12746 if (cd_utf8_to_88591 != (iconv_t)(-1))
12748 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12750 ICONV_CONST char *inptr = input;
12751 size_t inbytesleft = strlen (input);
12752 char *outptr = buf;
12753 size_t outbytesleft = sizeof (buf);
12754 size_t res = iconv (cd_utf8_to_88591,
12755 &inptr, &inbytesleft,
12756 &outptr, &outbytesleft);
12759 iconv_close (cd_utf8_to_88591);
12762 /* Test against Solaris 10 bug: Failures are not distinguishable from
12763 successful returns. */
12765 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12766 if (cd_ascii_to_88591 != (iconv_t)(-1))
12768 static ICONV_CONST char input[] = "\263";
12770 ICONV_CONST char *inptr = input;
12771 size_t inbytesleft = strlen (input);
12772 char *outptr = buf;
12773 size_t outbytesleft = sizeof (buf);
12774 size_t res = iconv (cd_ascii_to_88591,
12775 &inptr, &inbytesleft,
12776 &outptr, &outbytesleft);
12779 iconv_close (cd_ascii_to_88591);
12782 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12784 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12785 if (cd_88591_to_utf8 != (iconv_t)(-1))
12787 static ICONV_CONST char input[] = "\304";
12788 static char buf[2] = { (char)0xDE, (char)0xAD };
12789 ICONV_CONST char *inptr = input;
12790 size_t inbytesleft = 1;
12791 char *outptr = buf;
12792 size_t outbytesleft = 1;
12793 size_t res = iconv (cd_88591_to_utf8,
12794 &inptr, &inbytesleft,
12795 &outptr, &outbytesleft);
12796 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12798 iconv_close (cd_88591_to_utf8);
12801 #if 0 /* This bug could be worked around by the caller. */
12802 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12804 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12805 if (cd_88591_to_utf8 != (iconv_t)(-1))
12807 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12809 ICONV_CONST char *inptr = input;
12810 size_t inbytesleft = strlen (input);
12811 char *outptr = buf;
12812 size_t outbytesleft = sizeof (buf);
12813 size_t res = iconv (cd_88591_to_utf8,
12814 &inptr, &inbytesleft,
12815 &outptr, &outbytesleft);
12818 iconv_close (cd_88591_to_utf8);
12822 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12825 /* Try standardized names. */
12826 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12827 /* Try IRIX, OSF/1 names. */
12828 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12829 /* Try AIX names. */
12830 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12831 /* Try HP-UX names. */
12832 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12833 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12834 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12836 if (cd1 != (iconv_t)(-1))
12838 if (cd2 != (iconv_t)(-1))
12840 if (cd3 != (iconv_t)(-1))
12842 if (cd4 != (iconv_t)(-1))
12851 if ac_fn_c_try_run "$LINENO"; then :
12852 am_cv_func_iconv_works=yes
12854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12855 conftest.$ac_objext conftest.beam conftest.$ac_ext
12858 test "$am_cv_func_iconv_works" = no || break
12860 LIBS="$am_save_LIBS"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12864 $as_echo "$am_cv_func_iconv_works" >&6; }
12865 case "$am_cv_func_iconv_works" in
12866 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12867 *) am_func_iconv=yes ;;
12870 am_func_iconv=no am_cv_lib_iconv=no
12872 if test "$am_func_iconv" = yes; then
12874 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12877 if test "$am_cv_lib_iconv" = yes; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12879 $as_echo_n "checking how to link with libiconv... " >&6; }
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12881 $as_echo "$LIBICONV" >&6; }
12883 CPPFLAGS="$am_save_CPPFLAGS"
12897 acl_save_prefix="$prefix"
12898 prefix="$acl_final_prefix"
12899 acl_save_exec_prefix="$exec_prefix"
12900 exec_prefix="$acl_final_exec_prefix"
12902 eval additional_includedir=\"$includedir\"
12903 eval additional_libdir=\"$libdir\"
12905 exec_prefix="$acl_save_exec_prefix"
12906 prefix="$acl_save_prefix"
12909 # Check whether --with-libintl-prefix was given.
12910 if test "${with_libintl_prefix+set}" = set; then :
12911 withval=$with_libintl_prefix;
12912 if test "X$withval" = "Xno"; then
12915 if test "X$withval" = "X"; then
12917 acl_save_prefix="$prefix"
12918 prefix="$acl_final_prefix"
12919 acl_save_exec_prefix="$exec_prefix"
12920 exec_prefix="$acl_final_exec_prefix"
12922 eval additional_includedir=\"$includedir\"
12923 eval additional_libdir=\"$libdir\"
12925 exec_prefix="$acl_save_exec_prefix"
12926 prefix="$acl_save_prefix"
12929 additional_includedir="$withval/include"
12930 additional_libdir="$withval/$acl_libdirstem"
12942 names_already_handled=
12943 names_next_round='intl '
12944 while test -n "$names_next_round"; do
12945 names_this_round="$names_next_round"
12947 for name in $names_this_round; do
12949 for n in $names_already_handled; do
12950 if test "$n" = "$name"; then
12951 already_handled=yes
12955 if test -z "$already_handled"; then
12956 names_already_handled="$names_already_handled $name"
12957 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12958 eval value=\"\$HAVE_LIB$uppername\"
12959 if test -n "$value"; then
12960 if test "$value" = yes; then
12961 eval value=\"\$LIB$uppername\"
12962 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12963 eval value=\"\$LTLIB$uppername\"
12964 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12973 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12974 if test -n "$acl_shlibext"; then
12975 shrext=".$acl_shlibext" # typically: shrext=.so
12979 if test $use_additional = yes; then
12980 dir="$additional_libdir"
12981 if test -n "$acl_shlibext"; then
12982 if test -f "$dir/$libname$shrext"; then
12984 found_so="$dir/$libname$shrext"
12986 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12987 ver=`(cd "$dir" && \
12988 for f in "$libname$shrext".*; do echo "$f"; done \
12989 | sed -e "s,^$libname$shrext\\\\.,," \
12990 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12991 | sed 1q ) 2>/dev/null`
12992 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12994 found_so="$dir/$libname$shrext.$ver"
12997 eval library_names=\"$acl_library_names_spec\"
12998 for f in $library_names; do
12999 if test -f "$dir/$f"; then
13008 if test "X$found_dir" = "X"; then
13009 if test -f "$dir/$libname.$acl_libext"; then
13011 found_a="$dir/$libname.$acl_libext"
13014 if test "X$found_dir" != "X"; then
13015 if test -f "$dir/$libname.la"; then
13016 found_la="$dir/$libname.la"
13020 if test "X$found_dir" = "X"; then
13021 for x in $LDFLAGS $LTLIBINTL; do
13023 acl_save_prefix="$prefix"
13024 prefix="$acl_final_prefix"
13025 acl_save_exec_prefix="$exec_prefix"
13026 exec_prefix="$acl_final_exec_prefix"
13028 exec_prefix="$acl_save_exec_prefix"
13029 prefix="$acl_save_prefix"
13033 dir=`echo "X$x" | sed -e 's/^X-L//'`
13034 if test -n "$acl_shlibext"; then
13035 if test -f "$dir/$libname$shrext"; then
13037 found_so="$dir/$libname$shrext"
13039 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13040 ver=`(cd "$dir" && \
13041 for f in "$libname$shrext".*; do echo "$f"; done \
13042 | sed -e "s,^$libname$shrext\\\\.,," \
13043 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13044 | sed 1q ) 2>/dev/null`
13045 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13047 found_so="$dir/$libname$shrext.$ver"
13050 eval library_names=\"$acl_library_names_spec\"
13051 for f in $library_names; do
13052 if test -f "$dir/$f"; then
13061 if test "X$found_dir" = "X"; then
13062 if test -f "$dir/$libname.$acl_libext"; then
13064 found_a="$dir/$libname.$acl_libext"
13067 if test "X$found_dir" != "X"; then
13068 if test -f "$dir/$libname.la"; then
13069 found_la="$dir/$libname.la"
13074 if test "X$found_dir" != "X"; then
13079 if test "X$found_dir" != "X"; then
13080 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13081 if test "X$found_so" != "X"; then
13082 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13083 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13086 for x in $ltrpathdirs; do
13087 if test "X$x" = "X$found_dir"; then
13092 if test -z "$haveit"; then
13093 ltrpathdirs="$ltrpathdirs $found_dir"
13095 if test "$acl_hardcode_direct" = yes; then
13096 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13098 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13099 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13101 for x in $rpathdirs; do
13102 if test "X$x" = "X$found_dir"; then
13107 if test -z "$haveit"; then
13108 rpathdirs="$rpathdirs $found_dir"
13112 for x in $LDFLAGS $LIBINTL; do
13114 acl_save_prefix="$prefix"
13115 prefix="$acl_final_prefix"
13116 acl_save_exec_prefix="$exec_prefix"
13117 exec_prefix="$acl_final_exec_prefix"
13119 exec_prefix="$acl_save_exec_prefix"
13120 prefix="$acl_save_prefix"
13122 if test "X$x" = "X-L$found_dir"; then
13127 if test -z "$haveit"; then
13128 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13130 if test "$acl_hardcode_minus_L" != no; then
13131 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13133 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13139 if test "X$found_a" != "X"; then
13140 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13142 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13145 additional_includedir=
13146 case "$found_dir" in
13147 */$acl_libdirstem | */$acl_libdirstem/)
13148 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13149 LIBINTL_PREFIX="$basedir"
13150 additional_includedir="$basedir/include"
13153 if test "X$additional_includedir" != "X"; then
13154 if test "X$additional_includedir" != "X/usr/include"; then
13156 if test "X$additional_includedir" = "X/usr/local/include"; then
13157 if test -n "$GCC"; then
13159 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13163 if test -z "$haveit"; then
13164 for x in $CPPFLAGS $INCINTL; do
13166 acl_save_prefix="$prefix"
13167 prefix="$acl_final_prefix"
13168 acl_save_exec_prefix="$exec_prefix"
13169 exec_prefix="$acl_final_exec_prefix"
13171 exec_prefix="$acl_save_exec_prefix"
13172 prefix="$acl_save_prefix"
13174 if test "X$x" = "X-I$additional_includedir"; then
13179 if test -z "$haveit"; then
13180 if test -d "$additional_includedir"; then
13181 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13187 if test -n "$found_la"; then
13188 save_libdir="$libdir"
13189 case "$found_la" in
13190 */* | *\\*) . "$found_la" ;;
13191 *) . "./$found_la" ;;
13193 libdir="$save_libdir"
13194 for dep in $dependency_libs; do
13197 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13198 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13200 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13201 if test -n "$GCC"; then
13203 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13207 if test -z "$haveit"; then
13209 for x in $LDFLAGS $LIBINTL; do
13211 acl_save_prefix="$prefix"
13212 prefix="$acl_final_prefix"
13213 acl_save_exec_prefix="$exec_prefix"
13214 exec_prefix="$acl_final_exec_prefix"
13216 exec_prefix="$acl_save_exec_prefix"
13217 prefix="$acl_save_prefix"
13219 if test "X$x" = "X-L$additional_libdir"; then
13224 if test -z "$haveit"; then
13225 if test -d "$additional_libdir"; then
13226 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13230 for x in $LDFLAGS $LTLIBINTL; do
13232 acl_save_prefix="$prefix"
13233 prefix="$acl_final_prefix"
13234 acl_save_exec_prefix="$exec_prefix"
13235 exec_prefix="$acl_final_exec_prefix"
13237 exec_prefix="$acl_save_exec_prefix"
13238 prefix="$acl_save_prefix"
13240 if test "X$x" = "X-L$additional_libdir"; then
13245 if test -z "$haveit"; then
13246 if test -d "$additional_libdir"; then
13247 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13254 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13255 if test "$enable_rpath" != no; then
13257 for x in $rpathdirs; do
13258 if test "X$x" = "X$dir"; then
13263 if test -z "$haveit"; then
13264 rpathdirs="$rpathdirs $dir"
13267 for x in $ltrpathdirs; do
13268 if test "X$x" = "X$dir"; then
13273 if test -z "$haveit"; then
13274 ltrpathdirs="$ltrpathdirs $dir"
13279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13282 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13285 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13286 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13292 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13299 if test "X$rpathdirs" != "X"; then
13300 if test -n "$acl_hardcode_libdir_separator"; then
13302 for found_dir in $rpathdirs; do
13303 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13305 acl_save_libdir="$libdir"
13307 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13308 libdir="$acl_save_libdir"
13309 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13311 for found_dir in $rpathdirs; do
13312 acl_save_libdir="$libdir"
13313 libdir="$found_dir"
13314 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13315 libdir="$acl_save_libdir"
13316 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13320 if test "X$ltrpathdirs" != "X"; then
13321 for found_dir in $ltrpathdirs; do
13322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13327 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13328 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13329 $as_echo_n "(cached) " >&6
13331 gt_save_CPPFLAGS="$CPPFLAGS"
13332 CPPFLAGS="$CPPFLAGS $INCINTL"
13333 gt_save_LIBS="$LIBS"
13334 LIBS="$LIBS $LIBINTL"
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 #include <libintl.h>
13339 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13340 extern int _nl_msg_cat_cntr;
13345 const char *_nl_expand_alias (const char *);
13346 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13348 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13350 $gt_revision_test_code
13356 bindtextdomain ("", "");
13357 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13363 if ac_fn_c_try_link "$LINENO"; then :
13364 eval "$gt_func_gnugettext_libintl=yes"
13366 eval "$gt_func_gnugettext_libintl=no"
13368 rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13371 LIBS="$LIBS $LIBICONV"
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13375 #include <libintl.h>
13376 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13377 extern int _nl_msg_cat_cntr;
13382 const char *_nl_expand_alias (const char *);
13383 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13385 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13387 $gt_revision_test_code
13393 bindtextdomain ("", "");
13394 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13400 if ac_fn_c_try_link "$LINENO"; then :
13401 LIBINTL="$LIBINTL $LIBICONV"
13402 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13403 eval "$gt_func_gnugettext_libintl=yes"
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13409 CPPFLAGS="$gt_save_CPPFLAGS"
13410 LIBS="$gt_save_LIBS"
13412 eval ac_res=\$$gt_func_gnugettext_libintl
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13414 $as_echo "$ac_res" >&6; }
13417 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13418 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13419 && test "$PACKAGE" != gettext-runtime \
13420 && test "$PACKAGE" != gettext-tools; }; then
13421 gt_use_preinstalled_gnugettext=yes
13430 if test -n "$INTL_MACOSX_LIBS"; then
13431 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13432 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13433 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13434 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13438 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13439 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13441 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13449 $as_echo_n "checking whether to use NLS... " >&6; }
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13451 $as_echo "$USE_NLS" >&6; }
13452 if test "$USE_NLS" = "yes"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13454 $as_echo_n "checking where the gettext function comes from... " >&6; }
13455 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13456 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13457 gt_source="external libintl"
13462 gt_source="included intl directory"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13465 $as_echo "$gt_source" >&6; }
13468 if test "$USE_NLS" = "yes"; then
13470 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13471 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13473 $as_echo_n "checking how to link with libintl... " >&6; }
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13475 $as_echo "$LIBINTL" >&6; }
13477 for element in $INCINTL; do
13479 for x in $CPPFLAGS; do
13481 acl_save_prefix="$prefix"
13482 prefix="$acl_final_prefix"
13483 acl_save_exec_prefix="$exec_prefix"
13484 exec_prefix="$acl_final_exec_prefix"
13486 exec_prefix="$acl_save_exec_prefix"
13487 prefix="$acl_save_prefix"
13489 if test "X$x" = "X$element"; then
13494 if test -z "$haveit"; then
13495 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13502 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13505 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13514 INTLLIBS="$LIBINTL"
13522 # gettext requires some extra checks. These really should be part of
13523 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13524 # function checks to here.
13526 for ac_func in strchr
13528 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13529 if test "x$ac_cv_func_strchr" = xyes; then :
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRCHR 1
13539 USE_INCLUDED_LIBINTL=no
13540 BUILD_INCLUDED_LIBINTL=no
13548 # We use HAVE_LANGINFO_CODESET in a couple of places.
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13551 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13552 if ${am_cv_langinfo_codeset+:} false; then :
13553 $as_echo_n "(cached) " >&6
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h. */
13557 #include <langinfo.h>
13561 char* cs = nl_langinfo(CODESET); return !cs;
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 am_cv_langinfo_codeset=yes
13569 am_cv_langinfo_codeset=no
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13576 $as_echo "$am_cv_langinfo_codeset" >&6; }
13577 if test $am_cv_langinfo_codeset = yes; then
13579 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13584 # Checks required for our use of locales
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13587 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13588 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13589 $as_echo_n "(cached) " >&6
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <locale.h>
13602 if ac_fn_c_try_link "$LINENO"; then :
13603 gt_cv_val_LC_MESSAGES=yes
13605 gt_cv_val_LC_MESSAGES=no
13607 rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13611 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13612 if test $gt_cv_val_LC_MESSAGES = yes; then
13614 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13623 if test "$selinux_support" = yes ; then
13625 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13631 # Checks for header files.
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13634 $as_echo "$as_me: checking for header files" >&6;}
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13636 $as_echo_n "checking for ANSI C header files... " >&6; }
13637 if ${ac_cv_header_stdc+:} false; then :
13638 $as_echo_n "(cached) " >&6
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #include <stdlib.h>
13643 #include <stdarg.h>
13644 #include <string.h>
13655 if ac_fn_c_try_compile "$LINENO"; then :
13656 ac_cv_header_stdc=yes
13658 ac_cv_header_stdc=no
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 if test $ac_cv_header_stdc = yes; then
13663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 #include <string.h>
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "memchr" >/dev/null 2>&1; then :
13673 ac_cv_header_stdc=no
13679 if test $ac_cv_header_stdc = yes; then
13680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <stdlib.h>
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687 $EGREP "free" >/dev/null 2>&1; then :
13690 ac_cv_header_stdc=no
13696 if test $ac_cv_header_stdc = yes; then
13697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13698 if test "$cross_compiling" = yes; then :
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13704 #include <stdlib.h>
13705 #if ((' ' & 0x0FF) == 0x020)
13706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13709 # define ISLOWER(c) \
13710 (('a' <= (c) && (c) <= 'i') \
13711 || ('j' <= (c) && (c) <= 'r') \
13712 || ('s' <= (c) && (c) <= 'z'))
13713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13721 for (i = 0; i < 256; i++)
13722 if (XOR (islower (i), ISLOWER (i))
13723 || toupper (i) != TOUPPER (i))
13728 if ac_fn_c_try_run "$LINENO"; then :
13731 ac_cv_header_stdc=no
13733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13734 conftest.$ac_objext conftest.beam conftest.$ac_ext
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13740 $as_echo "$ac_cv_header_stdc" >&6; }
13741 if test $ac_cv_header_stdc = yes; then
13743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13748 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13749 if ${ac_cv_header_time+:} false; then :
13750 $as_echo_n "(cached) " >&6
13752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 #include <sys/types.h>
13755 #include <sys/time.h>
13761 if ((struct tm *) 0)
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768 ac_cv_header_time=yes
13770 ac_cv_header_time=no
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13775 $as_echo "$ac_cv_header_time" >&6; }
13776 if test $ac_cv_header_time = yes; then
13778 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13782 for ac_header in unistd.h langinfo.h termio.h locale.h \
13783 pwd.h inttypes.h signal.h sys/select.h \
13784 stdint.h signal.h termios.h \
13785 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13790 cat >>confdefs.h <<_ACEOF
13791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13801 # Checks for typedefs, structures, and compiler characteristics.
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13804 $as_echo "$as_me: checking for system characteristics" >&6;}
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13806 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13807 if ${ac_cv_c_const+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h. */
13817 #ifndef __cplusplus
13818 /* Ultrix mips cc rejects this sort of thing. */
13819 typedef int charset[2];
13820 const charset cs = { 0, 0 };
13821 /* SunOS 4.1.1 cc rejects this. */
13822 char const *const *pcpcc;
13824 /* NEC SVR4.0.2 mips cc rejects this. */
13825 struct point {int x, y;};
13826 static struct point const zero = {0,0};
13827 /* AIX XL C 1.02.0.0 rejects this.
13828 It does not let you subtract one const X* pointer from another in
13829 an arm of an if-expression whose if-part is not a constant
13831 const char *g = "string";
13832 pcpcc = &g + (g ? g-g : 0);
13833 /* HPUX 7.0 cc rejects these. */
13835 ppc = (char**) pcpcc;
13836 pcpcc = (char const *const *) ppc;
13837 { /* SCO 3.2v4 cc rejects this sort of thing. */
13840 char const *s = 0 ? (char *) 0 : (char const *) 0;
13845 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13846 int x[] = {25, 17};
13847 const int *foo = &x[0];
13850 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13851 typedef const int *iptr;
13855 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13856 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13857 struct s { int j; const int *ap[3]; } bx;
13858 struct s *b = &bx; b->j = 5;
13860 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13861 const int foo = 10;
13862 if (!foo) return 0;
13864 return !cs[0] && !zero.x;
13871 if ac_fn_c_try_compile "$LINENO"; then :
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13879 $as_echo "$ac_cv_c_const" >&6; }
13880 if test $ac_cv_c_const = no; then
13882 $as_echo "#define const /**/" >>confdefs.h
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13887 $as_echo_n "checking for inline... " >&6; }
13888 if ${ac_cv_c_inline+:} false; then :
13889 $as_echo_n "(cached) " >&6
13892 for ac_kw in inline __inline__ __inline; do
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 #ifndef __cplusplus
13897 static $ac_kw foo_t static_foo () {return 0; }
13898 $ac_kw foo_t foo () {return 0; }
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903 ac_cv_c_inline=$ac_kw
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 test "$ac_cv_c_inline" != no && break
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13911 $as_echo "$ac_cv_c_inline" >&6; }
13913 case $ac_cv_c_inline in
13916 case $ac_cv_c_inline in
13918 *) ac_val=$ac_cv_c_inline;;
13920 cat >>confdefs.h <<_ACEOF
13921 #ifndef __cplusplus
13922 #define inline $ac_val
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13929 $as_echo_n "checking for working volatile... " >&6; }
13930 if ${ac_cv_c_volatile+:} false; then :
13931 $as_echo_n "(cached) " >&6
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13941 int * volatile y = (int *) 0;
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948 ac_cv_c_volatile=yes
13950 ac_cv_c_volatile=no
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13955 $as_echo "$ac_cv_c_volatile" >&6; }
13956 if test $ac_cv_c_volatile = no; then
13958 $as_echo "#define volatile /**/" >>confdefs.h
13962 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13963 if test "x$ac_cv_type_size_t" = xyes; then :
13967 cat >>confdefs.h <<_ACEOF
13968 #define size_t unsigned int
13973 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13974 if test "x$ac_cv_type_mode_t" = xyes; then :
13978 cat >>confdefs.h <<_ACEOF
13984 for ac_func in sigdescr_np
13986 ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13987 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_SIGDESCR_NP 1
13995 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13996 /* NetBSD declares sys_siglist in unistd.h. */
13997 #ifdef HAVE_UNISTD_H
13998 # include <unistd.h>
14002 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
14017 for ac_header in $ac_header_list
14019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14035 if test $ac_cv_header_sys_socket_h = yes; then
14038 for ac_header in winsock2.h ws2tcpip.h
14040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14043 cat >>confdefs.h <<_ACEOF
14044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14051 SYS_SOCKET_H='sys/socket.h'
14056 if test $ac_cv_header_sys_socket_h = no; then
14057 for ac_header in ws2tcpip.h
14059 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14060 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14061 cat >>confdefs.h <<_ACEOF
14062 #define HAVE_WS2TCPIP_H 1
14071 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14072 /* <sys/types.h> is not needed according to POSIX, but the
14073 <sys/socket.h> in i386-unknown-freebsd4.10 and
14074 powerpc-apple-darwin5.5 required it. */
14075 #include <sys/types.h>
14076 #if HAVE_SYS_SOCKET_H
14077 # include <sys/socket.h>
14078 #elif HAVE_WS2TCPIP_H
14079 # include <ws2tcpip.h>
14083 if test "x$ac_cv_type_socklen_t" = xyes; then :
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14087 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14088 if ${gl_cv_socklen_t_equiv+:} false; then :
14089 $as_echo_n "(cached) " >&6
14091 # Systems have either "struct sockaddr *" or
14092 # "void *" as the second argument to getpeername
14093 gl_cv_socklen_t_equiv=
14094 for arg2 in "struct sockaddr" void; do
14095 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 #include <sys/types.h>
14099 #include <sys/socket.h>
14101 int getpeername (int, $arg2 *, $t *);
14106 getpeername (0, 0, &len);
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 gl_cv_socklen_t_equiv="$t"
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 test "$gl_cv_socklen_t_equiv" != "" && break
14117 test "$gl_cv_socklen_t_equiv" != "" && break
14119 if test "$gl_cv_socklen_t_equiv" = ""; then
14120 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14125 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14127 cat >>confdefs.h <<_ACEOF
14128 #define socklen_t $gl_cv_socklen_t_equiv
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14135 $as_echo_n "checking for library containing inet_addr... " >&6; }
14136 if ${ac_cv_search_inet_addr+:} false; then :
14137 $as_echo_n "(cached) " >&6
14139 ac_func_search_save_LIBS=$LIBS
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14153 return inet_addr ();
14158 for ac_lib in '' nsl; do
14159 if test -z "$ac_lib"; then
14160 ac_res="none required"
14163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14165 if ac_fn_c_try_link "$LINENO"; then :
14166 ac_cv_search_inet_addr=$ac_res
14168 rm -f core conftest.err conftest.$ac_objext \
14170 if ${ac_cv_search_inet_addr+:} false; then :
14174 if ${ac_cv_search_inet_addr+:} false; then :
14177 ac_cv_search_inet_addr=no
14179 rm conftest.$ac_ext
14180 LIBS=$ac_func_search_save_LIBS
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14183 $as_echo "$ac_cv_search_inet_addr" >&6; }
14184 ac_res=$ac_cv_search_inet_addr
14185 if test "$ac_res" != no; then :
14186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14191 # Check whether --enable-endian-check was given.
14192 if test "${enable_endian_check+set}" = set; then :
14193 enableval=$enable_endian_check; endiancheck=$enableval
14199 if test x"$endiancheck" = xyes ; then
14201 tmp_assumed_endian=big
14203 if test "$cross_compiling" = yes; then
14204 case "$host_cpu" in
14206 tmp_assumed_endian=little
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14213 $as_echo_n "checking endianness... " >&6; }
14214 if ${gnupg_cv_c_endian+:} false; then :
14215 $as_echo_n "(cached) " >&6
14217 gnupg_cv_c_endian=unknown
14218 # See if sys/param.h defines the BYTE_ORDER macro.
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 #include <sys/types.h>
14222 #include <sys/param.h>
14227 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14228 bogus endian macros
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235 # It does; now see whether it defined to BIG_ENDIAN or not.
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 #include <sys/types.h>
14239 #include <sys/param.h>
14244 #if BYTE_ORDER != BIG_ENDIAN
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 gnupg_cv_c_endian=big
14254 gnupg_cv_c_endian=little
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 if test "$gnupg_cv_c_endian" = unknown; then
14260 if test "$cross_compiling" = yes; then :
14261 gnupg_cv_c_endian=$tmp_assumed_endian
14262 tmp_assumed_warn=" (assumed)"
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 /* Are we little or big endian? From Harbison&Steele. */
14272 char c[sizeof (long)];
14275 exit (u.c[sizeof (long) - 1] == 1);
14278 if ac_fn_c_try_run "$LINENO"; then :
14279 gnupg_cv_c_endian=little
14281 gnupg_cv_c_endian=big
14283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14284 conftest.$ac_objext conftest.beam conftest.$ac_ext
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14292 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14293 if test "$gnupg_cv_c_endian" = little; then
14295 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14299 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14305 # fixme: we should get rid of the byte type
14306 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14307 if test "x$ac_cv_type_byte" = xyes; then :
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_BYTE 1
14315 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14316 if test "x$ac_cv_type_ushort" = xyes; then :
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_USHORT 1
14324 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14325 if test "x$ac_cv_type_ulong" = xyes; then :
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_ULONG 1
14333 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14334 if test "x$ac_cv_type_u16" = xyes; then :
14336 cat >>confdefs.h <<_ACEOF
14342 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14343 if test "x$ac_cv_type_u32" = xyes; then :
14345 cat >>confdefs.h <<_ACEOF
14352 # The cast to long int works around a bug in the HP C Compiler
14353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14355 # This bug is HP SR number 8606223364.
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14357 $as_echo_n "checking size of unsigned short... " >&6; }
14358 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14359 $as_echo_n "(cached) " >&6
14361 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14364 if test "$ac_cv_type_unsigned_short" = yes; then
14365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14367 as_fn_error 77 "cannot compute sizeof (unsigned short)
14368 See \`config.log' for more details" "$LINENO" 5; }
14370 ac_cv_sizeof_unsigned_short=0
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14376 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14380 cat >>confdefs.h <<_ACEOF
14381 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14385 # The cast to long int works around a bug in the HP C Compiler
14386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14388 # This bug is HP SR number 8606223364.
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14390 $as_echo_n "checking size of unsigned int... " >&6; }
14391 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14392 $as_echo_n "(cached) " >&6
14394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14397 if test "$ac_cv_type_unsigned_int" = yes; then
14398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14400 as_fn_error 77 "cannot compute sizeof (unsigned int)
14401 See \`config.log' for more details" "$LINENO" 5; }
14403 ac_cv_sizeof_unsigned_int=0
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14409 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14413 cat >>confdefs.h <<_ACEOF
14414 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14418 # The cast to long int works around a bug in the HP C Compiler
14419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14421 # This bug is HP SR number 8606223364.
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14423 $as_echo_n "checking size of unsigned long... " >&6; }
14424 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14425 $as_echo_n "(cached) " >&6
14427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14430 if test "$ac_cv_type_unsigned_long" = yes; then
14431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14433 as_fn_error 77 "cannot compute sizeof (unsigned long)
14434 See \`config.log' for more details" "$LINENO" 5; }
14436 ac_cv_sizeof_unsigned_long=0
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14442 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14446 cat >>confdefs.h <<_ACEOF
14447 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14451 # The cast to long int works around a bug in the HP C Compiler
14452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14454 # This bug is HP SR number 8606223364.
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14456 $as_echo_n "checking size of unsigned long long... " >&6; }
14457 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14458 $as_echo_n "(cached) " >&6
14460 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14463 if test "$ac_cv_type_unsigned_long_long" = yes; then
14464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14466 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14467 See \`config.log' for more details" "$LINENO" 5; }
14469 ac_cv_sizeof_unsigned_long_long=0
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14475 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14479 cat >>confdefs.h <<_ACEOF
14480 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14484 # The cast to long int works around a bug in the HP C Compiler
14485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14487 # This bug is HP SR number 8606223364.
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14489 $as_echo_n "checking size of size_t... " >&6; }
14490 if ${ac_cv_sizeof_size_t+:} false; then :
14491 $as_echo_n "(cached) " >&6
14493 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14496 if test "$ac_cv_type_size_t" = yes; then
14497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14499 as_fn_error 77 "cannot compute sizeof (size_t)
14500 See \`config.log' for more details" "$LINENO" 5; }
14502 ac_cv_sizeof_size_t=0
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14508 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14512 cat >>confdefs.h <<_ACEOF
14513 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14517 # The cast to long int works around a bug in the HP C Compiler
14518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14520 # This bug is HP SR number 8606223364.
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14522 $as_echo_n "checking size of time_t... " >&6; }
14523 if ${ac_cv_sizeof_time_t+:} false; then :
14524 $as_echo_n "(cached) " >&6
14526 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14528 #if TIME_WITH_SYS_TIME
14529 # include <sys/time.h>
14532 # if HAVE_SYS_TIME_H
14533 # include <sys/time.h>
14542 if test "$ac_cv_type_time_t" = yes; then
14543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14545 as_fn_error 77 "cannot compute sizeof (time_t)
14546 See \`config.log' for more details" "$LINENO" 5; }
14548 ac_cv_sizeof_time_t=0
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14554 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14558 cat >>confdefs.h <<_ACEOF
14559 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14564 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14565 if ${gnupg_cv_time_t_unsigned+:} false; then :
14566 $as_echo_n "(cached) " >&6
14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h. */
14570 $ac_includes_default
14571 #if TIME_WITH_SYS_TIME
14572 # include <sys/time.h>
14575 # if HAVE_SYS_TIME_H
14576 # include <sys/time.h>
14585 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14586 test_array [0] = 0;
14587 return test_array [0];
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 gnupg_cv_time_t_unsigned=no
14596 gnupg_cv_time_t_unsigned=yes
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14601 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14602 if test $gnupg_cv_time_t_unsigned = yes; then
14604 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14610 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14611 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14612 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14614 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14619 # Checks for library functions.
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14622 $as_echo "$as_me: checking for library functions" >&6;}
14623 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14624 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14635 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14636 if ${ac_cv_sys_largefile_source+:} false; then :
14637 $as_echo_n "(cached) " >&6
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 #include <sys/types.h> /* for off_t */
14647 int (*fp) (FILE *, off_t, int) = fseeko;
14648 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14653 if ac_fn_c_try_link "$LINENO"; then :
14654 ac_cv_sys_largefile_source=no; break
14656 rm -f core conftest.err conftest.$ac_objext \
14657 conftest$ac_exeext conftest.$ac_ext
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 #define _LARGEFILE_SOURCE 1
14661 #include <sys/types.h> /* for off_t */
14666 int (*fp) (FILE *, off_t, int) = fseeko;
14667 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14672 if ac_fn_c_try_link "$LINENO"; then :
14673 ac_cv_sys_largefile_source=1; break
14675 rm -f core conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 ac_cv_sys_largefile_source=unknown
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14682 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14683 case $ac_cv_sys_largefile_source in #(
14686 cat >>confdefs.h <<_ACEOF
14687 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14693 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14694 # in glibc 2.1.3, but that breaks too many other things.
14695 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14696 if test $ac_cv_sys_largefile_source != unknown; then
14698 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14702 for ac_func in vprintf
14704 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14705 if test "x$ac_cv_func_vprintf" = xyes; then :
14706 cat >>confdefs.h <<_ACEOF
14707 #define HAVE_VPRINTF 1
14710 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14711 if test "x$ac_cv_func__doprnt" = xyes; then :
14713 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14721 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14722 if test "x$ac_cv_type_pid_t" = xyes; then :
14726 cat >>confdefs.h <<_ACEOF
14732 for ac_header in vfork.h
14734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14735 if test "x$ac_cv_header_vfork_h" = xyes; then :
14736 cat >>confdefs.h <<_ACEOF
14737 #define HAVE_VFORK_H 1
14744 for ac_func in fork vfork
14746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14748 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14749 cat >>confdefs.h <<_ACEOF
14750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14756 if test "x$ac_cv_func_fork" = xyes; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14758 $as_echo_n "checking for working fork... " >&6; }
14759 if ${ac_cv_func_fork_works+:} false; then :
14760 $as_echo_n "(cached) " >&6
14762 if test "$cross_compiling" = yes; then :
14763 ac_cv_func_fork_works=cross
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14767 $ac_includes_default
14772 /* By Ruediger Kuhlmann. */
14773 return fork () < 0;
14779 if ac_fn_c_try_run "$LINENO"; then :
14780 ac_cv_func_fork_works=yes
14782 ac_cv_func_fork_works=no
14784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14785 conftest.$ac_objext conftest.beam conftest.$ac_ext
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14790 $as_echo "$ac_cv_func_fork_works" >&6; }
14793 ac_cv_func_fork_works=$ac_cv_func_fork
14795 if test "x$ac_cv_func_fork_works" = xcross; then
14797 *-*-amigaos* | *-*-msdosdjgpp*)
14798 # Override, as these systems have only a dummy fork() stub
14799 ac_cv_func_fork_works=no
14802 ac_cv_func_fork_works=yes
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14806 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14808 ac_cv_func_vfork_works=$ac_cv_func_vfork
14809 if test "x$ac_cv_func_vfork" = xyes; then
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14811 $as_echo_n "checking for working vfork... " >&6; }
14812 if ${ac_cv_func_vfork_works+:} false; then :
14813 $as_echo_n "(cached) " >&6
14815 if test "$cross_compiling" = yes; then :
14816 ac_cv_func_vfork_works=cross
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 /* Thanks to Paul Eggert for this test. */
14821 $ac_includes_default
14822 #include <sys/wait.h>
14823 #ifdef HAVE_VFORK_H
14824 # include <vfork.h>
14826 /* On some sparc systems, changes by the child to local and incoming
14827 argument registers are propagated back to the parent. The compiler
14828 is told about this with #include <vfork.h>, but some compilers
14829 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14830 static variable whose address is put into a register that is
14831 clobbered by the vfork. */
14834 sparc_address_test (int arg)
14836 sparc_address_test (arg) int arg;
14839 static pid_t child;
14857 pid_t parent = getpid ();
14860 sparc_address_test (0);
14865 /* Here is another test for sparc vfork register problems. This
14866 test uses lots of local variables, at least as many local
14867 variables as main has allocated so far including compiler
14868 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14869 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14870 reuse the register of parent for one of the local variables,
14871 since it will think that parent can't possibly be used any more
14872 in this routine. Assigning to the local variable will thus
14873 munge parent in the parent process. */
14875 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14876 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14877 /* Convince the compiler that p..p7 are live; otherwise, it might
14878 use the same hardware register for all 8 local variables. */
14879 if (p != p1 || p != p2 || p != p3 || p != p4
14880 || p != p5 || p != p6 || p != p7)
14883 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14884 from child file descriptors. If the child closes a descriptor
14885 before it execs or exits, this munges the parent's descriptor
14886 as well. Test for this by closing stdout in the child. */
14887 _exit(close(fileno(stdout)) != 0);
14892 while (wait(&status) != child)
14895 /* Was there some problem with vforking? */
14898 /* Did the child fail? (This shouldn't happen.) */
14901 /* Did the vfork/compiler bug occur? */
14902 || parent != getpid()
14904 /* Did the file descriptor bug occur? */
14905 || fstat(fileno(stdout), &st) != 0
14910 if ac_fn_c_try_run "$LINENO"; then :
14911 ac_cv_func_vfork_works=yes
14913 ac_cv_func_vfork_works=no
14915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14916 conftest.$ac_objext conftest.beam conftest.$ac_ext
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14921 $as_echo "$ac_cv_func_vfork_works" >&6; }
14924 if test "x$ac_cv_func_fork_works" = xcross; then
14925 ac_cv_func_vfork_works=$ac_cv_func_vfork
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14927 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14930 if test "x$ac_cv_func_vfork_works" = xyes; then
14932 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14936 $as_echo "#define vfork fork" >>confdefs.h
14939 if test "x$ac_cv_func_fork_works" = xyes; then
14941 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14945 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14946 explicit_bzero fcntl flockfile fsync ftello \
14947 ftruncate funlockfile getaddrinfo getenv getpagesize \
14948 getpwnam getpwuid getrlimit getrusage gettimeofday \
14949 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14950 memmove memrchr mmap nl_langinfo pipe raise rand \
14951 setenv setlocale setrlimit sigaction sigprocmask \
14952 stat stpcpy strcasecmp strerror strftime stricmp \
14953 strlwr strncasecmp strpbrk strsep strtol strtoul \
14954 strtoull tcgetattr timegm times ttyname unsetenv \
14957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14960 cat >>confdefs.h <<_ACEOF
14961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14969 # Given that we use nanosleep only as an optimization over a select
14970 # based wait function we want it only if it is available in libc.
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14973 $as_echo_n "checking for library containing nanosleep... " >&6; }
14974 if ${ac_cv_search_nanosleep+:} false; then :
14975 $as_echo_n "(cached) " >&6
14977 ac_func_search_save_LIBS=$LIBS
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14981 /* Override any GCC internal prototype to avoid an error.
14982 Use char because int might match the return type of a GCC
14983 builtin and then its argument prototype would still apply. */
14991 return nanosleep ();
14996 for ac_lib in '' ; do
14997 if test -z "$ac_lib"; then
14998 ac_res="none required"
15001 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15003 if ac_fn_c_try_link "$LINENO"; then :
15004 ac_cv_search_nanosleep=$ac_res
15006 rm -f core conftest.err conftest.$ac_objext \
15008 if ${ac_cv_search_nanosleep+:} false; then :
15012 if ${ac_cv_search_nanosleep+:} false; then :
15015 ac_cv_search_nanosleep=no
15017 rm conftest.$ac_ext
15018 LIBS=$ac_func_search_save_LIBS
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15021 $as_echo "$ac_cv_search_nanosleep" >&6; }
15022 ac_res=$ac_cv_search_nanosleep
15023 if test "$ac_res" != no; then :
15024 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15026 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15033 # See whether libc supports the Linux inotify interface
15036 for ac_func in inotify_init
15038 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15039 if test "x$ac_cv_func_inotify_init" = xyes; then :
15040 cat >>confdefs.h <<_ACEOF
15041 #define HAVE_INOTIFY_INIT 1
15051 if test "$have_android_system" = yes; then
15052 # On Android ttyname is a stub but prints an error message.
15054 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15058 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15060 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_STRUCT_SIGACTION 1
15068 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15070 if test "x$ac_cv_type_sigset_t" = xyes; then :
15072 cat >>confdefs.h <<_ACEOF
15073 #define HAVE_SIGSET_T 1
15080 # Dirmngr requires mmap on Unix systems.
15081 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15082 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15087 # Check for the getsockopt SO_PEERCRED, etc.
15089 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15090 #include <sys/socket.h>
15092 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_STRUCT_UCRED_PID 1
15100 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15101 #include <sys/socket.h>
15103 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_STRUCT_UCRED_CR_PID 1
15111 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15112 #include <sys/socket.h>
15114 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15125 for ac_func in getpeerucred
15127 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15128 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_GETPEERUCRED 1
15139 # W32 specific test
15144 # Do we have zlib? Must do it here because Solaris failed
15145 # when compiling a conftest (due to the "-lz" from LIBS).
15146 # Note that we combine zlib and bzlib2 in ZLIBS.
15148 if test "$use_zip" = yes ; then
15149 _cppflags="${CPPFLAGS}"
15150 _ldflags="${LDFLAGS}"
15152 # Check whether --with-zlib was given.
15153 if test "${with_zlib+set}" = set; then :
15154 withval=$with_zlib;
15155 if test -d "$withval"; then
15156 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15157 LDFLAGS="${LDFLAGS} -L$withval/lib"
15163 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15164 if test "x$ac_cv_header_zlib_h" = xyes; then :
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15166 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15167 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15168 $as_echo_n "(cached) " >&6
15170 ac_check_lib_save_LIBS=$LIBS
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15175 /* Override any GCC internal prototype to avoid an error.
15176 Use char because int might match the return type of a GCC
15177 builtin and then its argument prototype would still apply. */
15181 char deflateInit2_ ();
15185 return deflateInit2_ ();
15190 if ac_fn_c_try_link "$LINENO"; then :
15191 ac_cv_lib_z_deflateInit2_=yes
15193 ac_cv_lib_z_deflateInit2_=no
15195 rm -f core conftest.err conftest.$ac_objext \
15196 conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15200 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15201 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15205 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15209 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15213 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15221 # Check whether we can support bzip2
15223 if test "$use_bzip2" = yes ; then
15224 _cppflags="${CPPFLAGS}"
15225 _ldflags="${LDFLAGS}"
15227 # Check whether --with-bzip2 was given.
15228 if test "${with_bzip2+set}" = set; then :
15229 withval=$with_bzip2;
15230 if test -d "$withval" ; then
15231 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15232 LDFLAGS="${LDFLAGS} -L$withval/lib"
15240 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15241 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15242 # woefully out of date.
15243 if test "$withval" != no ; then
15244 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15246 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15248 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15249 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15250 $as_echo_n "(cached) " >&6
15252 ac_check_lib_save_LIBS=$LIBS
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15263 char BZ2_bzCompressInit ();
15267 return BZ2_bzCompressInit ();
15272 if ac_fn_c_try_link "$LINENO"; then :
15273 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15275 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15277 rm -f core conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15282 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15283 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15286 ZLIBS="$ZLIBS -lbz2"
15288 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15292 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15296 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15302 if test x"$have_bz2" = "xyes"; then
15303 ENABLE_BZIP2_SUPPORT_TRUE=
15304 ENABLE_BZIP2_SUPPORT_FALSE='#'
15306 ENABLE_BZIP2_SUPPORT_TRUE='#'
15307 ENABLE_BZIP2_SUPPORT_FALSE=
15313 # Check for readline support
15316 # Check whether --with-readline was given.
15317 if test "${with_readline+set}" = set; then :
15318 withval=$with_readline; _do_readline=$withval
15324 gnupg_cv_have_readline=no
15325 if test "$_do_readline" != "no" ; then
15326 if test -d "$withval" ; then
15327 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15328 LDFLAGS="${LDFLAGS} -L$withval/lib"
15331 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15332 _readline_save_libs=$LIBS
15333 _combo="-lreadline${_termcap:+ $_termcap}"
15334 LIBS="$LIBS $_combo"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15337 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15343 #include <readline/readline.h>
15344 #include <readline/history.h>
15350 rl_completion_func_t *completer;
15351 add_history("foobar");
15352 rl_catch_signals=0;
15353 rl_inhibit_completion=0;
15354 rl_attempted_completion_function=NULL;
15355 rl_completion_matches(NULL,NULL);
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 _found_readline=yes
15366 rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15370 $as_echo "$_found_readline" >&6; }
15372 LIBS=$_readline_save_libs
15374 if test $_found_readline = yes ; then
15376 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15378 LIBREADLINE=$_combo
15380 gnupg_cv_have_readline=yes
15386 unset _readline_save_libs
15388 unset _found_readline
15393 if test "$development_version" = yes; then
15395 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15399 if test "$USE_MAINTAINER_MODE" = "yes"; then
15401 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15405 if test x$cross_compiling = xyes; then
15406 CROSS_COMPILING_TRUE=
15407 CROSS_COMPILING_FALSE='#'
15409 CROSS_COMPILING_TRUE='#'
15410 CROSS_COMPILING_FALSE=
15415 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15420 *** It seems that you are not using GNU make. Some make tools have serious
15421 *** flaws and you may not be able to build this software at all. Before you
15422 *** complain, please try GNU make: GNU make is easy to build and available
15423 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15425 $as_echo "$as_me: WARNING:
15427 *** It seems that you are not using GNU make. Some make tools have serious
15428 *** flaws and you may not be able to build this software at all. Before you
15429 *** complain, please try GNU make: GNU make is easy to build and available
15430 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15435 # Add some extra libs here so that previous tests don't fail for
15436 # mysterious reasons - the final link step should bail out.
15437 # W32SOCKLIBS is also defined so that if can be used for tools not
15438 # requiring any network stuff but linking to code in libcommon which
15439 # tracks in winsock stuff (e.g. init_common_subsystems).
15440 if test "$have_w32_system" = yes; then
15441 if test "$have_w32ce_system" = yes; then
15442 W32SOCKLIBS="-lws2"
15444 W32SOCKLIBS="-lws2_32"
15446 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15453 # TPM libtss library .. don't compile TPM support if we don't have it
15456 # Check whether --with-tss was given.
15457 if test "${with_tss+set}" = set; then :
15458 withval=$with_tss; with_tss=$withval
15460 with_tss=autodetect
15465 if test "$build_tpm2d" = "yes"; then
15467 _save_cflags="$CFLAGS"
15469 if test "$with_tss" = autodetect; then
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15471 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15472 if ${ac_cv_search_TSS_Create+:} false; then :
15473 $as_echo_n "(cached) " >&6
15475 ac_func_search_save_LIBS=$LIBS
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h. */
15479 /* Override any GCC internal prototype to avoid an error.
15480 Use char because int might match the return type of a GCC
15481 builtin and then its argument prototype would still apply. */
15485 char TSS_Create ();
15489 return TSS_Create ();
15494 for ac_lib in '' tss ibmtss; do
15495 if test -z "$ac_lib"; then
15496 ac_res="none required"
15499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15501 if ac_fn_c_try_link "$LINENO"; then :
15502 ac_cv_search_TSS_Create=$ac_res
15504 rm -f core conftest.err conftest.$ac_objext \
15506 if ${ac_cv_search_TSS_Create+:} false; then :
15510 if ${ac_cv_search_TSS_Create+:} false; then :
15513 ac_cv_search_TSS_Create=no
15515 rm conftest.$ac_ext
15516 LIBS=$ac_func_search_save_LIBS
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15519 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15520 ac_res=$ac_cv_search_TSS_Create
15521 if test "$ac_res" != no; then :
15522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15526 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15527 if ${ac_cv_search_Esys_Initialize+:} false; then :
15528 $as_echo_n "(cached) " >&6
15530 ac_func_search_save_LIBS=$LIBS
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15534 /* Override any GCC internal prototype to avoid an error.
15535 Use char because int might match the return type of a GCC
15536 builtin and then its argument prototype would still apply. */
15540 char Esys_Initialize ();
15544 return Esys_Initialize ();
15549 for ac_lib in '' tss2-esys; do
15550 if test -z "$ac_lib"; then
15551 ac_res="none required"
15554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15556 if ac_fn_c_try_link "$LINENO"; then :
15557 ac_cv_search_Esys_Initialize=$ac_res
15559 rm -f core conftest.err conftest.$ac_objext \
15561 if ${ac_cv_search_Esys_Initialize+:} false; then :
15565 if ${ac_cv_search_Esys_Initialize+:} false; then :
15568 ac_cv_search_Esys_Initialize=no
15570 rm conftest.$ac_ext
15571 LIBS=$ac_func_search_save_LIBS
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15574 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15575 ac_res=$ac_cv_search_Esys_Initialize
15576 if test "$ac_res" != no; then :
15577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15585 elif test "$with_tss" = ibm; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15587 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15588 if ${ac_cv_search_TSS_Create+:} false; then :
15589 $as_echo_n "(cached) " >&6
15591 ac_func_search_save_LIBS=$LIBS
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 /* Override any GCC internal prototype to avoid an error.
15596 Use char because int might match the return type of a GCC
15597 builtin and then its argument prototype would still apply. */
15601 char TSS_Create ();
15605 return TSS_Create ();
15610 for ac_lib in '' tss ibmtss; do
15611 if test -z "$ac_lib"; then
15612 ac_res="none required"
15615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15617 if ac_fn_c_try_link "$LINENO"; then :
15618 ac_cv_search_TSS_Create=$ac_res
15620 rm -f core conftest.err conftest.$ac_objext \
15622 if ${ac_cv_search_TSS_Create+:} false; then :
15626 if ${ac_cv_search_TSS_Create+:} false; then :
15629 ac_cv_search_TSS_Create=no
15631 rm conftest.$ac_ext
15632 LIBS=$ac_func_search_save_LIBS
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15635 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15636 ac_res=$ac_cv_search_TSS_Create
15637 if test "$ac_res" != no; then :
15638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15641 as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15644 elif test "$with_tss" = intel; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15646 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15647 if ${ac_cv_search_Esys_Initialize+:} false; then :
15648 $as_echo_n "(cached) " >&6
15650 ac_func_search_save_LIBS=$LIBS
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15660 char Esys_Initialize ();
15664 return Esys_Initialize ();
15669 for ac_lib in '' tss2-esys; do
15670 if test -z "$ac_lib"; then
15671 ac_res="none required"
15674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15676 if ac_fn_c_try_link "$LINENO"; then :
15677 ac_cv_search_Esys_Initialize=$ac_res
15679 rm -f core conftest.err conftest.$ac_objext \
15681 if ${ac_cv_search_Esys_Initialize+:} false; then :
15685 if ${ac_cv_search_Esys_Initialize+:} false; then :
15688 ac_cv_search_Esys_Initialize=no
15690 rm conftest.$ac_ext
15691 LIBS=$ac_func_search_save_LIBS
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15694 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15695 ac_res=$ac_cv_search_Esys_Initialize
15696 if test "$ac_res" != no; then :
15697 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15700 as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15704 as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15707 if test "$have_libtss" = IBM; then
15708 LIBTSS_CFLAGS="-DTPM_POSIX"
15709 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15710 ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15713 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15717 ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15718 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15720 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15725 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15737 elif test "$have_libtss" = Intel; then
15739 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15740 # until version 2.4.0.
15742 # Note: the missing API is fairly serious and is also easily backportable
15743 # so keep the check below as is intead of going by library version number.
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15746 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15747 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15748 $as_echo_n "(cached) " >&6
15750 ac_check_lib_save_LIBS=$LIBS
15751 LIBS="-ltss2-esys $LIBS"
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15755 /* Override any GCC internal prototype to avoid an error.
15756 Use char because int might match the return type of a GCC
15757 builtin and then its argument prototype would still apply. */
15761 char Esys_TR_GetTpmHandle ();
15765 return Esys_TR_GetTpmHandle ();
15770 if ac_fn_c_try_link "$LINENO"; then :
15771 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15773 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15775 rm -f core conftest.err conftest.$ac_objext \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15780 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15781 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBTSS2_ESYS 1
15786 LIBS="-ltss2-esys $LIBS"
15790 { $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
15791 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15796 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15798 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15802 CFLAGS="$_save_cflags"
15803 if test "$have_libtss" != no; then
15805 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15807 # look for a TPM emulator for testing
15808 # Extract the first word of "tpm_server", so it can be a program name with args.
15809 set dummy tpm_server; ac_word=$2
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811 $as_echo_n "checking for $ac_word... " >&6; }
15812 if ${ac_cv_path_TPMSERVER+:} false; then :
15813 $as_echo_n "(cached) " >&6
15817 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15822 for as_dir in $as_dummy
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15839 TPMSERVER=$ac_cv_path_TPMSERVER
15840 if test -n "$TPMSERVER"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15842 $as_echo "$TPMSERVER" >&6; }
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15849 # Extract the first word of "swtpm", so it can be a program name with args.
15850 set dummy swtpm; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852 $as_echo_n "checking for $ac_word... " >&6; }
15853 if ${ac_cv_path_SWTPM+:} false; then :
15854 $as_echo_n "(cached) " >&6
15858 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15862 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15863 for as_dir in $as_dummy
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15880 SWTPM=$ac_cv_path_SWTPM
15881 if test -n "$SWTPM"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15883 $as_echo "$SWTPM" >&6; }
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15890 # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15891 set dummy swtpm_ioctl; ac_word=$2
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15893 $as_echo_n "checking for $ac_word... " >&6; }
15894 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15895 $as_echo_n "(cached) " >&6
15897 case $SWTPM_IOCTL in
15899 ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15903 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15904 for as_dir in $as_dummy
15907 test -z "$as_dir" && as_dir=.
15908 for ac_exec_ext in '' $ac_executable_extensions; do
15909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910 ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15921 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15922 if test -n "$SWTPM_IOCTL"; then
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15924 $as_echo "$SWTPM_IOCTL" >&6; }
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15931 # Extract the first word of "tssstartup", so it can be a program name with args.
15932 set dummy tssstartup; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15936 $as_echo_n "(cached) " >&6
15938 case $TSSSTARTUP in
15940 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15945 for as_dir in $as_dummy
15948 test -z "$as_dir" && as_dir=.
15949 for ac_exec_ext in '' $ac_executable_extensions; do
15950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15951 ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15962 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15963 if test -n "$TSSSTARTUP"; then
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15965 $as_echo "$TSSSTARTUP" >&6; }
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15974 if test "$have_libtss" = no; then
15979 if test "$have_libtss" != no; then
15981 HAVE_LIBTSS_FALSE='#'
15983 HAVE_LIBTSS_TRUE='#'
15987 if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15989 TEST_LIBTSS_FALSE='#'
15991 TEST_LIBTSS_TRUE='#'
15998 # Setup gcc specific options
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
16002 $as_echo "$as_me: checking for cc features" >&6;}
16003 if test "$GCC" = yes; then
16005 mycflags_save=$CFLAGS
16007 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
16008 # options. This is the case for gcc >= 4.6
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
16010 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16014 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026 _gcc_silent_wno=yes
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
16032 $as_echo "$_gcc_silent_wno" >&6; }
16034 # Note that it is okay to use CFLAGS here because these are just
16035 # warning options and the user should have a chance of overriding
16037 if test "$USE_MAINTAINER_MODE" = "yes"; then
16038 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
16039 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
16040 if test x"$_gcc_silent_wno" = xyes ; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
16044 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
16045 CFLAGS="-Wno-missing-field-initializers"
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16057 if ac_fn_c_try_compile "$LINENO"; then :
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16064 $as_echo "$_gcc_wopt" >&6; }
16066 if test x"$_gcc_wopt" = xyes ; then
16067 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
16068 mycflags="$mycflags -Wno-missing-field-initializers"
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
16072 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
16073 CFLAGS="-Wdeclaration-after-statement"
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16085 if ac_fn_c_try_compile "$LINENO"; then :
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16092 $as_echo "$_gcc_wopt" >&6; }
16093 if test x"$_gcc_wopt" = xyes ; then
16094 mycflags="$mycflags -Wdeclaration-after-statement"
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
16098 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
16099 CFLAGS="-Wlogical-op -Werror"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16111 if ac_fn_c_try_compile "$LINENO"; then :
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16118 $as_echo "$_gcc_wopt" >&6; }
16119 if test x"$_gcc_wopt" = xyes ; then
16120 mycflags="$mycflags -Wlogical-op"
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16124 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16137 if ac_fn_c_try_compile "$LINENO"; then :
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16144 $as_echo "$_gcc_wopt" >&6; }
16145 if test x"$_gcc_wopt" = xyes ; then
16146 mycflags="$mycflags -Wvla"
16150 mycflags="$mycflags -Wall"
16151 if test x"$_gcc_silent_wno" = xyes ; then
16152 mycflags="$mycflags -Wno-format-zero-length"
16156 if test x"$_gcc_silent_wno" = xyes ; then
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16160 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16161 CFLAGS="-Wno-pointer-sign"
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h. */
16173 if ac_fn_c_try_compile "$LINENO"; then :
16178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16180 $as_echo "$_gcc_psign" >&6; }
16182 if test x"$_gcc_psign" = xyes ; then
16183 mycflags="$mycflags -Wno-pointer-sign"
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16187 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16188 CFLAGS="-Wpointer-arith"
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16200 if ac_fn_c_try_compile "$LINENO"; then :
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16207 $as_echo "$_gcc_psign" >&6; }
16208 if test x"$_gcc_psign" = xyes ; then
16209 mycflags="$mycflags -Wpointer-arith"
16212 CFLAGS="$mycflags $mycflags_save"
16213 if test "$use_libdns" = yes; then
16214 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
16215 USE_C99_CFLAGS="-std=gnu99"
16223 # This is handy for debugging so the compiler doesn't rearrange
16224 # things and eliminate variables.
16226 # Check whether --enable-optimization was given.
16227 if test "${enable_optimization+set}" = set; then :
16228 enableval=$enable_optimization; if test $enableval = no ; then
16229 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16235 # log_debug has certain requirements which might hamper portability.
16236 # Thus we use an option to enable it.
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16239 $as_echo_n "checking whether to enable log_clock... " >&6; }
16240 # Check whether --enable-log_clock was given.
16241 if test "${enable_log_clock+set}" = set; then :
16242 enableval=$enable_log_clock; enable_log_clock=$enableval
16244 enable_log_clock=no
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16248 $as_echo "$enable_log_clock" >&6; }
16249 if test "$enable_log_clock" = yes ; then
16251 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16255 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
16256 # misbehaving autoconf tests in case the user supplied -Werror.
16258 # Check whether --enable-werror was given.
16259 if test "${enable_werror+set}" = set; then :
16260 enableval=$enable_werror; if test $enableval = yes ; then
16261 CFLAGS="$CFLAGS -Werror"
16267 # Configure option --enable-all-tests
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16270 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16271 # Check whether --enable-all-tests was given.
16272 if test "${enable_all_tests+set}" = set; then :
16273 enableval=$enable_all_tests; run_all_tests=$enableval
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16279 $as_echo "$run_all_tests" >&6; }
16280 if test "$run_all_tests" = "yes"; then
16282 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16287 # Configure option --disable-tests
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16290 $as_echo_n "checking whether tests should be run... " >&6; }
16291 # Check whether --enable-tests was given.
16292 if test "${enable_tests+set}" = set; then :
16293 enableval=$enable_tests; run_tests=$enableval
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16299 $as_echo "$run_tests" >&6; }
16302 # We do not want support for the GNUPG_BUILDDIR environment variable
16303 # in a released version. However, our regression tests suite requires
16304 # this and thus we build with support for it during "make distcheck".
16305 # This configure option implements this along with the top Makefile's
16306 # AM_DISTCHECK_CONFIGURE_FLAGS.
16308 gnupg_builddir_envvar=no
16309 # Check whether --enable-gnupg-builddir-envvar was given.
16310 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16311 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16314 if test x"$gnupg_builddir_envvar" = x"yes"; then
16316 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16322 # To avoid problems with systemd cleaning up the /run/user directory,
16323 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16326 # Check whether --enable-run-gnupg-user-socket was given.
16327 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16328 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16331 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16333 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16339 # Decide what to build
16342 build_scdaemon_extra=""
16343 if test "$build_scdaemon" = "yes"; then
16344 if test $have_libusb = no; then
16345 build_scdaemon_extra="without internal CCID driver"
16347 if test -n "$build_scdaemon_extra"; then
16348 build_scdaemon_extra="(${build_scdaemon_extra})"
16354 # Set variables for use by automake makefiles.
16356 if test "$build_gpg" = "yes"; then
16358 BUILD_GPG_FALSE='#'
16364 if test "$build_gpgsm" = "yes"; then
16366 BUILD_GPGSM_FALSE='#'
16368 BUILD_GPGSM_TRUE='#'
16372 if test "$build_agent" = "yes"; then
16374 BUILD_AGENT_FALSE='#'
16376 BUILD_AGENT_TRUE='#'
16380 if test "$build_scdaemon" = "yes"; then
16381 BUILD_SCDAEMON_TRUE=
16382 BUILD_SCDAEMON_FALSE='#'
16384 BUILD_SCDAEMON_TRUE='#'
16385 BUILD_SCDAEMON_FALSE=
16388 if test "$build_g13" = "yes"; then
16390 BUILD_G13_FALSE='#'
16396 if test "$build_dirmngr" = "yes"; then
16397 BUILD_DIRMNGR_TRUE=
16398 BUILD_DIRMNGR_FALSE='#'
16400 BUILD_DIRMNGR_TRUE='#'
16401 BUILD_DIRMNGR_FALSE=
16404 if test "$build_keyboxd" = "yes"; then
16405 BUILD_KEYBOXD_TRUE=
16406 BUILD_KEYBOXD_FALSE='#'
16408 BUILD_KEYBOXD_TRUE='#'
16409 BUILD_KEYBOXD_FALSE=
16412 if test "$build_tpm2d" = "yes"; then
16414 BUILD_TPM2D_FALSE='#'
16416 BUILD_TPM2D_TRUE='#'
16420 if test "$build_doc" = "yes"; then
16422 BUILD_DOC_FALSE='#'
16428 if test "$build_gpgtar" = "yes"; then
16430 BUILD_GPGTAR_FALSE='#'
16432 BUILD_GPGTAR_TRUE='#'
16433 BUILD_GPGTAR_FALSE=
16436 if test "$build_wks_tools" = "yes"; then
16437 BUILD_WKS_TOOLS_TRUE=
16438 BUILD_WKS_TOOLS_FALSE='#'
16440 BUILD_WKS_TOOLS_TRUE='#'
16441 BUILD_WKS_TOOLS_FALSE=
16445 if test "$run_tests" != yes; then
16446 DISABLE_TESTS_TRUE=
16447 DISABLE_TESTS_FALSE='#'
16449 DISABLE_TESTS_TRUE='#'
16450 DISABLE_TESTS_FALSE=
16453 if test "$card_support" = yes; then
16454 ENABLE_CARD_SUPPORT_TRUE=
16455 ENABLE_CARD_SUPPORT_FALSE='#'
16457 ENABLE_CARD_SUPPORT_TRUE='#'
16458 ENABLE_CARD_SUPPORT_FALSE=
16461 if test "$use_trust_models" = no; then
16462 NO_TRUST_MODELS_TRUE=
16463 NO_TRUST_MODELS_FALSE='#'
16465 NO_TRUST_MODELS_TRUE='#'
16466 NO_TRUST_MODELS_FALSE=
16469 if test "$use_tofu" = yes; then
16479 # Set some defines for use gpgconf.
16481 if test "$build_gpg" = yes ; then
16483 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16486 if test "$build_gpgsm" = yes ; then
16488 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16491 if test "$build_agent" = yes ; then
16493 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16496 if test "$build_scdaemon" = yes ; then
16498 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16501 if test "$build_dirmngr" = yes ; then
16503 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16506 if test "$build_keyboxd" = yes ; then
16508 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16511 if test "$build_tpm2d" = yes ; then
16513 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16516 if test "$build_g13" = yes ; then
16518 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16524 # Define Name strings
16527 cat >>confdefs.h <<_ACEOF
16528 #define GNUPG_NAME "GnuPG"
16533 cat >>confdefs.h <<_ACEOF
16534 #define GPG_NAME "gpg"
16538 cat >>confdefs.h <<_ACEOF
16539 #define GPG_DISP_NAME "GnuPG"
16544 cat >>confdefs.h <<_ACEOF
16545 #define GPGSM_NAME "gpgsm"
16549 cat >>confdefs.h <<_ACEOF
16550 #define GPGSM_DISP_NAME "GPGSM"
16555 cat >>confdefs.h <<_ACEOF
16556 #define GPG_AGENT_NAME "gpg-agent"
16560 cat >>confdefs.h <<_ACEOF
16561 #define GPG_AGENT_DISP_NAME "GPG Agent"
16566 cat >>confdefs.h <<_ACEOF
16567 #define TPM2DAEMON_NAME "tpm2daemon"
16571 cat >>confdefs.h <<_ACEOF
16572 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16577 cat >>confdefs.h <<_ACEOF
16578 #define SCDAEMON_NAME "scdaemon"
16582 cat >>confdefs.h <<_ACEOF
16583 #define SCDAEMON_DISP_NAME "SCDaemon"
16588 cat >>confdefs.h <<_ACEOF
16589 #define DIRMNGR_NAME "dirmngr"
16593 cat >>confdefs.h <<_ACEOF
16594 #define DIRMNGR_DISP_NAME "DirMngr"
16599 cat >>confdefs.h <<_ACEOF
16600 #define KEYBOXD_NAME "keyboxd"
16604 cat >>confdefs.h <<_ACEOF
16605 #define KEYBOXD_DISP_NAME "Keyboxd"
16610 cat >>confdefs.h <<_ACEOF
16611 #define G13_NAME "g13"
16615 cat >>confdefs.h <<_ACEOF
16616 #define G13_DISP_NAME "G13"
16621 cat >>confdefs.h <<_ACEOF
16622 #define GPGCONF_NAME "gpgconf"
16626 cat >>confdefs.h <<_ACEOF
16627 #define GPGCONF_DISP_NAME "GPGConf"
16632 cat >>confdefs.h <<_ACEOF
16633 #define GPGTAR_NAME "gpgtar"
16638 cat >>confdefs.h <<_ACEOF
16639 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16643 cat >>confdefs.h <<_ACEOF
16644 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16648 cat >>confdefs.h <<_ACEOF
16649 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16653 cat >>confdefs.h <<_ACEOF
16654 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16658 cat >>confdefs.h <<_ACEOF
16659 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16663 cat >>confdefs.h <<_ACEOF
16664 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16668 cat >>confdefs.h <<_ACEOF
16669 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16673 cat >>confdefs.h <<_ACEOF
16674 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16678 cat >>confdefs.h <<_ACEOF
16679 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16683 cat >>confdefs.h <<_ACEOF
16684 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16689 cat >>confdefs.h <<_ACEOF
16690 #define GPGEXT_GPG "gpg"
16694 if test "$have_w32_system" = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16704 # Provide information about the build.
16706 BUILD_REVISION="9470d0338"
16709 cat >>confdefs.h <<_ACEOF
16710 #define BUILD_REVISION "$BUILD_REVISION"
16714 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16715 BUILD_VERSION="${BUILD_VERSION}38000"
16716 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16720 # Check whether --enable-build-timestamp was given.
16721 if test "${enable_build_timestamp+set}" = set; then :
16722 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16723 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16725 BUILD_TIMESTAMP="$enableval"
16727 BUILD_HOSTNAME="$ac_hostname"
16729 BUILD_TIMESTAMP="<none>"
16730 BUILD_HOSTNAME="<anon>"
16735 cat >>confdefs.h <<_ACEOF
16736 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16743 # Print errors here so that they are visible all
16744 # together and the user can acquire them all together.
16747 if test "$have_gpg_error" = "no"; then
16749 { $as_echo "$as_me:${as_lineno-$LINENO}:
16751 *** You need libgpg-error to build this program.
16752 ** This library is for example available at
16753 *** https://gnupg.org/ftp/gcrypt/gpgrt
16754 *** (at least version $NEED_GPGRT_VERSION is required.)
16758 *** You need libgpg-error to build this program.
16759 ** This library is for example available at
16760 *** https://gnupg.org/ftp/gcrypt/gpgrt
16761 *** (at least version $NEED_GPGRT_VERSION is required.)
16764 if test "$have_libgcrypt" = "no"; then
16766 { $as_echo "$as_me:${as_lineno-$LINENO}:
16768 *** You need libgcrypt to build this program.
16769 ** This library is for example available at
16770 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16771 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16775 *** You need libgcrypt to build this program.
16776 ** This library is for example available at
16777 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16778 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16781 if test "$have_libassuan" = "no"; then
16783 { $as_echo "$as_me:${as_lineno-$LINENO}:
16785 *** You need libassuan to build this program.
16786 *** This library is for example available at
16787 *** https://gnupg.org/ftp/gcrypt/libassuan/
16788 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16792 *** You need libassuan to build this program.
16793 *** This library is for example available at
16794 *** https://gnupg.org/ftp/gcrypt/libassuan/
16795 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16798 if test "$have_ksba" = "no"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}:
16802 *** You need libksba to build this program.
16803 *** This library is for example available at
16804 *** https://gnupg.org/ftp/gcrypt/libksba/
16805 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16809 *** You need libksba to build this program.
16810 *** This library is for example available at
16811 *** https://gnupg.org/ftp/gcrypt/libksba/
16812 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16815 if test "$gnupg_have_ldap" = yes; then
16816 if test "$have_w32ce_system" = yes; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}:
16818 *** Note that CeGCC might be broken, a package fixing this is:
16819 *** http://files.kolab.org/local/windows-ce/
16820 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16821 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16824 *** Note that CeGCC might be broken, a package fixing this is:
16825 *** http://files.kolab.org/local/windows-ce/
16826 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16827 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16831 if test "$have_npth" = "no"; then
16833 { $as_echo "$as_me:${as_lineno-$LINENO}:
16835 *** It is now required to build with support for the
16836 *** New Portable Threads Library (nPth). Please install this
16837 *** library first. The library is for example available at
16838 *** https://gnupg.org/ftp/gcrypt/npth/
16839 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16843 *** It is now required to build with support for the
16844 *** New Portable Threads Library (nPth). Please install this
16845 *** library first. The library is for example available at
16846 *** https://gnupg.org/ftp/gcrypt/npth/
16847 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16851 if test "$require_iconv" = yes; then
16852 if test "$am_func_iconv" != yes; then
16854 { $as_echo "$as_me:${as_lineno-$LINENO}:
16856 *** The system does not provide a working iconv function. Please
16857 *** install a suitable library; for example GNU Libiconv which is
16859 *** https://ftp.gnu.org/gnu/libiconv/
16863 *** The system does not provide a working iconv function. Please
16864 *** install a suitable library; for example GNU Libiconv which is
16866 *** https://ftp.gnu.org/gnu/libiconv/
16871 if test "$use_ccid_driver" = yes; then
16872 if test "$have_libusb" != yes; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}:
16876 *** You need libusb to build the internal ccid driver. Please
16877 *** install a libusb suitable for your system.
16881 *** You need libusb to build the internal ccid driver. Please
16882 *** install a libusb suitable for your system.
16887 if test "$die" = "yes"; then
16890 *** Required libraries not found. Please consult the above messages
16891 *** and install them before running configure again.
16897 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"
16901 cat >confcache <<\_ACEOF
16902 # This file is a shell script that caches the results of configure
16903 # tests run on this system so they can be shared between configure
16904 # scripts and configure runs, see configure's option --config-cache.
16905 # It is not useful on other systems. If it contains results you don't
16906 # want to keep, you may remove or edit it.
16908 # config.status only pays attention to the cache file if you give it
16909 # the --recheck option to rerun configure.
16911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16913 # following values.
16917 # The following way of writing the cache mishandles newlines in values,
16918 # but we know of no workaround that is simple, portable, and efficient.
16919 # So, we kill variables containing newlines.
16920 # Ultrix sh set writes to stderr and can't be redirected directly,
16921 # and sets the high bit in the cache file unless we assign to the vars.
16923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16924 eval ac_val=\$$ac_var
16928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16932 _ | IFS | as_nl) ;; #(
16933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16934 *) { eval $ac_var=; unset $ac_var;} ;;
16940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16941 *${as_nl}ac_space=\ *)
16942 # `set' does not quote correctly, so add quotes: double-quote
16943 # substitution turns \\\\ into \\, and sed turns \\ into \.
16946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16949 # `set' quotes correctly as required by POSIX, so do not add quotes.
16950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16964 if test -w "$cache_file"; then
16965 if test "x$cache_file" != "x/dev/null"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16967 $as_echo "$as_me: updating cache $cache_file" >&6;}
16968 if test ! -f "$cache_file" || test -h "$cache_file"; then
16969 cat confcache >"$cache_file"
16971 case $cache_file in #(
16973 mv -f confcache "$cache_file"$$ &&
16974 mv -f "$cache_file"$$ "$cache_file" ;; #(
16976 mv -f confcache "$cache_file" ;;
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16988 # Let make expand exec_prefix.
16989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16991 DEFS=-DHAVE_CONFIG_H
16996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16997 # 1. Remove the extension, and $U if already installed.
16998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17001 # will be set to the directory where LIBOBJS objects are built.
17002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17005 LIBOBJS=$ac_libobjs
17007 LTLIBOBJS=$ac_ltlibobjs
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17011 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17012 if test -n "$am_sleep_pid"; then
17013 # Hide warnings about reused PIDs.
17014 wait $am_sleep_pid 2>/dev/null
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17017 $as_echo "done" >&6; }
17018 if test -n "$EXEEXT"; then
17020 am__EXEEXT_FALSE='#'
17022 am__EXEEXT_TRUE='#'
17026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17027 as_fn_error $? "conditional \"AMDEP\" was never defined.
17028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17031 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17034 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
17035 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
17036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17038 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
17039 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
17040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17042 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
17043 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
17044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17046 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
17047 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
17048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17050 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
17051 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
17052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17054 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
17055 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
17056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17058 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
17059 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
17060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17062 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
17063 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
17064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17066 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
17067 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
17068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17070 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
17071 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
17072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17075 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17079 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17080 if test -n "$am_sleep_pid"; then
17081 # Hide warnings about reused PIDs.
17082 wait $am_sleep_pid 2>/dev/null
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17085 $as_echo "done" >&6; }
17086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17087 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17090 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
17091 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
17092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17094 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
17095 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
17096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17098 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
17099 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
17100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17102 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
17103 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
17104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17106 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
17107 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
17108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17110 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
17111 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
17112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17114 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17115 as_fn_error $? "conditional \"SQLITE3\" was never defined.
17116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17118 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17119 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17122 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17123 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17126 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17127 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17130 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17131 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17134 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17135 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17138 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17139 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17142 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17143 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17146 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17147 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17150 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17151 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17154 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17155 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17158 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17159 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17162 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17163 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17166 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17167 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17170 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17171 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17174 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17175 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17178 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17179 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17182 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17183 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17186 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17187 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17190 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17191 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17194 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17195 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17199 : "${CONFIG_STATUS=./config.status}"
17201 ac_clean_files_save=$ac_clean_files
17202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17206 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17208 # Generated by $as_me.
17209 # Run this file to recreate the current configuration.
17210 # Compiler output produced by configure, useful for debugging
17211 # configure, is in config.log if it exists.
17214 ac_cs_recheck=false
17217 SHELL=\${CONFIG_SHELL-$SHELL}
17220 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17221 ## -------------------- ##
17222 ## M4sh Initialization. ##
17223 ## -------------------- ##
17225 # Be more Bourne compatible
17226 DUALCASE=1; export DUALCASE # for MKS sh
17227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17230 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17231 # is contrary to our usage. Disable this feature.
17232 alias -g '${1+"$@"}'='"$@"'
17233 setopt NO_GLOB_SUBST
17235 case `(set -o) 2>/dev/null` in #(
17247 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17248 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17251 # Prefer a ksh shell builtin over an external printf program on Solaris,
17252 # but without wasting forks for bash or zsh.
17253 if test -z "$BASH_VERSION$ZSH_VERSION" \
17254 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17255 as_echo='print -r --'
17256 as_echo_n='print -rn --'
17257 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17258 as_echo='printf %s\n'
17259 as_echo_n='printf %s'
17261 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17262 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17263 as_echo_n='/usr/ucb/echo -n'
17265 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17266 as_echo_n_body='eval
17270 expr "X$arg" : "X\\(.*\\)$as_nl";
17271 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17273 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17275 export as_echo_n_body
17276 as_echo_n='sh -c $as_echo_n_body as_echo'
17278 export as_echo_body
17279 as_echo='sh -c $as_echo_body as_echo'
17282 # The user is always right.
17283 if test "${PATH_SEPARATOR+set}" != set; then
17285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17286 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17293 # We need space, tab and new line, in precisely that order. Quoting is
17294 # there to prevent editors from complaining about space-tab.
17295 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17296 # splitting by setting IFS to empty value.)
17299 # Find who we are. Look in the path if we contain no directory separator.
17302 *[\\/]* ) as_myself=$0 ;;
17303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in $PATH
17307 test -z "$as_dir" && as_dir=.
17308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17314 # We did not find ourselves, most probably we were run as `sh COMMAND'
17315 # in which case we are not to be found in the path.
17316 if test "x$as_myself" = x; then
17319 if test ! -f "$as_myself"; then
17320 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17324 # Unset variables that we do not need and which cause bugs (e.g. in
17325 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17326 # suppresses any "Segmentation fault" message there. '((' could
17327 # trigger a bug in pdksh 5.2.14.
17328 for as_var in BASH_ENV ENV MAIL MAILPATH
17329 do eval test x\${$as_var+set} = xset \
17330 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17346 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17347 # ----------------------------------------
17348 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17349 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17350 # script with STATUS, using 1 if that was 0.
17353 as_status=$1; test $as_status -eq 0 && as_status=1
17355 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17356 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17358 $as_echo "$as_me: error: $2" >&2
17359 as_fn_exit $as_status
17363 # as_fn_set_status STATUS
17364 # -----------------------
17365 # Set $? to STATUS, without forking.
17366 as_fn_set_status ()
17369 } # as_fn_set_status
17371 # as_fn_exit STATUS
17372 # -----------------
17373 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17377 as_fn_set_status $1
17383 # Portably unset VAR.
17386 { eval $1=; unset $1;}
17388 as_unset=as_fn_unset
17389 # as_fn_append VAR VALUE
17390 # ----------------------
17391 # Append the text in VALUE to the end of the definition contained in VAR. Take
17392 # advantage of any shell optimizations that allow amortized linear growth over
17393 # repeated appends, instead of the typical quadratic growth present in naive
17395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17396 eval 'as_fn_append ()
17407 # as_fn_arith ARG...
17408 # ------------------
17409 # Perform arithmetic evaluation on the ARGs, and store the result in the
17410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17411 # must be portable across $(()) and expr.
17412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17413 eval 'as_fn_arith ()
17420 as_val=`expr "$@" || test $? -eq 1`
17425 if expr a : '\(a\)' >/dev/null 2>&1 &&
17426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17433 as_basename=basename
17438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17444 as_me=`$as_basename -- "$0" ||
17445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17446 X"$0" : 'X\(//\)$' \| \
17447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17449 sed '/^.*\/\([^/][^/]*\)\/*$/{
17463 # Avoid depending upon Character Ranges.
17464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17467 as_cr_digits='0123456789'
17468 as_cr_alnum=$as_cr_Letters$as_cr_digits
17470 ECHO_C= ECHO_N= ECHO_T=
17471 case `echo -n x` in #(((((
17473 case `echo 'xy\c'` in
17474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17483 rm -f conf$$ conf$$.exe conf$$.file
17484 if test -d conf$$.dir; then
17485 rm -f conf$$.dir/conf$$.file
17488 mkdir conf$$.dir 2>/dev/null
17490 if (echo >conf$$.file) 2>/dev/null; then
17491 if ln -s conf$$.file conf$$ 2>/dev/null; then
17493 # ... but there are two gotchas:
17494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17496 # In both cases, we have to default to `cp -pR'.
17497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17499 elif ln conf$$.file conf$$ 2>/dev/null; then
17507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17508 rmdir conf$$.dir 2>/dev/null
17513 # Create "$as_dir" as a directory, including parents if necessary.
17518 -*) as_dir=./$as_dir;;
17520 test -d "$as_dir" || eval $as_mkdir_p || {
17524 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17525 *) as_qdir=$as_dir;;
17527 as_dirs="'$as_qdir' $as_dirs"
17528 as_dir=`$as_dirname -- "$as_dir" ||
17529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17530 X"$as_dir" : 'X\(//\)[^/]' \| \
17531 X"$as_dir" : 'X\(//\)$' \| \
17532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17533 $as_echo X"$as_dir" |
17534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17538 /^X\(\/\/\)[^/].*/{
17551 test -d "$as_dir" && break
17553 test -z "$as_dirs" || eval "mkdir $as_dirs"
17554 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17558 if mkdir -p . 2>/dev/null; then
17559 as_mkdir_p='mkdir -p "$as_dir"'
17561 test -d ./-p && rmdir ./-p
17566 # as_fn_executable_p FILE
17567 # -----------------------
17568 # Test if FILE is an executable regular file.
17569 as_fn_executable_p ()
17571 test -f "$1" && test -x "$1"
17572 } # as_fn_executable_p
17573 as_test_x='test -x'
17574 as_executable_p=as_fn_executable_p
17576 # Sed expression to map a string onto a valid CPP name.
17577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17579 # Sed expression to map a string onto a valid variable name.
17580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17584 ## ----------------------------------- ##
17585 ## Main body of $CONFIG_STATUS script. ##
17586 ## ----------------------------------- ##
17588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17591 # Save the log message, to keep $0 and so on meaningful, and to
17592 # report actual input values of CONFIG_FILES etc. instead of their
17593 # values after options handling.
17595 This file was extended by gnupg $as_me 2.3.3, which was
17596 generated by GNU Autoconf 2.69. Invocation command line was
17598 CONFIG_FILES = $CONFIG_FILES
17599 CONFIG_HEADERS = $CONFIG_HEADERS
17600 CONFIG_LINKS = $CONFIG_LINKS
17601 CONFIG_COMMANDS = $CONFIG_COMMANDS
17604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17609 case $ac_config_files in *"
17610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17613 case $ac_config_headers in *"
17614 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 # Files that config.status was made for.
17620 config_files="$ac_config_files"
17621 config_headers="$ac_config_headers"
17622 config_commands="$ac_config_commands"
17626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17628 \`$as_me' instantiates files and other configuration actions
17629 from templates according to the current configuration. Unless the files
17630 and actions are specified as TAGs, all are instantiated by default.
17632 Usage: $0 [OPTION]... [TAG]...
17634 -h, --help print this help, then exit
17635 -V, --version print version number and configuration settings, then exit
17636 --config print configuration, then exit
17637 -q, --quiet, --silent
17638 do not print progress messages
17639 -d, --debug don't remove temporary files
17640 --recheck update $as_me by reconfiguring in the same conditions
17641 --file=FILE[:TEMPLATE]
17642 instantiate the configuration file FILE
17643 --header=FILE[:TEMPLATE]
17644 instantiate the configuration header FILE
17646 Configuration files:
17649 Configuration headers:
17652 Configuration commands:
17655 Report bugs to <https://bugs.gnupg.org>."
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17661 gnupg config.status 2.3.3
17662 configured by $0, generated by GNU Autoconf 2.69,
17663 with options \\"\$ac_cs_config\\"
17665 Copyright (C) 2012 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17674 test -n "\$AWK" || AWK=awk
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # The default lists apply if the user does not specify any file.
17684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17689 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17701 # Handling of the options.
17702 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17704 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17705 $as_echo "$ac_cs_version"; exit ;;
17706 --config | --confi | --conf | --con | --co | --c )
17707 $as_echo "$ac_cs_config"; exit ;;
17708 --debug | --debu | --deb | --de | --d | -d )
17710 --file | --fil | --fi | --f )
17713 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714 '') as_fn_error $? "missing file argument" ;;
17716 as_fn_append CONFIG_FILES " '$ac_optarg'"
17717 ac_need_defaults=false;;
17718 --header | --heade | --head | --hea )
17721 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17723 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17724 ac_need_defaults=false;;
17726 # Conflict between --help and --header
17727 as_fn_error $? "ambiguous option: \`$1'
17728 Try \`$0 --help' for more information.";;
17729 --help | --hel | -h )
17730 $as_echo "$ac_cs_usage"; exit ;;
17731 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17732 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17735 # This is an error.
17736 -*) as_fn_error $? "unrecognized option: \`$1'
17737 Try \`$0 --help' for more information." ;;
17739 *) as_fn_append ac_config_targets " $1"
17740 ac_need_defaults=false ;;
17746 ac_configure_extra_args=
17748 if $ac_cs_silent; then
17750 ac_configure_extra_args="$ac_configure_extra_args --silent"
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 if \$ac_cs_recheck; then
17756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17759 CONFIG_SHELL='$SHELL'
17760 export CONFIG_SHELL
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17770 ## Running $as_me. ##
17776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17780 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17781 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17782 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17783 # from automake < 1.5.
17784 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17785 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17786 LINGUAS="${LINGUAS-%UNSET%}"
17791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17793 # Handling of arguments.
17794 for ac_config_target in $ac_config_targets
17796 case $ac_config_target in
17797 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17798 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17799 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17800 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17801 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17802 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17803 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17804 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17805 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17806 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17807 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17808 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17809 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17810 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17811 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17812 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17813 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17814 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17815 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17816 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17817 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17818 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17819 "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17820 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17821 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17822 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17823 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17824 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17825 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17826 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17827 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17828 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17829 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17830 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17832 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17837 # If the user did not use the arguments to specify the items to instantiate,
17838 # then the envvar interface is used. Set only those that are not.
17839 # We use the long form for the default assignment because of an extremely
17840 # bizarre bug on SunOS 4.1.3.
17841 if $ac_need_defaults; then
17842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17847 # Have a temporary directory for convenience. Make it in the build tree
17848 # simply because there is no reason against having it here, and in addition,
17849 # creating and moving files from /tmp can sometimes cause problems.
17850 # Hook for its removal unless debugging.
17851 # Note that there is a small window in which the directory will not be cleaned:
17852 # after its creation but before its name has been assigned to `$tmp'.
17856 trap 'exit_status=$?
17857 : "${ac_tmp:=$tmp}"
17858 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17860 trap 'as_fn_exit 1' 1 2 13 15
17862 # Create a (secure) tmp directory for tmp files.
17865 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17869 tmp=./conf$$-$RANDOM
17870 (umask 077 && mkdir "$tmp")
17871 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17874 # Set up the scripts for CONFIG_FILES section.
17875 # No need to generate them if there are no CONFIG_FILES.
17876 # This happens for instance with `./config.status config.h'.
17877 if test -n "$CONFIG_FILES"; then
17880 ac_cr=`echo X | tr X '\015'`
17881 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17882 # But we know of no other shell where ac_cr would be empty at this
17883 # point, so we can use a bashism as a fallback.
17884 if test "x$ac_cr" = x; then
17885 eval ac_cr=\$\'\\r\'
17887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17891 ac_cs_awk_cr=$ac_cr
17894 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17899 echo "cat >conf$$subs.awk <<_ACEOF" &&
17900 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17902 } >conf$$subs.sh ||
17903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17906 for ac_last_try in false false false false false :; do
17907 . ./conf$$subs.sh ||
17908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17910 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17911 if test $ac_delim_n = $ac_delim_num; then
17913 elif $ac_last_try; then
17914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17919 rm -f conf$$subs.sh
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17926 s/^/S["/; s/!.*/"]=/
17936 s/\(.\{148\}\)..*/\1/
17938 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17950 s/\(.\{148\}\)..*/\1/
17952 s/["\\]/\\&/g; s/^/"/; s/$/"/
17956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17961 ' <conf$$subs.awk | sed '
17966 ' >>$CONFIG_STATUS || ac_write_fail=1
17967 rm -f conf$$subs.awk
17968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17971 for (key in S) S_is_set[key] = 1
17977 nfields = split(line, field, "@")
17979 len = length(field[1])
17980 for (i = 2; i < nfields; i++) {
17982 keylen = length(key)
17983 if (S_is_set[key]) {
17985 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17986 len += length(value) + length(field[++i])
17997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17999 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18002 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18003 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18006 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18007 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18008 # trailing colons and then remove the whole line if VPATH becomes empty
18009 # (actually we leave an empty line to preserve line numbers).
18010 if test "x$srcdir" = x.; then
18011 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030 fi # test -n "$CONFIG_FILES"
18032 # Set up the scripts for CONFIG_HEADERS section.
18033 # No need to generate them if there are no CONFIG_HEADERS.
18034 # This happens for instance with `./config.status Makefile'.
18035 if test -n "$CONFIG_HEADERS"; then
18036 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18040 # Transform confdefs.h into an awk script `defines.awk', embedded as
18041 # here-document in config.status, that substitutes the proper values into
18042 # config.h.in to produce config.h.
18044 # Create a delimiter string that does not exist in confdefs.h, to ease
18045 # handling of long lines.
18047 for ac_last_try in false false :; do
18048 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18049 if test -z "$ac_tt"; then
18051 elif $ac_last_try; then
18052 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18058 # For the awk script, D is an array of macro values keyed by name,
18059 # likewise P contains macro parameters if any. Preserve backslash
18060 # newline sequences.
18062 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18064 s/.\{148\}/&'"$ac_delim"'/g
18067 s/^[ ]*#[ ]*define[ ][ ]*/ /
18074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18076 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18080 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18081 D["\1"]=" \3\\\\\\n"\\/p
18083 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18088 s/.\{148\}/&'"$ac_delim"'/g
18093 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18096 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18098 ' <confdefs.h | sed '
18099 s/'"$ac_delim"'/"\\\
18100 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18103 for (key in D) D_is_set[key] = 1
18106 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18108 split(line, arg, " ")
18109 if (arg[1] == "#") {
18113 defundef = substr(arg[1], 2)
18116 split(mac1, mac2, "(") #)
18118 prefix = substr(line, 1, index(line, defundef) - 1)
18119 if (D_is_set[macro]) {
18120 # Preserve the white space surrounding the "#".
18121 print prefix "define", macro P[macro] D[macro]
18124 # Replace #undef with comments. This is necessary, for example,
18125 # in the case of _POSIX_SOURCE, which is predefined and required
18126 # on some systems where configure will not decide to define it.
18127 if (defundef == "undef") {
18128 print "/*", prefix defundef, macro, "*/"
18136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18138 fi # test -n "$CONFIG_HEADERS"
18141 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18146 :[FHLC]) ac_mode=$ac_tag; continue;;
18148 case $ac_mode$ac_tag in
18150 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18151 :[FH]-) ac_tag=-:-;;
18152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18169 -) ac_f="$ac_tmp/stdin";;
18170 *) # Look for the file first in the build tree, then in the source tree
18171 # (if the path is not absolute). The absolute path cannot be DOS-style,
18172 # because $ac_f cannot contain `:'.
18176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18178 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18180 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18181 as_fn_append ac_file_inputs " '$ac_f'"
18184 # Let's still pretend it is `configure' which instantiates (i.e., don't
18185 # use $as_me), people would be surprised to read:
18186 # /* config.h. Generated by config.status. */
18187 configure_input='Generated from '`
18188 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18190 if test x"$ac_file" != x-; then
18191 configure_input="$ac_file. $configure_input"
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18193 $as_echo "$as_me: creating $ac_file" >&6;}
18195 # Neutralize special characters interpreted by sed in replacement strings.
18196 case $configure_input in #(
18197 *\&* | *\|* | *\\* )
18198 ac_sed_conf_input=`$as_echo "$configure_input" |
18199 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18200 *) ac_sed_conf_input=$configure_input;;
18204 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18210 ac_dir=`$as_dirname -- "$ac_file" ||
18211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18212 X"$ac_file" : 'X\(//\)[^/]' \| \
18213 X"$ac_file" : 'X\(//\)$' \| \
18214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18215 $as_echo X"$ac_file" |
18216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18220 /^X\(\/\/\)[^/].*/{
18233 as_dir="$ac_dir"; as_fn_mkdir_p
18237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18239 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18240 # A ".." for each directory in $ac_dir_suffix.
18241 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18242 case $ac_top_builddir_sub in
18243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18247 ac_abs_top_builddir=$ac_pwd
18248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18249 # for backward compatibility:
18250 ac_top_builddir=$ac_top_build_prefix
18253 .) # We are building in place.
18255 ac_top_srcdir=$ac_top_builddir_sub
18256 ac_abs_top_srcdir=$ac_pwd ;;
18257 [\\/]* | ?:[\\/]* ) # Absolute name.
18258 ac_srcdir=$srcdir$ac_dir_suffix;
18259 ac_top_srcdir=$srcdir
18260 ac_abs_top_srcdir=$srcdir ;;
18261 *) # Relative name.
18262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18263 ac_top_srcdir=$ac_top_build_prefix$srcdir
18264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18279 ac_MKDIR_P=$MKDIR_P
18281 [\\/$]* | ?:[\\/]* ) ;;
18282 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18287 # If the template does not know about datarootdir, expand it.
18288 # FIXME: This hack should be removed a few years after 2.60.
18289 ac_datarootdir_hack=; ac_datarootdir_seen=
18300 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18301 *datarootdir*) ac_datarootdir_seen=yes;;
18302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18304 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307 ac_datarootdir_hack='
18308 s&@datadir@&$datadir&g
18309 s&@docdir@&$docdir&g
18310 s&@infodir@&$infodir&g
18311 s&@localedir@&$localedir&g
18312 s&@mandir@&$mandir&g
18313 s&\\\${datarootdir}&$datarootdir&g' ;;
18317 # Neutralize VPATH when `$srcdir' = `.'.
18318 # Shell code in configure.ac might set extrasub.
18319 # FIXME: do we really want to maintain this feature?
18320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18321 ac_sed_extra="$ac_vpsub
18324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18327 s|@configure_input@|$ac_sed_conf_input|;t t
18328 s&@top_builddir@&$ac_top_builddir_sub&;t t
18329 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18330 s&@srcdir@&$ac_srcdir&;t t
18331 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18332 s&@top_srcdir@&$ac_top_srcdir&;t t
18333 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18334 s&@builddir@&$ac_builddir&;t t
18335 s&@abs_builddir@&$ac_abs_builddir&;t t
18336 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18337 s&@INSTALL@&$ac_INSTALL&;t t
18338 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18339 $ac_datarootdir_hack
18341 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18342 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18345 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18346 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18347 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18349 which seems to be undefined. Please make sure it is defined" >&5
18350 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18351 which seems to be undefined. Please make sure it is defined" >&2;}
18353 rm -f "$ac_tmp/stdin"
18355 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18356 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18364 if test x"$ac_file" != x-; then
18366 $as_echo "/* $configure_input */" \
18367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18368 } >"$ac_tmp/config.h" \
18369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18370 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18372 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18375 mv "$ac_tmp/config.h" "$ac_file" \
18376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18379 $as_echo "/* $configure_input */" \
18380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18381 || as_fn_error $? "could not create -" "$LINENO" 5
18383 # Compute "$ac_file"'s index in $config_headers.
18386 for _am_header in $config_headers :; do
18387 case $_am_header in
18388 $_am_arg | $_am_arg:* )
18391 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18394 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18395 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18396 X"$_am_arg" : 'X\(//\)[^/]' \| \
18397 X"$_am_arg" : 'X\(//\)$' \| \
18398 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18399 $as_echo X"$_am_arg" |
18400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18404 /^X\(\/\/\)[^/].*/{
18416 s/.*/./; q'`/stamp-h$_am_stamp_count
18419 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18420 $as_echo "$as_me: executing $ac_file commands" >&6;}
18425 case $ac_file$ac_mode in
18426 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18427 # Older Autoconf quotes --file arguments for eval, but not when files
18428 # are listed without --file. Let's play safe and only enable the eval
18429 # if we detect the quoting.
18430 # TODO: see whether this extra hack can be removed once we start
18431 # requiring Autoconf 2.70 or later.
18432 case $CONFIG_FILES in #(
18434 eval set x "$CONFIG_FILES" ;; #(
18436 set x $CONFIG_FILES ;; #(
18441 # Used to flag and report bootstrapping failures.
18445 # Strip MF so we end up with the name of the file.
18446 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18447 # Check whether this is an Automake generated Makefile which includes
18448 # dependency-tracking related rules and includes.
18449 # Grep'ing the whole file directly is not great: AIX grep has a line
18450 # limit of 2048, but all sed's we know have understand at least 4000.
18451 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18453 am_dirpart=`$as_dirname -- "$am_mf" ||
18454 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18455 X"$am_mf" : 'X\(//\)[^/]' \| \
18456 X"$am_mf" : 'X\(//\)$' \| \
18457 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18458 $as_echo X"$am_mf" |
18459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18463 /^X\(\/\/\)[^/].*/{
18476 am_filepart=`$as_basename -- "$am_mf" ||
18477 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18478 X"$am_mf" : 'X\(//\)$' \| \
18479 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18480 $as_echo X/"$am_mf" |
18481 sed '/^.*\/\([^/][^/]*\)\/*$/{
18494 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18495 && sed -e '/# am--include-marker/d' "$am_filepart" \
18496 | $MAKE -f - am--depfiles" >&5
18497 (cd "$am_dirpart" \
18498 && sed -e '/# am--include-marker/d' "$am_filepart" \
18499 | $MAKE -f - am--depfiles) >&5 2>&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } || am_rc=$?
18504 if test $am_rc -ne 0; then
18505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18507 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18508 for automatic dependency tracking. If GNU make was not used, consider
18509 re-running the configure script with MAKE=\"gmake\" (or whatever is
18510 necessary). You can also try re-running configure with the
18511 '--disable-dependency-tracking' option to at least be able to build
18512 the package (albeit without support for automatic dependency tracking).
18513 See \`config.log' for more details" "$LINENO" 5; }
18515 { am_dirpart=; unset am_dirpart;}
18516 { am_filepart=; unset am_filepart;}
18517 { am_mf=; unset am_mf;}
18518 { am_rc=; unset am_rc;}
18519 rm -f conftest-deps.mk
18522 "po-directories":C)
18523 for ac_file in $CONFIG_FILES; do
18524 # Support "outfile[:infile[:infile...]]"
18526 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18528 # PO directories have a Makefile.in generated from Makefile.in.in.
18529 case "$ac_file" in */Makefile.in)
18530 # Adjust a relative srcdir.
18531 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18532 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18533 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18534 # In autoconf-2.13 it is called $ac_given_srcdir.
18535 # In autoconf-2.50 it is called $srcdir.
18536 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18537 case "$ac_given_srcdir" in
18538 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18539 /*) top_srcdir="$ac_given_srcdir" ;;
18540 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18542 # Treat a directory as a PO directory if and only if it has a
18543 # POTFILES.in file. This allows packages to have multiple PO
18544 # directories under different names or in different locations.
18545 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18546 rm -f "$ac_dir/POTFILES"
18547 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18548 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18549 POMAKEFILEDEPS="POTFILES.in"
18550 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18551 # on $ac_dir but don't depend on user-specified configuration
18553 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18554 # The LINGUAS file contains the set of available languages.
18555 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18556 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18558 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18559 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18560 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18561 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18563 # The set of available languages was given in configure.in.
18564 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18565 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18568 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18569 # Compute UPDATEPOFILES
18570 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18571 # Compute DUMMYPOFILES
18572 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18574 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18575 case "$ac_given_srcdir" in
18577 *) srcdirpre='$(srcdir)/' ;;
18583 for lang in $ALL_LINGUAS; do
18584 POFILES="$POFILES $srcdirpre$lang.po"
18585 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18586 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18587 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18589 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18590 # environment variable.
18592 if test -n "$ALL_LINGUAS"; then
18593 for presentlang in $ALL_LINGUAS; do
18595 if test "%UNSET%" != "$LINGUAS"; then
18596 desiredlanguages="$LINGUAS"
18598 desiredlanguages="$ALL_LINGUAS"
18600 for desiredlang in $desiredlanguages; do
18601 # Use the presentlang catalog if desiredlang is
18602 # a. equal to presentlang, or
18603 # b. a variant of presentlang (because in this case,
18604 # presentlang can be used as a fallback for messages
18605 # which are not translated in the desiredlang catalog).
18606 case "$desiredlang" in
18607 "$presentlang"*) useit=yes;;
18610 if test $useit = yes; then
18611 INST_LINGUAS="$INST_LINGUAS $presentlang"
18616 if test -n "$INST_LINGUAS"; then
18617 for lang in $INST_LINGUAS; do
18618 CATALOGS="$CATALOGS $lang.gmo"
18621 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18622 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"
18623 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18624 if test -f "$f"; then
18626 *.orig | *.bak | *~) ;;
18627 *) cat "$f" >> "$ac_dir/Makefile" ;;
18642 ac_clean_files=$ac_clean_files_save
18644 test $ac_write_fail = 0 ||
18645 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18648 # configure is writing to config.log, and then calls config.status.
18649 # config.status does its own redirection, appending to config.log.
18650 # Unfortunately, on DOS this fails, as config.log is still kept open
18651 # by configure, so config.status won't be able to write to it; its
18652 # output is simply discarded. So we exec the FD to /dev/null,
18653 # effectively closing config.log, so it can be properly (re)opened and
18654 # appended to by config.status. When coming back to configure, we
18655 # need to make the FD available again.
18656 if test "$no_create" != yes; then
18658 ac_config_status_args=
18659 test "$silent" = yes &&
18660 ac_config_status_args="$ac_config_status_args --quiet"
18662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18665 # would make configure fail if this is the last instruction.
18666 $ac_cs_success || as_fn_exit 1
18668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18675 if test "$build_tpm2d" = "yes"; then
18676 show_tss_type="($have_libtss)"
18680 GnuPG v${VERSION} has been configured as follows:
18682 Revision: 9470d0338 (38000)
18683 Platform: $PRINTABLE_OS_NAME ($host)
18685 OpenPGP: $build_gpg
18686 S/MIME: $build_gpgsm
18687 Agent: $build_agent
18688 Smartcard: $build_scdaemon $build_scdaemon_extra
18689 TPM: $build_tpm2d $show_tss_type
18691 Dirmngr: $build_dirmngr
18692 Keyboxd: $build_keyboxd
18693 Gpgtar: $build_gpgtar
18694 WKS tools: $build_wks_tools
18696 Protect tool: $show_gnupg_protect_tool_pgm
18697 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18698 Default agent: $show_gnupg_agent_pgm
18699 Default pinentry: $show_gnupg_pinentry_pgm
18700 Default scdaemon: $show_gnupg_scdaemon_pgm
18701 Default keyboxd: $show_gnupg_keyboxd_pgm
18702 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18703 Default dirmngr: $show_gnupg_dirmngr_pgm
18705 Dirmngr auto start: $dirmngr_auto_start
18706 Readline support: $gnupg_cv_have_readline
18707 LDAP support: $gnupg_have_ldap
18708 TLS support: $use_tls_library
18709 TOFU support: $use_tofu
18710 Tor support: $show_tor_support
18712 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18714 Warning: TPM support is compiled in but no software TPM
18715 for testing was discovered. TPM tests are disabled
18719 if test "x${gpg_config_script_warn}" != x; then
18721 Warning: Mismatches between the target platform and the
18722 to be used libraries have been detected for:
18723 ${gpg_config_script_warn}
18724 Please check above for more warning messages.
18728 if test "${build_gpg}" != "yes"; then
18730 Warning: The component "gpg" is used by other components as
18731 well as for the test suite. You have disabled
18732 this component and thus other things won't work.
18736 if test "${run_tests}" != "yes"; then
18738 Warning: The use of the test suite has been disabled!
18739 This is in almost all cases a bad idea. Take care.