2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.4.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.4.3'
584 PACKAGE_STRING='gnupg 2.4.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
687 BUILD_INCLUDED_LIBINTL
694 XGETTEXT_EXTRA_OPTIONS
702 GETTEXT_MACRO_VERSION
746 HAVE_ANDROID_SYSTEM_FALSE
747 HAVE_ANDROID_SYSTEM_TRUE
748 HAVE_W32_SYSTEM_FALSE
750 USE_SIMPLE_GETTEXT_FALSE
751 USE_SIMPLE_GETTEXT_TRUE
752 HAVE_DOSISH_SYSTEM_FALSE
753 HAVE_DOSISH_SYSTEM_TRUE
758 AWK_HEX_NUMBER_OPTION
769 MAINTAINER_MODE_FALSE
775 GNUPG_DIRMNGR_LDAP_PGM_FALSE
776 GNUPG_DIRMNGR_LDAP_PGM_TRUE
777 GNUPG_DIRMNGR_LDAP_PGM
778 GNUPG_PROTECT_TOOL_PGM_FALSE
779 GNUPG_PROTECT_TOOL_PGM_TRUE
780 GNUPG_PROTECT_TOOL_PGM
781 GNUPG_KEYBOXD_PGM_FALSE
782 GNUPG_KEYBOXD_PGM_TRUE
784 GNUPG_DIRMNGR_PGM_FALSE
785 GNUPG_DIRMNGR_PGM_TRUE
787 GNUPG_TPM2DAEMON_PGM_FALSE
788 GNUPG_TPM2DAEMON_PGM_TRUE
790 GNUPG_SCDAEMON_PGM_FALSE
791 GNUPG_SCDAEMON_PGM_TRUE
793 GNUPG_PINENTRY_PGM_FALSE
794 GNUPG_PINENTRY_PGM_TRUE
796 GNUPG_AGENT_PGM_FALSE
839 INSTALL_STRIP_PROGRAM
882 program_transform_name
896 enable_option_checking
898 enable_dependency_tracking
914 with_protect_tool_pgm
915 with_dirmngr_ldap_pgm
917 enable_selinux_support
919 with_agent_s2k_calibration
934 enable_gpg_camellia128
935 enable_gpg_camellia192
936 enable_gpg_camellia256
951 enable_dirmngr_auto_start
952 enable_maintainer_mode
954 with_libgpg_error_prefix
955 with_gpg_error_prefix
956 with_libgcrypt_prefix
957 with_libassuan_prefix
966 with_default_trust_store_file
985 enable_gnupg_builddir_envvar
986 enable_run_gnupg_user_socket
987 enable_build_timestamp
989 ac_precious_vars='build_alias
1010 # Initialize some variables set by options.
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1024 program_transform_name=s,x,x,
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 runstatedir='${localstatedir}/run'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\$ac_option
1071 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1082 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1084 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1085 bindir=$ac_optarg ;;
1087 -build | --build | --buil | --bui | --bu)
1088 ac_prev=build_alias ;;
1089 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1090 build_alias=$ac_optarg ;;
1092 -cache-file | --cache-file | --cache-fil | --cache-fi \
1093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1094 ac_prev=cache_file ;;
1095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1097 cache_file=$ac_optarg ;;
1099 --config-cache | -C)
1100 cache_file=config.cache ;;
1102 -datadir | --datadir | --datadi | --datad)
1104 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1105 datadir=$ac_optarg ;;
1107 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1108 | --dataroo | --dataro | --datar)
1109 ac_prev=datarootdir ;;
1110 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1111 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1112 datarootdir=$ac_optarg ;;
1114 -disable-* | --disable-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error $? "invalid feature name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_$ac_useropt"
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1128 eval enable_$ac_useropt=no ;;
1130 -docdir | --docdir | --docdi | --doc | --do)
1132 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1133 docdir=$ac_optarg ;;
1135 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1137 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1138 dvidir=$ac_optarg ;;
1140 -enable-* | --enable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval enable_$ac_useropt=\$ac_optarg ;;
1156 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1157 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1158 | --exec | --exe | --ex)
1159 ac_prev=exec_prefix ;;
1160 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1161 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1162 | --exec=* | --exe=* | --ex=*)
1163 exec_prefix=$ac_optarg ;;
1165 -gas | --gas | --ga | --g)
1166 # Obsolete; use --with-gas.
1169 -help | --help | --hel | --he | -h)
1170 ac_init_help=long ;;
1171 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1172 ac_init_help=recursive ;;
1173 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1174 ac_init_help=short ;;
1176 -host | --host | --hos | --ho)
1177 ac_prev=host_alias ;;
1178 -host=* | --host=* | --hos=* | --ho=*)
1179 host_alias=$ac_optarg ;;
1181 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1183 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1185 htmldir=$ac_optarg ;;
1187 -includedir | --includedir | --includedi | --included | --include \
1188 | --includ | --inclu | --incl | --inc)
1189 ac_prev=includedir ;;
1190 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1191 | --includ=* | --inclu=* | --incl=* | --inc=*)
1192 includedir=$ac_optarg ;;
1194 -infodir | --infodir | --infodi | --infod | --info | --inf)
1196 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1197 infodir=$ac_optarg ;;
1199 -libdir | --libdir | --libdi | --libd)
1201 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1202 libdir=$ac_optarg ;;
1204 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1205 | --libexe | --libex | --libe)
1206 ac_prev=libexecdir ;;
1207 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1208 | --libexe=* | --libex=* | --libe=*)
1209 libexecdir=$ac_optarg ;;
1211 -localedir | --localedir | --localedi | --localed | --locale)
1212 ac_prev=localedir ;;
1213 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1214 localedir=$ac_optarg ;;
1216 -localstatedir | --localstatedir | --localstatedi | --localstated \
1217 | --localstate | --localstat | --localsta | --localst | --locals)
1218 ac_prev=localstatedir ;;
1219 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1220 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1221 localstatedir=$ac_optarg ;;
1223 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1225 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1226 mandir=$ac_optarg ;;
1228 -nfp | --nfp | --nf)
1229 # Obsolete; use --without-fp.
1232 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1233 | --no-cr | --no-c | -n)
1236 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1237 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1240 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1241 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1242 | --oldin | --oldi | --old | --ol | --o)
1243 ac_prev=oldincludedir ;;
1244 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1245 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1246 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1247 oldincludedir=$ac_optarg ;;
1249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1252 prefix=$ac_optarg ;;
1254 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1255 | --program-pre | --program-pr | --program-p)
1256 ac_prev=program_prefix ;;
1257 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1258 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1259 program_prefix=$ac_optarg ;;
1261 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1262 | --program-suf | --program-su | --program-s)
1263 ac_prev=program_suffix ;;
1264 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1265 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1266 program_suffix=$ac_optarg ;;
1268 -program-transform-name | --program-transform-name \
1269 | --program-transform-nam | --program-transform-na \
1270 | --program-transform-n | --program-transform- \
1271 | --program-transform | --program-transfor \
1272 | --program-transfo | --program-transf \
1273 | --program-trans | --program-tran \
1274 | --progr-tra | --program-tr | --program-t)
1275 ac_prev=program_transform_name ;;
1276 -program-transform-name=* | --program-transform-name=* \
1277 | --program-transform-nam=* | --program-transform-na=* \
1278 | --program-transform-n=* | --program-transform-=* \
1279 | --program-transform=* | --program-transfor=* \
1280 | --program-transfo=* | --program-transf=* \
1281 | --program-trans=* | --program-tran=* \
1282 | --progr-tra=* | --program-tr=* | --program-t=*)
1283 program_transform_name=$ac_optarg ;;
1285 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1287 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1288 pdfdir=$ac_optarg ;;
1290 -psdir | --psdir | --psdi | --psd | --ps)
1292 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1296 | -silent | --silent | --silen | --sile | --sil)
1299 -runstatedir | --runstatedir | --runstatedi | --runstated \
1300 | --runstate | --runstat | --runsta | --runst | --runs \
1301 | --run | --ru | --r)
1302 ac_prev=runstatedir ;;
1303 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1304 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1305 | --run=* | --ru=* | --r=*)
1306 runstatedir=$ac_optarg ;;
1308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1312 sbindir=$ac_optarg ;;
1314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1316 | --sharedst | --shareds | --shared | --share | --shar \
1318 ac_prev=sharedstatedir ;;
1319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1323 sharedstatedir=$ac_optarg ;;
1325 -site | --site | --sit)
1327 -site=* | --site=* | --sit=*)
1330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1333 srcdir=$ac_optarg ;;
1335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1336 | --syscon | --sysco | --sysc | --sys | --sy)
1337 ac_prev=sysconfdir ;;
1338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1340 sysconfdir=$ac_optarg ;;
1342 -target | --target | --targe | --targ | --tar | --ta | --t)
1343 ac_prev=target_alias ;;
1344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1345 target_alias=$ac_optarg ;;
1347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1350 -version | --version | --versio | --versi | --vers | -V)
1351 ac_init_version=: ;;
1354 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357 as_fn_error $? "invalid package name: $ac_useropt"
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1367 eval with_$ac_useropt=\$ac_optarg ;;
1369 -without-* | --without-*)
1370 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1373 as_fn_error $? "invalid package name: $ac_useropt"
1374 ac_useropt_orig=$ac_useropt
1375 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1376 case $ac_user_opts in
1380 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1381 ac_unrecognized_sep=', ';;
1383 eval with_$ac_useropt=no ;;
1386 # Obsolete; use --with-x.
1389 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1390 | --x-incl | --x-inc | --x-in | --x-i)
1391 ac_prev=x_includes ;;
1392 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1393 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1394 x_includes=$ac_optarg ;;
1396 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1397 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1398 ac_prev=x_libraries ;;
1399 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1400 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1401 x_libraries=$ac_optarg ;;
1403 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1404 Try \`$0 --help' for more information"
1408 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1409 # Reject names that are not valid shell variable names.
1410 case $ac_envvar in #(
1411 '' | [0-9]* | *[!_$as_cr_alnum]* )
1412 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1414 eval $ac_envvar=\$ac_optarg
1415 export $ac_envvar ;;
1418 # FIXME: should be removed in autoconf 3.0.
1419 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1420 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1421 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1422 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1428 if test -n "$ac_prev"; then
1429 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1430 as_fn_error $? "missing argument to $ac_option"
1433 if test -n "$ac_unrecognized_opts"; then
1434 case $enable_option_checking in
1436 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1437 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1441 # Check all directory arguments for consistency.
1442 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1443 datadir sysconfdir sharedstatedir localstatedir includedir \
1444 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1445 libdir localedir mandir runstatedir
1447 eval ac_val=\$$ac_var
1448 # Remove trailing slashes.
1451 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1452 eval $ac_var=\$ac_val;;
1454 # Be sure to have absolute directory names.
1456 [\\/$]* | ?:[\\/]* ) continue;;
1457 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1459 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1462 # There might be people who depend on the old broken behavior: `$host'
1463 # used to hold the argument of --host etc.
1464 # FIXME: To remove some day.
1467 target=$target_alias
1469 # FIXME: To remove some day.
1470 if test "x$host_alias" != x; then
1471 if test "x$build_alias" = x; then
1472 cross_compiling=maybe
1473 elif test "x$build_alias" != "x$host_alias"; then
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1481 test "$silent" = yes && exec 6>/dev/null
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487 as_fn_error $? "working directory cannot be determined"
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489 as_fn_error $? "pwd does not report name of working directory"
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494 ac_srcdir_defaulted=yes
1495 # Try the directory containing this script, then the parent directory.
1496 ac_confdir=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498 X"$as_myself" : 'X\(//\)[^/]' \| \
1499 X"$as_myself" : 'X\(//\)$' \| \
1500 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1520 if test ! -r "$srcdir/$ac_unique_file"; then
1524 ac_srcdir_defaulted=no
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 for ac_var in $ac_precious_vars; do
1545 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_${ac_var}_value=\$${ac_var}
1547 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1552 # Report the --help message.
1554 if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1558 \`configure' configures gnupg 2.4.3 to adapt to many kinds of systems.
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE. See below for descriptions of some of the useful variables.
1565 Defaults for the options are specified in brackets.
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking ...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1578 Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1589 For better control, use the options below.
1591 Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1617 --program-prefix=PREFIX prepend PREFIX to installed program names
1618 --program-suffix=SUFFIX append SUFFIX to installed program names
1619 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1622 --build=BUILD configure for building on BUILD [guessed]
1623 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1627 if test -n "$ac_init_help"; then
1628 case $ac_init_help in
1629 short | recursive ) echo "Configuration of gnupg 2.4.3:";;
1634 --disable-option-checking ignore unrecognized --enable/--with options
1635 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1636 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1637 --enable-silent-rules less verbose build output (undo: "make V=1")
1638 --disable-silent-rules verbose build output (undo: "make V=0")
1639 --enable-dependency-tracking
1640 do not reject slow dependency extractors
1641 --disable-dependency-tracking
1642 speeds up one-time build
1643 --disable-gpgsm do not build the gpgsm program
1644 --disable-scdaemon do not build the scdaemon program
1645 --enable-g13 build the g13 program
1646 --disable-dirmngr do not build the dirmngr program
1647 --disable-keyboxd do not build the keyboxd program
1648 --disable-tpm2d do not build the tpm2d program
1649 --disable-doc do not build the doc program
1650 --disable-gpgtar do not build the gpgtar program
1651 --disable-wks-tools do not build the wks-tools program
1652 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1653 --enable-selinux-support
1654 enable SELinux support
1655 --enable-large-secmem allocate extra secure memory
1656 --disable-trust-models disable all trust models except "always"
1657 --disable-tofu disable the TOFU trust model
1658 --disable-libdns do not build with libdns support
1659 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1660 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1661 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1662 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1663 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1664 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1665 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1666 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1667 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1668 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1669 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1670 --disable-gpg-camellia128
1671 disable the CAMELLIA128 cipher algorithm in gpg
1672 --disable-gpg-camellia192
1673 disable the CAMELLIA192 cipher algorithm in gpg
1674 --disable-gpg-camellia256
1675 disable the CAMELLIA256 cipher algorithm in gpg
1676 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1677 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1678 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1679 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1680 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1681 --disable-zip disable the ZIP and ZLIB compression algorithm
1682 --disable-bzip2 disable the BZIP2 compression algorithm
1683 --disable-exec disable all external program execution
1684 --disable-photo-viewers disable photo ID viewers
1685 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1686 --disable-card-support disable smartcard support
1687 --disable-ccid-driver disable the internal CCID driver
1688 --disable-dirmngr-auto-start
1689 disable auto starting of the dirmngr
1690 --enable-maintainer-mode
1691 enable make rules and dependencies not useful (and
1692 sometimes confusing) to the casual installer
1693 --disable-largefile omit support for large files
1694 --disable-sqlite disable the use of SQLITE
1695 --enable-npth-debug build with debug version of npth
1696 --disable-ntbtls disable the use of NTBTLS as TLS library
1697 --disable-gnutls disable GNUTLS as fallback TLS library
1698 --disable-ldap disable LDAP support
1699 --disable-rpath do not hardcode runtime library paths
1700 --disable-nls do not use Native Language Support
1701 --disable-endian-check disable the endian check and trust the OS provided
1703 --disable-optimization disable compiler optimization
1704 --enable-log-clock enable log_clock timestamps
1705 --enable-werror append -Werror to CFLAGS
1706 --enable-all-tests let "make check" run all tests
1707 --disable-tests do not run any tests
1709 --enable-run-gnupg-user-socket
1710 try /run/gnupg/user for sockets prior to /run/user
1711 --enable-build-timestamp
1712 set an explicit build timestamp for reproducibility.
1713 (default is the current time in ISO-8601 format)
1716 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1717 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1718 --with-agent-pgm=PATH Use PATH as the default for the agent)
1719 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1720 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1721 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1722 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1723 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1724 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1725 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1726 --with-agent-s2k-calibration=MSEC
1727 calibrate passphrase stretching (s2k) to MSEC
1729 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1730 --with-capabilities use linux capabilities default=no
1731 --with-libgpg-error-prefix=PFX
1732 prefix where GPG Error is installed (optional)
1734 --with-libgcrypt-prefix=PFX
1735 prefix where LIBGCRYPT is installed (optional)
1736 --with-libassuan-prefix=PFX
1737 prefix where LIBASSUAN is installed (optional)
1738 --with-libksba-prefix=PFX
1739 prefix where KSBA is installed (optional)
1740 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1741 --with-ntbtls-prefix=PFX
1742 prefix where NTBTLS is installed (optional)
1743 --with-default-trust-store-file=FILE
1744 Use FILE as system trust store
1745 --with-ldap=DIR look for the LDAP library in DIR
1746 --with-mailprog=NAME use "NAME -t" for mail transport
1747 --with-gnu-ld assume the C compiler uses GNU ld default=no
1748 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1749 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1750 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1751 --without-libintl-prefix don't search for libintl in includedir and libdir
1752 --with-zlib=DIR use libz in DIR
1753 --with-bzip2=DIR look for bzip2 in DIR
1754 --with-readline=DIR look for the readline library in DIR
1755 --with-tss=TSS use the specified TPM Software Stack (ibm, intel, or
1758 Some influential environment variables:
1759 CC C compiler command
1760 CFLAGS C compiler flags
1761 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1762 nonstandard directory <lib dir>
1763 LIBS libraries to pass to the linker, e.g. -l<library>
1764 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1765 you have headers in a nonstandard directory <include dir>
1767 SYSROOT locate config scripts also below that directory
1768 YAT2M tool to convert texi to man pages
1770 build system C compiler
1771 PKG_CONFIG path to pkg-config utility
1773 directories to add to pkg-config's search path
1775 path overriding pkg-config's built-in search path
1777 C compiler flags for SQLITE3, overriding pkg-config
1779 linker flags for SQLITE3, overriding pkg-config
1781 C compiler flags for LIBGNUTLS, overriding pkg-config
1783 linker flags for LIBGNUTLS, overriding pkg-config
1785 Use these variables to override the choices made by `configure' or to help
1786 it to find libraries and programs with nonstandard names/locations.
1788 Report bugs to <https://bugs.gnupg.org>.
1793 if test "$ac_init_help" = "recursive"; then
1794 # If there are subdirs, report their specific --help.
1795 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1796 test -d "$ac_dir" ||
1797 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1805 # A ".." for each directory in $ac_dir_suffix.
1806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1807 case $ac_top_builddir_sub in
1808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812 ac_abs_top_builddir=$ac_pwd
1813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1814 # for backward compatibility:
1815 ac_top_builddir=$ac_top_build_prefix
1818 .) # We are building in place.
1820 ac_top_srcdir=$ac_top_builddir_sub
1821 ac_abs_top_srcdir=$ac_pwd ;;
1822 [\\/]* | ?:[\\/]* ) # Absolute name.
1823 ac_srcdir=$srcdir$ac_dir_suffix;
1824 ac_top_srcdir=$srcdir
1825 ac_abs_top_srcdir=$srcdir ;;
1827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1828 ac_top_srcdir=$ac_top_build_prefix$srcdir
1829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1833 cd "$ac_dir" || { ac_status=$?; continue; }
1834 # Check for guested configure.
1835 if test -f "$ac_srcdir/configure.gnu"; then
1837 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1838 elif test -f "$ac_srcdir/configure"; then
1840 $SHELL "$ac_srcdir/configure" --help=recursive
1842 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1844 cd "$ac_pwd" || { ac_status=$?; break; }
1848 test -n "$ac_init_help" && exit $ac_status
1849 if $ac_init_version; then
1851 gnupg configure 2.4.3
1852 generated by GNU Autoconf 2.69
1854 Copyright (C) 2012 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1861 ## ------------------------ ##
1862 ## Autoconf initialization. ##
1863 ## ------------------------ ##
1865 # ac_fn_c_try_compile LINENO
1866 # --------------------------
1867 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext
1872 if { { ac_try="$ac_compile"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_compile") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest.$ac_objext; then :
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_c_try_compile
1903 # ac_fn_c_try_cpp LINENO
1904 # ----------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1945 ac_fn_c_check_header_mongrel ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1969 ac_header_compiler=no
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1985 ac_header_preproc=no
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ( $as_echo "## ------------------------------------- ##
2011 ## Report this to https://bugs.gnupg.org ##
2012 ## ------------------------------------- ##"
2013 ) | sed "s/^/$as_me: WARNING: /" >&2
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 eval "$3=\$ac_header_compiler"
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_header_mongrel
2031 # ac_fn_c_try_run LINENO
2032 # ----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2034 # that executables *can* be run.
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if { { ac_try="$ac_link"
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>&5
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2049 { { case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_try") 2>&5
2057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; }; }; then :
2061 $as_echo "$as_me: program exited with status $ac_status" >&5
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 ac_retval=$ac_status
2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 as_fn_set_status $ac_retval
2073 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists and can be compiled using the include files in
2076 # INCLUDES, setting the cache variable VAR accordingly.
2077 ac_fn_c_check_header_compile ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2090 if ac_fn_c_try_compile "$LINENO"; then :
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_header_compile
2104 # ac_fn_c_try_link LINENO
2105 # -----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext conftest$ac_exeext
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>conftest.err
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest$ac_exeext && {
2130 test "$cross_compiling" = yes ||
2131 test -x conftest$ac_exeext
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142 # interfere with the next link command; also delete a directory that is
2143 # left behind by Apple's compiler. We do this before executing the actions.
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_c_try_link
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2165 #define $2 innocuous_$2
2167 /* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char $2 (); below.
2169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170 <limits.h> exists even on freestanding compilers. */
2173 # include <limits.h>
2175 # include <assert.h>
2180 /* Override any GCC internal prototype to avoid an error.
2181 Use char because int might match the return type of a GCC
2182 builtin and then its argument prototype would still apply. */
2187 /* The GNU C library defines this for functions which it implements
2188 to always fail with ENOSYS. Some functions are actually named
2189 something starting with __ and the normal name is an alias. */
2190 #if defined __stub_$2 || defined __stub___$2
2202 if ac_fn_c_try_link "$LINENO"; then :
2207 rm -f core conftest.err conftest.$ac_objext \
2208 conftest$ac_exeext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_func
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if eval \${$3+:} false; then :
2227 $as_echo_n "(cached) " >&6
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2255 if ac_fn_c_try_compile "$LINENO"; then :
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 } # ac_fn_c_check_type
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2275 ac_fn_c_check_decl ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 as_decl_name=`echo $2|sed 's/ *(.*//'`
2279 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 #ifndef $as_decl_name
2293 (void) $as_decl_use;
2295 (void) $as_decl_name;
2303 if ac_fn_c_try_compile "$LINENO"; then :
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 } # ac_fn_c_check_decl
2317 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2318 # --------------------------------------------
2319 # Tries to find the compile-time value of EXPR in a program that includes
2320 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2322 ac_fn_c_compute_int ()
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 if test "$cross_compiling" = yes; then
2326 # Depending upon the size, compute the lo and hi bounds.
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2333 static int test_array [1 - 2 * !(($2) >= 0)];
2335 return test_array [0];
2341 if ac_fn_c_try_compile "$LINENO"; then :
2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2345 /* end confdefs.h. */
2350 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2352 return test_array [0];
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359 ac_hi=$ac_mid; break
2361 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2362 if test $ac_lo -le $ac_mid; then
2366 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2377 static int test_array [1 - 2 * !(($2) < 0)];
2379 return test_array [0];
2385 if ac_fn_c_try_compile "$LINENO"; then :
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2394 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2396 return test_array [0];
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403 ac_lo=$ac_mid; break
2405 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2406 if test $ac_mid -le $ac_hi; then
2410 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 # Binary search between lo and hi bounds.
2421 while test "x$ac_lo" != "x$ac_hi"; do
2422 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2429 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2431 return test_array [0];
2437 if ac_fn_c_try_compile "$LINENO"; then :
2440 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2452 static long int longval () { return $2; }
2453 static unsigned long int ulongval () { return $2; }
2460 FILE *f = fopen ("conftest.val", "w");
2465 long int i = longval ();
2468 fprintf (f, "%ld", i);
2472 unsigned long int i = ulongval ();
2475 fprintf (f, "%lu", i);
2477 /* Do not output a trailing newline, as this causes \r\n confusion
2478 on some platforms. */
2479 return ferror (f) || fclose (f) != 0;
2485 if ac_fn_c_try_run "$LINENO"; then :
2486 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2491 conftest.$ac_objext conftest.beam conftest.$ac_ext
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2498 } # ac_fn_c_compute_int
2500 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2501 # ----------------------------------------------------
2502 # Tries to find if the field MEMBER exists in type AGGR, after including
2503 # INCLUDES, setting cache variable VAR accordingly.
2504 ac_fn_c_check_member ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2508 $as_echo_n "checking for $2.$3... " >&6; }
2509 if eval \${$4+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2525 if ac_fn_c_try_compile "$LINENO"; then :
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2535 if (sizeof ac_aggr.$3)
2541 if ac_fn_c_try_compile "$LINENO"; then :
2546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 } # ac_fn_c_check_member
2556 cat >config.log <<_ACEOF
2557 This file contains any messages produced by compilers while
2558 running configure, to aid debugging if configure makes a mistake.
2560 It was created by gnupg $as_me 2.4.3, which was
2561 generated by GNU Autoconf 2.69. Invocation command line was
2573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 $as_echo "PATH: $as_dir"
2613 # Keep a trace of the command line.
2614 # Strip out --no-create and --no-recursion so they do not pile up.
2615 # Strip out --silent because we don't want to record it for future runs.
2616 # Also quote any args containing shell meta-characters.
2617 # Make two passes to allow for proper duplicate-argument suppression.
2621 ac_must_keep_next=false
2627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2629 | -silent | --silent | --silen | --sile | --sil)
2632 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2635 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2637 as_fn_append ac_configure_args1 " '$ac_arg'"
2638 if test $ac_must_keep_next = true; then
2639 ac_must_keep_next=false # Got value, back to normal.
2642 *=* | --config-cache | -C | -disable-* | --disable-* \
2643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2645 | -with-* | --with-* | -without-* | --without-* | --x)
2646 case "$ac_configure_args0 " in
2647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2650 -* ) ac_must_keep_next=true ;;
2653 as_fn_append ac_configure_args " '$ac_arg'"
2658 { ac_configure_args0=; unset ac_configure_args0;}
2659 { ac_configure_args1=; unset ac_configure_args1;}
2661 # When interrupted or exit'd, cleanup temporary files, and complete
2662 # config.log. We remove comments because anyway the quotes in there
2663 # would cause problems or look ugly.
2664 # WARNING: Use '\'' to represent an apostrophe within the trap.
2665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2666 trap 'exit_status=$?
2667 # Save into config.log some information that might help in debugging.
2671 $as_echo "## ---------------- ##
2672 ## Cache variables. ##
2673 ## ---------------- ##"
2675 # The following way of writing the cache mishandles newlines in values,
2677 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2678 eval ac_val=\$$ac_var
2682 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2683 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2686 _ | IFS | as_nl) ;; #(
2687 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2688 *) { eval $ac_var=; unset $ac_var;} ;;
2693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2694 *${as_nl}ac_space=\ *)
2696 "s/'\''/'\''\\\\'\'''\''/g;
2697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2707 $as_echo "## ----------------- ##
2708 ## Output variables. ##
2709 ## ----------------- ##"
2711 for ac_var in $ac_subst_vars
2713 eval ac_val=\$$ac_var
2715 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2717 $as_echo "$ac_var='\''$ac_val'\''"
2721 if test -n "$ac_subst_files"; then
2722 $as_echo "## ------------------- ##
2723 ## File substitutions. ##
2724 ## ------------------- ##"
2726 for ac_var in $ac_subst_files
2728 eval ac_val=\$$ac_var
2730 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2732 $as_echo "$ac_var='\''$ac_val'\''"
2737 if test -s confdefs.h; then
2738 $as_echo "## ----------- ##
2745 test "$ac_signal" != 0 &&
2746 $as_echo "$as_me: caught signal $ac_signal"
2747 $as_echo "$as_me: exit $exit_status"
2749 rm -f core *.core core.conftest.* &&
2750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2753 for ac_signal in 1 2 13 15; do
2754 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2759 rm -f -r conftest* confdefs.h
2761 $as_echo "/* confdefs.h */" > confdefs.h
2763 # Predefined preprocessor variables.
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_NAME "$PACKAGE_NAME"
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2777 cat >>confdefs.h <<_ACEOF
2778 #define PACKAGE_STRING "$PACKAGE_STRING"
2781 cat >>confdefs.h <<_ACEOF
2782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2785 cat >>confdefs.h <<_ACEOF
2786 #define PACKAGE_URL "$PACKAGE_URL"
2790 # Let the site file select an alternate cache file if it wants to.
2791 # Prefer an explicitly selected file to automatically selected ones.
2794 if test -n "$CONFIG_SITE"; then
2795 # We do not want a PATH search for config.site.
2796 case $CONFIG_SITE in #((
2797 -*) ac_site_file1=./$CONFIG_SITE;;
2798 */*) ac_site_file1=$CONFIG_SITE;;
2799 *) ac_site_file1=./$CONFIG_SITE;;
2801 elif test "x$prefix" != xNONE; then
2802 ac_site_file1=$prefix/share/config.site
2803 ac_site_file2=$prefix/etc/config.site
2805 ac_site_file1=$ac_default_prefix/share/config.site
2806 ac_site_file2=$ac_default_prefix/etc/config.site
2808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2810 test "x$ac_site_file" = xNONE && continue
2811 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2814 sed 's/^/| /' "$ac_site_file" >&5
2816 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2818 as_fn_error $? "failed to load site script $ac_site_file
2819 See \`config.log' for more details" "$LINENO" 5; }
2823 if test -r "$cache_file"; then
2824 # Some versions of bash will fail to source /dev/null (special files
2825 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2826 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2828 $as_echo "$as_me: loading cache $cache_file" >&6;}
2830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2831 *) . "./$cache_file";;
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2836 $as_echo "$as_me: creating cache $cache_file" >&6;}
2840 gt_needs="$gt_needs need-ngettext"
2841 as_fn_append ac_header_list " sys/socket.h"
2842 # Check that the precious variables saved in the cache have kept the same
2844 ac_cache_corrupted=false
2845 for ac_var in $ac_precious_vars; do
2846 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2847 eval ac_new_set=\$ac_env_${ac_var}_set
2848 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2849 eval ac_new_val=\$ac_env_${ac_var}_value
2850 case $ac_old_set,$ac_new_set in
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2853 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2854 ac_cache_corrupted=: ;;
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2857 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2858 ac_cache_corrupted=: ;;
2861 if test "x$ac_old_val" != "x$ac_new_val"; then
2862 # differences in whitespace do not lead to failure.
2863 ac_old_val_w=`echo x $ac_old_val`
2864 ac_new_val_w=`echo x $ac_new_val`
2865 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2867 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2868 ac_cache_corrupted=:
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2871 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2872 eval $ac_var=\$ac_old_val
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2875 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2877 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2880 # Pass precious variables to config.status.
2881 if test "$ac_new_set" = set; then
2883 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 *) ac_arg=$ac_var=$ac_new_val ;;
2886 case " $ac_configure_args " in
2887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2888 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2892 if $ac_cache_corrupted; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2896 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2897 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2899 ## -------------------- ##
2900 ## Main body of script. ##
2901 ## -------------------- ##
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 # When changing the SWDB tag please also adjust the hard coded tags in
2912 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2913 # As well as the source info for the man pages.
2915 cat >>confdefs.h <<_ACEOF
2916 #define GNUPG_SWDB_TAG "gnupg24"
2920 NEED_GPGRT_VERSION=1.46
2922 NEED_LIBGCRYPT_API=1
2923 NEED_LIBGCRYPT_VERSION=1.9.1
2925 NEED_LIBASSUAN_API=2
2926 NEED_LIBASSUAN_VERSION=2.5.0
2929 NEED_KSBA_VERSION=1.6.3
2932 NEED_NTBTLS_VERSION=0.1.0
2935 NEED_NPTH_VERSION=1.2
2938 NEED_GNUTLS_VERSION=3.0
2940 NEED_SQLITE_VERSION=3.27
2942 development_version=no
2943 PACKAGE=$PACKAGE_NAME
2944 PACKAGE_GT=${PACKAGE_NAME}2
2945 VERSION=$PACKAGE_VERSION
2948 for ac_dir in build-aux "$srcdir"/build-aux; do
2949 if test -f "$ac_dir/install-sh"; then
2951 ac_install_sh="$ac_aux_dir/install-sh -c"
2953 elif test -f "$ac_dir/install.sh"; then
2955 ac_install_sh="$ac_aux_dir/install.sh -c"
2957 elif test -f "$ac_dir/shtool"; then
2959 ac_install_sh="$ac_aux_dir/shtool install -c"
2963 if test -z "$ac_aux_dir"; then
2964 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2967 # These three variables are undocumented and unsupported,
2968 # and are intended to be withdrawn in a future Autoconf release.
2969 # They can cause serious problems if a builder's source tree is in a directory
2970 # whose full name contains unusual characters.
2971 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2972 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2973 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2977 ac_config_headers="$ac_config_headers config.h"
2979 am__api_version='1.16'
2981 # Find a good install program. We prefer a C program (faster),
2982 # so one script is as good as another. But avoid the broken or
2983 # incompatible versions:
2984 # SysV /etc/install, /usr/sbin/install
2985 # SunOS /usr/etc/install
2986 # IRIX /sbin/install
2988 # AmigaOS /C/install, which installs bootblocks on floppy discs
2989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2992 # OS/2's system install, which has a completely different semantic
2993 # ./install, which can be erroneously created by make from ./install.sh.
2994 # Reject install programs that cannot install multiple files.
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2997 if test -z "$INSTALL"; then
2998 if ${ac_cv_path_install+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 # Account for people who put trailing slashes in PATH elements.
3007 case $as_dir/ in #((
3008 ./ | .// | /[cC]/* | \
3009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3010 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3013 # OSF1 and SCO ODT 3.0 have their own names for install.
3014 # Don't use installbsd from OSF since it installs stuff as root
3016 for ac_prog in ginstall scoinst install; do
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3019 if test $ac_prog = install &&
3020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3021 # AIX install. It has an incompatible calling convention.
3023 elif test $ac_prog = install &&
3024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3025 # program-specific install script used by HP pwplus--don't use.
3028 rm -rf conftest.one conftest.two conftest.dir
3029 echo one > conftest.one
3030 echo two > conftest.two
3032 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3033 test -s conftest.one && test -s conftest.two &&
3034 test -s conftest.dir/conftest.one &&
3035 test -s conftest.dir/conftest.two
3037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3050 rm -rf conftest.one conftest.two conftest.dir
3053 if test "${ac_cv_path_install+set}" = set; then
3054 INSTALL=$ac_cv_path_install
3056 # As a last resort, use the slow shell script. Don't cache a
3057 # value for INSTALL within a source directory, because that will
3058 # break other packages using the cache if that directory is
3059 # removed, or if the value is a relative name.
3060 INSTALL=$ac_install_sh
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3064 $as_echo "$INSTALL" >&6; }
3066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3067 # It thinks the first close brace ends the variable substitution.
3068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3075 $as_echo_n "checking whether build environment is sane... " >&6; }
3076 # Reject unsafe characters in $srcdir or the absolute working directory
3077 # name. Accept space and tab only in the latter.
3081 *[\\\"\#\$\&\'\`$am_lf]*)
3082 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3085 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3086 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3089 # Do 'set' in a subshell so we don't clobber the current shell's
3090 # arguments. Must try -L first in case configure is actually a
3091 # symlink; some systems play weird games with the mod time of symlinks
3092 # (eg FreeBSD returns the mod time of the symlink's containing
3096 for am_try in 1 2; do
3097 echo "timestamp, slept: $am_has_slept" > conftest.file
3098 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3099 if test "$*" = "X"; then
3101 set X `ls -t "$srcdir/configure" conftest.file`
3103 if test "$*" != "X $srcdir/configure conftest.file" \
3104 && test "$*" != "X conftest.file $srcdir/configure"; then
3106 # If neither matched, then we have a broken ls. This can happen
3107 # if, for instance, CONFIG_SHELL is bash and it inherits a
3108 # broken ls alias from the environment. This has actually
3109 # happened. Such a system could not be considered "sane".
3110 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3111 alias in your environment" "$LINENO" 5
3113 if test "$2" = conftest.file || test $am_try -eq 2; then
3120 test "$2" = conftest.file
3126 as_fn_error $? "newly created file is older than distributed files!
3127 Check your system clock" "$LINENO" 5
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3131 # If we didn't sleep, we still need to ensure time stamps of config.status and
3132 # generated files are strictly newer.
3134 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3141 test "$program_prefix" != NONE &&
3142 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3143 # Use a double $ so make ignores it.
3144 test "$program_suffix" != NONE &&
3145 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3146 # Double any \ or $.
3147 # By default was `s,x,x', remove it if useless.
3148 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3149 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3151 # Expand $ac_aux_dir to an absolute path.
3152 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3154 if test x"${MISSING+set}" != xset; then
3155 MISSING="\${SHELL} '$am_aux_dir/missing'"
3157 # Use eval to expand $SHELL
3158 if eval "$MISSING --is-lightweight"; then
3159 am_missing_run="$MISSING "
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3163 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3166 if test x"${install_sh+set}" != xset; then
3169 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3171 install_sh="\${SHELL} $am_aux_dir/install-sh"
3175 # Installed binaries are usually stripped using 'strip' when the user
3176 # run "make install-strip". However 'strip' might not be the right
3177 # tool to use in cross-compilation environments, therefore Automake
3178 # will honor the 'STRIP' environment variable to overrule this program.
3179 if test "$cross_compiling" != no; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}strip; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_STRIP+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$STRIP"; then
3189 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 STRIP=$ac_cv_prog_STRIP
3209 if test -n "$STRIP"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3211 $as_echo "$STRIP" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$ac_cv_prog_STRIP"; then
3221 # Extract the first word of "strip", so it can be a program name with args.
3222 set dummy strip; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$ac_ct_STRIP"; then
3229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_STRIP="strip"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3249 if test -n "$ac_ct_STRIP"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3251 $as_echo "$ac_ct_STRIP" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3257 if test "x$ac_ct_STRIP" = x; then
3260 case $cross_compiling:$ac_tool_warned in
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3269 STRIP="$ac_cv_prog_STRIP"
3273 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3276 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3277 if test -z "$MKDIR_P"; then
3278 if ${ac_cv_path_mkdir+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3285 test -z "$as_dir" && as_dir=.
3286 for ac_prog in mkdir gmkdir; do
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3289 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3290 'mkdir (GNU coreutils) '* | \
3291 'mkdir (coreutils) '* | \
3292 'mkdir (fileutils) '4.1*)
3293 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3303 test -d ./--version && rmdir ./--version
3304 if test "${ac_cv_path_mkdir+set}" = set; then
3305 MKDIR_P="$ac_cv_path_mkdir -p"
3307 # As a last resort, use the slow shell script. Don't cache a
3308 # value for MKDIR_P within a source directory, because that will
3309 # break other packages using the cache if that directory is
3310 # removed, or if the value is a relative name.
3311 MKDIR_P="$ac_install_sh -d"
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3315 $as_echo "$MKDIR_P" >&6; }
3317 for ac_prog in gawk mawk nawk awk
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_AWK+:} false; then :
3324 $as_echo_n "(cached) " >&6
3326 if test -n "$AWK"; then
3327 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_AWK="$ac_prog"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 if test -n "$AWK"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3349 $as_echo "$AWK" >&6; }
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3356 test -n "$AWK" && break
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3360 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3362 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3363 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 cat >conftest.make <<\_ACEOF
3369 @echo '@@@%%%=$(MAKE)=@@@%%%'
3371 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3372 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3374 eval ac_cv_prog_make_${ac_make}_set=yes;;
3376 eval ac_cv_prog_make_${ac_make}_set=no;;
3380 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3382 $as_echo "yes" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 SET_MAKE="MAKE=${MAKE-make}"
3390 rm -rf .tst 2>/dev/null
3391 mkdir .tst 2>/dev/null
3392 if test -d .tst; then
3397 rmdir .tst 2>/dev/null
3399 # Check whether --enable-silent-rules was given.
3400 if test "${enable_silent_rules+set}" = set; then :
3401 enableval=$enable_silent_rules;
3404 case $enable_silent_rules in # (((
3405 yes) AM_DEFAULT_VERBOSITY=0;;
3406 no) AM_DEFAULT_VERBOSITY=1;;
3407 *) AM_DEFAULT_VERBOSITY=1;;
3409 am_make=${MAKE-make}
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3411 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3412 if ${am_cv_make_support_nested_variables+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if $as_echo 'TRUE=$(BAR$(V))
3421 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3422 am_cv_make_support_nested_variables=yes
3424 am_cv_make_support_nested_variables=no
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3428 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3429 if test $am_cv_make_support_nested_variables = yes; then
3431 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3433 AM_V=$AM_DEFAULT_VERBOSITY
3434 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3438 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3439 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3440 # is not polluted with repeated "-I."
3441 am__isrc=' -I$(srcdir)'
3442 # test to see if srcdir already configured
3443 if test -f $srcdir/config.status; then
3444 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3448 # test whether we have cygpath
3449 if test -z "$CYGPATH_W"; then
3450 if (cygpath --version) >/dev/null 2>/dev/null; then
3451 CYGPATH_W='cygpath -w'
3458 # Define the identity of the package.
3463 cat >>confdefs.h <<_ACEOF
3464 #define PACKAGE "$PACKAGE"
3468 cat >>confdefs.h <<_ACEOF
3469 #define VERSION "$VERSION"
3472 # Some tools Automake needs.
3474 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3477 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3480 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3483 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3486 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3488 # For better backward compatibility. To be removed once Automake 1.9.x
3489 # dies out for good. For more background, see:
3490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3491 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3492 mkdir_p='$(MKDIR_P)'
3494 # We need awk for the "check" target (and possibly the TAP driver). The
3495 # system "awk" is bad on some platforms.
3496 # Always define AMTAR for backward compatibility. Yes, it's still used
3497 # in the wild :-( We should find a proper way to deprecate it ...
3501 # We'll loop over all known methods to create a tar archive until one works.
3502 _am_tools='gnutar pax cpio none'
3504 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3511 # POSIX will say in a future version that running "rm -f" with no argument
3512 # is OK; and we want to be able to make that assumption in our Makefile
3513 # recipes. So use an aggressive probe to check that the usage we want is
3514 # actually supported "in the wild" to an acceptable degree.
3515 # See automake bug#10828.
3516 # To make any issue more visible, cause the running configure to be aborted
3517 # by default if the 'rm' program in use doesn't match our expectations; the
3518 # user can still override this though.
3519 if rm -f && rm -fr && rm -rf; then : OK; else
3523 Your 'rm' program seems unable to run without file operands specified
3524 on the command line, even when the '-f' option is present. This is contrary
3525 to the behaviour of most rm programs out there, and not conforming with
3526 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3528 Please tell bug-automake@gnu.org about your system, including the value
3529 of your $PATH and any error possibly output before this message. This
3530 can help us improve future automake versions.
3533 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3534 echo 'Configuration will proceed anyway, since you have set the' >&2
3535 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3539 Aborting the configuration process, to ensure you take notice of the issue.
3541 You can download and install GNU coreutils to get an 'rm' implementation
3542 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3544 If you want to complete the configuration process using your problematic
3545 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3546 to "yes", and re-run configure.
3549 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3553 # Make sure we can run config.sub.
3554 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3555 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3558 $as_echo_n "checking build system type... " >&6; }
3559 if ${ac_cv_build+:} false; then :
3560 $as_echo_n "(cached) " >&6
3562 ac_build_alias=$build_alias
3563 test "x$ac_build_alias" = x &&
3564 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3565 test "x$ac_build_alias" = x &&
3566 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3568 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3572 $as_echo "$ac_cv_build" >&6; }
3573 case $ac_cv_build in
3575 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3578 ac_save_IFS=$IFS; IFS='-'
3584 # Remember, the first character of IFS is used to create $*,
3585 # except with old shells:
3588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3592 $as_echo_n "checking host system type... " >&6; }
3593 if ${ac_cv_host+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 if test "x$host_alias" = x; then
3597 ac_cv_host=$ac_cv_build
3599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3605 $as_echo "$ac_cv_host" >&6; }
3608 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3611 ac_save_IFS=$IFS; IFS='-'
3617 # Remember, the first character of IFS is used to create $*,
3618 # except with old shells:
3621 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3629 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3631 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3633 if test "$hostname"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3635 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3638 date=`date +%Y%m%d-%H%M%S`
3639 if test "$?" != 0; then
3642 if test "$date"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3644 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3648 DEPDIR="${am__leading_dot}deps"
3650 ac_config_commands="$ac_config_commands depfiles"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3653 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3654 cat > confinc.mk << 'END'
3656 @echo this is the am__doit target >confinc.out
3661 # BSD make does it like this.
3662 echo '.include "confinc.mk" # ignored' > confmf.BSD
3663 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3664 echo 'include confinc.mk # ignored' > confmf.GNU
3666 for s in GNU BSD; do
3667 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3668 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }
3672 case $?:`cat confinc.out 2>/dev/null` in #(
3673 '0:this is the am__doit target') :
3676 am__include='.include' am__quote='"' ;; #(
3678 am__include='include' am__quote='' ;;
3683 if test "$am__include" != "#"; then
3684 _am_result="yes ($s style)"
3688 rm -f confinc.* confmf.*
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3690 $as_echo "${_am_result}" >&6; }
3692 # Check whether --enable-dependency-tracking was given.
3693 if test "${enable_dependency_tracking+set}" = set; then :
3694 enableval=$enable_dependency_tracking;
3697 if test "x$enable_dependency_tracking" != xno; then
3698 am_depcomp="$ac_aux_dir/depcomp"
3702 if test "x$enable_dependency_tracking" != xno; then
3712 ac_cpp='$CPP $CPPFLAGS'
3713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if ${ac_cv_prog_CC+:} false; then :
3722 $as_echo_n "(cached) " >&6
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747 $as_echo "$CC" >&6; }
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 $as_echo "no" >&6; }
3755 if test -z "$ac_cv_prog_CC"; then
3757 # Extract the first word of "gcc", so it can be a program name with args.
3758 set dummy gcc; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CC="gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 $as_echo "$ac_ct_CC" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3793 if test "x$ac_ct_CC" = x; then
3796 case $cross_compiling:$ac_tool_warned in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800 ac_tool_warned=yes ;;
3808 if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}cc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3849 if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851 set dummy cc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3905 if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if ${ac_cv_prog_CC+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3946 test -n "$CC" && break
3949 if test -z "$CC"; then
3951 for ac_prog in cl.exe
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954 set dummy $ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983 $as_echo "$ac_ct_CC" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3990 test -n "$ac_ct_CC" && break
3993 if test "x$ac_ct_CC" = x; then
3996 case $cross_compiling:$ac_tool_warned in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4009 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error $? "no acceptable C compiler found in \$PATH
4012 See \`config.log' for more details" "$LINENO" 5; }
4014 # Provide some information about the compiler.
4015 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018 for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028 if test -s conftest.err; then
4030 ... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
4034 rm -f conftest.er1 conftest.err
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 ac_clean_files_save=$ac_clean_files
4051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4052 # Try to create an executable without -o first, disregard a.out.
4053 # It will help us diagnose broken compilers, and finding out an intuition
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4056 $as_echo_n "checking whether the C compiler works... " >&6; }
4057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4059 # The possible output files:
4060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4063 for ac_file in $ac_files
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4072 if { { ac_try="$ac_link_default"
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078 $as_echo "$ac_try_echo"; } >&5
4079 (eval "$ac_link_default") 2>&5
4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082 test $ac_status = 0; }; then :
4083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4086 # so that the user can short-circuit this test for compilers unknown to
4088 for ac_file in $ac_files ''
4090 test -f "$ac_file" || continue
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4095 # We found the default executable, but exeext='' is most
4099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4103 # We set ac_cv_exeext here because the later test for it is not
4104 # safe: cross compilers may not add the suffix if given an `-o'
4105 # argument, so we may need to know it at that point already.
4106 # Even if this section looks crufty: it has the advantage of
4113 test "$ac_cv_exeext" = no && ac_cv_exeext=
4118 if test -z "$ac_file"; then :
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 $as_echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error 77 "C compiler cannot create executables
4127 See \`config.log' for more details" "$LINENO" 5; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4133 $as_echo_n "checking for C compiler default output file name... " >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4135 $as_echo "$ac_file" >&6; }
4136 ac_exeext=$ac_cv_exeext
4138 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4141 $as_echo_n "checking for suffix of executables... " >&6; }
4142 if { { ac_try="$ac_link"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_link") 2>&5
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }; then :
4153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4155 # work properly (i.e., refer to `conftest.exe'), while it won't with
4157 for ac_file in conftest.exe conftest conftest.*; do
4158 test -f "$ac_file" || continue
4160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4170 See \`config.log' for more details" "$LINENO" 5; }
4172 rm -f conftest conftest$ac_cv_exeext
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4174 $as_echo "$ac_cv_exeext" >&6; }
4176 rm -f conftest.$ac_ext
4177 EXEEXT=$ac_cv_exeext
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4185 FILE *f = fopen ("conftest.out", "w");
4186 return ferror (f) || fclose (f) != 0;
4192 ac_clean_files="$ac_clean_files conftest.out"
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 if test "$cross_compiling" != yes; then
4198 { { ac_try="$ac_link"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205 (eval "$ac_link") 2>&5
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4209 if { ac_try='./conftest$ac_cv_exeext'
4210 { { case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215 $as_echo "$ac_try_echo"; } >&5
4216 (eval "$ac_try") 2>&5
4218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219 test $ac_status = 0; }; }; then
4222 if test "$cross_compiling" = maybe; then
4225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4227 as_fn_error $? "cannot run C compiled programs.
4228 If you meant to cross compile, use \`--host'.
4229 See \`config.log' for more details" "$LINENO" 5; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234 $as_echo "$cross_compiling" >&6; }
4236 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4237 ac_clean_files=$ac_clean_files_save
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4239 $as_echo_n "checking for suffix of object files... " >&6; }
4240 if ${ac_cv_objext+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4254 rm -f conftest.o conftest.obj
4255 if { { ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 $as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_compile") 2>&5
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 for ac_file in conftest.o conftest.obj conftest.*; do
4267 test -f "$ac_file" || continue;
4269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4270 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4275 $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "cannot compute suffix of object files: cannot compile
4281 See \`config.log' for more details" "$LINENO" 5; }
4283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4286 $as_echo "$ac_cv_objext" >&6; }
4287 OBJEXT=$ac_cv_objext
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4290 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4291 if ${ac_cv_c_compiler_gnu+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4308 if ac_fn_c_try_compile "$LINENO"; then :
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4318 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4319 if test $ac_compiler_gnu = yes; then
4324 ac_test_CFLAGS=${CFLAGS+set}
4325 ac_save_CFLAGS=$CFLAGS
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4327 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4328 if ${ac_cv_prog_cc_g+:} false; then :
4329 $as_echo_n "(cached) " >&6
4331 ac_save_c_werror_flag=$ac_c_werror_flag
4332 ac_c_werror_flag=yes
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h. */
4346 if ac_fn_c_try_compile "$LINENO"; then :
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 if ac_fn_c_try_compile "$LINENO"; then :
4364 ac_c_werror_flag=$ac_save_c_werror_flag
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4377 if ac_fn_c_try_compile "$LINENO"; then :
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_c_werror_flag=$ac_save_c_werror_flag
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4388 $as_echo "$ac_cv_prog_cc_g" >&6; }
4389 if test "$ac_test_CFLAGS" = set; then
4390 CFLAGS=$ac_save_CFLAGS
4391 elif test $ac_cv_prog_cc_g = yes; then
4392 if test "$GCC" = yes; then
4398 if test "$GCC" = yes; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4405 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4406 if ${ac_cv_prog_cc_c89+:} false; then :
4407 $as_echo_n "(cached) " >&6
4409 ac_cv_prog_cc_c89=no
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4417 struct buf { int x; };
4418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4419 static char *e (p, i)
4425 static char *f (char * (*g) (char **, int), char **p, ...)
4430 s = g (p, va_arg (v,int));
4435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4436 function prototypes and stuff, but not '\xHH' hex character constants.
4437 These don't provoke an error unfortunately, instead are silently treated
4438 as 'x'. The following induces an error, until -std is added to get
4439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4440 array size at least. It's necessary to write '\x00'==0 to get something
4441 that's true only with -std. */
4442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4445 inside strings and character constants. */
4447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4449 int test (int i, double x);
4450 struct s1 {int (*f) (int a);};
4451 struct s2 {int (*f) (double a);};
4452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4466 CC="$ac_save_CC $ac_arg"
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_prog_cc_c89=$ac_arg
4470 rm -f core conftest.err conftest.$ac_objext
4471 test "x$ac_cv_prog_cc_c89" != "xno" && break
4473 rm -f conftest.$ac_ext
4478 case "x$ac_cv_prog_cc_c89" in
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4481 $as_echo "none needed" >&6; } ;;
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4484 $as_echo "unsupported" >&6; } ;;
4486 CC="$CC $ac_cv_prog_cc_c89"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4490 if test "x$ac_cv_prog_cc_c89" != xno; then :
4495 ac_cpp='$CPP $CPPFLAGS'
4496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501 ac_cpp='$CPP $CPPFLAGS'
4502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4506 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4507 if ${am_cv_prog_cc_c_o+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 # Make sure it works both with $CC and with simple cc.
4522 # Following AC_PROG_CC_C_O, we do the test twice because some
4523 # compilers refuse to overwrite an existing .o file with -o,
4524 # though they will create one.
4525 am_cv_prog_cc_c_o=yes
4527 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4528 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } \
4532 && test -f conftest2.$ac_objext; then
4535 am_cv_prog_cc_c_o=no
4539 rm -f core conftest*
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4543 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4544 if test "$am_cv_prog_cc_c_o" != yes; then
4545 # Losing compiler, so override with the script.
4546 # FIXME: It is wrong to rewrite CC.
4547 # But if we don't then we get into trouble of one sort or another.
4548 # A longer-term fix would be to have automake use am__CC in this case,
4549 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4550 CC="$am_aux_dir/compile $CC"
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 depcc="$CC" am_compiler_list=
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562 $as_echo_n "checking dependency style of $depcc... " >&6; }
4563 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567 # We make a subdir and do the tests there. Otherwise we can end up
4568 # making bogus files that we don't know about and never remove. For
4569 # instance it was reported that on HP-UX the gcc test will end up
4570 # making a dummy file named 'D' -- because '-MD' means "put the output
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4586 am_cv_CC_dependencies_compiler_type=none
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4591 case " $depcc " in #(
4592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607 # Solaris 10 /bin/sh.
4608 echo '/* dummy */' > sub/conftst$i.h
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle '-M -o', and we need to detect this. Also, some Intel
4615 # versions had trouble with output in subdirs.
4616 am__obj=sub/conftest.${OBJEXT-o}
4617 am__minus_obj="-o $am__obj"
4620 # This depmode causes a compiler race in universal mode.
4621 test "$am__universal" = false || continue
4624 # After this tag, mechanisms are not by side-effect, so they'll
4625 # only be used when explicitly requested.
4626 if test "x$enable_dependency_tracking" = xyes; then
4632 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633 # This compiler won't grok '-c -o', but also, the minuso test has
4634 # not run yet. These depmodes are late enough in the game, and
4635 # so weak that their functioning should not be impacted.
4636 am__obj=conftest.${OBJEXT-o}
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=$am__obj \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4659 am_cv_CC_dependencies_compiler_type=$depmode
4668 am_cv_CC_dependencies_compiler_type=none
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4673 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4674 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4677 test "x$enable_dependency_tracking" != xno \
4678 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4680 am__fastdepCC_FALSE='#'
4682 am__fastdepCC_TRUE='#'
4683 am__fastdepCC_FALSE=
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4699 if test -z "$CPP"; then
4700 if ${ac_cv_prog_CPP+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707 for ac_c_preproc_warn_flag in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4718 # include <limits.h>
4720 # include <assert.h>
4724 if ac_fn_c_try_cpp "$LINENO"; then :
4727 # Broken: fails on valid input.
4730 rm -f conftest.err conftest.i conftest.$ac_ext
4732 # OK, works on sane cases. Now check whether nonexistent headers
4733 # can be detected and how.
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #include <ac_nonexistent.h>
4738 if ac_fn_c_try_cpp "$LINENO"; then :
4739 # Broken: success on invalid input.
4742 # Passes both tests.
4746 rm -f conftest.err conftest.i conftest.$ac_ext
4749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4750 rm -f conftest.i conftest.err conftest.$ac_ext
4751 if $ac_preproc_ok; then :
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4764 $as_echo "$CPP" >&6; }
4766 for ac_c_preproc_warn_flag in '' yes
4768 # Use a header file that comes with gcc, so configuring glibc
4769 # with a fresh cross-compiler works.
4770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4771 # <limits.h> exists even on freestanding compilers.
4772 # On the NeXT, cc -E runs the code through the compiler's parser,
4773 # not just through cpp. "Syntax error" is here to catch this case.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 # include <limits.h>
4779 # include <assert.h>
4783 if ac_fn_c_try_cpp "$LINENO"; then :
4786 # Broken: fails on valid input.
4789 rm -f conftest.err conftest.i conftest.$ac_ext
4791 # OK, works on sane cases. Now check whether nonexistent headers
4792 # can be detected and how.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <ac_nonexistent.h>
4797 if ac_fn_c_try_cpp "$LINENO"; then :
4798 # Broken: success on invalid input.
4801 # Passes both tests.
4805 rm -f conftest.err conftest.i conftest.$ac_ext
4808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4809 rm -f conftest.i conftest.err conftest.$ac_ext
4810 if $ac_preproc_ok; then :
4813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4816 See \`config.log' for more details" "$LINENO" 5; }
4820 ac_cpp='$CPP $CPPFLAGS'
4821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4827 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4828 if ${ac_cv_path_GREP+:} false; then :
4829 $as_echo_n "(cached) " >&6
4831 if test -z "$GREP"; then
4832 ac_path_GREP_found=false
4833 # Loop through the user's path and test for each of PROGNAME-LIST
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 test -z "$as_dir" && as_dir=.
4839 for ac_prog in grep ggrep; do
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4842 as_fn_executable_p "$ac_path_GREP" || continue
4843 # Check for GNU ac_path_GREP and select it if it is found.
4844 # Check for GNU $ac_path_GREP
4845 case `"$ac_path_GREP" --version 2>&1` in
4847 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4850 $as_echo_n 0123456789 >"conftest.in"
4853 cat "conftest.in" "conftest.in" >"conftest.tmp"
4854 mv "conftest.tmp" "conftest.in"
4855 cp "conftest.in" "conftest.nl"
4856 $as_echo 'GREP' >> "conftest.nl"
4857 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4859 as_fn_arith $ac_count + 1 && ac_count=$as_val
4860 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4861 # Best one so far, save it but keep looking for a better one
4862 ac_cv_path_GREP="$ac_path_GREP"
4863 ac_path_GREP_max=$ac_count
4865 # 10*(2^10) chars as input seems more than enough
4866 test $ac_count -gt 10 && break
4868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 $ac_path_GREP_found && break 3
4876 if test -z "$ac_cv_path_GREP"; then
4877 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880 ac_cv_path_GREP=$GREP
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4885 $as_echo "$ac_cv_path_GREP" >&6; }
4886 GREP="$ac_cv_path_GREP"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4890 $as_echo_n "checking for egrep... " >&6; }
4891 if ${ac_cv_path_EGREP+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4895 then ac_cv_path_EGREP="$GREP -E"
4897 if test -z "$EGREP"; then
4898 ac_path_EGREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in egrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4908 as_fn_executable_p "$ac_path_EGREP" || continue
4909 # Check for GNU ac_path_EGREP and select it if it is found.
4910 # Check for GNU $ac_path_EGREP
4911 case `"$ac_path_EGREP" --version 2>&1` in
4913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4916 $as_echo_n 0123456789 >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 $as_echo 'EGREP' >> "conftest.nl"
4923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 as_fn_arith $ac_count + 1 && ac_count=$as_val
4926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_EGREP="$ac_path_EGREP"
4929 ac_path_EGREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 $ac_path_EGREP_found && break 3
4942 if test -z "$ac_cv_path_EGREP"; then
4943 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946 ac_cv_path_EGREP=$EGREP
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4952 $as_echo "$ac_cv_path_EGREP" >&6; }
4953 EGREP="$ac_cv_path_EGREP"
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4957 $as_echo_n "checking for ANSI C header files... " >&6; }
4958 if ${ac_cv_header_stdc+:} false; then :
4959 $as_echo_n "(cached) " >&6
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_header_stdc=yes
4979 ac_cv_header_stdc=no
4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 if test $ac_cv_header_stdc = yes; then
4984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4991 $EGREP "memchr" >/dev/null 2>&1; then :
4994 ac_cv_header_stdc=no
5000 if test $ac_cv_header_stdc = yes; then
5001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008 $EGREP "free" >/dev/null 2>&1; then :
5011 ac_cv_header_stdc=no
5017 if test $ac_cv_header_stdc = yes; then
5018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5019 if test "$cross_compiling" = yes; then :
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5026 #if ((' ' & 0x0FF) == 0x020)
5027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5030 # define ISLOWER(c) \
5031 (('a' <= (c) && (c) <= 'i') \
5032 || ('j' <= (c) && (c) <= 'r') \
5033 || ('s' <= (c) && (c) <= 'z'))
5034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5042 for (i = 0; i < 256; i++)
5043 if (XOR (islower (i), ISLOWER (i))
5044 || toupper (i) != TOUPPER (i))
5049 if ac_fn_c_try_run "$LINENO"; then :
5052 ac_cv_header_stdc=no
5054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5055 conftest.$ac_objext conftest.beam conftest.$ac_ext
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5061 $as_echo "$ac_cv_header_stdc" >&6; }
5062 if test $ac_cv_header_stdc = yes; then
5064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5070 inttypes.h stdint.h unistd.h
5072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5076 cat >>confdefs.h <<_ACEOF
5077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5094 if test "$MINIX" = yes; then
5096 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5099 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5102 $as_echo "#define _MINIX 1" >>confdefs.h
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5108 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5109 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5110 $as_echo_n "(cached) " >&6
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 # define __EXTENSIONS__ 1
5116 $ac_includes_default
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_safe_to_define___extensions__=yes
5128 ac_cv_safe_to_define___extensions__=no
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5133 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5134 test $ac_cv_safe_to_define___extensions__ = yes &&
5135 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5137 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5139 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5141 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5143 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5148 # Some status variables.
5159 have_system_resolver=no
5160 gnupg_have_ldap="n/a"
5165 use_trust_models=yes
5169 use_ccid_driver=auto
5170 dirmngr_auto_start=yes
5175 # gpg is a required part and can't be disabled anymore.
5180 # Check whether --enable-gpgsm was given.
5181 if test "${enable_gpgsm+set}" = set; then :
5182 enableval=$enable_gpgsm; build_gpgsm=$enableval
5188 case "$build_gpgsm" in
5192 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5197 # The agent is a required part and can't be disabled anymore.
5202 # Check whether --enable-scdaemon was given.
5203 if test "${enable_scdaemon+set}" = set; then :
5204 enableval=$enable_scdaemon; build_scdaemon=$enableval
5210 case "$build_scdaemon" in
5214 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5222 # Check whether --enable-g13 was given.
5223 if test "${enable_g13+set}" = set; then :
5224 enableval=$enable_g13; build_g13=$enableval
5230 case "$build_g13" in
5234 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5242 # Check whether --enable-dirmngr was given.
5243 if test "${enable_dirmngr+set}" = set; then :
5244 enableval=$enable_dirmngr; build_dirmngr=$enableval
5250 case "$build_dirmngr" in
5254 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5262 # Check whether --enable-keyboxd was given.
5263 if test "${enable_keyboxd+set}" = set; then :
5264 enableval=$enable_keyboxd; build_keyboxd=$enableval
5270 case "$build_keyboxd" in
5274 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5282 # Check whether --enable-tpm2d was given.
5283 if test "${enable_tpm2d+set}" = set; then :
5284 enableval=$enable_tpm2d; build_tpm2d=$enableval
5290 case "$build_tpm2d" in
5294 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5302 # Check whether --enable-doc was given.
5303 if test "${enable_doc+set}" = set; then :
5304 enableval=$enable_doc; build_doc=$enableval
5310 case "$build_doc" in
5314 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5319 # We use gpgtar to unpack test data, hence we always build it. If the
5320 # user opts out, we simply don't install it.
5324 # Check whether --enable-gpgtar was given.
5325 if test "${enable_gpgtar+set}" = set; then :
5326 enableval=$enable_gpgtar; build_gpgtar=$enableval
5332 case "$build_gpgtar" in
5336 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5341 # We also install the gpg-wks-server tool by default but disable it
5342 # later for platforms where it can't be build.
5346 # Check whether --enable-wks-tools was given.
5347 if test "${enable_wks_tools+set}" = set; then :
5348 enableval=$enable_wks_tools; build_wks_tools=$enableval
5354 case "$build_wks_tools" in
5358 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5369 cat >>confdefs.h <<_ACEOF
5370 #define PACKAGE "$PACKAGE"
5374 cat >>confdefs.h <<_ACEOF
5375 #define PACKAGE_GT "$PACKAGE_GT"
5379 cat >>confdefs.h <<_ACEOF
5380 #define VERSION "$VERSION"
5384 cat >>confdefs.h <<_ACEOF
5385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5389 cat >>confdefs.h <<_ACEOF
5390 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5394 cat >>confdefs.h <<_ACEOF
5395 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5399 cat >>confdefs.h <<_ACEOF
5400 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5406 # The default is to use the modules from this package and the few
5407 # other packages in a standard place; i.e where this package gets
5408 # installed. With these options it is possible to override these
5409 # ${prefix} depended values with fixed paths, which can't be replaced
5410 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5412 # Check whether --with-agent-pgm was given.
5413 if test "${with_agent_pgm+set}" = set; then :
5414 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5420 if test -n "$GNUPG_AGENT_PGM"; then
5421 GNUPG_AGENT_PGM_TRUE=
5422 GNUPG_AGENT_PGM_FALSE='#'
5424 GNUPG_AGENT_PGM_TRUE='#'
5425 GNUPG_AGENT_PGM_FALSE=
5428 show_gnupg_agent_pgm="(default)"
5429 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5432 # Check whether --with-pinentry-pgm was given.
5433 if test "${with_pinentry_pgm+set}" = set; then :
5434 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5436 GNUPG_PINENTRY_PGM=""
5440 if test -n "$GNUPG_PINENTRY_PGM"; then
5441 GNUPG_PINENTRY_PGM_TRUE=
5442 GNUPG_PINENTRY_PGM_FALSE='#'
5444 GNUPG_PINENTRY_PGM_TRUE='#'
5445 GNUPG_PINENTRY_PGM_FALSE=
5448 show_gnupg_pinentry_pgm="(default)"
5449 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5453 # Check whether --with-scdaemon-pgm was given.
5454 if test "${with_scdaemon_pgm+set}" = set; then :
5455 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5457 GNUPG_SCDAEMON_PGM=""
5461 if test -n "$GNUPG_SCDAEMON_PGM"; then
5462 GNUPG_SCDAEMON_PGM_TRUE=
5463 GNUPG_SCDAEMON_PGM_FALSE='#'
5465 GNUPG_SCDAEMON_PGM_TRUE='#'
5466 GNUPG_SCDAEMON_PGM_FALSE=
5469 show_gnupg_scdaemon_pgm="(default)"
5470 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5474 # Check whether --with-tpm2daemon-pgm was given.
5475 if test "${with_tpm2daemon_pgm+set}" = set; then :
5476 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5478 GNUPG_TPM2DAEMON_PGM=""
5482 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5483 GNUPG_TPM2DAEMON_PGM_TRUE=
5484 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5486 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5487 GNUPG_TPM2DAEMON_PGM_FALSE=
5490 show_gnupg_tpm2daemon_pgm="(default)"
5491 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5495 # Check whether --with-dirmngr-pgm was given.
5496 if test "${with_dirmngr_pgm+set}" = set; then :
5497 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5499 GNUPG_DIRMNGR_PGM=""
5503 if test -n "$GNUPG_DIRMNGR_PGM"; then
5504 GNUPG_DIRMNGR_PGM_TRUE=
5505 GNUPG_DIRMNGR_PGM_FALSE='#'
5507 GNUPG_DIRMNGR_PGM_TRUE='#'
5508 GNUPG_DIRMNGR_PGM_FALSE=
5511 show_gnupg_dirmngr_pgm="(default)"
5512 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5515 # Check whether --with-keyboxd-pgm was given.
5516 if test "${with_keyboxd_pgm+set}" = set; then :
5517 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5519 GNUPG_KEYBOXD_PGM=""
5523 if test -n "$GNUPG_KEYBOXD_PGM"; then
5524 GNUPG_KEYBOXD_PGM_TRUE=
5525 GNUPG_KEYBOXD_PGM_FALSE='#'
5527 GNUPG_KEYBOXD_PGM_TRUE='#'
5528 GNUPG_KEYBOXD_PGM_FALSE=
5531 show_gnupg_keyboxd_pgm="(default)"
5532 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5535 # Check whether --with-protect-tool-pgm was given.
5536 if test "${with_protect_tool_pgm+set}" = set; then :
5537 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5539 GNUPG_PROTECT_TOOL_PGM=""
5543 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5544 GNUPG_PROTECT_TOOL_PGM_TRUE=
5545 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5547 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5548 GNUPG_PROTECT_TOOL_PGM_FALSE=
5551 show_gnupg_protect_tool_pgm="(default)"
5552 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5553 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5556 # Check whether --with-dirmngr-ldap-pgm was given.
5557 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5558 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5560 GNUPG_DIRMNGR_LDAP_PGM=""
5564 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5565 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5566 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5568 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5569 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5572 show_gnupg_dirmngr_ldap_pgm="(default)"
5573 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5574 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5578 # For a long time gpg 2.x was installed as gpg2. This changed with
5579 # 2.2. This option can be used to install gpg under the name gpg2.
5581 # Check whether --enable-gpg-is-gpg2 was given.
5582 if test "${enable_gpg_is_gpg2+set}" = set; then :
5583 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5586 if test "$gpg_is_gpg2" = "yes"; then
5588 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5591 if test "$gpg_is_gpg2" = "yes"; then
5593 USE_GPG2_HACK_FALSE='#'
5595 USE_GPG2_HACK_TRUE='#'
5596 USE_GPG2_HACK_FALSE=
5601 # SELinux support includes tracking of sensitive files to avoid
5602 # leaking their contents through processing these files by gpg itself
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5604 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5605 # Check whether --enable-selinux-support was given.
5606 if test "${enable_selinux_support+set}" = set; then :
5607 enableval=$enable_selinux_support; selinux_support=$enableval
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5613 $as_echo "$selinux_support" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5617 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5618 # Check whether --enable-large-secmem was given.
5619 if test "${enable_large_secmem+set}" = set; then :
5620 enableval=$enable_large_secmem; large_secmem=$enableval
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5626 $as_echo "$large_secmem" >&6; }
5627 if test "$large_secmem" = yes ; then
5628 SECMEM_BUFFER_SIZE=65536
5630 SECMEM_BUFFER_SIZE=32768
5633 cat >>confdefs.h <<_ACEOF
5634 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5639 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5641 # Check whether --with-agent-s2k-calibration was given.
5642 if test "${with_agent_s2k_calibration+set}" = set; then :
5643 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5645 agent_s2k_calibration=100
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5649 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5651 cat >>confdefs.h <<_ACEOF
5652 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5657 $as_echo_n "checking whether to enable trust models... " >&6; }
5658 # Check whether --enable-trust-models was given.
5659 if test "${enable_trust_models+set}" = set; then :
5660 enableval=$enable_trust_models; use_trust_models=$enableval
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5664 $as_echo "$use_trust_models" >&6; }
5665 if test "$use_trust_models" = no ; then
5667 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5672 $as_echo_n "checking whether to enable TOFU... " >&6; }
5673 # Check whether --enable-tofu was given.
5674 if test "${enable_tofu+set}" = set; then :
5675 enableval=$enable_tofu; use_tofu=$enableval
5677 use_tofu=$use_trust_models
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5681 $as_echo "$use_tofu" >&6; }
5682 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5683 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5687 $as_echo_n "checking whether to enable libdns... " >&6; }
5688 # Check whether --enable-libdns was given.
5689 if test "${enable_libdns+set}" = set; then :
5690 enableval=$enable_libdns; use_libdns=$enableval
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5696 $as_echo "$use_libdns" >&6; }
5697 if test x"$use_libdns" = xyes ; then
5699 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5702 if test "$use_libdns" = yes; then
5704 USE_LIBDNS_FALSE='#'
5713 # Options to disable algorithm
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5717 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5718 # Check whether --enable-gpg-rsa was given.
5719 if test "${enable_gpg_rsa+set}" = set; then :
5720 enableval=$enable_gpg_rsa;
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5726 $as_echo "$enableval" >&6; }
5727 if test x"$enableval" = xyes ; then
5729 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5733 # Elgamal is a MUST algorithm
5734 # DSA is a MUST algorithm
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5736 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5737 # Check whether --enable-gpg-ecdh was given.
5738 if test "${enable_gpg_ecdh+set}" = set; then :
5739 enableval=$enable_gpg_ecdh;
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5745 $as_echo "$enableval" >&6; }
5746 if test x"$enableval" = xyes ; then
5748 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5753 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5754 # Check whether --enable-gpg-ecdsa was given.
5755 if test "${enable_gpg_ecdsa+set}" = set; then :
5756 enableval=$enable_gpg_ecdsa;
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5762 $as_echo "$enableval" >&6; }
5763 if test x"$enableval" = xyes ; then
5765 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5770 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5771 # Check whether --enable-gpg-eddsa was given.
5772 if test "${enable_gpg_eddsa+set}" = set; then :
5773 enableval=$enable_gpg_eddsa;
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5779 $as_echo "$enableval" >&6; }
5780 if test x"$enableval" = xyes ; then
5782 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5788 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5789 # Check whether --enable-gpg-idea was given.
5790 if test "${enable_gpg_idea+set}" = set; then :
5791 enableval=$enable_gpg_idea;
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5797 $as_echo "$enableval" >&6; }
5798 if test x"$enableval" = xyes ; then
5800 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5804 # 3DES is a MUST algorithm
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5806 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5807 # Check whether --enable-gpg-cast5 was given.
5808 if test "${enable_gpg_cast5+set}" = set; then :
5809 enableval=$enable_gpg_cast5;
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5815 $as_echo "$enableval" >&6; }
5816 if test x"$enableval" = xyes ; then
5818 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5823 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5824 # Check whether --enable-gpg-blowfish was given.
5825 if test "${enable_gpg_blowfish+set}" = set; then :
5826 enableval=$enable_gpg_blowfish;
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5832 $as_echo "$enableval" >&6; }
5833 if test x"$enableval" = xyes ; then
5835 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5840 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5841 # Check whether --enable-gpg-aes128 was given.
5842 if test "${enable_gpg_aes128+set}" = set; then :
5843 enableval=$enable_gpg_aes128;
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5849 $as_echo "$enableval" >&6; }
5850 if test x"$enableval" = xyes ; then
5852 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5857 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5858 # Check whether --enable-gpg-aes192 was given.
5859 if test "${enable_gpg_aes192+set}" = set; then :
5860 enableval=$enable_gpg_aes192;
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5866 $as_echo "$enableval" >&6; }
5867 if test x"$enableval" = xyes ; then
5869 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5874 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5875 # Check whether --enable-gpg-aes256 was given.
5876 if test "${enable_gpg_aes256+set}" = set; then :
5877 enableval=$enable_gpg_aes256;
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5883 $as_echo "$enableval" >&6; }
5884 if test x"$enableval" = xyes ; then
5886 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5891 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5892 # Check whether --enable-gpg-twofish was given.
5893 if test "${enable_gpg_twofish+set}" = set; then :
5894 enableval=$enable_gpg_twofish;
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5900 $as_echo "$enableval" >&6; }
5901 if test x"$enableval" = xyes ; then
5903 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5908 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5909 # Check whether --enable-gpg-camellia128 was given.
5910 if test "${enable_gpg_camellia128+set}" = set; then :
5911 enableval=$enable_gpg_camellia128;
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5917 $as_echo "$enableval" >&6; }
5918 if test x"$enableval" = xyes ; then
5920 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5925 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5926 # Check whether --enable-gpg-camellia192 was given.
5927 if test "${enable_gpg_camellia192+set}" = set; then :
5928 enableval=$enable_gpg_camellia192;
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5934 $as_echo "$enableval" >&6; }
5935 if test x"$enableval" = xyes ; then
5937 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5942 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5943 # Check whether --enable-gpg-camellia256 was given.
5944 if test "${enable_gpg_camellia256+set}" = set; then :
5945 enableval=$enable_gpg_camellia256;
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5951 $as_echo "$enableval" >&6; }
5952 if test x"$enableval" = xyes ; then
5954 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5960 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5961 # Check whether --enable-gpg-md5 was given.
5962 if test "${enable_gpg_md5+set}" = set; then :
5963 enableval=$enable_gpg_md5;
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5969 $as_echo "$enableval" >&6; }
5970 if test x"$enableval" = xyes ; then
5972 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5976 # SHA1 is a MUST algorithm
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5978 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5979 # Check whether --enable-gpg-rmd160 was given.
5980 if test "${enable_gpg_rmd160+set}" = set; then :
5981 enableval=$enable_gpg_rmd160;
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5987 $as_echo "$enableval" >&6; }
5988 if test x"$enableval" = xyes ; then
5990 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5995 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5996 # Check whether --enable-gpg-sha224 was given.
5997 if test "${enable_gpg_sha224+set}" = set; then :
5998 enableval=$enable_gpg_sha224;
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6004 $as_echo "$enableval" >&6; }
6005 if test x"$enableval" = xyes ; then
6007 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6011 # SHA256 is a MUST algorithm for GnuPG.
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6013 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6014 # Check whether --enable-gpg-sha384 was given.
6015 if test "${enable_gpg_sha384+set}" = set; then :
6016 enableval=$enable_gpg_sha384;
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6022 $as_echo "$enableval" >&6; }
6023 if test x"$enableval" = xyes ; then
6025 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6030 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6031 # Check whether --enable-gpg-sha512 was given.
6032 if test "${enable_gpg_sha512+set}" = set; then :
6033 enableval=$enable_gpg_sha512;
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6039 $as_echo "$enableval" >&6; }
6040 if test x"$enableval" = xyes ; then
6042 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6048 # Allow disabling of zip support.
6049 # This is in general not a good idea because according to rfc4880 OpenPGP
6050 # implementations SHOULD support ZLIB.
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6052 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6053 # Check whether --enable-zip was given.
6054 if test "${enable_zip+set}" = set; then :
6055 enableval=$enable_zip; use_zip=$enableval
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6059 $as_echo "$use_zip" >&6; }
6061 # Allow disabling of bzib2 support.
6062 # It is defined only after we confirm the library is available later
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6064 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6065 # Check whether --enable-bzip2 was given.
6066 if test "${enable_bzip2+set}" = set; then :
6067 enableval=$enable_bzip2; use_bzip2=$enableval
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6071 $as_echo "$use_bzip2" >&6; }
6073 # Configure option to allow or disallow execution of external
6074 # programs, like a photo viewer.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6076 $as_echo_n "checking whether to enable external program execution... " >&6; }
6077 # Check whether --enable-exec was given.
6078 if test "${enable_exec+set}" = set; then :
6079 enableval=$enable_exec; use_exec=$enableval
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6083 $as_echo "$use_exec" >&6; }
6084 if test "$use_exec" = no ; then
6086 $as_echo "#define NO_EXEC 1" >>confdefs.h
6090 if test "$use_exec" = yes ; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6092 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6093 # Check whether --enable-photo-viewers was given.
6094 if test "${enable_photo_viewers+set}" = set; then :
6095 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6097 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6104 gnupg_cv_enable_photo_viewers=$enableval
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6106 $as_echo "$enableval" >&6; }
6108 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6110 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6112 # Check whether --with-photo-viewer was given.
6113 if test "${with_photo_viewer+set}" = set; then :
6114 withval=$with_photo_viewer; if test "$withval" = yes ; then
6116 elif test "$withval" != no ; then
6118 cat >>confdefs.h <<_ACEOF
6119 #define FIXED_PHOTO_VIEWER "$withval"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6128 $as_echo "$withval" >&6; }
6134 # Check for the key/uid cache size. This can't be zero, but can be
6135 # pretty small on embedded systems. This is used for the gpg part.
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6138 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6139 # Check whether --enable-key-cache was given.
6140 if test "${enable_key_cache+set}" = set; then :
6141 enableval=$enable_key_cache;
6146 if test "$enableval" = "no"; then
6148 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6151 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6152 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6153 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6156 $as_echo "$key_cache_size" >&6; }
6158 cat >>confdefs.h <<_ACEOF
6159 #define PK_UID_CACHE_SIZE $key_cache_size
6166 # Check whether we want to use Linux capabilities
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6169 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6171 # Check whether --with-capabilities was given.
6172 if test "${with_capabilities+set}" = set; then :
6173 withval=$with_capabilities; use_capabilities="$withval"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6179 $as_echo "$use_capabilities" >&6; }
6182 # Check whether to disable the card support
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6184 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6185 # Check whether --enable-card-support was given.
6186 if test "${enable_card_support+set}" = set; then :
6187 enableval=$enable_card_support; card_support=$enableval
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6191 $as_echo "$card_support" >&6; }
6192 if test "$card_support" = yes ; then
6194 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6201 # Allow disabling of internal CCID support.
6202 # It is defined only after we confirm the library is available later
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6205 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6206 # Check whether --enable-ccid-driver was given.
6207 if test "${enable_ccid_driver+set}" = set; then :
6208 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6212 $as_echo "$use_ccid_driver" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6215 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6216 # Check whether --enable-dirmngr-auto-start was given.
6217 if test "${enable_dirmngr_auto_start+set}" = set; then :
6218 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6222 $as_echo "$dirmngr_auto_start" >&6; }
6223 if test "$dirmngr_auto_start" = yes ; then
6225 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6231 # To avoid double inclusion of config.h which might happen at some
6232 # places, we add the usual double inclusion protection at the top of
6238 # Stuff which goes at the bottom of config.h.
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6245 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6246 # Check whether --enable-maintainer-mode was given.
6247 if test "${enable_maintainer_mode+set}" = set; then :
6248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6250 USE_MAINTAINER_MODE=no
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6254 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6255 if test $USE_MAINTAINER_MODE = yes; then
6256 MAINTAINER_MODE_TRUE=
6257 MAINTAINER_MODE_FALSE='#'
6259 MAINTAINER_MODE_TRUE='#'
6260 MAINTAINER_MODE_FALSE=
6263 MAINT=$MAINTAINER_MODE_TRUE
6268 # Checks for programs.
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6270 $as_echo "$as_me: checking for programs" >&6;}
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6272 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6274 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6275 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6276 $as_echo_n "(cached) " >&6
6278 cat >conftest.make <<\_ACEOF
6281 @echo '@@@%%%=$(MAKE)=@@@%%%'
6283 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6284 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6286 eval ac_cv_prog_make_${ac_make}_set=yes;;
6288 eval ac_cv_prog_make_${ac_make}_set=no;;
6292 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6294 $as_echo "yes" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 SET_MAKE="MAKE=${MAKE-make}"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6303 $as_echo_n "checking whether build environment is sane... " >&6; }
6304 # Reject unsafe characters in $srcdir or the absolute working directory
6305 # name. Accept space and tab only in the latter.
6309 *[\\\"\#\$\&\'\`$am_lf]*)
6310 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6313 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6314 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6317 # Do 'set' in a subshell so we don't clobber the current shell's
6318 # arguments. Must try -L first in case configure is actually a
6319 # symlink; some systems play weird games with the mod time of symlinks
6320 # (eg FreeBSD returns the mod time of the symlink's containing
6324 for am_try in 1 2; do
6325 echo "timestamp, slept: $am_has_slept" > conftest.file
6326 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6327 if test "$*" = "X"; then
6329 set X `ls -t "$srcdir/configure" conftest.file`
6331 if test "$*" != "X $srcdir/configure conftest.file" \
6332 && test "$*" != "X conftest.file $srcdir/configure"; then
6334 # If neither matched, then we have a broken ls. This can happen
6335 # if, for instance, CONFIG_SHELL is bash and it inherits a
6336 # broken ls alias from the environment. This has actually
6337 # happened. Such a system could not be considered "sane".
6338 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6339 alias in your environment" "$LINENO" 5
6341 if test "$2" = conftest.file || test $am_try -eq 2; then
6348 test "$2" = conftest.file
6354 as_fn_error $? "newly created file is older than distributed files!
6355 Check your system clock" "$LINENO" 5
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6358 $as_echo "yes" >&6; }
6359 # If we didn't sleep, we still need to ensure time stamps of config.status and
6360 # generated files are strictly newer.
6362 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6369 missing_dir=`cd $ac_aux_dir && pwd`
6371 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6374 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6377 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6380 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6383 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6385 # Check whether --enable-silent-rules was given.
6386 if test "${enable_silent_rules+set}" = set; then :
6387 enableval=$enable_silent_rules;
6390 case $enable_silent_rules in # (((
6391 yes) AM_DEFAULT_VERBOSITY=0;;
6392 no) AM_DEFAULT_VERBOSITY=1;;
6393 *) AM_DEFAULT_VERBOSITY=1;;
6395 am_make=${MAKE-make}
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6397 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6398 if ${am_cv_make_support_nested_variables+:} false; then :
6399 $as_echo_n "(cached) " >&6
6401 if $as_echo 'TRUE=$(BAR$(V))
6407 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6408 am_cv_make_support_nested_variables=yes
6410 am_cv_make_support_nested_variables=no
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6414 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6415 if test $am_cv_make_support_nested_variables = yes; then
6417 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6419 AM_V=$AM_DEFAULT_VERBOSITY
6420 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6424 for ac_prog in gawk mawk nawk awk
6426 # Extract the first word of "$ac_prog", so it can be a program name with args.
6427 set dummy $ac_prog; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_AWK+:} false; then :
6431 $as_echo_n "(cached) " >&6
6433 if test -n "$AWK"; then
6434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_AWK="$ac_prog"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 if test -n "$AWK"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6456 $as_echo "$AWK" >&6; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6463 test -n "$AWK" && break
6467 ac_cpp='$CPP $CPPFLAGS'
6468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6471 if test -n "$ac_tool_prefix"; then
6472 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6473 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475 $as_echo_n "checking for $ac_word... " >&6; }
6476 if ${ac_cv_prog_CC+:} false; then :
6477 $as_echo_n "(cached) " >&6
6479 if test -n "$CC"; then
6480 ac_cv_prog_CC="$CC" # Let the user override the test.
6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 test -z "$as_dir" && as_dir=.
6487 for ac_exec_ext in '' $ac_executable_extensions; do
6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 if test -n "$CC"; then
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6502 $as_echo "$CC" >&6; }
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505 $as_echo "no" >&6; }
6510 if test -z "$ac_cv_prog_CC"; then
6512 # Extract the first word of "gcc", so it can be a program name with args.
6513 set dummy gcc; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6517 $as_echo_n "(cached) " >&6
6519 if test -n "$ac_ct_CC"; then
6520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_ac_ct_CC="gcc"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6540 if test -n "$ac_ct_CC"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6542 $as_echo "$ac_ct_CC" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6548 if test "x$ac_ct_CC" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6563 if test -z "$CC"; then
6564 if test -n "$ac_tool_prefix"; then
6565 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6566 set dummy ${ac_tool_prefix}cc; ac_word=$2
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568 $as_echo_n "checking for $ac_word... " >&6; }
6569 if ${ac_cv_prog_CC+:} false; then :
6570 $as_echo_n "(cached) " >&6
6572 if test -n "$CC"; then
6573 ac_cv_prog_CC="$CC" # Let the user override the test.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582 ac_cv_prog_CC="${ac_tool_prefix}cc"
6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593 if test -n "$CC"; then
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6595 $as_echo "$CC" >&6; }
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598 $as_echo "no" >&6; }
6604 if test -z "$CC"; then
6605 # Extract the first word of "cc", so it can be a program name with args.
6606 set dummy cc; ac_word=$2
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608 $as_echo_n "checking for $ac_word... " >&6; }
6609 if ${ac_cv_prog_CC+:} false; then :
6610 $as_echo_n "(cached) " >&6
6612 if test -n "$CC"; then
6613 ac_cv_prog_CC="$CC" # Let the user override the test.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6623 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6624 ac_prog_rejected=yes
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 if test $ac_prog_rejected = yes; then
6636 # We found a bogon in the path, so make sure we never use it.
6637 set dummy $ac_cv_prog_CC
6639 if test $# != 0; then
6640 # We chose a different compiler from the bogus one.
6641 # However, it has the same basename, so the bogon will be chosen
6642 # first if we set CC to just the basename; use the full file name.
6644 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6650 if test -n "$CC"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6652 $as_echo "$CC" >&6; }
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6660 if test -z "$CC"; then
6661 if test -n "$ac_tool_prefix"; then
6662 for ac_prog in cl.exe
6664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_CC+:} false; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$CC"; then
6672 ac_cv_prog_CC="$CC" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 if test -n "$CC"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6694 $as_echo "$CC" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6701 test -n "$CC" && break
6704 if test -z "$CC"; then
6706 for ac_prog in cl.exe
6708 # Extract the first word of "$ac_prog", so it can be a program name with args.
6709 set dummy $ac_prog; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 if test -n "$ac_ct_CC"; then
6716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_CC="$ac_prog"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6736 if test -n "$ac_ct_CC"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6738 $as_echo "$ac_ct_CC" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6745 test -n "$ac_ct_CC" && break
6748 if test "x$ac_ct_CC" = x; then
6751 case $cross_compiling:$ac_tool_warned in
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6764 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6766 as_fn_error $? "no acceptable C compiler found in \$PATH
6767 See \`config.log' for more details" "$LINENO" 5; }
6769 # Provide some information about the compiler.
6770 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6773 for ac_option in --version -v -V -qversion; do
6774 { { ac_try="$ac_compiler $ac_option >&5"
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6780 $as_echo "$ac_try_echo"; } >&5
6781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6783 if test -s conftest.err; then
6785 ... rest of stderr output deleted ...
6786 10q' conftest.err >conftest.er1
6787 cat conftest.er1 >&5
6789 rm -f conftest.er1 conftest.err
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791 test $ac_status = 0; }
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6796 if ${ac_cv_c_compiler_gnu+:} false; then :
6797 $as_echo_n "(cached) " >&6
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6813 if ac_fn_c_try_compile "$LINENO"; then :
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6823 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6824 if test $ac_compiler_gnu = yes; then
6829 ac_test_CFLAGS=${CFLAGS+set}
6830 ac_save_CFLAGS=$CFLAGS
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6832 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6833 if ${ac_cv_prog_cc_g+:} false; then :
6834 $as_echo_n "(cached) " >&6
6836 ac_save_c_werror_flag=$ac_c_werror_flag
6837 ac_c_werror_flag=yes
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6851 if ac_fn_c_try_compile "$LINENO"; then :
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6866 if ac_fn_c_try_compile "$LINENO"; then :
6869 ac_c_werror_flag=$ac_save_c_werror_flag
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6882 if ac_fn_c_try_compile "$LINENO"; then :
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 ac_c_werror_flag=$ac_save_c_werror_flag
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6893 $as_echo "$ac_cv_prog_cc_g" >&6; }
6894 if test "$ac_test_CFLAGS" = set; then
6895 CFLAGS=$ac_save_CFLAGS
6896 elif test $ac_cv_prog_cc_g = yes; then
6897 if test "$GCC" = yes; then
6903 if test "$GCC" = yes; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6911 if ${ac_cv_prog_cc_c89+:} false; then :
6912 $as_echo_n "(cached) " >&6
6914 ac_cv_prog_cc_c89=no
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6922 struct buf { int x; };
6923 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6924 static char *e (p, i)
6930 static char *f (char * (*g) (char **, int), char **p, ...)
6935 s = g (p, va_arg (v,int));
6940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6941 function prototypes and stuff, but not '\xHH' hex character constants.
6942 These don't provoke an error unfortunately, instead are silently treated
6943 as 'x'. The following induces an error, until -std is added to get
6944 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6945 array size at least. It's necessary to write '\x00'==0 to get something
6946 that's true only with -std. */
6947 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6950 inside strings and character constants. */
6952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6954 int test (int i, double x);
6955 struct s1 {int (*f) (int a);};
6956 struct s2 {int (*f) (double a);};
6957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6969 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6971 CC="$ac_save_CC $ac_arg"
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973 ac_cv_prog_cc_c89=$ac_arg
6975 rm -f core conftest.err conftest.$ac_objext
6976 test "x$ac_cv_prog_cc_c89" != "xno" && break
6978 rm -f conftest.$ac_ext
6983 case "x$ac_cv_prog_cc_c89" in
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6986 $as_echo "none needed" >&6; } ;;
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6989 $as_echo "unsupported" >&6; } ;;
6991 CC="$CC $ac_cv_prog_cc_c89"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6995 if test "x$ac_cv_prog_cc_c89" != xno; then :
7000 ac_cpp='$CPP $CPPFLAGS'
7001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7011 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7012 if ${am_cv_prog_cc_c_o+:} false; then :
7013 $as_echo_n "(cached) " >&6
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7026 # Make sure it works both with $CC and with simple cc.
7027 # Following AC_PROG_CC_C_O, we do the test twice because some
7028 # compilers refuse to overwrite an existing .o file with -o,
7029 # though they will create one.
7030 am_cv_prog_cc_c_o=yes
7032 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7033 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } \
7037 && test -f conftest2.$ac_objext; then
7040 am_cv_prog_cc_c_o=no
7044 rm -f core conftest*
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7048 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7049 if test "$am_cv_prog_cc_c_o" != yes; then
7050 # Losing compiler, so override with the script.
7051 # FIXME: It is wrong to rewrite CC.
7052 # But if we don't then we get into trouble of one sort or another.
7053 # A longer-term fix would be to have automake use am__CC in this case,
7054 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7055 CC="$am_aux_dir/compile $CC"
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064 depcc="$CC" am_compiler_list=
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7067 $as_echo_n "checking dependency style of $depcc... " >&6; }
7068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7069 $as_echo_n "(cached) " >&6
7071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7072 # We make a subdir and do the tests there. Otherwise we can end up
7073 # making bogus files that we don't know about and never remove. For
7074 # instance it was reported that on HP-UX the gcc test will end up
7075 # making a dummy file named 'D' -- because '-MD' means "put the output
7079 # Copy depcomp to subdir because otherwise we won't find it if we're
7080 # using a relative directory.
7081 cp "$am_depcomp" conftest.dir
7083 # We will build objects and dependencies in a subdirectory because
7084 # it helps to detect inapplicable dependency modes. For instance
7085 # both Tru64's cc and ICC support -MD to output dependencies as a
7086 # side effect of compilation, but ICC will put the dependencies in
7087 # the current directory while Tru64 will put them in the object
7091 am_cv_CC_dependencies_compiler_type=none
7092 if test "$am_compiler_list" = ""; then
7093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7096 case " $depcc " in #(
7097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7100 for depmode in $am_compiler_list; do
7101 # Setup a source with many dependencies, because some compilers
7102 # like to wrap large dependency lists on column 80 (with \), and
7103 # we should not choose a depcomp mode which is confused by this.
7105 # We need to recreate these files for each test, as the compiler may
7106 # overwrite some of them when testing with obscure command lines.
7107 # This happens at least with the AIX C compiler.
7109 for i in 1 2 3 4 5 6; do
7110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7111 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7112 # Solaris 10 /bin/sh.
7113 echo '/* dummy */' > sub/conftst$i.h
7115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7117 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7118 # mode. It turns out that the SunPro C++ compiler does not properly
7119 # handle '-M -o', and we need to detect this. Also, some Intel
7120 # versions had trouble with output in subdirs.
7121 am__obj=sub/conftest.${OBJEXT-o}
7122 am__minus_obj="-o $am__obj"
7125 # This depmode causes a compiler race in universal mode.
7126 test "$am__universal" = false || continue
7129 # After this tag, mechanisms are not by side-effect, so they'll
7130 # only be used when explicitly requested.
7131 if test "x$enable_dependency_tracking" = xyes; then
7137 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7138 # This compiler won't grok '-c -o', but also, the minuso test has
7139 # not run yet. These depmodes are late enough in the game, and
7140 # so weak that their functioning should not be impacted.
7141 am__obj=conftest.${OBJEXT-o}
7146 if depmode=$depmode \
7147 source=sub/conftest.c object=$am__obj \
7148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7150 >/dev/null 2>conftest.err &&
7151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7155 # icc doesn't choke on unknown options, it will just issue warnings
7156 # or remarks (even with -Werror). So we grep stderr for any message
7157 # that says an option was ignored or not supported.
7158 # When given -MP, icc 7.0 and 7.1 complain thusly:
7159 # icc: Command line warning: ignoring option '-M'; no argument required
7160 # The diagnosis changed in icc 8.0:
7161 # icc: Command line remark: option '-MP' not supported
7162 if (grep 'ignoring option' conftest.err ||
7163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7164 am_cv_CC_dependencies_compiler_type=$depmode
7173 am_cv_CC_dependencies_compiler_type=none
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7182 test "x$enable_dependency_tracking" != xno \
7183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7185 am__fastdepCC_FALSE='#'
7187 am__fastdepCC_TRUE='#'
7188 am__fastdepCC_FALSE=
7193 ac_cpp='$CPP $CPPFLAGS'
7194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7198 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7199 # On Suns, sometimes $CPP names a directory.
7200 if test -n "$CPP" && test -d "$CPP"; then
7203 if test -z "$CPP"; then
7204 if ${ac_cv_prog_CPP+:} false; then :
7205 $as_echo_n "(cached) " >&6
7207 # Double quotes because CPP needs to be expanded
7208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7211 for ac_c_preproc_warn_flag in '' yes
7213 # Use a header file that comes with gcc, so configuring glibc
7214 # with a fresh cross-compiler works.
7215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7216 # <limits.h> exists even on freestanding compilers.
7217 # On the NeXT, cc -E runs the code through the compiler's parser,
7218 # not just through cpp. "Syntax error" is here to catch this case.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7222 # include <limits.h>
7224 # include <assert.h>
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7231 # Broken: fails on valid input.
7234 rm -f conftest.err conftest.i conftest.$ac_ext
7236 # OK, works on sane cases. Now check whether nonexistent headers
7237 # can be detected and how.
7238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7239 /* end confdefs.h. */
7240 #include <ac_nonexistent.h>
7242 if ac_fn_c_try_cpp "$LINENO"; then :
7243 # Broken: success on invalid input.
7246 # Passes both tests.
7250 rm -f conftest.err conftest.i conftest.$ac_ext
7253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7254 rm -f conftest.i conftest.err conftest.$ac_ext
7255 if $ac_preproc_ok; then :
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7268 $as_echo "$CPP" >&6; }
7270 for ac_c_preproc_warn_flag in '' yes
7272 # Use a header file that comes with gcc, so configuring glibc
7273 # with a fresh cross-compiler works.
7274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7275 # <limits.h> exists even on freestanding compilers.
7276 # On the NeXT, cc -E runs the code through the compiler's parser,
7277 # not just through cpp. "Syntax error" is here to catch this case.
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7281 # include <limits.h>
7283 # include <assert.h>
7287 if ac_fn_c_try_cpp "$LINENO"; then :
7290 # Broken: fails on valid input.
7293 rm -f conftest.err conftest.i conftest.$ac_ext
7295 # OK, works on sane cases. Now check whether nonexistent headers
7296 # can be detected and how.
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <ac_nonexistent.h>
7301 if ac_fn_c_try_cpp "$LINENO"; then :
7302 # Broken: success on invalid input.
7305 # Passes both tests.
7309 rm -f conftest.err conftest.i conftest.$ac_ext
7312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7313 rm -f conftest.i conftest.err conftest.$ac_ext
7314 if $ac_preproc_ok; then :
7317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7319 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7320 See \`config.log' for more details" "$LINENO" 5; }
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7331 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7335 $as_echo_n "checking whether ln -s works... " >&6; }
7337 if test "$LN_S" = "ln -s"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7339 $as_echo "yes" >&6; }
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7342 $as_echo "no, using $LN_S" >&6; }
7345 if test -n "$ac_tool_prefix"; then
7346 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_RANLIB+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$RANLIB"; then
7354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 RANLIB=$ac_cv_prog_RANLIB
7374 if test -n "$RANLIB"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7376 $as_echo "$RANLIB" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7384 if test -z "$ac_cv_prog_RANLIB"; then
7385 ac_ct_RANLIB=$RANLIB
7386 # Extract the first word of "ranlib", so it can be a program name with args.
7387 set dummy ranlib; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$ac_ct_RANLIB"; then
7394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_RANLIB="ranlib"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7414 if test -n "$ac_ct_RANLIB"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7416 $as_echo "$ac_ct_RANLIB" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7422 if test "x$ac_ct_RANLIB" = x; then
7425 case $cross_compiling:$ac_tool_warned in
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7431 RANLIB=$ac_ct_RANLIB
7434 RANLIB="$ac_cv_prog_RANLIB"
7437 if test -n "$ac_tool_prefix"; then
7438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}ar; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_AR+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 if test -n "$AR"; then
7446 ac_cv_prog_AR="$AR" # Let the user override the test.
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455 ac_cv_prog_AR="${ac_tool_prefix}ar"
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 if test -n "$AR"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7468 $as_echo "$AR" >&6; }
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7476 if test -z "$ac_cv_prog_AR"; then
7478 # Extract the first word of "ar", so it can be a program name with args.
7479 set dummy ar; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 if test -n "$ac_ct_AR"; then
7486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_ac_ct_AR="ar"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7506 if test -n "$ac_ct_AR"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7508 $as_echo "$ac_ct_AR" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7514 if test "x$ac_ct_AR" = x; then
7517 case $cross_compiling:$ac_tool_warned in
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7529 # Extract the first word of ""perl"", so it can be a program name with args.
7530 set dummy "perl"; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if ${ac_cv_path_PERL+:} false; then :
7534 $as_echo_n "(cached) " >&6
7538 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 PERL=$ac_cv_path_PERL
7560 if test -n "$PERL"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7562 $as_echo "$PERL" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}windres; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_WINDRES+:} false; then :
7575 $as_echo_n "(cached) " >&6
7577 if test -n "$WINDRES"; then
7578 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 WINDRES=$ac_cv_prog_WINDRES
7598 if test -n "$WINDRES"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7600 $as_echo "$WINDRES" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_WINDRES"; then
7609 ac_ct_WINDRES=$WINDRES
7610 # Extract the first word of "windres", so it can be a program name with args.
7611 set dummy windres; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$ac_ct_WINDRES"; then
7618 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_ac_ct_WINDRES="windres"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7638 if test -n "$ac_ct_WINDRES"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7640 $as_echo "$ac_ct_WINDRES" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_WINDRES" = x; then
7649 case $cross_compiling:$ac_tool_warned in
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7655 WINDRES=$ac_ct_WINDRES
7658 WINDRES="$ac_cv_prog_WINDRES"
7661 # Extract the first word of ""yat2m"", so it can be a program name with args.
7662 set dummy "yat2m"; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_path_YAT2M+:} false; then :
7666 $as_echo_n "(cached) " >&6
7670 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7692 YAT2M=$ac_cv_path_YAT2M
7693 if test -n "$YAT2M"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7695 $as_echo "$YAT2M" >&6; }
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7703 if test -n "$ac_cv_path_YAT2M"; then
7705 HAVE_YAT2M_FALSE='#'
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7712 $as_echo_n "checking for library containing strerror... " >&6; }
7713 if ${ac_cv_search_strerror+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 ac_func_search_save_LIBS=$LIBS
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7720 /* Override any GCC internal prototype to avoid an error.
7721 Use char because int might match the return type of a GCC
7722 builtin and then its argument prototype would still apply. */
7735 for ac_lib in '' cposix; do
7736 if test -z "$ac_lib"; then
7737 ac_res="none required"
7740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7742 if ac_fn_c_try_link "$LINENO"; then :
7743 ac_cv_search_strerror=$ac_res
7745 rm -f core conftest.err conftest.$ac_objext \
7747 if ${ac_cv_search_strerror+:} false; then :
7751 if ${ac_cv_search_strerror+:} false; then :
7754 ac_cv_search_strerror=no
7757 LIBS=$ac_func_search_save_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7760 $as_echo "$ac_cv_search_strerror" >&6; }
7761 ac_res=$ac_cv_search_strerror
7762 if test "$ac_res" != no; then :
7763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7767 # Check whether --enable-largefile was given.
7768 if test "${enable_largefile+set}" = set; then :
7769 enableval=$enable_largefile;
7772 if test "$enable_largefile" != no; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7775 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7776 if ${ac_cv_sys_largefile_CC+:} false; then :
7777 $as_echo_n "(cached) " >&6
7779 ac_cv_sys_largefile_CC=no
7780 if test "$GCC" != yes; then
7783 # IRIX 6.2 and later do not support large files by default,
7784 # so use the C compiler's -n32 option if that helps.
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7787 #include <sys/types.h>
7788 /* Check that off_t can represent 2**63 - 1 correctly.
7789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7790 since some C++ compilers masquerading as C compilers
7791 incorrectly reject 9223372036854775807. */
7792 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7794 && LARGE_OFF_T % 2147483647 == 1)
7804 if ac_fn_c_try_compile "$LINENO"; then :
7807 rm -f core conftest.err conftest.$ac_objext
7809 if ac_fn_c_try_compile "$LINENO"; then :
7810 ac_cv_sys_largefile_CC=' -n32'; break
7812 rm -f core conftest.err conftest.$ac_objext
7816 rm -f conftest.$ac_ext
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7820 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7821 if test "$ac_cv_sys_largefile_CC" != no; then
7822 CC=$CC$ac_cv_sys_largefile_CC
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7826 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7827 if ${ac_cv_sys_file_offset_bits+:} false; then :
7828 $as_echo_n "(cached) " >&6
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <sys/types.h>
7834 /* Check that off_t can represent 2**63 - 1 correctly.
7835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7836 since some C++ compilers masquerading as C compilers
7837 incorrectly reject 9223372036854775807. */
7838 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7840 && LARGE_OFF_T % 2147483647 == 1)
7850 if ac_fn_c_try_compile "$LINENO"; then :
7851 ac_cv_sys_file_offset_bits=no; break
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 #define _FILE_OFFSET_BITS 64
7857 #include <sys/types.h>
7858 /* Check that off_t can represent 2**63 - 1 correctly.
7859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7860 since some C++ compilers masquerading as C compilers
7861 incorrectly reject 9223372036854775807. */
7862 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7864 && LARGE_OFF_T % 2147483647 == 1)
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 ac_cv_sys_file_offset_bits=64; break
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 ac_cv_sys_file_offset_bits=unknown
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7883 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7884 case $ac_cv_sys_file_offset_bits in #(
7887 cat >>confdefs.h <<_ACEOF
7888 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7893 if test $ac_cv_sys_file_offset_bits = unknown; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7895 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7896 if ${ac_cv_sys_large_files+:} false; then :
7897 $as_echo_n "(cached) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <sys/types.h>
7903 /* Check that off_t can represent 2**63 - 1 correctly.
7904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7905 since some C++ compilers masquerading as C compilers
7906 incorrectly reject 9223372036854775807. */
7907 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7909 && LARGE_OFF_T % 2147483647 == 1)
7919 if ac_fn_c_try_compile "$LINENO"; then :
7920 ac_cv_sys_large_files=no; break
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #define _LARGE_FILES 1
7926 #include <sys/types.h>
7927 /* Check that off_t can represent 2**63 - 1 correctly.
7928 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7929 since some C++ compilers masquerading as C compilers
7930 incorrectly reject 9223372036854775807. */
7931 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7932 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7933 && LARGE_OFF_T % 2147483647 == 1)
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944 ac_cv_sys_large_files=1; break
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 ac_cv_sys_large_files=unknown
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7952 $as_echo "$ac_cv_sys_large_files" >&6; }
7953 case $ac_cv_sys_large_files in #(
7956 cat >>confdefs.h <<_ACEOF
7957 #define _LARGE_FILES $ac_cv_sys_large_files
7969 # GNU AWK requires -n option to interpret "0xHH" as a number
7970 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7971 AWK_HEX_NUMBER_OPTION=''
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7973 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7975 AWK_HEX_NUMBER_OPTION='-n'
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7977 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7981 # We need to compile and run a program on the build machine. A
7982 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7983 # the AC archive is broken for autoconf 2.57. Given that there is no
7984 # newer version of that macro, we assume that it is also broken for
7985 # autoconf 2.61 and thus we use a simple but usually sufficient
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7988 $as_echo_n "checking for cc for build... " >&6; }
7989 if test "$cross_compiling" = "yes"; then
7990 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7992 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7995 $as_echo "$CC_FOR_BUILD" >&6; }
7998 # We need to call this macro because other pkg-config macros are
8007 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8014 $as_echo_n "(cached) " >&6
8018 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8040 if test -n "$PKG_CONFIG"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8042 $as_echo "$PKG_CONFIG" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8050 if test -z "$ac_cv_path_PKG_CONFIG"; then
8051 ac_pt_PKG_CONFIG=$PKG_CONFIG
8052 # Extract the first word of "pkg-config", so it can be a program name with args.
8053 set dummy pkg-config; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8057 $as_echo_n "(cached) " >&6
8059 case $ac_pt_PKG_CONFIG in
8061 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8083 if test -n "$ac_pt_PKG_CONFIG"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8085 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8091 if test "x$ac_pt_PKG_CONFIG" = x; then
8094 case $cross_compiling:$ac_tool_warned in
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned=yes ;;
8100 PKG_CONFIG=$ac_pt_PKG_CONFIG
8103 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8107 if test -n "$PKG_CONFIG"; then
8108 _pkg_min_version=0.9.0
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8110 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8111 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8113 $as_echo "yes" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8124 have_dosish_system=no
8126 have_android_system=no
8127 use_simple_gettext=no
8129 require_pipe_to_unblock_pselect=yes
8132 # special stuff for Windoze NT
8133 ac_cv_have_dev_random=no
8135 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8138 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8140 have_dosish_system=yes
8143 require_pipe_to_unblock_pselect=no
8145 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8148 use_simple_gettext=yes
8152 i?86-emx-os2 | i?86-*-os2*emx )
8153 # OS/2 with the EMX environment
8154 ac_cv_have_dev_random=no
8155 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8157 have_dosish_system=yes
8163 # DOS with the DJGPP environment
8164 ac_cv_have_dev_random=no
8165 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8167 have_dosish_system=yes
8173 if test -z "$GCC" ; then
8174 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8178 if test -z "$GCC" ; then
8179 # Suppress all warnings
8180 # to get rid of the unsigned/signed char mismatch warnings.
8185 if test -z "$GCC" ; then
8186 # Use the newer compiler `-msg_disable ptrmismatch1' to
8187 # get rid of the unsigned/signed char mismatch warnings.
8188 # Using this may hide other pointer mismatch warnings, but
8189 # it at least lets other warning classes through
8190 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8196 have_android_system=yes
8197 # Android is fully utf-8 and we do not want to use iconv to
8198 # keeps things simple
8204 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8208 require_pipe_to_unblock_pselect=yes
8214 if test "$require_pipe_to_unblock_pselect" = yes; then
8216 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8220 if test "$have_dosish_system" = yes; then
8222 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8225 if test "$have_dosish_system" = yes; then
8226 HAVE_DOSISH_SYSTEM_TRUE=
8227 HAVE_DOSISH_SYSTEM_FALSE='#'
8229 HAVE_DOSISH_SYSTEM_TRUE='#'
8230 HAVE_DOSISH_SYSTEM_FALSE=
8234 if test x"$use_simple_gettext" = xyes; then
8235 USE_SIMPLE_GETTEXT_TRUE=
8236 USE_SIMPLE_GETTEXT_FALSE='#'
8238 USE_SIMPLE_GETTEXT_TRUE='#'
8239 USE_SIMPLE_GETTEXT_FALSE=
8243 if test "$have_w32_system" = yes; then
8245 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8247 for ac_header in winsock2.h
8249 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8250 if test "x$ac_cv_header_winsock2_h" = xyes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define HAVE_WINSOCK2_H 1
8260 if test "$have_w32_system" = yes; then
8261 HAVE_W32_SYSTEM_TRUE=
8262 HAVE_W32_SYSTEM_FALSE='#'
8264 HAVE_W32_SYSTEM_TRUE='#'
8265 HAVE_W32_SYSTEM_FALSE=
8269 if test "$have_android_system" = yes; then
8271 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8274 if test "$have_android_system" = yes; then
8275 HAVE_ANDROID_SYSTEM_TRUE=
8276 HAVE_ANDROID_SYSTEM_FALSE='#'
8278 HAVE_ANDROID_SYSTEM_TRUE='#'
8279 HAVE_ANDROID_SYSTEM_FALSE=
8284 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8286 cat >>confdefs.h <<_ACEOF
8287 #define EXEEXT "$EXEEXT"
8293 # Checks for libraries.
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8296 $as_echo "$as_me: checking for libraries" >&6;}
8300 # gpgrt (aka libgpg-error) is a library with error codes shared
8301 # between GnuPG related projects.
8303 gpg_error_config_prefix=""
8305 # Check whether --with-libgpg-error-prefix was given.
8306 if test "${with_libgpg_error_prefix+set}" = set; then :
8307 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8312 # Check whether --with-gpg-error-prefix was given.
8313 if test "${with_gpg_error_prefix+set}" = set; then :
8314 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8318 if test x"${GPG_ERROR_CONFIG}" = x ; then
8319 if test x"${gpg_error_config_prefix}" != x ; then
8320 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8322 case "${SYSROOT}" in
8324 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8325 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8332 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8338 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8339 set dummy gpg-error-config; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8343 $as_echo_n "(cached) " >&6
8345 case $GPG_ERROR_CONFIG in
8347 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8369 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8370 if test -n "$GPG_ERROR_CONFIG"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8372 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8380 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8381 set dummy gpgrt-config; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8385 $as_echo_n "(cached) " >&6
8387 case $GPGRT_CONFIG in
8389 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 as_dummy="$prefix/bin:$PATH"
8394 for as_dir in $as_dummy
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8400 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8412 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8413 if test -n "$GPGRT_CONFIG"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8415 $as_echo "$GPGRT_CONFIG" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8422 if test "$GPGRT_CONFIG" != "no"; then
8423 # Determine gpgrt_libdir
8425 # Get the prefix of gpgrt-config assuming it's something like:
8426 # <PREFIX>/bin/gpgrt-config
8427 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8428 possible_libdir1=${gpgrt_prefix}/lib
8429 # Determine by using system libdir-format with CC, it's like:
8430 # Normal style: /usr/lib
8431 # GNU cross style: /usr/<triplet>/lib
8432 # Debian style: /usr/lib/<multiarch-name>
8433 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8434 # It is assumed that CC is specified to the one of host on cross build.
8435 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8436 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8438 # From the output of -print-search-dirs, select valid pkgconfig dirs.
8439 libdir_candidates=$(for dir in $libdir_candidates; do
8440 if p=$(cd $dir 2>/dev/null && pwd); then
8441 test -d "$p/pkgconfig" && echo $p;
8445 for possible_libdir0 in $libdir_candidates; do
8447 # Fallback candidate, the one of system-installed (by $CC)
8448 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8450 # Another candidate, user-locally-installed
8451 # (<gpgrt_prefix>/lib)
8454 # (<gpgrt_prefix>/<triplet>/lib,
8455 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8456 if test "${possible_libdir0##*/}" = "lib"; then
8457 possible_prefix0=${possible_libdir0%/lib}
8458 possible_prefix0_triplet=${possible_prefix0##*/}
8459 if test -z "$possible_prefix0_triplet"; then
8462 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8464 possible_prefix0=${possible_libdir0%%/lib*}
8465 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8467 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8468 gpgrt_libdir=${possible_libdir2}
8469 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8470 gpgrt_libdir=${possible_libdir1}
8471 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8472 gpgrt_libdir=${possible_libdir0}
8474 if test -n "$gpgrt_libdir"; then break; fi
8477 if test -z "$gpgrt_libdir"; then
8478 # No valid pkgconfig dir in any of the system directories, fallback
8479 gpgrt_libdir=${possible_libdir1}
8485 if test -n "$gpgrt_libdir"; then
8486 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8487 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8488 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8490 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8491 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8493 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8496 elif test "$GPG_ERROR_CONFIG" != "no"; then
8497 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8501 min_gpg_error_version="$NEED_GPGRT_VERSION"
8503 if test "$GPG_ERROR_CONFIG" != "no"; then
8504 req_major=`echo $min_gpg_error_version | \
8505 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8506 req_minor=`echo $min_gpg_error_version | \
8507 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8508 major=`echo $gpg_error_config_version | \
8509 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8510 minor=`echo $gpg_error_config_version | \
8511 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8512 if test "$major" -gt "$req_major"; then
8515 if test "$major" -eq "$req_major"; then
8516 if test "$minor" -ge "$req_minor"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8523 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8524 if test $ok = yes; then
8525 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8526 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8527 if test -z "$GPGRT_CONFIG"; then
8528 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8529 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8531 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8532 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8533 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8534 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8537 $as_echo "yes ($gpg_error_config_version)" >&6; }
8539 if test -z "$GPGRT_CONFIG"; then
8540 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8542 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8544 if test x"$gpg_error_config_host" != xnone ; then
8545 if test x"$gpg_error_config_host" != x"$host" ; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8548 *** The config script \"$GPG_ERROR_CONFIG\" was
8549 *** built for $gpg_error_config_host and thus may not match the
8550 *** used host $host.
8551 *** You may want to use the configure option --with-libgpg-error-prefix
8552 *** to specify a matching config script or use \$SYSROOT.
8554 $as_echo "$as_me: 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 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8568 GPG_ERROR_MT_CFLAGS=""
8569 GPG_ERROR_MT_LIBS=""
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8582 # Libgcrypt is our generic crypto library
8586 # Check whether --with-libgcrypt-prefix was given.
8587 if test "${with_libgcrypt_prefix+set}" = set; then :
8588 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8590 libgcrypt_config_prefix=""
8593 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8594 if test x"${libgcrypt_config_prefix}" != x ; then
8595 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8600 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8601 if $GPGRT_CONFIG libgcrypt --exists; then
8602 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8604 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8605 use_gpgrt_config=yes
8608 if test -z "$use_gpgrt_config"; then
8609 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8610 case "${SYSROOT}" in
8612 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8613 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8620 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8624 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8625 set dummy libgcrypt-config; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8629 $as_echo_n "(cached) " >&6
8631 case $LIBGCRYPT_CONFIG in
8633 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 test -z "$as_dir" && as_dir=.
8641 for ac_exec_ext in '' $ac_executable_extensions; do
8642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8655 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8656 if test -n "$LIBGCRYPT_CONFIG"; then
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8658 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 $as_echo "no" >&6; }
8667 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8668 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8669 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8670 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8673 min_libgcrypt_version="$tmp"
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8677 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8679 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8680 req_major=`echo $min_libgcrypt_version | \
8681 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8682 req_minor=`echo $min_libgcrypt_version | \
8683 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8684 req_micro=`echo $min_libgcrypt_version | \
8685 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8686 if test -z "$use_gpgrt_config"; then
8687 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8689 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8691 major=`echo $libgcrypt_config_version | \
8692 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8693 minor=`echo $libgcrypt_config_version | \
8694 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8695 micro=`echo $libgcrypt_config_version | \
8696 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8697 if test "$major" -gt "$req_major"; then
8700 if test "$major" -eq "$req_major"; then
8701 if test "$minor" -gt "$req_minor"; then
8704 if test "$minor" -eq "$req_minor"; then
8705 if test "$micro" -ge "$req_micro"; then
8713 if test $ok = yes; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8715 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8720 if test $ok = yes; then
8721 # If we have a recent libgcrypt, we should also check that the
8723 if test "$req_libgcrypt_api" -gt 0 ; then
8724 if test -z "$use_gpgrt_config"; then
8725 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8727 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8729 if test "$tmp" -gt 0 ; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8731 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8732 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8734 $as_echo "okay" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8738 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8743 if test $ok = yes; then
8744 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8745 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8747 if test -z "$use_gpgrt_config"; then
8748 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8750 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8752 if test x"$libgcrypt_config_host" != xnone ; then
8753 if test x"$libgcrypt_config_host" != x"$host" ; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8756 *** The config script \"$LIBGCRYPT_CONFIG\" was
8757 *** built for $libgcrypt_config_host and thus may not match the
8758 *** used host $host.
8759 *** You may want to use the configure option --with-libgcrypt-prefix
8760 *** to specify a matching config script or use \$SYSROOT.
8762 $as_echo "$as_me: 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 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8781 # And, then, check if it's newer than 1.9.0 so that we can
8782 # conditionally build some programs.
8783 # Note: This is not anymore needed but keep the code commented in case
8784 # we need it again with some future libgcrypt.
8785 #have_libgcrypt_newer=no
8786 #if test $ok = yes; then
8787 # if test "$major" -gt 1; then
8788 # have_libgcrypt_newer=yes
8790 # if test "$major" -eq 1; then
8791 # if test "$minor" -gt 9; then
8792 # have_libgcrypt_newer=yes
8794 # if test "$minor" -eq 9; then
8795 # if test "$micro" -ge 0; then
8796 # have_libgcrypt_newer=yes
8803 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8806 # libassuan is used for IPC
8810 # Check whether --with-libassuan-prefix was given.
8811 if test "${with_libassuan_prefix+set}" = set; then :
8812 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8814 libassuan_config_prefix=""
8817 if test x$libassuan_config_prefix != x ; then
8818 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8819 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8824 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8825 if $GPGRT_CONFIG libassuan --exists; then
8826 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8828 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8829 use_gpgrt_config=yes
8832 if test -z "$use_gpgrt_config"; then
8833 # Extract the first word of "libassuan-config", so it can be a program name with args.
8834 set dummy libassuan-config; ac_word=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8838 $as_echo_n "(cached) " >&6
8840 case $LIBASSUAN_CONFIG in
8842 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8864 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8865 if test -n "$LIBASSUAN_CONFIG"; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8867 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8876 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8877 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8878 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8879 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8882 min_libassuan_version="$tmp"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8886 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8888 if test "$LIBASSUAN_CONFIG" != "no"; then
8889 req_major=`echo $min_libassuan_version | \
8890 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8891 req_minor=`echo $min_libassuan_version | \
8892 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8893 req_micro=`echo $min_libassuan_version | \
8894 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8896 if test -z "$use_gpgrt_config"; then
8897 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8899 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8901 major=`echo $libassuan_config_version | \
8902 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8903 minor=`echo $libassuan_config_version | \
8904 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8905 micro=`echo $libassuan_config_version | \
8906 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8908 if test "$major" -gt "$req_major"; then
8911 if test "$major" -eq "$req_major"; then
8912 if test "$minor" -gt "$req_minor"; then
8915 if test "$minor" -eq "$req_minor"; then
8916 if test "$micro" -ge "$req_micro"; then
8925 if test $ok = yes; then
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8927 $as_echo "yes ($libassuan_config_version)" >&6; }
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8933 if test $ok = yes; then
8934 if test "$req_libassuan_api" -gt 0 ; then
8935 if test -z "$use_gpgrt_config"; then
8936 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8938 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8940 if test "$tmp" -gt 0 ; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8942 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8943 if test "$req_libassuan_api" -eq "$tmp" ; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8945 $as_echo "okay" >&6; }
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8949 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8955 if test $ok = yes; then
8956 if test x"$host" != x ; then
8957 if test -z "$use_gpgrt_config"; then
8958 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8960 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8962 if test x"$libassuan_config_host" != xnone ; then
8963 if test x"$libassuan_config_host" != x"$host" ; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8966 *** The config script \"$LIBASSUAN_CONFIG\" was
8967 *** built for $libassuan_config_host and thus may not match the
8968 *** used host $host.
8969 *** You may want to use the configure option --with-libassuan-prefix
8970 *** to specify a matching config script.
8972 $as_echo "$as_me: 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.
8985 if test $ok = yes; then
8986 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8987 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
8997 if test "$have_libassuan" = "yes"; then
8999 cat >>confdefs.h <<_ACEOF
9000 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9003 show_tor_support="only .onion"
9008 # libksba is our X.509 support library
9012 # Check whether --with-libksba-prefix was given.
9013 if test "${with_libksba_prefix+set}" = set; then :
9014 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9016 ksba_config_prefix=""
9021 # Check whether --with-ksba-prefix was given.
9022 if test "${with_ksba_prefix+set}" = set; then :
9023 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9025 ksba_config_prefix=""
9029 if test x$ksba_config_prefix != x ; then
9030 if test x${KSBA_CONFIG+set} != xset ; then
9031 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9036 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9037 if $GPGRT_CONFIG ksba --exists; then
9038 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9040 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9041 use_gpgrt_config=yes
9044 if test -z "$use_gpgrt_config"; then
9045 # Extract the first word of "ksba-config", so it can be a program name with args.
9046 set dummy ksba-config; ac_word=$2
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9048 $as_echo_n "checking for $ac_word... " >&6; }
9049 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9050 $as_echo_n "(cached) " >&6
9052 case $KSBA_CONFIG in
9054 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061 test -z "$as_dir" && as_dir=.
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9064 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9076 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9077 if test -n "$KSBA_CONFIG"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9079 $as_echo "$KSBA_CONFIG" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 $as_echo "no" >&6; }
9088 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9089 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9090 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9091 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9094 min_ksba_version="$tmp"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9098 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9100 if test "$KSBA_CONFIG" != "no" ; then
9101 req_major=`echo $min_ksba_version | \
9102 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9103 req_minor=`echo $min_ksba_version | \
9104 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9105 req_micro=`echo $min_ksba_version | \
9106 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9107 if test -z "$use_gpgrt_config"; then
9108 ksba_config_version=`$KSBA_CONFIG --version`
9110 ksba_config_version=`$KSBA_CONFIG --modversion`
9112 major=`echo $ksba_config_version | \
9113 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9114 minor=`echo $ksba_config_version | \
9115 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9116 micro=`echo $ksba_config_version | \
9117 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9118 if test "$major" -gt "$req_major"; then
9121 if test "$major" -eq "$req_major"; then
9122 if test "$minor" -gt "$req_minor"; then
9125 if test "$minor" -eq "$req_minor"; then
9126 if test "$micro" -ge "$req_micro"; then
9134 if test $ok = yes; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9136 $as_echo "yes ($ksba_config_version)" >&6; }
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9141 if test $ok = yes; then
9142 # Even if we have a recent libksba, we should check that the
9143 # API is compatible.
9144 if test "$req_ksba_api" -gt 0 ; then
9145 if test -z "$use_gpgrt_config"; then
9146 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9148 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9150 if test "$tmp" -gt 0 ; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9152 $as_echo_n "checking KSBA API version... " >&6; }
9153 if test "$req_ksba_api" -eq "$tmp" ; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9155 $as_echo "okay" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9159 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
9164 if test $ok = yes; then
9165 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9166 KSBA_LIBS=`$KSBA_CONFIG --libs`
9168 if test -z "$use_gpgrt_config"; then
9169 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9171 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9173 if test x"$libksba_config_host" != xnone ; then
9174 if test x"$libksba_config_host" != x"$host" ; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9177 *** The config script \"$KSBA_CONFIG\" was
9178 *** built for $libksba_config_host and thus may not match the
9179 *** used host $host.
9180 *** You may want to use the configure option --with-libksba-prefix
9181 *** to specify a matching config script.
9183 $as_echo "$as_me: 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.
9204 # libusb allows us to use the integrated CCID smartcard reader driver.
9206 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9207 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9216 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9219 # FreeBSD has a native 1.0 compatible library by -lusb.
9229 if test x"$LIBUSB_NAME" != x ; then
9230 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9232 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9233 if eval \${$as_ac_Lib+:} false; then :
9234 $as_echo_n "(cached) " >&6
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-l$LIBUSB_NAME $LIBS"
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9241 /* Override any GCC internal prototype to avoid an error.
9242 Use char because int might match the return type of a GCC
9243 builtin and then its argument prototype would still apply. */
9247 char libusb_init ();
9251 return libusb_init ();
9256 if ac_fn_c_try_link "$LINENO"; then :
9257 eval "$as_ac_Lib=yes"
9259 eval "$as_ac_Lib=no"
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 LIBS=$ac_check_lib_save_LIBS
9265 eval ac_res=\$$as_ac_Lib
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9267 $as_echo "$ac_res" >&6; }
9268 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9269 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9274 $as_echo_n "checking libusb include dir... " >&6; }
9275 usb_incdir_found="no"
9276 for _incdir in "" "/usr/include/libusb-1.0" \
9277 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9278 _libusb_save_cppflags=$CPPFLAGS
9279 if test -n "${_incdir}"; then
9280 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9286 if ac_fn_c_try_cpp "$LINENO"; then :
9287 usb_incdir=${_incdir}; usb_incdir_found="yes"
9289 rm -f conftest.err conftest.i conftest.$ac_ext
9290 CPPFLAGS=${_libusb_save_cppflags}
9291 if test "$usb_incdir_found" = "yes"; then
9295 if test "$usb_incdir_found" = "yes"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9297 $as_echo "${usb_incdir}" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9300 $as_echo "not found" >&6; }
9303 if test "$use_ccid_driver" != yes; then
9309 if test "$have_libusb" = yes; then
9311 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9314 if test x"$usb_incdir" = x; then
9317 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9324 # Check whether it is necessary to link against libdl.
9325 # (For example to load libpcsclite)
9327 gnupg_dlopen_save_libs="$LIBS"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9330 $as_echo_n "checking for library containing dlopen... " >&6; }
9331 if ${ac_cv_search_dlopen+:} false; then :
9332 $as_echo_n "(cached) " >&6
9334 ac_func_search_save_LIBS=$LIBS
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9338 /* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
9353 for ac_lib in '' c dl; do
9354 if test -z "$ac_lib"; then
9355 ac_res="none required"
9358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9360 if ac_fn_c_try_link "$LINENO"; then :
9361 ac_cv_search_dlopen=$ac_res
9363 rm -f core conftest.err conftest.$ac_objext \
9365 if ${ac_cv_search_dlopen+:} false; then :
9369 if ${ac_cv_search_dlopen+:} false; then :
9372 ac_cv_search_dlopen=no
9375 LIBS=$ac_func_search_save_LIBS
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9378 $as_echo "$ac_cv_search_dlopen" >&6; }
9379 ac_res=$ac_cv_search_dlopen
9380 if test "$ac_res" != no; then :
9381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9387 LIBS="$gnupg_dlopen_save_libs"
9392 # Check whether --enable-sqlite was given.
9393 if test "${enable_sqlite+set}" = set; then :
9394 enableval=$enable_sqlite; try_sqlite=$enableval
9400 if test x"$use_tofu" = xyes ; then
9401 if test x"$try_sqlite" = xyes ; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9405 $as_echo_n "checking for SQLITE3... " >&6; }
9407 if test -n "$SQLITE3_CFLAGS"; then
9408 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9409 elif test -n "$PKG_CONFIG"; then
9410 if test -n "$PKG_CONFIG" && \
9411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9412 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415 test $ac_status = 0; }; then
9416 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9417 test "x$?" != "x0" && pkg_failed=yes
9424 if test -n "$SQLITE3_LIBS"; then
9425 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9426 elif test -n "$PKG_CONFIG"; then
9427 if test -n "$PKG_CONFIG" && \
9428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9429 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9432 test $ac_status = 0; }; then
9433 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9434 test "x$?" != "x0" && pkg_failed=yes
9444 if test $pkg_failed = yes; then
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446 $as_echo "no" >&6; }
9448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9449 _pkg_short_errors_supported=yes
9451 _pkg_short_errors_supported=no
9453 if test $_pkg_short_errors_supported = yes; then
9454 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9456 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9458 # Put the nasty error message in config.log where it belongs
9459 echo "$SQLITE3_PKG_ERRORS" >&5
9462 elif test $pkg_failed = untried; then
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464 $as_echo "no" >&6; }
9467 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9468 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9474 if test "$have_sqlite" = "yes"; then
9480 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9483 *** Building without SQLite support - TOFU and Keyboxd disabled
9486 $as_echo "$as_me: WARNING:
9488 *** Building without SQLite support - TOFU and Keyboxd disabled
9493 if test "$have_sqlite" != "yes"; then
9498 if test "$have_sqlite" = "yes"; then
9507 if test x"$use_tofu" = xyes ; then
9509 $as_echo "#define USE_TOFU 1" >>confdefs.h
9516 # Extract the first word of "encfs", so it can be a program name with args.
9517 set dummy encfs; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_ENCFS+:} false; then :
9521 $as_echo_n "(cached) " >&6
9525 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9547 ENCFS=$ac_cv_path_ENCFS
9548 if test -n "$ENCFS"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9550 $as_echo "$ENCFS" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9558 cat >>confdefs.h <<_ACEOF
9559 #define ENCFS "${ENCFS}"
9563 # Extract the first word of "fusermount", so it can be a program name with args.
9564 set dummy fusermount; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9568 $as_echo_n "(cached) " >&6
9572 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9582 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9594 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9595 if test -n "$FUSERMOUNT"; then
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9597 $as_echo "$FUSERMOUNT" >&6; }
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9605 cat >>confdefs.h <<_ACEOF
9606 #define FUSERMOUNT "${FUSERMOUNT}"
9613 # Check whether the nPth library is available
9616 # Check whether --with-npth-prefix was given.
9617 if test "${with_npth_prefix+set}" = set; then :
9618 withval=$with_npth_prefix; npth_config_prefix="$withval"
9620 npth_config_prefix=""
9623 if test "x$npth_config_prefix" != x ; then
9624 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9628 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9629 if $GPGRT_CONFIG npth --exists; then
9630 NPTH_CONFIG="$GPGRT_CONFIG npth"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9632 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9633 use_gpgrt_config=yes
9636 if test -z "$use_gpgrt_config"; then
9637 # Extract the first word of "npth-config", so it can be a program name with args.
9638 set dummy npth-config; ac_word=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9642 $as_echo_n "(cached) " >&6
9644 case $NPTH_CONFIG in
9646 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9664 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9668 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9669 if test -n "$NPTH_CONFIG"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9671 $as_echo "$NPTH_CONFIG" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9680 if test "$NPTH_CONFIG" != "no" ; then
9681 if test -z "$use_gpgrt_config"; then
9682 npth_version=`$NPTH_CONFIG --version`
9684 npth_version=`$NPTH_CONFIG --modversion`
9687 npth_version_major=`echo $npth_version | \
9688 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9689 npth_version_minor=`echo $npth_version | \
9690 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9692 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9693 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9694 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9695 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9698 min_npth_version="$tmp"
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9702 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9704 if test "$NPTH_CONFIG" != "no" ; then
9705 req_major=`echo $min_npth_version | \
9706 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9707 req_minor=`echo $min_npth_version | \
9708 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9709 if test "$npth_version_major" -gt "$req_major"; then
9712 if test "$npth_version_major" -eq "$req_major"; then
9713 if test "$npth_version_minor" -gt "$req_minor"; then
9716 if test "$npth_version_minor" -eq "$req_minor"; then
9723 if test $ok = yes; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9725 $as_echo "yes ($npth_version)" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9730 if test $ok = yes; then
9731 # If we have a recent NPTH, we should also check that the
9732 # API is compatible.
9733 if test "$req_npth_api" -gt 0 ; then
9734 if test -z "$use_gpgrt_config"; then
9735 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9737 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9739 if test "$tmp" -gt 0 ; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9741 $as_echo_n "checking NPTH API version... " >&6; }
9742 if test "$req_npth_api" -eq "$tmp" ; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9744 $as_echo "okay" >&6; }
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9748 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9753 if test $ok = yes; then
9754 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9755 NPTH_LIBS=`$NPTH_CONFIG --libs`
9757 if test -z "$use_gpgrt_config"; then
9758 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9760 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9762 if test x"$npth_config_host" != xnone ; then
9763 if test x"$npth_config_host" != x"$host" ; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9766 *** The config script \"$NPTH_CONFIG\" was
9767 *** built for $npth_config_host and thus may not match the
9768 *** used host $host.
9769 *** You may want to use the configure option --with-npth-prefix
9770 *** to specify a matching config script.
9772 $as_echo "$as_me: 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.
9790 if test "$have_npth" = "yes"; then
9792 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9795 $as_echo "#define USE_NPTH 1" >>confdefs.h
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9800 *** To support concurrent access for example in gpg-agent and the SCdaemon
9801 *** we need the support of the New Portable Threads Library.
9803 $as_echo "$as_me: WARNING:
9805 *** To support concurrent access for example in gpg-agent and the SCdaemon
9806 *** we need the support of the New Portable Threads Library.
9810 # Enable debugging of nPth
9812 # Check whether --enable-npth-debug was given.
9813 if test "${enable_npth_debug+set}" = set; then :
9814 enableval=$enable_npth_debug; if test $enableval = yes ; then
9816 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9825 # NTBTLS is our TLS library. If it is not available we fall back to
9828 # Check whether --enable-ntbtls was given.
9829 if test "${enable_ntbtls+set}" = set; then :
9830 enableval=$enable_ntbtls; try_ntbtls=$enableval
9835 if test x"$try_ntbtls" = xyes ; then
9838 # Check whether --with-ntbtls-prefix was given.
9839 if test "${with_ntbtls_prefix+set}" = set; then :
9840 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9842 ntbtls_config_prefix=""
9845 if test x"${NTBTLS_CONFIG}" = x ; then
9846 if test x"${ntbtls_config_prefix}" != x ; then
9847 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9852 if test x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9853 if $GPGRT_CONFIG ntbtls --exists; then
9854 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9856 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9857 use_gpgrt_config=yes
9860 if test -z "$use_gpgrt_config"; then
9861 if test x"${NTBTLS_CONFIG}" = x ; then
9862 case "${SYSROOT}" in
9864 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9865 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9872 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9876 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9877 set dummy ntbtls-config; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9881 $as_echo_n "(cached) " >&6
9883 case $NTBTLS_CONFIG in
9885 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9895 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9907 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9908 if test -n "$NTBTLS_CONFIG"; then
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9910 $as_echo "$NTBTLS_CONFIG" >&6; }
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913 $as_echo "no" >&6; }
9919 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9920 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9921 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9922 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9925 min_ntbtls_version="$tmp"
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9929 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9931 if test "$NTBTLS_CONFIG" != "no" ; then
9932 req_major=`echo $min_ntbtls_version | \
9933 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9934 req_minor=`echo $min_ntbtls_version | \
9935 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9936 req_micro=`echo $min_ntbtls_version | \
9937 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9938 if test -z "$use_gpgrt_config"; then
9939 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9941 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9943 major=`echo $ntbtls_config_version | \
9944 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9945 minor=`echo $ntbtls_config_version | \
9946 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9947 micro=`echo $ntbtls_config_version | \
9948 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9949 if test "$major" -gt "$req_major"; then
9952 if test "$major" -eq "$req_major"; then
9953 if test "$minor" -gt "$req_minor"; then
9956 if test "$minor" -eq "$req_minor"; then
9957 if test "$micro" -ge "$req_micro"; then
9965 if test $ok = yes; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9967 $as_echo "yes ($ntbtls_config_version)" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9972 if test $ok = yes; then
9973 # If we have a recent ntbtls, we should also check that the
9975 if test "$req_ntbtls_api" -gt 0 ; then
9976 if test -z "$use_gpgrt_config"; then
9977 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9979 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9981 if test "$tmp" -gt 0 ; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9983 $as_echo_n "checking NTBTLS API version... " >&6; }
9984 if test "$req_ntbtls_api" -eq "$tmp" ; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9986 $as_echo "okay" >&6; }
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9990 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9995 if test $ok = yes; then
9996 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9997 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9999 if test -z "$use_gpgrt_config"; then
10000 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10002 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10004 if test x"$ntbtls_config_host" != xnone ; then
10005 if test x"$ntbtls_config_host" != x"$host" ; then
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10008 *** The config script \"$NTBTLS_CONFIG\" was
10009 *** built for $ntbtls_config_host and thus may not match the
10010 *** used host $host.
10011 *** You may want to use the configure option --with-ntbtls-prefix
10012 *** to specify a matching config script or use \$SYSROOT.
10014 $as_echo "$as_me: 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 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10034 if test "$have_ntbtls" = yes ; then
10035 use_tls_library=ntbtls
10037 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10040 # Check whether --enable-gnutls was given.
10041 if test "${enable_gnutls+set}" = set; then :
10042 enableval=$enable_gnutls; try_gnutls=$enableval
10047 if test x"$try_gnutls" = xyes ; then
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10051 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10053 if test -n "$LIBGNUTLS_CFLAGS"; then
10054 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10055 elif test -n "$PKG_CONFIG"; then
10056 if test -n "$PKG_CONFIG" && \
10057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10058 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; }; then
10062 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10063 test "x$?" != "x0" && pkg_failed=yes
10070 if test -n "$LIBGNUTLS_LIBS"; then
10071 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10072 elif test -n "$PKG_CONFIG"; then
10073 if test -n "$PKG_CONFIG" && \
10074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10075 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078 test $ac_status = 0; }; then
10079 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10080 test "x$?" != "x0" && pkg_failed=yes
10090 if test $pkg_failed = yes; then
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092 $as_echo "no" >&6; }
10094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10095 _pkg_short_errors_supported=yes
10097 _pkg_short_errors_supported=no
10099 if test $_pkg_short_errors_supported = yes; then
10100 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10102 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10104 # Put the nasty error message in config.log where it belongs
10105 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10108 elif test $pkg_failed = untried; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110 $as_echo "no" >&6; }
10113 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10114 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10116 $as_echo "yes" >&6; }
10120 if test "$have_gnutls" = "yes"; then
10123 use_tls_library=gnutls
10125 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10128 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10132 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10135 $as_echo "$as_me: WARNING:
10137 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10144 # Allow to set a fixed trust store file for system provided certificates.
10147 # Check whether --with-default-trust-store-file was given.
10148 if test "${with_default_trust_store_file+set}" = set; then :
10149 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10151 default_trust_store_file=""
10154 if test x"$default_trust_store_file" = xno;then
10155 default_trust_store_file=""
10157 if test x"$default_trust_store_file" != x ; then
10159 cat >>confdefs.h <<_ACEOF
10160 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10167 $as_echo "$as_me: checking for networking options" >&6;}
10170 # Must check for network library requirements before doing link tests
10171 # for ldap, for example. If ldap libs are static (or dynamic and without
10172 # ELF runtime link paths), then link will fail and LDAP support won't
10175 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10176 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10180 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10181 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10182 $as_echo_n "(cached) " >&6
10184 ac_check_lib_save_LIBS=$LIBS
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10195 char gethostbyname ();
10199 return gethostbyname ();
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 ac_cv_lib_nsl_gethostbyname=yes
10207 ac_cv_lib_nsl_gethostbyname=no
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10214 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10215 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10216 NETLIBS="-lnsl $NETLIBS"
10221 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10222 if test "x$ac_cv_func_setsockopt" = xyes; then :
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10226 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10227 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10228 $as_echo_n "(cached) " >&6
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lsocket $LIBS"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10241 char setsockopt ();
10245 return setsockopt ();
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 ac_cv_lib_socket_setsockopt=yes
10253 ac_cv_lib_socket_setsockopt=no
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10260 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10261 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10262 NETLIBS="-lsocket $NETLIBS"
10270 # Check standard resolver functions.
10272 if test "$build_dirmngr" = "yes"; then
10273 _dns_save_libs=$LIBS
10276 # Find the system resolver which can always be enabled with
10277 # the dirmngr option --standard-resolver.
10279 # the double underscore thing is a glibc-ism?
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10281 $as_echo_n "checking for library containing res_query... " >&6; }
10282 if ${ac_cv_search_res_query+:} false; then :
10283 $as_echo_n "(cached) " >&6
10285 ac_func_search_save_LIBS=$LIBS
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10299 return res_query ();
10304 for ac_lib in '' resolv bind; do
10305 if test -z "$ac_lib"; then
10306 ac_res="none required"
10309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 ac_cv_search_res_query=$ac_res
10314 rm -f core conftest.err conftest.$ac_objext \
10316 if ${ac_cv_search_res_query+:} false; then :
10320 if ${ac_cv_search_res_query+:} false; then :
10323 ac_cv_search_res_query=no
10325 rm conftest.$ac_ext
10326 LIBS=$ac_func_search_save_LIBS
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10329 $as_echo "$ac_cv_search_res_query" >&6; }
10330 ac_res=$ac_cv_search_res_query
10331 if test "$ac_res" != no; then :
10332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10336 $as_echo_n "checking for library containing __res_query... " >&6; }
10337 if ${ac_cv_search___res_query+:} false; then :
10338 $as_echo_n "(cached) " >&6
10340 ac_func_search_save_LIBS=$LIBS
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10344 /* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10350 char __res_query ();
10354 return __res_query ();
10359 for ac_lib in '' resolv bind; do
10360 if test -z "$ac_lib"; then
10361 ac_res="none required"
10364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10366 if ac_fn_c_try_link "$LINENO"; then :
10367 ac_cv_search___res_query=$ac_res
10369 rm -f core conftest.err conftest.$ac_objext \
10371 if ${ac_cv_search___res_query+:} false; then :
10375 if ${ac_cv_search___res_query+:} false; then :
10378 ac_cv_search___res_query=no
10380 rm conftest.$ac_ext
10381 LIBS=$ac_func_search_save_LIBS
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10384 $as_echo "$ac_cv_search___res_query" >&6; }
10385 ac_res=$ac_cv_search___res_query
10386 if test "$ac_res" != no; then :
10387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10396 $as_echo_n "checking for library containing dn_expand... " >&6; }
10397 if ${ac_cv_search_dn_expand+:} false; then :
10398 $as_echo_n "(cached) " >&6
10400 ac_func_search_save_LIBS=$LIBS
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10414 return dn_expand ();
10419 for ac_lib in '' resolv bind; do
10420 if test -z "$ac_lib"; then
10421 ac_res="none required"
10424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 ac_cv_search_dn_expand=$ac_res
10429 rm -f core conftest.err conftest.$ac_objext \
10431 if ${ac_cv_search_dn_expand+:} false; then :
10435 if ${ac_cv_search_dn_expand+:} false; then :
10438 ac_cv_search_dn_expand=no
10440 rm conftest.$ac_ext
10441 LIBS=$ac_func_search_save_LIBS
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10444 $as_echo "$ac_cv_search_dn_expand" >&6; }
10445 ac_res=$ac_cv_search_dn_expand
10446 if test "$ac_res" != no; then :
10447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10451 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10452 if ${ac_cv_search___dn_expand+:} false; then :
10453 $as_echo_n "(cached) " >&6
10455 ac_func_search_save_LIBS=$LIBS
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10459 /* Override any GCC internal prototype to avoid an error.
10460 Use char because int might match the return type of a GCC
10461 builtin and then its argument prototype would still apply. */
10465 char __dn_expand ();
10469 return __dn_expand ();
10474 for ac_lib in '' resolv bind; do
10475 if test -z "$ac_lib"; then
10476 ac_res="none required"
10479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 ac_cv_search___dn_expand=$ac_res
10484 rm -f core conftest.err conftest.$ac_objext \
10486 if ${ac_cv_search___dn_expand+:} false; then :
10490 if ${ac_cv_search___dn_expand+:} false; then :
10493 ac_cv_search___dn_expand=no
10495 rm conftest.$ac_ext
10496 LIBS=$ac_func_search_save_LIBS
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10499 $as_echo "$ac_cv_search___dn_expand" >&6; }
10500 ac_res=$ac_cv_search___dn_expand
10501 if test "$ac_res" != no; then :
10502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10511 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10512 # and for some reason fools us into believing we don't need
10513 # -lresolv even if we do. Since the test program checking for the
10514 # symbol does not include <resolv.h>, we need to check for the
10515 # renamed symbol explicitly.
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10517 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10518 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10519 $as_echo_n "(cached) " >&6
10521 ac_func_search_save_LIBS=$LIBS
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10531 char res_9_dn_skipname ();
10535 return res_9_dn_skipname ();
10540 for ac_lib in '' resolv bind; do
10541 if test -z "$ac_lib"; then
10542 ac_res="none required"
10545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10547 if ac_fn_c_try_link "$LINENO"; then :
10548 ac_cv_search_res_9_dn_skipname=$ac_res
10550 rm -f core conftest.err conftest.$ac_objext \
10552 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10556 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10559 ac_cv_search_res_9_dn_skipname=no
10561 rm conftest.$ac_ext
10562 LIBS=$ac_func_search_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10565 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10566 ac_res=$ac_cv_search_res_9_dn_skipname
10567 if test "$ac_res" != no; then :
10568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10572 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10573 if ${ac_cv_search_dn_skipname+:} false; then :
10574 $as_echo_n "(cached) " >&6
10576 ac_func_search_save_LIBS=$LIBS
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10586 char dn_skipname ();
10590 return dn_skipname ();
10595 for ac_lib in '' resolv bind; do
10596 if test -z "$ac_lib"; then
10597 ac_res="none required"
10600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10602 if ac_fn_c_try_link "$LINENO"; then :
10603 ac_cv_search_dn_skipname=$ac_res
10605 rm -f core conftest.err conftest.$ac_objext \
10607 if ${ac_cv_search_dn_skipname+:} false; then :
10611 if ${ac_cv_search_dn_skipname+:} false; then :
10614 ac_cv_search_dn_skipname=no
10616 rm conftest.$ac_ext
10617 LIBS=$ac_func_search_save_LIBS
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10620 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10621 ac_res=$ac_cv_search_dn_skipname
10622 if test "$ac_res" != no; then :
10623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10627 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10628 if ${ac_cv_search___dn_skipname+:} false; then :
10629 $as_echo_n "(cached) " >&6
10631 ac_func_search_save_LIBS=$LIBS
10632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10635 /* Override any GCC internal prototype to avoid an error.
10636 Use char because int might match the return type of a GCC
10637 builtin and then its argument prototype would still apply. */
10641 char __dn_skipname ();
10645 return __dn_skipname ();
10650 for ac_lib in '' resolv bind; do
10651 if test -z "$ac_lib"; then
10652 ac_res="none required"
10655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10657 if ac_fn_c_try_link "$LINENO"; then :
10658 ac_cv_search___dn_skipname=$ac_res
10660 rm -f core conftest.err conftest.$ac_objext \
10662 if ${ac_cv_search___dn_skipname+:} false; then :
10666 if ${ac_cv_search___dn_skipname+:} false; then :
10669 ac_cv_search___dn_skipname=no
10671 rm conftest.$ac_ext
10672 LIBS=$ac_func_search_save_LIBS
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10675 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10676 ac_res=$ac_cv_search___dn_skipname
10677 if test "$ac_res" != no; then :
10678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10689 if test x"$have_resolver" != xno ; then
10691 # Make sure that the BIND 4 resolver interface is workable before
10692 # enabling any code that calls it. At some point I'll rewrite the
10693 # code to use the BIND 8 resolver API.
10694 # We might also want to use libdns instead.
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10697 $as_echo_n "checking whether the resolver is usable... " >&6; }
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 #include <sys/types.h>
10701 #include <netinet/in.h>
10702 #include <arpa/nameser.h>
10703 #include <resolv.h>
10707 unsigned char answer[PACKETSZ];
10708 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10710 dn_expand(0,0,0,0,0);
10716 if ac_fn_c_try_link "$LINENO"; then :
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10724 $as_echo "$have_resolver" >&6; }
10726 # This is Apple-specific and somewhat bizarre as they changed the
10727 # define in bind 8 for some reason.
10729 if test x"$have_resolver" != xyes ; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10731 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10733 /* end confdefs.h. */
10734 #define BIND_8_COMPAT
10735 #include <sys/types.h>
10736 #include <netinet/in.h>
10737 #include <arpa/nameser.h>
10738 #include <resolv.h>
10742 unsigned char answer[PACKETSZ];
10743 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10744 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 have_resolver=yes ; need_compat=yes
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10756 $as_echo "$have_resolver" >&6; }
10760 if test x"$have_resolver" = xyes ; then
10762 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10764 DNSLIBS="$DNSLIBS $LIBS"
10765 if test x"$need_compat" = xyes ; then
10767 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10770 if test "$use_libdns" = yes; then
10771 show_tor_support=yes
10773 elif test "$use_libdns" = yes; then
10774 show_tor_support=yes
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10778 *** The system's DNS resolver is not usable.
10779 *** Dirmngr functionality is limited.
10781 $as_echo "$as_me: WARNING:
10783 *** The system's DNS resolver is not usable.
10784 *** Dirmngr functionality is limited.
10786 show_tor_support="${show_tor_support} (no system resolver)"
10789 if test "$have_w32_system" = yes; then
10790 if test "$use_libdns" = yes; then
10791 DNSLIBS="$DNSLIBS -liphlpapi"
10795 LIBS=$_dns_save_libs
10804 # Note that running the check changes the variable
10805 # gnupg_have_ldap from "n/a" to "no" or "yes".
10807 # Check whether --enable-ldap was given.
10808 if test "${enable_ldap+set}" = set; then :
10809 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10813 if test "$gnupg_have_ldap" != "no" ; then
10814 if test "$build_dirmngr" = "yes" ; then
10816 # Try and link a LDAP test program to weed out unusable LDAP
10817 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10818 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10819 # If all else fails, the user can play guess-the-dependency by using
10820 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10823 # Check whether --with-ldap was given.
10824 if test "${with_ldap+set}" = set; then :
10825 withval=$with_ldap; _ldap_with=$withval
10829 if test x$_ldap_with != xno ; then
10831 if test -d "$withval" ; then
10832 LDAP_CPPFLAGS="-I$withval/include"
10833 LDAP_LDFLAGS="-L$withval/lib"
10836 _ldap_save_cppflags=$CPPFLAGS
10837 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10838 _ldap_save_ldflags=$LDFLAGS
10839 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10841 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10842 _ldap_save_libs=$LIBS
10843 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10846 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10851 #include <winsock2.h>
10852 #include <winldap.h>
10854 #define LDAP_DEPRECATED 1
10861 ldap_open("foobar",1234);
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 gnupg_cv_func_ldap_init=yes
10869 gnupg_cv_func_ldap_init=no
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10874 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10876 if test $gnupg_cv_func_ldap_init = no; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10878 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10882 #define LDAP_DEPRECATED 1
10887 ldap_open("foobar",1234);
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 gnupg_cv_func_ldaplber_init=yes
10895 gnupg_cv_func_ldaplber_init=no
10897 rm -f core conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10900 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10903 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10905 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10909 if test "$gnupg_cv_func_ldap_init" = yes || \
10910 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10911 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10912 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10913 gnupg_have_ldap=yes
10915 for ac_func in ldap_get_option ldap_set_option
10917 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10918 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10919 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927 # The extra test for ldap_start_tls_sA is for W32 because
10928 # that is the actual function in the library.
10929 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10932 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10934 cat >>confdefs.h <<_ACEOF
10935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942 if test "$ac_cv_func_ldap_get_option" != yes ; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10944 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10951 LDAP *ldap; ldap->ld_errno;
10956 if ac_fn_c_try_link "$LINENO"; then :
10957 gnupg_cv_func_ldap_ld_errno=yes
10959 gnupg_cv_func_ldap_ld_errno=no
10961 rm -f core conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10964 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10966 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10968 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10974 LIBS=$_ldap_save_libs
10976 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10983 CPPFLAGS=$_ldap_save_cppflags
10984 LDFLAGS=$_ldap_save_ldflags
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10988 $as_echo_n "checking for ber_free in -llber... " >&6; }
10989 if ${ac_cv_lib_lber_ber_free+:} false; then :
10990 $as_echo_n "(cached) " >&6
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-llber $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11007 return ber_free ();
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 ac_cv_lib_lber_ber_free=yes
11015 ac_cv_lib_lber_ber_free=no
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11022 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11023 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11024 LBER_LIBS="$LBER_LIBS -llber"
11026 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11035 if test "$gnupg_have_ldap" = "no"; then
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11038 *** Building without LDAP support.
11039 *** No CRL access or X.509 certificate search available.
11041 $as_echo "$as_me: WARNING:
11043 *** Building without LDAP support.
11044 *** No CRL access or X.509 certificate search available.
11048 if test "$gnupg_have_ldap" = yes; then
11056 if test "$gnupg_have_ldap" = yes ; then
11058 $as_echo "#define USE_LDAP 1" >>confdefs.h
11065 # Check for sendmail
11067 # This isn't necessarily sendmail itself, but anything that gives a
11068 # sendmail-ish interface to the outside world. That includes Exim,
11069 # Postfix, etc. Basically, anything that can handle "sendmail -t".
11071 # Check whether --with-mailprog was given.
11072 if test "${with_mailprog+set}" = set; then :
11073 withval=$with_mailprog;
11078 if test x"$with_mailprog" = xyes ; then
11079 # Extract the first word of "sendmail", so it can be a program name with args.
11080 set dummy sendmail; ac_word=$2
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082 $as_echo_n "checking for $ac_word... " >&6; }
11083 if ${ac_cv_path_SENDMAIL+:} false; then :
11084 $as_echo_n "(cached) " >&6
11088 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11093 for as_dir in $as_dummy
11096 test -z "$as_dir" && as_dir=.
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11099 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 SENDMAIL=$ac_cv_path_SENDMAIL
11111 if test -n "$SENDMAIL"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11113 $as_echo "$SENDMAIL" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11120 elif test x"$with_mailprog" != xno ; then
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11122 $as_echo_n "checking for a mail transport program... " >&6; }
11123 SENDMAIL=$with_mailprog
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11126 $as_echo "$with_mailprog" >&6; }
11129 cat >>confdefs.h <<_ACEOF
11130 #define NAME_OF_SENDMAIL "$SENDMAIL"
11136 # Construct a printable name of the OS
11140 PRINTABLE_OS_NAME="MingW32"
11143 PRINTABLE_OS_NAME="Cygwin"
11145 i?86-emx-os2 | i?86-*-os2*emx )
11146 PRINTABLE_OS_NAME="OS/2"
11148 i?86-*-msdosdjgpp*)
11149 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11153 PRINTABLE_OS_NAME="GNU/Linux"
11156 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11160 cat >>confdefs.h <<_ACEOF
11161 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11167 # Checking for iconv
11169 if test "$require_iconv" = yes; then
11171 if test "X$prefix" = "XNONE"; then
11172 acl_final_prefix="$ac_default_prefix"
11174 acl_final_prefix="$prefix"
11176 if test "X$exec_prefix" = "XNONE"; then
11177 acl_final_exec_prefix='${prefix}'
11179 acl_final_exec_prefix="$exec_prefix"
11181 acl_save_prefix="$prefix"
11182 prefix="$acl_final_prefix"
11183 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11184 prefix="$acl_save_prefix"
11187 # Check whether --with-gnu-ld was given.
11188 if test "${with_gnu_ld+set}" = set; then :
11189 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11194 # Prepare PATH_SEPARATOR.
11195 # The user is always right.
11196 if test "${PATH_SEPARATOR+set}" != set; then
11197 echo "#! /bin/sh" >conf$$.sh
11198 echo "exit 0" >>conf$$.sh
11200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11208 if test "$GCC" = yes; then
11209 # Check if gcc -print-prog-name=ld gives a path.
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11211 $as_echo_n "checking for ld used by GCC... " >&6; }
11214 # gcc leaves a trailing carriage return which upsets mingw
11215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11220 # Accept absolute paths.
11221 [\\/]* | [A-Za-z]:[\\/]*)
11222 re_direlt='/[^/][^/]*/\.\./'
11223 # Canonicalize the path of ld
11224 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11226 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11228 test -z "$LD" && LD="$ac_prog"
11231 # If it fails, then pretend we aren't using GCC.
11235 # If it is relative, then search for the first ld in PATH.
11236 with_gnu_ld=unknown
11239 elif test "$with_gnu_ld" = yes; then
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11241 $as_echo_n "checking for GNU ld... " >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11244 $as_echo_n "checking for non-GNU ld... " >&6; }
11246 if ${acl_cv_path_LD+:} false; then :
11247 $as_echo_n "(cached) " >&6
11249 if test -z "$LD"; then
11250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11251 for ac_dir in $PATH; do
11252 test -z "$ac_dir" && ac_dir=.
11253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11254 acl_cv_path_LD="$ac_dir/$ac_prog"
11255 # Check to see if the program is GNU ld. I'd rather use --version,
11256 # but apparently some GNU ld's only accept -v.
11257 # Break only if it was the GNU/non-GNU ld that we prefer.
11258 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11259 *GNU* | *'with BFD'*)
11260 test "$with_gnu_ld" != no && break ;;
11262 test "$with_gnu_ld" != yes && break ;;
11268 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11272 LD="$acl_cv_path_LD"
11273 if test -n "$LD"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11275 $as_echo "$LD" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11280 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11282 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11283 if ${acl_cv_prog_gnu_ld+:} false; then :
11284 $as_echo_n "(cached) " >&6
11286 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11287 case `$LD -v 2>&1 </dev/null` in
11288 *GNU* | *'with BFD'*)
11289 acl_cv_prog_gnu_ld=yes ;;
11291 acl_cv_prog_gnu_ld=no ;;
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11295 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11296 with_gnu_ld=$acl_cv_prog_gnu_ld
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11302 $as_echo_n "checking for shared library run path origin... " >&6; }
11303 if ${acl_cv_rpath+:} false; then :
11304 $as_echo_n "(cached) " >&6
11307 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11308 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11310 rm -f ./conftest.sh
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11315 $as_echo "$acl_cv_rpath" >&6; }
11317 acl_libext="$acl_cv_libext"
11318 acl_shlibext="$acl_cv_shlibext"
11319 acl_libname_spec="$acl_cv_libname_spec"
11320 acl_library_names_spec="$acl_cv_library_names_spec"
11321 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11322 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11323 acl_hardcode_direct="$acl_cv_hardcode_direct"
11324 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11325 # Check whether --enable-rpath was given.
11326 if test "${enable_rpath+set}" = set; then :
11327 enableval=$enable_rpath; :
11335 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11336 if test -n "$searchpath"; then
11337 acl_save_IFS="${IFS= }"; IFS=":"
11338 for searchdir in $searchpath; do
11339 if test -d "$searchdir"; then
11340 case "$searchdir" in
11341 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11342 *) searchdir=`cd "$searchdir" && pwd`
11343 case "$searchdir" in
11344 */lib64 ) acl_libdirstem=lib64 ;;
11349 IFS="$acl_save_IFS"
11362 acl_save_prefix="$prefix"
11363 prefix="$acl_final_prefix"
11364 acl_save_exec_prefix="$exec_prefix"
11365 exec_prefix="$acl_final_exec_prefix"
11367 eval additional_includedir=\"$includedir\"
11368 eval additional_libdir=\"$libdir\"
11370 exec_prefix="$acl_save_exec_prefix"
11371 prefix="$acl_save_prefix"
11374 # Check whether --with-libiconv-prefix was given.
11375 if test "${with_libiconv_prefix+set}" = set; then :
11376 withval=$with_libiconv_prefix;
11377 if test "X$withval" = "Xno"; then
11380 if test "X$withval" = "X"; then
11382 acl_save_prefix="$prefix"
11383 prefix="$acl_final_prefix"
11384 acl_save_exec_prefix="$exec_prefix"
11385 exec_prefix="$acl_final_exec_prefix"
11387 eval additional_includedir=\"$includedir\"
11388 eval additional_libdir=\"$libdir\"
11390 exec_prefix="$acl_save_exec_prefix"
11391 prefix="$acl_save_prefix"
11394 additional_includedir="$withval/include"
11395 additional_libdir="$withval/$acl_libdirstem"
11407 names_already_handled=
11408 names_next_round='iconv '
11409 while test -n "$names_next_round"; do
11410 names_this_round="$names_next_round"
11412 for name in $names_this_round; do
11414 for n in $names_already_handled; do
11415 if test "$n" = "$name"; then
11416 already_handled=yes
11420 if test -z "$already_handled"; then
11421 names_already_handled="$names_already_handled $name"
11422 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11423 eval value=\"\$HAVE_LIB$uppername\"
11424 if test -n "$value"; then
11425 if test "$value" = yes; then
11426 eval value=\"\$LIB$uppername\"
11427 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11428 eval value=\"\$LTLIB$uppername\"
11429 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11438 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11439 if test -n "$acl_shlibext"; then
11440 shrext=".$acl_shlibext" # typically: shrext=.so
11444 if test $use_additional = yes; then
11445 dir="$additional_libdir"
11446 if test -n "$acl_shlibext"; then
11447 if test -f "$dir/$libname$shrext"; then
11449 found_so="$dir/$libname$shrext"
11451 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11452 ver=`(cd "$dir" && \
11453 for f in "$libname$shrext".*; do echo "$f"; done \
11454 | sed -e "s,^$libname$shrext\\\\.,," \
11455 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11456 | sed 1q ) 2>/dev/null`
11457 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11459 found_so="$dir/$libname$shrext.$ver"
11462 eval library_names=\"$acl_library_names_spec\"
11463 for f in $library_names; do
11464 if test -f "$dir/$f"; then
11473 if test "X$found_dir" = "X"; then
11474 if test -f "$dir/$libname.$acl_libext"; then
11476 found_a="$dir/$libname.$acl_libext"
11479 if test "X$found_dir" != "X"; then
11480 if test -f "$dir/$libname.la"; then
11481 found_la="$dir/$libname.la"
11485 if test "X$found_dir" = "X"; then
11486 for x in $LDFLAGS $LTLIBICONV; do
11488 acl_save_prefix="$prefix"
11489 prefix="$acl_final_prefix"
11490 acl_save_exec_prefix="$exec_prefix"
11491 exec_prefix="$acl_final_exec_prefix"
11493 exec_prefix="$acl_save_exec_prefix"
11494 prefix="$acl_save_prefix"
11498 dir=`echo "X$x" | sed -e 's/^X-L//'`
11499 if test -n "$acl_shlibext"; then
11500 if test -f "$dir/$libname$shrext"; then
11502 found_so="$dir/$libname$shrext"
11504 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11505 ver=`(cd "$dir" && \
11506 for f in "$libname$shrext".*; do echo "$f"; done \
11507 | sed -e "s,^$libname$shrext\\\\.,," \
11508 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11509 | sed 1q ) 2>/dev/null`
11510 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11512 found_so="$dir/$libname$shrext.$ver"
11515 eval library_names=\"$acl_library_names_spec\"
11516 for f in $library_names; do
11517 if test -f "$dir/$f"; then
11526 if test "X$found_dir" = "X"; then
11527 if test -f "$dir/$libname.$acl_libext"; then
11529 found_a="$dir/$libname.$acl_libext"
11532 if test "X$found_dir" != "X"; then
11533 if test -f "$dir/$libname.la"; then
11534 found_la="$dir/$libname.la"
11539 if test "X$found_dir" != "X"; then
11544 if test "X$found_dir" != "X"; then
11545 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11546 if test "X$found_so" != "X"; then
11547 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11551 for x in $ltrpathdirs; do
11552 if test "X$x" = "X$found_dir"; then
11557 if test -z "$haveit"; then
11558 ltrpathdirs="$ltrpathdirs $found_dir"
11560 if test "$acl_hardcode_direct" = yes; then
11561 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11563 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11566 for x in $rpathdirs; do
11567 if test "X$x" = "X$found_dir"; then
11572 if test -z "$haveit"; then
11573 rpathdirs="$rpathdirs $found_dir"
11577 for x in $LDFLAGS $LIBICONV; do
11579 acl_save_prefix="$prefix"
11580 prefix="$acl_final_prefix"
11581 acl_save_exec_prefix="$exec_prefix"
11582 exec_prefix="$acl_final_exec_prefix"
11584 exec_prefix="$acl_save_exec_prefix"
11585 prefix="$acl_save_prefix"
11587 if test "X$x" = "X-L$found_dir"; then
11592 if test -z "$haveit"; then
11593 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11595 if test "$acl_hardcode_minus_L" != no; then
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11598 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11604 if test "X$found_a" != "X"; then
11605 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11607 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11610 additional_includedir=
11611 case "$found_dir" in
11612 */$acl_libdirstem | */$acl_libdirstem/)
11613 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11614 LIBICONV_PREFIX="$basedir"
11615 additional_includedir="$basedir/include"
11618 if test "X$additional_includedir" != "X"; then
11619 if test "X$additional_includedir" != "X/usr/include"; then
11621 if test "X$additional_includedir" = "X/usr/local/include"; then
11622 if test -n "$GCC"; then
11624 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11628 if test -z "$haveit"; then
11629 for x in $CPPFLAGS $INCICONV; do
11631 acl_save_prefix="$prefix"
11632 prefix="$acl_final_prefix"
11633 acl_save_exec_prefix="$exec_prefix"
11634 exec_prefix="$acl_final_exec_prefix"
11636 exec_prefix="$acl_save_exec_prefix"
11637 prefix="$acl_save_prefix"
11639 if test "X$x" = "X-I$additional_includedir"; then
11644 if test -z "$haveit"; then
11645 if test -d "$additional_includedir"; then
11646 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11652 if test -n "$found_la"; then
11653 save_libdir="$libdir"
11654 case "$found_la" in
11655 */* | *\\*) . "$found_la" ;;
11656 *) . "./$found_la" ;;
11658 libdir="$save_libdir"
11659 for dep in $dependency_libs; do
11662 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11663 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11665 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11666 if test -n "$GCC"; then
11668 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11672 if test -z "$haveit"; then
11674 for x in $LDFLAGS $LIBICONV; do
11676 acl_save_prefix="$prefix"
11677 prefix="$acl_final_prefix"
11678 acl_save_exec_prefix="$exec_prefix"
11679 exec_prefix="$acl_final_exec_prefix"
11681 exec_prefix="$acl_save_exec_prefix"
11682 prefix="$acl_save_prefix"
11684 if test "X$x" = "X-L$additional_libdir"; then
11689 if test -z "$haveit"; then
11690 if test -d "$additional_libdir"; then
11691 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11695 for x in $LDFLAGS $LTLIBICONV; do
11697 acl_save_prefix="$prefix"
11698 prefix="$acl_final_prefix"
11699 acl_save_exec_prefix="$exec_prefix"
11700 exec_prefix="$acl_final_exec_prefix"
11702 exec_prefix="$acl_save_exec_prefix"
11703 prefix="$acl_save_prefix"
11705 if test "X$x" = "X-L$additional_libdir"; then
11710 if test -z "$haveit"; then
11711 if test -d "$additional_libdir"; then
11712 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11719 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11720 if test "$enable_rpath" != no; then
11722 for x in $rpathdirs; do
11723 if test "X$x" = "X$dir"; then
11728 if test -z "$haveit"; then
11729 rpathdirs="$rpathdirs $dir"
11732 for x in $ltrpathdirs; do
11733 if test "X$x" = "X$dir"; then
11738 if test -z "$haveit"; then
11739 ltrpathdirs="$ltrpathdirs $dir"
11744 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11747 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11750 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11757 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11764 if test "X$rpathdirs" != "X"; then
11765 if test -n "$acl_hardcode_libdir_separator"; then
11767 for found_dir in $rpathdirs; do
11768 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11770 acl_save_libdir="$libdir"
11772 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11773 libdir="$acl_save_libdir"
11774 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11776 for found_dir in $rpathdirs; do
11777 acl_save_libdir="$libdir"
11778 libdir="$found_dir"
11779 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11780 libdir="$acl_save_libdir"
11781 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11785 if test "X$ltrpathdirs" != "X"; then
11786 for found_dir in $ltrpathdirs; do
11787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11797 am_save_CPPFLAGS="$CPPFLAGS"
11799 for element in $INCICONV; do
11801 for x in $CPPFLAGS; do
11803 acl_save_prefix="$prefix"
11804 prefix="$acl_final_prefix"
11805 acl_save_exec_prefix="$exec_prefix"
11806 exec_prefix="$acl_final_exec_prefix"
11808 exec_prefix="$acl_save_exec_prefix"
11809 prefix="$acl_save_prefix"
11811 if test "X$x" = "X$element"; then
11816 if test -z "$haveit"; then
11817 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11823 $as_echo_n "checking for iconv... " >&6; }
11824 if ${am_cv_func_iconv+:} false; then :
11825 $as_echo_n "(cached) " >&6
11828 am_cv_func_iconv="no, consider installing GNU libiconv"
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11833 #include <stdlib.h>
11839 iconv_t cd = iconv_open("","");
11840 iconv(cd,NULL,NULL,NULL,NULL);
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 am_cv_func_iconv=yes
11849 rm -f core conftest.err conftest.$ac_objext \
11850 conftest$ac_exeext conftest.$ac_ext
11851 if test "$am_cv_func_iconv" != yes; then
11852 am_save_LIBS="$LIBS"
11853 LIBS="$LIBS $LIBICONV"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 #include <stdlib.h>
11863 iconv_t cd = iconv_open("","");
11864 iconv(cd,NULL,NULL,NULL,NULL);
11870 if ac_fn_c_try_link "$LINENO"; then :
11871 am_cv_lib_iconv=yes
11872 am_cv_func_iconv=yes
11874 rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876 LIBS="$am_save_LIBS"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11881 $as_echo "$am_cv_func_iconv" >&6; }
11882 if test "$am_cv_func_iconv" = yes; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11884 $as_echo_n "checking for working iconv... " >&6; }
11885 if ${am_cv_func_iconv_works+:} false; then :
11886 $as_echo_n "(cached) " >&6
11889 am_save_LIBS="$LIBS"
11890 if test $am_cv_lib_iconv = yes; then
11891 LIBS="$LIBS $LIBICONV"
11893 am_cv_func_iconv_works=no
11894 for ac_iconv_const in '' 'const'; do
11895 if test "$cross_compiling" = yes; then :
11897 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11898 *) am_cv_func_iconv_works="guessing yes" ;;
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11905 #include <string.h>
11907 #ifndef ICONV_CONST
11908 # define ICONV_CONST $ac_iconv_const
11915 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11918 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11919 if (cd_utf8_to_88591 != (iconv_t)(-1))
11921 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11923 ICONV_CONST char *inptr = input;
11924 size_t inbytesleft = strlen (input);
11925 char *outptr = buf;
11926 size_t outbytesleft = sizeof (buf);
11927 size_t res = iconv (cd_utf8_to_88591,
11928 &inptr, &inbytesleft,
11929 &outptr, &outbytesleft);
11932 iconv_close (cd_utf8_to_88591);
11935 /* Test against Solaris 10 bug: Failures are not distinguishable from
11936 successful returns. */
11938 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11939 if (cd_ascii_to_88591 != (iconv_t)(-1))
11941 static ICONV_CONST char input[] = "\263";
11943 ICONV_CONST char *inptr = input;
11944 size_t inbytesleft = strlen (input);
11945 char *outptr = buf;
11946 size_t outbytesleft = sizeof (buf);
11947 size_t res = iconv (cd_ascii_to_88591,
11948 &inptr, &inbytesleft,
11949 &outptr, &outbytesleft);
11952 iconv_close (cd_ascii_to_88591);
11955 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11957 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11958 if (cd_88591_to_utf8 != (iconv_t)(-1))
11960 static ICONV_CONST char input[] = "\304";
11961 static char buf[2] = { (char)0xDE, (char)0xAD };
11962 ICONV_CONST char *inptr = input;
11963 size_t inbytesleft = 1;
11964 char *outptr = buf;
11965 size_t outbytesleft = 1;
11966 size_t res = iconv (cd_88591_to_utf8,
11967 &inptr, &inbytesleft,
11968 &outptr, &outbytesleft);
11969 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11971 iconv_close (cd_88591_to_utf8);
11974 #if 0 /* This bug could be worked around by the caller. */
11975 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11977 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11978 if (cd_88591_to_utf8 != (iconv_t)(-1))
11980 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11982 ICONV_CONST char *inptr = input;
11983 size_t inbytesleft = strlen (input);
11984 char *outptr = buf;
11985 size_t outbytesleft = sizeof (buf);
11986 size_t res = iconv (cd_88591_to_utf8,
11987 &inptr, &inbytesleft,
11988 &outptr, &outbytesleft);
11991 iconv_close (cd_88591_to_utf8);
11995 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11998 /* Try standardized names. */
11999 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12000 /* Try IRIX, OSF/1 names. */
12001 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12002 /* Try AIX names. */
12003 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12004 /* Try HP-UX names. */
12005 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12006 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12007 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12009 if (cd1 != (iconv_t)(-1))
12011 if (cd2 != (iconv_t)(-1))
12013 if (cd3 != (iconv_t)(-1))
12015 if (cd4 != (iconv_t)(-1))
12024 if ac_fn_c_try_run "$LINENO"; then :
12025 am_cv_func_iconv_works=yes
12027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12028 conftest.$ac_objext conftest.beam conftest.$ac_ext
12031 test "$am_cv_func_iconv_works" = no || break
12033 LIBS="$am_save_LIBS"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12037 $as_echo "$am_cv_func_iconv_works" >&6; }
12038 case "$am_cv_func_iconv_works" in
12039 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12040 *) am_func_iconv=yes ;;
12043 am_func_iconv=no am_cv_lib_iconv=no
12045 if test "$am_func_iconv" = yes; then
12047 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12050 if test "$am_cv_lib_iconv" = yes; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12052 $as_echo_n "checking how to link with libiconv... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12054 $as_echo "$LIBICONV" >&6; }
12056 CPPFLAGS="$am_save_CPPFLAGS"
12063 if test "$am_cv_func_iconv" = yes; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12065 $as_echo_n "checking for iconv declaration... " >&6; }
12066 if ${am_cv_proto_iconv+:} false; then :
12067 $as_echo_n "(cached) " >&6
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12073 #include <stdlib.h>
12079 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12080 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12093 if ac_fn_c_try_compile "$LINENO"; then :
12094 am_cv_proto_iconv_arg1=""
12096 am_cv_proto_iconv_arg1="const"
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 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);"
12102 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12104 $am_cv_proto_iconv" >&5
12106 $am_cv_proto_iconv" >&6; }
12108 am_cv_proto_iconv_arg1=""
12111 cat >>confdefs.h <<_ACEOF
12112 #define ICONV_CONST $am_cv_proto_iconv_arg1
12126 # Check for gettext
12128 # This is "GNU gnupg" - The project-id script from gettext
12129 # needs this string
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12132 $as_echo "$as_me: checking for gettext" >&6;}
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12135 $as_echo_n "checking whether NLS is requested... " >&6; }
12136 # Check whether --enable-nls was given.
12137 if test "${enable_nls+set}" = set; then :
12138 enableval=$enable_nls; USE_NLS=$enableval
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12144 $as_echo "$USE_NLS" >&6; }
12149 GETTEXT_MACRO_VERSION=0.17
12154 # Prepare PATH_SEPARATOR.
12155 # The user is always right.
12156 if test "${PATH_SEPARATOR+set}" != set; then
12157 echo "#! /bin/sh" >conf$$.sh
12158 echo "exit 0" >>conf$$.sh
12160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12168 # Find out how to test for executable files. Don't use a zero-byte file,
12169 # as systems may use methods other than mode bits to determine executability.
12170 cat >conf$$.file <<_ASEOF
12174 chmod +x conf$$.file
12175 if test -x conf$$.file >/dev/null 2>&1; then
12176 ac_executable_p="test -x"
12178 ac_executable_p="test -f"
12182 # Extract the first word of "msgfmt", so it can be a program name with args.
12183 set dummy msgfmt; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if ${ac_cv_path_MSGFMT+:} false; then :
12187 $as_echo_n "(cached) " >&6
12191 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12194 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12195 for ac_dir in $PATH; do
12197 test -z "$ac_dir" && ac_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12200 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12201 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12202 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12203 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12210 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12214 MSGFMT="$ac_cv_path_MSGFMT"
12215 if test "$MSGFMT" != ":"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12217 $as_echo "$MSGFMT" >&6; }
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12223 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12224 set dummy gmsgfmt; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226 $as_echo_n "checking for $ac_word... " >&6; }
12227 if ${ac_cv_path_GMSGFMT+:} false; then :
12228 $as_echo_n "(cached) " >&6
12232 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12254 GMSGFMT=$ac_cv_path_GMSGFMT
12255 if test -n "$GMSGFMT"; then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12257 $as_echo "$GMSGFMT" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12265 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12266 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12267 *) MSGFMT_015=$MSGFMT ;;
12270 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12271 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12272 *) GMSGFMT_015=$GMSGFMT ;;
12277 # Prepare PATH_SEPARATOR.
12278 # The user is always right.
12279 if test "${PATH_SEPARATOR+set}" != set; then
12280 echo "#! /bin/sh" >conf$$.sh
12281 echo "exit 0" >>conf$$.sh
12283 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12291 # Find out how to test for executable files. Don't use a zero-byte file,
12292 # as systems may use methods other than mode bits to determine executability.
12293 cat >conf$$.file <<_ASEOF
12297 chmod +x conf$$.file
12298 if test -x conf$$.file >/dev/null 2>&1; then
12299 ac_executable_p="test -x"
12301 ac_executable_p="test -f"
12305 # Extract the first word of "xgettext", so it can be a program name with args.
12306 set dummy xgettext; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if ${ac_cv_path_XGETTEXT+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 case "$XGETTEXT" in
12314 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12317 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12318 for ac_dir in $PATH; do
12320 test -z "$ac_dir" && ac_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12323 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12324 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12325 (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
12326 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12333 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12337 XGETTEXT="$ac_cv_path_XGETTEXT"
12338 if test "$XGETTEXT" != ":"; then
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12340 $as_echo "$XGETTEXT" >&6; }
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343 $as_echo "no" >&6; }
12348 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12349 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12350 *) XGETTEXT_015=$XGETTEXT ;;
12355 # Prepare PATH_SEPARATOR.
12356 # The user is always right.
12357 if test "${PATH_SEPARATOR+set}" != set; then
12358 echo "#! /bin/sh" >conf$$.sh
12359 echo "exit 0" >>conf$$.sh
12361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12369 # Find out how to test for executable files. Don't use a zero-byte file,
12370 # as systems may use methods other than mode bits to determine executability.
12371 cat >conf$$.file <<_ASEOF
12375 chmod +x conf$$.file
12376 if test -x conf$$.file >/dev/null 2>&1; then
12377 ac_executable_p="test -x"
12379 ac_executable_p="test -f"
12383 # Extract the first word of "msgmerge", so it can be a program name with args.
12384 set dummy msgmerge; ac_word=$2
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386 $as_echo_n "checking for $ac_word... " >&6; }
12387 if ${ac_cv_path_MSGMERGE+:} false; then :
12388 $as_echo_n "(cached) " >&6
12390 case "$MSGMERGE" in
12392 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12396 for ac_dir in $PATH; do
12398 test -z "$ac_dir" && ac_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
12400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12401 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12402 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12403 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12410 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12414 MSGMERGE="$ac_cv_path_MSGMERGE"
12415 if test "$MSGMERGE" != ":"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12417 $as_echo "$MSGMERGE" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12424 test -n "$localedir" || localedir='${datadir}/locale'
12427 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12430 ac_config_commands="$ac_config_commands po-directories"
12434 if test "$try_gettext" = yes; then
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12459 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12460 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12461 $as_echo_n "(cached) " >&6
12463 gt_save_LIBS="$LIBS"
12464 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467 #include <CoreFoundation/CFPreferences.h>
12471 CFPreferencesCopyAppValue(NULL, NULL)
12476 if ac_fn_c_try_link "$LINENO"; then :
12477 gt_cv_func_CFPreferencesCopyAppValue=yes
12479 gt_cv_func_CFPreferencesCopyAppValue=no
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS="$gt_save_LIBS"
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12486 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12487 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12489 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
12493 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
12494 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
12495 $as_echo_n "(cached) " >&6
12497 gt_save_LIBS="$LIBS"
12498 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <CoreFoundation/CFLocale.h>
12505 CFLocaleCopyPreferredLanguages();
12510 if ac_fn_c_try_link "$LINENO"; then :
12511 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
12513 gt_cv_func_CFLocaleCopyPreferredLanguages=no
12515 rm -f core conftest.err conftest.$ac_objext \
12516 conftest$ac_exeext conftest.$ac_ext
12517 LIBS="$gt_save_LIBS"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
12520 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
12521 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12523 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
12527 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
12528 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
12529 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12541 case " $gt_needs " in
12542 *" need-formatstring-macros "*) gt_api_version=3 ;;
12543 *" need-ngettext "*) gt_api_version=2 ;;
12544 *) gt_api_version=1 ;;
12546 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12547 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12549 if test "$USE_NLS" = "yes"; then
12550 gt_use_preinstalled_gnugettext=no
12553 if test $gt_api_version -ge 3; then
12554 gt_revision_test_code='
12555 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12556 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12558 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12561 gt_revision_test_code=
12563 if test $gt_api_version -ge 2; then
12564 gt_expression_test_code=' + * ngettext ("", "", 0)'
12566 gt_expression_test_code=
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12570 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12571 if eval \${$gt_func_gnugettext_libc+:} false; then :
12572 $as_echo_n "(cached) " >&6
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12577 #include <libintl.h>
12578 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12579 extern int _nl_msg_cat_cntr;
12580 extern int *_nl_domain_bindings;
12581 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12583 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12585 $gt_revision_test_code
12591 bindtextdomain ("", "");
12592 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12598 if ac_fn_c_try_link "$LINENO"; then :
12599 eval "$gt_func_gnugettext_libc=yes"
12601 eval "$gt_func_gnugettext_libc=no"
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12606 eval ac_res=\$$gt_func_gnugettext_libc
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12608 $as_echo "$ac_res" >&6; }
12610 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12616 am_save_CPPFLAGS="$CPPFLAGS"
12618 for element in $INCICONV; do
12620 for x in $CPPFLAGS; do
12622 acl_save_prefix="$prefix"
12623 prefix="$acl_final_prefix"
12624 acl_save_exec_prefix="$exec_prefix"
12625 exec_prefix="$acl_final_exec_prefix"
12627 exec_prefix="$acl_save_exec_prefix"
12628 prefix="$acl_save_prefix"
12630 if test "X$x" = "X$element"; then
12635 if test -z "$haveit"; then
12636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12642 $as_echo_n "checking for iconv... " >&6; }
12643 if ${am_cv_func_iconv+:} false; then :
12644 $as_echo_n "(cached) " >&6
12647 am_cv_func_iconv="no, consider installing GNU libiconv"
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12652 #include <stdlib.h>
12658 iconv_t cd = iconv_open("","");
12659 iconv(cd,NULL,NULL,NULL,NULL);
12665 if ac_fn_c_try_link "$LINENO"; then :
12666 am_cv_func_iconv=yes
12668 rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670 if test "$am_cv_func_iconv" != yes; then
12671 am_save_LIBS="$LIBS"
12672 LIBS="$LIBS $LIBICONV"
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 #include <stdlib.h>
12682 iconv_t cd = iconv_open("","");
12683 iconv(cd,NULL,NULL,NULL,NULL);
12689 if ac_fn_c_try_link "$LINENO"; then :
12690 am_cv_lib_iconv=yes
12691 am_cv_func_iconv=yes
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS="$am_save_LIBS"
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12700 $as_echo "$am_cv_func_iconv" >&6; }
12701 if test "$am_cv_func_iconv" = yes; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12703 $as_echo_n "checking for working iconv... " >&6; }
12704 if ${am_cv_func_iconv_works+:} false; then :
12705 $as_echo_n "(cached) " >&6
12708 am_save_LIBS="$LIBS"
12709 if test $am_cv_lib_iconv = yes; then
12710 LIBS="$LIBS $LIBICONV"
12712 am_cv_func_iconv_works=no
12713 for ac_iconv_const in '' 'const'; do
12714 if test "$cross_compiling" = yes; then :
12716 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12717 *) am_cv_func_iconv_works="guessing yes" ;;
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12724 #include <string.h>
12726 #ifndef ICONV_CONST
12727 # define ICONV_CONST $ac_iconv_const
12734 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12737 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12738 if (cd_utf8_to_88591 != (iconv_t)(-1))
12740 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12742 ICONV_CONST char *inptr = input;
12743 size_t inbytesleft = strlen (input);
12744 char *outptr = buf;
12745 size_t outbytesleft = sizeof (buf);
12746 size_t res = iconv (cd_utf8_to_88591,
12747 &inptr, &inbytesleft,
12748 &outptr, &outbytesleft);
12751 iconv_close (cd_utf8_to_88591);
12754 /* Test against Solaris 10 bug: Failures are not distinguishable from
12755 successful returns. */
12757 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12758 if (cd_ascii_to_88591 != (iconv_t)(-1))
12760 static ICONV_CONST char input[] = "\263";
12762 ICONV_CONST char *inptr = input;
12763 size_t inbytesleft = strlen (input);
12764 char *outptr = buf;
12765 size_t outbytesleft = sizeof (buf);
12766 size_t res = iconv (cd_ascii_to_88591,
12767 &inptr, &inbytesleft,
12768 &outptr, &outbytesleft);
12771 iconv_close (cd_ascii_to_88591);
12774 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12776 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12777 if (cd_88591_to_utf8 != (iconv_t)(-1))
12779 static ICONV_CONST char input[] = "\304";
12780 static char buf[2] = { (char)0xDE, (char)0xAD };
12781 ICONV_CONST char *inptr = input;
12782 size_t inbytesleft = 1;
12783 char *outptr = buf;
12784 size_t outbytesleft = 1;
12785 size_t res = iconv (cd_88591_to_utf8,
12786 &inptr, &inbytesleft,
12787 &outptr, &outbytesleft);
12788 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12790 iconv_close (cd_88591_to_utf8);
12793 #if 0 /* This bug could be worked around by the caller. */
12794 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12796 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12797 if (cd_88591_to_utf8 != (iconv_t)(-1))
12799 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12801 ICONV_CONST char *inptr = input;
12802 size_t inbytesleft = strlen (input);
12803 char *outptr = buf;
12804 size_t outbytesleft = sizeof (buf);
12805 size_t res = iconv (cd_88591_to_utf8,
12806 &inptr, &inbytesleft,
12807 &outptr, &outbytesleft);
12810 iconv_close (cd_88591_to_utf8);
12814 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12817 /* Try standardized names. */
12818 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12819 /* Try IRIX, OSF/1 names. */
12820 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12821 /* Try AIX names. */
12822 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12823 /* Try HP-UX names. */
12824 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12825 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12826 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12828 if (cd1 != (iconv_t)(-1))
12830 if (cd2 != (iconv_t)(-1))
12832 if (cd3 != (iconv_t)(-1))
12834 if (cd4 != (iconv_t)(-1))
12843 if ac_fn_c_try_run "$LINENO"; then :
12844 am_cv_func_iconv_works=yes
12846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12847 conftest.$ac_objext conftest.beam conftest.$ac_ext
12850 test "$am_cv_func_iconv_works" = no || break
12852 LIBS="$am_save_LIBS"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12856 $as_echo "$am_cv_func_iconv_works" >&6; }
12857 case "$am_cv_func_iconv_works" in
12858 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12859 *) am_func_iconv=yes ;;
12862 am_func_iconv=no am_cv_lib_iconv=no
12864 if test "$am_func_iconv" = yes; then
12866 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12869 if test "$am_cv_lib_iconv" = yes; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12871 $as_echo_n "checking how to link with libiconv... " >&6; }
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12873 $as_echo "$LIBICONV" >&6; }
12875 CPPFLAGS="$am_save_CPPFLAGS"
12889 acl_save_prefix="$prefix"
12890 prefix="$acl_final_prefix"
12891 acl_save_exec_prefix="$exec_prefix"
12892 exec_prefix="$acl_final_exec_prefix"
12894 eval additional_includedir=\"$includedir\"
12895 eval additional_libdir=\"$libdir\"
12897 exec_prefix="$acl_save_exec_prefix"
12898 prefix="$acl_save_prefix"
12901 # Check whether --with-libintl-prefix was given.
12902 if test "${with_libintl_prefix+set}" = set; then :
12903 withval=$with_libintl_prefix;
12904 if test "X$withval" = "Xno"; then
12907 if test "X$withval" = "X"; then
12909 acl_save_prefix="$prefix"
12910 prefix="$acl_final_prefix"
12911 acl_save_exec_prefix="$exec_prefix"
12912 exec_prefix="$acl_final_exec_prefix"
12914 eval additional_includedir=\"$includedir\"
12915 eval additional_libdir=\"$libdir\"
12917 exec_prefix="$acl_save_exec_prefix"
12918 prefix="$acl_save_prefix"
12921 additional_includedir="$withval/include"
12922 additional_libdir="$withval/$acl_libdirstem"
12934 names_already_handled=
12935 names_next_round='intl '
12936 while test -n "$names_next_round"; do
12937 names_this_round="$names_next_round"
12939 for name in $names_this_round; do
12941 for n in $names_already_handled; do
12942 if test "$n" = "$name"; then
12943 already_handled=yes
12947 if test -z "$already_handled"; then
12948 names_already_handled="$names_already_handled $name"
12949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12950 eval value=\"\$HAVE_LIB$uppername\"
12951 if test -n "$value"; then
12952 if test "$value" = yes; then
12953 eval value=\"\$LIB$uppername\"
12954 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12955 eval value=\"\$LTLIB$uppername\"
12956 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12965 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12966 if test -n "$acl_shlibext"; then
12967 shrext=".$acl_shlibext" # typically: shrext=.so
12971 if test $use_additional = yes; then
12972 dir="$additional_libdir"
12973 if test -n "$acl_shlibext"; then
12974 if test -f "$dir/$libname$shrext"; then
12976 found_so="$dir/$libname$shrext"
12978 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12979 ver=`(cd "$dir" && \
12980 for f in "$libname$shrext".*; do echo "$f"; done \
12981 | sed -e "s,^$libname$shrext\\\\.,," \
12982 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12983 | sed 1q ) 2>/dev/null`
12984 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12986 found_so="$dir/$libname$shrext.$ver"
12989 eval library_names=\"$acl_library_names_spec\"
12990 for f in $library_names; do
12991 if test -f "$dir/$f"; then
13000 if test "X$found_dir" = "X"; then
13001 if test -f "$dir/$libname.$acl_libext"; then
13003 found_a="$dir/$libname.$acl_libext"
13006 if test "X$found_dir" != "X"; then
13007 if test -f "$dir/$libname.la"; then
13008 found_la="$dir/$libname.la"
13012 if test "X$found_dir" = "X"; then
13013 for x in $LDFLAGS $LTLIBINTL; do
13015 acl_save_prefix="$prefix"
13016 prefix="$acl_final_prefix"
13017 acl_save_exec_prefix="$exec_prefix"
13018 exec_prefix="$acl_final_exec_prefix"
13020 exec_prefix="$acl_save_exec_prefix"
13021 prefix="$acl_save_prefix"
13025 dir=`echo "X$x" | sed -e 's/^X-L//'`
13026 if test -n "$acl_shlibext"; then
13027 if test -f "$dir/$libname$shrext"; then
13029 found_so="$dir/$libname$shrext"
13031 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13032 ver=`(cd "$dir" && \
13033 for f in "$libname$shrext".*; do echo "$f"; done \
13034 | sed -e "s,^$libname$shrext\\\\.,," \
13035 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13036 | sed 1q ) 2>/dev/null`
13037 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13039 found_so="$dir/$libname$shrext.$ver"
13042 eval library_names=\"$acl_library_names_spec\"
13043 for f in $library_names; do
13044 if test -f "$dir/$f"; then
13053 if test "X$found_dir" = "X"; then
13054 if test -f "$dir/$libname.$acl_libext"; then
13056 found_a="$dir/$libname.$acl_libext"
13059 if test "X$found_dir" != "X"; then
13060 if test -f "$dir/$libname.la"; then
13061 found_la="$dir/$libname.la"
13066 if test "X$found_dir" != "X"; then
13071 if test "X$found_dir" != "X"; then
13072 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13073 if test "X$found_so" != "X"; then
13074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13075 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13078 for x in $ltrpathdirs; do
13079 if test "X$x" = "X$found_dir"; then
13084 if test -z "$haveit"; then
13085 ltrpathdirs="$ltrpathdirs $found_dir"
13087 if test "$acl_hardcode_direct" = yes; then
13088 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13090 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13093 for x in $rpathdirs; do
13094 if test "X$x" = "X$found_dir"; then
13099 if test -z "$haveit"; then
13100 rpathdirs="$rpathdirs $found_dir"
13104 for x in $LDFLAGS $LIBINTL; do
13106 acl_save_prefix="$prefix"
13107 prefix="$acl_final_prefix"
13108 acl_save_exec_prefix="$exec_prefix"
13109 exec_prefix="$acl_final_exec_prefix"
13111 exec_prefix="$acl_save_exec_prefix"
13112 prefix="$acl_save_prefix"
13114 if test "X$x" = "X-L$found_dir"; then
13119 if test -z "$haveit"; then
13120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13122 if test "$acl_hardcode_minus_L" != no; then
13123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13125 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13131 if test "X$found_a" != "X"; then
13132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13134 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13137 additional_includedir=
13138 case "$found_dir" in
13139 */$acl_libdirstem | */$acl_libdirstem/)
13140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13141 LIBINTL_PREFIX="$basedir"
13142 additional_includedir="$basedir/include"
13145 if test "X$additional_includedir" != "X"; then
13146 if test "X$additional_includedir" != "X/usr/include"; then
13148 if test "X$additional_includedir" = "X/usr/local/include"; then
13149 if test -n "$GCC"; then
13151 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13155 if test -z "$haveit"; then
13156 for x in $CPPFLAGS $INCINTL; do
13158 acl_save_prefix="$prefix"
13159 prefix="$acl_final_prefix"
13160 acl_save_exec_prefix="$exec_prefix"
13161 exec_prefix="$acl_final_exec_prefix"
13163 exec_prefix="$acl_save_exec_prefix"
13164 prefix="$acl_save_prefix"
13166 if test "X$x" = "X-I$additional_includedir"; then
13171 if test -z "$haveit"; then
13172 if test -d "$additional_includedir"; then
13173 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13179 if test -n "$found_la"; then
13180 save_libdir="$libdir"
13181 case "$found_la" in
13182 */* | *\\*) . "$found_la" ;;
13183 *) . "./$found_la" ;;
13185 libdir="$save_libdir"
13186 for dep in $dependency_libs; do
13189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13190 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13192 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13193 if test -n "$GCC"; then
13195 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13199 if test -z "$haveit"; then
13201 for x in $LDFLAGS $LIBINTL; do
13203 acl_save_prefix="$prefix"
13204 prefix="$acl_final_prefix"
13205 acl_save_exec_prefix="$exec_prefix"
13206 exec_prefix="$acl_final_exec_prefix"
13208 exec_prefix="$acl_save_exec_prefix"
13209 prefix="$acl_save_prefix"
13211 if test "X$x" = "X-L$additional_libdir"; then
13216 if test -z "$haveit"; then
13217 if test -d "$additional_libdir"; then
13218 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13222 for x in $LDFLAGS $LTLIBINTL; do
13224 acl_save_prefix="$prefix"
13225 prefix="$acl_final_prefix"
13226 acl_save_exec_prefix="$exec_prefix"
13227 exec_prefix="$acl_final_exec_prefix"
13229 exec_prefix="$acl_save_exec_prefix"
13230 prefix="$acl_save_prefix"
13232 if test "X$x" = "X-L$additional_libdir"; then
13237 if test -z "$haveit"; then
13238 if test -d "$additional_libdir"; then
13239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13247 if test "$enable_rpath" != no; then
13249 for x in $rpathdirs; do
13250 if test "X$x" = "X$dir"; then
13255 if test -z "$haveit"; then
13256 rpathdirs="$rpathdirs $dir"
13259 for x in $ltrpathdirs; do
13260 if test "X$x" = "X$dir"; then
13265 if test -z "$haveit"; then
13266 ltrpathdirs="$ltrpathdirs $dir"
13271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13277 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13278 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13284 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13285 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13291 if test "X$rpathdirs" != "X"; then
13292 if test -n "$acl_hardcode_libdir_separator"; then
13294 for found_dir in $rpathdirs; do
13295 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13297 acl_save_libdir="$libdir"
13299 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13300 libdir="$acl_save_libdir"
13301 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13303 for found_dir in $rpathdirs; do
13304 acl_save_libdir="$libdir"
13305 libdir="$found_dir"
13306 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13307 libdir="$acl_save_libdir"
13308 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13312 if test "X$ltrpathdirs" != "X"; then
13313 for found_dir in $ltrpathdirs; do
13314 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13319 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13320 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13321 $as_echo_n "(cached) " >&6
13323 gt_save_CPPFLAGS="$CPPFLAGS"
13324 CPPFLAGS="$CPPFLAGS $INCINTL"
13325 gt_save_LIBS="$LIBS"
13326 LIBS="$LIBS $LIBINTL"
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13330 #include <libintl.h>
13331 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13332 extern int _nl_msg_cat_cntr;
13337 const char *_nl_expand_alias (const char *);
13338 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13342 $gt_revision_test_code
13348 bindtextdomain ("", "");
13349 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13355 if ac_fn_c_try_link "$LINENO"; then :
13356 eval "$gt_func_gnugettext_libintl=yes"
13358 eval "$gt_func_gnugettext_libintl=no"
13360 rm -f core conftest.err conftest.$ac_objext \
13361 conftest$ac_exeext conftest.$ac_ext
13362 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13363 LIBS="$LIBS $LIBICONV"
13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h. */
13367 #include <libintl.h>
13368 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13369 extern int _nl_msg_cat_cntr;
13374 const char *_nl_expand_alias (const char *);
13375 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13379 $gt_revision_test_code
13385 bindtextdomain ("", "");
13386 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13392 if ac_fn_c_try_link "$LINENO"; then :
13393 LIBINTL="$LIBINTL $LIBICONV"
13394 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13395 eval "$gt_func_gnugettext_libintl=yes"
13398 rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13401 CPPFLAGS="$gt_save_CPPFLAGS"
13402 LIBS="$gt_save_LIBS"
13404 eval ac_res=\$$gt_func_gnugettext_libintl
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13406 $as_echo "$ac_res" >&6; }
13409 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13410 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13411 && test "$PACKAGE" != gettext-runtime \
13412 && test "$PACKAGE" != gettext-tools; }; then
13413 gt_use_preinstalled_gnugettext=yes
13422 if test -n "$INTL_MACOSX_LIBS"; then
13423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13425 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13426 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13430 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13431 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13433 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13441 $as_echo_n "checking whether to use NLS... " >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13443 $as_echo "$USE_NLS" >&6; }
13444 if test "$USE_NLS" = "yes"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13446 $as_echo_n "checking where the gettext function comes from... " >&6; }
13447 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13448 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13449 gt_source="external libintl"
13454 gt_source="included intl directory"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13457 $as_echo "$gt_source" >&6; }
13460 if test "$USE_NLS" = "yes"; then
13462 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13463 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13465 $as_echo_n "checking how to link with libintl... " >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13467 $as_echo "$LIBINTL" >&6; }
13469 for element in $INCINTL; do
13471 for x in $CPPFLAGS; do
13473 acl_save_prefix="$prefix"
13474 prefix="$acl_final_prefix"
13475 acl_save_exec_prefix="$exec_prefix"
13476 exec_prefix="$acl_final_exec_prefix"
13478 exec_prefix="$acl_save_exec_prefix"
13479 prefix="$acl_save_prefix"
13481 if test "X$x" = "X$element"; then
13486 if test -z "$haveit"; then
13487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13494 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13497 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13506 INTLLIBS="$LIBINTL"
13514 # gettext requires some extra checks. These really should be part of
13515 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13516 # function checks to here.
13518 for ac_func in strchr
13520 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13521 if test "x$ac_cv_func_strchr" = xyes; then :
13522 cat >>confdefs.h <<_ACEOF
13523 #define HAVE_STRCHR 1
13531 USE_INCLUDED_LIBINTL=no
13532 BUILD_INCLUDED_LIBINTL=no
13540 # We use HAVE_LANGINFO_CODESET in a couple of places.
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13543 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13544 if ${am_cv_langinfo_codeset+:} false; then :
13545 $as_echo_n "(cached) " >&6
13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h. */
13549 #include <langinfo.h>
13553 char* cs = nl_langinfo(CODESET); return !cs;
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 am_cv_langinfo_codeset=yes
13561 am_cv_langinfo_codeset=no
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13568 $as_echo "$am_cv_langinfo_codeset" >&6; }
13569 if test $am_cv_langinfo_codeset = yes; then
13571 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13576 # Checks required for our use of locales
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13579 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13580 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13581 $as_echo_n "(cached) " >&6
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <locale.h>
13594 if ac_fn_c_try_link "$LINENO"; then :
13595 gt_cv_val_LC_MESSAGES=yes
13597 gt_cv_val_LC_MESSAGES=no
13599 rm -f core conftest.err conftest.$ac_objext \
13600 conftest$ac_exeext conftest.$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13603 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13604 if test $gt_cv_val_LC_MESSAGES = yes; then
13606 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13615 if test "$selinux_support" = yes ; then
13617 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13623 # Checks for header files.
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13626 $as_echo "$as_me: checking for header files" >&6;}
13627 for ac_header in unistd.h langinfo.h termio.h locale.h \
13628 pwd.h inttypes.h signal.h sys/select.h sys/time.h \
13629 stdint.h signal.h termios.h \
13630 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13633 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13646 # Checks for typedefs, structures, and compiler characteristics.
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13649 $as_echo "$as_me: checking for system characteristics" >&6;}
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13651 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13652 if ${ac_cv_c_const+:} false; then :
13653 $as_echo_n "(cached) " >&6
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13662 #ifndef __cplusplus
13663 /* Ultrix mips cc rejects this sort of thing. */
13664 typedef int charset[2];
13665 const charset cs = { 0, 0 };
13666 /* SunOS 4.1.1 cc rejects this. */
13667 char const *const *pcpcc;
13669 /* NEC SVR4.0.2 mips cc rejects this. */
13670 struct point {int x, y;};
13671 static struct point const zero = {0,0};
13672 /* AIX XL C 1.02.0.0 rejects this.
13673 It does not let you subtract one const X* pointer from another in
13674 an arm of an if-expression whose if-part is not a constant
13676 const char *g = "string";
13677 pcpcc = &g + (g ? g-g : 0);
13678 /* HPUX 7.0 cc rejects these. */
13680 ppc = (char**) pcpcc;
13681 pcpcc = (char const *const *) ppc;
13682 { /* SCO 3.2v4 cc rejects this sort of thing. */
13685 char const *s = 0 ? (char *) 0 : (char const *) 0;
13690 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13691 int x[] = {25, 17};
13692 const int *foo = &x[0];
13695 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13696 typedef const int *iptr;
13700 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13701 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13702 struct s { int j; const int *ap[3]; } bx;
13703 struct s *b = &bx; b->j = 5;
13705 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13706 const int foo = 10;
13707 if (!foo) return 0;
13709 return !cs[0] && !zero.x;
13716 if ac_fn_c_try_compile "$LINENO"; then :
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13724 $as_echo "$ac_cv_c_const" >&6; }
13725 if test $ac_cv_c_const = no; then
13727 $as_echo "#define const /**/" >>confdefs.h
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13732 $as_echo_n "checking for inline... " >&6; }
13733 if ${ac_cv_c_inline+:} false; then :
13734 $as_echo_n "(cached) " >&6
13737 for ac_kw in inline __inline__ __inline; do
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13740 #ifndef __cplusplus
13742 static $ac_kw foo_t static_foo () {return 0; }
13743 $ac_kw foo_t foo () {return 0; }
13747 if ac_fn_c_try_compile "$LINENO"; then :
13748 ac_cv_c_inline=$ac_kw
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 test "$ac_cv_c_inline" != no && break
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13756 $as_echo "$ac_cv_c_inline" >&6; }
13758 case $ac_cv_c_inline in
13761 case $ac_cv_c_inline in
13763 *) ac_val=$ac_cv_c_inline;;
13765 cat >>confdefs.h <<_ACEOF
13766 #ifndef __cplusplus
13767 #define inline $ac_val
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13774 $as_echo_n "checking for working volatile... " >&6; }
13775 if ${ac_cv_c_volatile+:} false; then :
13776 $as_echo_n "(cached) " >&6
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13786 int * volatile y = (int *) 0;
13792 if ac_fn_c_try_compile "$LINENO"; then :
13793 ac_cv_c_volatile=yes
13795 ac_cv_c_volatile=no
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13800 $as_echo "$ac_cv_c_volatile" >&6; }
13801 if test $ac_cv_c_volatile = no; then
13803 $as_echo "#define volatile /**/" >>confdefs.h
13807 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13808 if test "x$ac_cv_type_size_t" = xyes; then :
13812 cat >>confdefs.h <<_ACEOF
13813 #define size_t unsigned int
13818 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13819 if test "x$ac_cv_type_mode_t" = xyes; then :
13823 cat >>confdefs.h <<_ACEOF
13829 for ac_func in sigdescr_np
13831 ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13832 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_SIGDESCR_NP 1
13840 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13841 /* NetBSD declares sys_siglist in unistd.h. */
13842 #ifdef HAVE_UNISTD_H
13843 # include <unistd.h>
13847 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13862 for ac_header in $ac_header_list
13864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13865 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13879 if test $ac_cv_header_sys_socket_h = no; then
13880 for ac_header in ws2tcpip.h
13882 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
13883 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_WS2TCPIP_H 1
13894 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13895 /* <sys/types.h> is not needed according to POSIX, but the
13896 <sys/socket.h> in i386-unknown-freebsd4.10 and
13897 powerpc-apple-darwin5.5 required it. */
13898 #include <sys/types.h>
13899 #if HAVE_SYS_SOCKET_H
13900 # include <sys/socket.h>
13901 #elif HAVE_WS2TCPIP_H
13902 # include <ws2tcpip.h>
13906 if test "x$ac_cv_type_socklen_t" = xyes; then :
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13910 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13911 if ${gl_cv_socklen_t_equiv+:} false; then :
13912 $as_echo_n "(cached) " >&6
13914 # Systems have either "struct sockaddr *" or
13915 # "void *" as the second argument to getpeername
13916 gl_cv_socklen_t_equiv=
13917 for arg2 in "struct sockaddr" void; do
13918 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 #include <sys/types.h>
13922 #include <sys/socket.h>
13924 int getpeername (int, $arg2 *, $t *);
13929 getpeername (0, 0, &len);
13934 if ac_fn_c_try_compile "$LINENO"; then :
13935 gl_cv_socklen_t_equiv="$t"
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 test "$gl_cv_socklen_t_equiv" != "" && break
13940 test "$gl_cv_socklen_t_equiv" != "" && break
13942 if test "$gl_cv_socklen_t_equiv" = ""; then
13943 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13948 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13950 cat >>confdefs.h <<_ACEOF
13951 #define socklen_t $gl_cv_socklen_t_equiv
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13958 $as_echo_n "checking for library containing inet_addr... " >&6; }
13959 if ${ac_cv_search_inet_addr+:} false; then :
13960 $as_echo_n "(cached) " >&6
13962 ac_func_search_save_LIBS=$LIBS
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13966 /* Override any GCC internal prototype to avoid an error.
13967 Use char because int might match the return type of a GCC
13968 builtin and then its argument prototype would still apply. */
13976 return inet_addr ();
13981 for ac_lib in '' nsl; do
13982 if test -z "$ac_lib"; then
13983 ac_res="none required"
13986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13988 if ac_fn_c_try_link "$LINENO"; then :
13989 ac_cv_search_inet_addr=$ac_res
13991 rm -f core conftest.err conftest.$ac_objext \
13993 if ${ac_cv_search_inet_addr+:} false; then :
13997 if ${ac_cv_search_inet_addr+:} false; then :
14000 ac_cv_search_inet_addr=no
14002 rm conftest.$ac_ext
14003 LIBS=$ac_func_search_save_LIBS
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14006 $as_echo "$ac_cv_search_inet_addr" >&6; }
14007 ac_res=$ac_cv_search_inet_addr
14008 if test "$ac_res" != no; then :
14009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14014 # Check whether --enable-endian-check was given.
14015 if test "${enable_endian_check+set}" = set; then :
14016 enableval=$enable_endian_check; endiancheck=$enableval
14022 if test x"$endiancheck" = xyes ; then
14024 tmp_assumed_endian=big
14026 if test "$cross_compiling" = yes; then
14027 case "$host_cpu" in
14029 tmp_assumed_endian=little
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14036 $as_echo_n "checking endianness... " >&6; }
14037 if ${gnupg_cv_c_endian+:} false; then :
14038 $as_echo_n "(cached) " >&6
14040 gnupg_cv_c_endian=unknown
14041 # See if sys/param.h defines the BYTE_ORDER macro.
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #include <sys/types.h>
14045 #include <sys/param.h>
14050 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14051 bogus endian macros
14057 if ac_fn_c_try_compile "$LINENO"; then :
14058 # It does; now see whether it defined to BIG_ENDIAN or not.
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14060 /* end confdefs.h. */
14061 #include <sys/types.h>
14062 #include <sys/param.h>
14067 #if BYTE_ORDER != BIG_ENDIAN
14074 if ac_fn_c_try_compile "$LINENO"; then :
14075 gnupg_cv_c_endian=big
14077 gnupg_cv_c_endian=little
14079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14082 if test "$gnupg_cv_c_endian" = unknown; then
14083 if test "$cross_compiling" = yes; then :
14084 gnupg_cv_c_endian=$tmp_assumed_endian
14085 tmp_assumed_warn=" (assumed)"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14091 /* Are we little or big endian? From Harbison&Steele. */
14095 char c[sizeof (long)];
14098 exit (u.c[sizeof (long) - 1] == 1);
14101 if ac_fn_c_try_run "$LINENO"; then :
14102 gnupg_cv_c_endian=little
14104 gnupg_cv_c_endian=big
14106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14107 conftest.$ac_objext conftest.beam conftest.$ac_ext
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14115 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14116 if test "$gnupg_cv_c_endian" = little; then
14118 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14122 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14128 # fixme: we should get rid of the byte type
14129 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14130 if test "x$ac_cv_type_byte" = xyes; then :
14132 cat >>confdefs.h <<_ACEOF
14133 #define HAVE_BYTE 1
14138 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14139 if test "x$ac_cv_type_ushort" = xyes; then :
14141 cat >>confdefs.h <<_ACEOF
14142 #define HAVE_USHORT 1
14147 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14148 if test "x$ac_cv_type_ulong" = xyes; then :
14150 cat >>confdefs.h <<_ACEOF
14151 #define HAVE_ULONG 1
14156 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14157 if test "x$ac_cv_type_u16" = xyes; then :
14159 cat >>confdefs.h <<_ACEOF
14165 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14166 if test "x$ac_cv_type_u32" = xyes; then :
14168 cat >>confdefs.h <<_ACEOF
14175 # The cast to long int works around a bug in the HP C Compiler
14176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14178 # This bug is HP SR number 8606223364.
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14180 $as_echo_n "checking size of unsigned short... " >&6; }
14181 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14182 $as_echo_n "(cached) " >&6
14184 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14187 if test "$ac_cv_type_unsigned_short" = yes; then
14188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14190 as_fn_error 77 "cannot compute sizeof (unsigned short)
14191 See \`config.log' for more details" "$LINENO" 5; }
14193 ac_cv_sizeof_unsigned_short=0
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14199 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14203 cat >>confdefs.h <<_ACEOF
14204 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14208 # The cast to long int works around a bug in the HP C Compiler
14209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14211 # This bug is HP SR number 8606223364.
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14213 $as_echo_n "checking size of unsigned int... " >&6; }
14214 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14215 $as_echo_n "(cached) " >&6
14217 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14220 if test "$ac_cv_type_unsigned_int" = yes; then
14221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14223 as_fn_error 77 "cannot compute sizeof (unsigned int)
14224 See \`config.log' for more details" "$LINENO" 5; }
14226 ac_cv_sizeof_unsigned_int=0
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14232 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14241 # The cast to long int works around a bug in the HP C Compiler
14242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14244 # This bug is HP SR number 8606223364.
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14246 $as_echo_n "checking size of unsigned long... " >&6; }
14247 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14248 $as_echo_n "(cached) " >&6
14250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14253 if test "$ac_cv_type_unsigned_long" = yes; then
14254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14256 as_fn_error 77 "cannot compute sizeof (unsigned long)
14257 See \`config.log' for more details" "$LINENO" 5; }
14259 ac_cv_sizeof_unsigned_long=0
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14265 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14269 cat >>confdefs.h <<_ACEOF
14270 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14274 # The cast to long int works around a bug in the HP C Compiler
14275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14277 # This bug is HP SR number 8606223364.
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14279 $as_echo_n "checking size of unsigned long long... " >&6; }
14280 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14281 $as_echo_n "(cached) " >&6
14283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14286 if test "$ac_cv_type_unsigned_long_long" = yes; then
14287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14289 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14290 See \`config.log' for more details" "$LINENO" 5; }
14292 ac_cv_sizeof_unsigned_long_long=0
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14298 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14302 cat >>confdefs.h <<_ACEOF
14303 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14307 # The cast to long int works around a bug in the HP C Compiler
14308 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14309 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14310 # This bug is HP SR number 8606223364.
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14312 $as_echo_n "checking size of size_t... " >&6; }
14313 if ${ac_cv_sizeof_size_t+:} false; then :
14314 $as_echo_n "(cached) " >&6
14316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14319 if test "$ac_cv_type_size_t" = yes; then
14320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14322 as_fn_error 77 "cannot compute sizeof (size_t)
14323 See \`config.log' for more details" "$LINENO" 5; }
14325 ac_cv_sizeof_size_t=0
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14331 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14335 cat >>confdefs.h <<_ACEOF
14336 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14340 # The cast to long int works around a bug in the HP C Compiler
14341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14343 # This bug is HP SR number 8606223364.
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14345 $as_echo_n "checking size of time_t... " >&6; }
14346 if ${ac_cv_sizeof_time_t+:} false; then :
14347 $as_echo_n "(cached) " >&6
14349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14351 #ifdef HAVE_SYS_TIME_H
14352 # include <sys/time.h>
14360 if test "$ac_cv_type_time_t" = yes; then
14361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14363 as_fn_error 77 "cannot compute sizeof (time_t)
14364 See \`config.log' for more details" "$LINENO" 5; }
14366 ac_cv_sizeof_time_t=0
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14372 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14376 cat >>confdefs.h <<_ACEOF
14377 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14382 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14383 if ${gnupg_cv_time_t_unsigned+:} false; then :
14384 $as_echo_n "(cached) " >&6
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 $ac_includes_default
14389 #if HAVE_SYS_TIME_H
14390 # include <sys/time.h>
14398 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14399 test_array [0] = 0;
14400 return test_array [0];
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407 gnupg_cv_time_t_unsigned=no
14409 gnupg_cv_time_t_unsigned=yes
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14414 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14415 if test $gnupg_cv_time_t_unsigned = yes; then
14417 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14423 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14424 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14425 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14427 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14432 # Checks for library functions.
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14435 $as_echo "$as_me: checking for library functions" >&6;}
14436 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14437 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14448 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14449 if ${ac_cv_sys_largefile_source+:} false; then :
14450 $as_echo_n "(cached) " >&6
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14455 #include <sys/types.h> /* for off_t */
14460 int (*fp) (FILE *, off_t, int) = fseeko;
14461 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14466 if ac_fn_c_try_link "$LINENO"; then :
14467 ac_cv_sys_largefile_source=no; break
14469 rm -f core conftest.err conftest.$ac_objext \
14470 conftest$ac_exeext conftest.$ac_ext
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 #define _LARGEFILE_SOURCE 1
14474 #include <sys/types.h> /* for off_t */
14479 int (*fp) (FILE *, off_t, int) = fseeko;
14480 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14485 if ac_fn_c_try_link "$LINENO"; then :
14486 ac_cv_sys_largefile_source=1; break
14488 rm -f core conftest.err conftest.$ac_objext \
14489 conftest$ac_exeext conftest.$ac_ext
14490 ac_cv_sys_largefile_source=unknown
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14495 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14496 case $ac_cv_sys_largefile_source in #(
14499 cat >>confdefs.h <<_ACEOF
14500 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14506 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14507 # in glibc 2.1.3, but that breaks too many other things.
14508 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14509 if test $ac_cv_sys_largefile_source != unknown; then
14511 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14515 for ac_func in vprintf
14517 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14518 if test "x$ac_cv_func_vprintf" = xyes; then :
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_VPRINTF 1
14523 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14524 if test "x$ac_cv_func__doprnt" = xyes; then :
14526 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14534 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14535 if test "x$ac_cv_type_pid_t" = xyes; then :
14539 cat >>confdefs.h <<_ACEOF
14545 for ac_header in vfork.h
14547 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14548 if test "x$ac_cv_header_vfork_h" = xyes; then :
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_VFORK_H 1
14557 for ac_func in fork vfork
14559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14560 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14561 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14562 cat >>confdefs.h <<_ACEOF
14563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14569 if test "x$ac_cv_func_fork" = xyes; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14571 $as_echo_n "checking for working fork... " >&6; }
14572 if ${ac_cv_func_fork_works+:} false; then :
14573 $as_echo_n "(cached) " >&6
14575 if test "$cross_compiling" = yes; then :
14576 ac_cv_func_fork_works=cross
14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579 /* end confdefs.h. */
14580 $ac_includes_default
14585 /* By Ruediger Kuhlmann. */
14586 return fork () < 0;
14592 if ac_fn_c_try_run "$LINENO"; then :
14593 ac_cv_func_fork_works=yes
14595 ac_cv_func_fork_works=no
14597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14598 conftest.$ac_objext conftest.beam conftest.$ac_ext
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14603 $as_echo "$ac_cv_func_fork_works" >&6; }
14606 ac_cv_func_fork_works=$ac_cv_func_fork
14608 if test "x$ac_cv_func_fork_works" = xcross; then
14610 *-*-amigaos* | *-*-msdosdjgpp*)
14611 # Override, as these systems have only a dummy fork() stub
14612 ac_cv_func_fork_works=no
14615 ac_cv_func_fork_works=yes
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14619 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14621 ac_cv_func_vfork_works=$ac_cv_func_vfork
14622 if test "x$ac_cv_func_vfork" = xyes; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14624 $as_echo_n "checking for working vfork... " >&6; }
14625 if ${ac_cv_func_vfork_works+:} false; then :
14626 $as_echo_n "(cached) " >&6
14628 if test "$cross_compiling" = yes; then :
14629 ac_cv_func_vfork_works=cross
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14633 /* Thanks to Paul Eggert for this test. */
14634 $ac_includes_default
14635 #include <sys/wait.h>
14636 #ifdef HAVE_VFORK_H
14637 # include <vfork.h>
14639 /* On some sparc systems, changes by the child to local and incoming
14640 argument registers are propagated back to the parent. The compiler
14641 is told about this with #include <vfork.h>, but some compilers
14642 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14643 static variable whose address is put into a register that is
14644 clobbered by the vfork. */
14647 sparc_address_test (int arg)
14649 sparc_address_test (arg) int arg;
14652 static pid_t child;
14670 pid_t parent = getpid ();
14673 sparc_address_test (0);
14678 /* Here is another test for sparc vfork register problems. This
14679 test uses lots of local variables, at least as many local
14680 variables as main has allocated so far including compiler
14681 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14682 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14683 reuse the register of parent for one of the local variables,
14684 since it will think that parent can't possibly be used any more
14685 in this routine. Assigning to the local variable will thus
14686 munge parent in the parent process. */
14688 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14689 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14690 /* Convince the compiler that p..p7 are live; otherwise, it might
14691 use the same hardware register for all 8 local variables. */
14692 if (p != p1 || p != p2 || p != p3 || p != p4
14693 || p != p5 || p != p6 || p != p7)
14696 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14697 from child file descriptors. If the child closes a descriptor
14698 before it execs or exits, this munges the parent's descriptor
14699 as well. Test for this by closing stdout in the child. */
14700 _exit(close(fileno(stdout)) != 0);
14705 while (wait(&status) != child)
14708 /* Was there some problem with vforking? */
14711 /* Did the child fail? (This shouldn't happen.) */
14714 /* Did the vfork/compiler bug occur? */
14715 || parent != getpid()
14717 /* Did the file descriptor bug occur? */
14718 || fstat(fileno(stdout), &st) != 0
14723 if ac_fn_c_try_run "$LINENO"; then :
14724 ac_cv_func_vfork_works=yes
14726 ac_cv_func_vfork_works=no
14728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14729 conftest.$ac_objext conftest.beam conftest.$ac_ext
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14734 $as_echo "$ac_cv_func_vfork_works" >&6; }
14737 if test "x$ac_cv_func_fork_works" = xcross; then
14738 ac_cv_func_vfork_works=$ac_cv_func_vfork
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14740 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14743 if test "x$ac_cv_func_vfork_works" = xyes; then
14745 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14749 $as_echo "#define vfork fork" >>confdefs.h
14752 if test "x$ac_cv_func_fork_works" = xyes; then
14754 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14758 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14759 explicit_bzero fcntl flockfile fsync ftello \
14760 ftruncate funlockfile getaddrinfo getenv getpagesize \
14761 getpwnam getpwuid getrlimit getrusage gettimeofday \
14762 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14763 memmove memrchr mmap nl_langinfo pipe raise rand \
14764 setenv setlocale setrlimit sigaction sigprocmask \
14765 stat stpcpy strcasecmp strerror strftime stricmp \
14766 strlwr strncasecmp strpbrk strsep strtol strtoul \
14767 strtoull tcgetattr timegm times ttyname unsetenv \
14770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14772 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14773 cat >>confdefs.h <<_ACEOF
14774 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14782 # Given that we use nanosleep only as an optimization over a select
14783 # based wait function we want it only if it is available in libc.
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14786 $as_echo_n "checking for library containing nanosleep... " >&6; }
14787 if ${ac_cv_search_nanosleep+:} false; then :
14788 $as_echo_n "(cached) " >&6
14790 ac_func_search_save_LIBS=$LIBS
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14794 /* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14804 return nanosleep ();
14809 for ac_lib in '' ; do
14810 if test -z "$ac_lib"; then
14811 ac_res="none required"
14814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14816 if ac_fn_c_try_link "$LINENO"; then :
14817 ac_cv_search_nanosleep=$ac_res
14819 rm -f core conftest.err conftest.$ac_objext \
14821 if ${ac_cv_search_nanosleep+:} false; then :
14825 if ${ac_cv_search_nanosleep+:} false; then :
14828 ac_cv_search_nanosleep=no
14830 rm conftest.$ac_ext
14831 LIBS=$ac_func_search_save_LIBS
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14834 $as_echo "$ac_cv_search_nanosleep" >&6; }
14835 ac_res=$ac_cv_search_nanosleep
14836 if test "$ac_res" != no; then :
14837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14839 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14846 # See whether libc supports the Linux inotify interface
14849 for ac_func in inotify_init
14851 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14852 if test "x$ac_cv_func_inotify_init" = xyes; then :
14853 cat >>confdefs.h <<_ACEOF
14854 #define HAVE_INOTIFY_INIT 1
14864 if test "$have_android_system" = yes; then
14865 # On Android ttyname is a stub but prints an error message.
14867 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14871 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14873 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_STRUCT_SIGACTION 1
14881 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14883 if test "x$ac_cv_type_sigset_t" = xyes; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_SIGSET_T 1
14893 # Dirmngr requires mmap on Unix systems.
14894 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14895 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14900 # Check for the getsockopt SO_PEERCRED, etc.
14902 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14903 #include <sys/socket.h>
14905 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_STRUCT_UCRED_PID 1
14913 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
14914 #include <sys/socket.h>
14916 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_STRUCT_UCRED_CR_PID 1
14924 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
14925 #include <sys/socket.h>
14927 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
14938 for ac_func in getpeerucred
14940 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
14941 if test "x$ac_cv_func_getpeerucred" = xyes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_GETPEERUCRED 1
14952 # W32 specific test
14957 # Do we have zlib? Must do it here because Solaris failed
14958 # when compiling a conftest (due to the "-lz" from LIBS).
14959 # Note that we combine zlib and bzlib2 in ZLIBS.
14961 if test "$use_zip" = yes ; then
14962 _cppflags="${CPPFLAGS}"
14963 _ldflags="${LDFLAGS}"
14965 # Check whether --with-zlib was given.
14966 if test "${with_zlib+set}" = set; then :
14967 withval=$with_zlib;
14968 if test -d "$withval"; then
14969 CPPFLAGS="${CPPFLAGS} -I$withval/include"
14970 LDFLAGS="${LDFLAGS} -L$withval/lib"
14976 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14977 if test "x$ac_cv_header_zlib_h" = xyes; then :
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
14979 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
14980 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
14981 $as_echo_n "(cached) " >&6
14983 ac_check_lib_save_LIBS=$LIBS
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14988 /* Override any GCC internal prototype to avoid an error.
14989 Use char because int might match the return type of a GCC
14990 builtin and then its argument prototype would still apply. */
14994 char deflateInit2_ ();
14998 return deflateInit2_ ();
15003 if ac_fn_c_try_link "$LINENO"; then :
15004 ac_cv_lib_z_deflateInit2_=yes
15006 ac_cv_lib_z_deflateInit2_=no
15008 rm -f core conftest.err conftest.$ac_objext \
15009 conftest$ac_exeext conftest.$ac_ext
15010 LIBS=$ac_check_lib_save_LIBS
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15013 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15014 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15018 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15022 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15026 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15034 # Check whether we can support bzip2
15036 if test "$use_bzip2" = yes ; then
15037 _cppflags="${CPPFLAGS}"
15038 _ldflags="${LDFLAGS}"
15040 # Check whether --with-bzip2 was given.
15041 if test "${with_bzip2+set}" = set; then :
15042 withval=$with_bzip2;
15043 if test -d "$withval" ; then
15044 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15045 LDFLAGS="${LDFLAGS} -L$withval/lib"
15053 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15054 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15055 # woefully out of date.
15056 if test "$withval" != no ; then
15057 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15059 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15061 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15062 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15063 $as_echo_n "(cached) " >&6
15065 ac_check_lib_save_LIBS=$LIBS
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15070 /* Override any GCC internal prototype to avoid an error.
15071 Use char because int might match the return type of a GCC
15072 builtin and then its argument prototype would still apply. */
15076 char BZ2_bzCompressInit ();
15080 return BZ2_bzCompressInit ();
15085 if ac_fn_c_try_link "$LINENO"; then :
15086 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15088 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15090 rm -f core conftest.err conftest.$ac_objext \
15091 conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15095 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15096 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15099 ZLIBS="$ZLIBS -lbz2"
15101 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15105 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15109 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15115 if test x"$have_bz2" = "xyes"; then
15116 ENABLE_BZIP2_SUPPORT_TRUE=
15117 ENABLE_BZIP2_SUPPORT_FALSE='#'
15119 ENABLE_BZIP2_SUPPORT_TRUE='#'
15120 ENABLE_BZIP2_SUPPORT_FALSE=
15126 # Check for readline support
15129 # Check whether --with-readline was given.
15130 if test "${with_readline+set}" = set; then :
15131 withval=$with_readline; _do_readline=$withval
15137 gnupg_cv_have_readline=no
15138 if test "$_do_readline" != "no" ; then
15139 if test -d "$withval" ; then
15140 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15141 LDFLAGS="${LDFLAGS} -L$withval/lib"
15144 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15145 _readline_save_libs=$LIBS
15146 _combo="-lreadline${_termcap:+ $_termcap}"
15147 LIBS="$LIBS $_combo"
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15150 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15156 #include <readline/readline.h>
15157 #include <readline/history.h>
15163 rl_completion_func_t *completer;
15164 add_history("foobar");
15165 rl_catch_signals=0;
15166 rl_inhibit_completion=0;
15167 rl_attempted_completion_function=NULL;
15168 rl_completion_matches(NULL,NULL);
15174 if ac_fn_c_try_link "$LINENO"; then :
15175 _found_readline=yes
15179 rm -f core conftest.err conftest.$ac_objext \
15180 conftest$ac_exeext conftest.$ac_ext
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15183 $as_echo "$_found_readline" >&6; }
15185 LIBS=$_readline_save_libs
15187 if test $_found_readline = yes ; then
15189 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15191 LIBREADLINE=$_combo
15193 gnupg_cv_have_readline=yes
15199 unset _readline_save_libs
15201 unset _found_readline
15206 if test "$development_version" = yes; then
15208 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15212 if test "$USE_MAINTAINER_MODE" = "yes"; then
15214 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15218 if test x$cross_compiling = xyes; then
15219 CROSS_COMPILING_TRUE=
15220 CROSS_COMPILING_FALSE='#'
15222 CROSS_COMPILING_TRUE='#'
15223 CROSS_COMPILING_FALSE=
15228 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15233 *** It seems that you are not using GNU make. Some make tools have serious
15234 *** flaws and you may not be able to build this software at all. Before you
15235 *** complain, please try GNU make: GNU make is easy to build and available
15236 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15238 $as_echo "$as_me: WARNING:
15240 *** It seems that you are not using GNU make. Some make tools have serious
15241 *** flaws and you may not be able to build this software at all. Before you
15242 *** complain, please try GNU make: GNU make is easy to build and available
15243 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15248 # Add some extra libs here so that previous tests don't fail for
15249 # mysterious reasons - the final link step should bail out.
15250 # W32SOCKLIBS is also defined so that if can be used for tools not
15251 # requiring any network stuff but linking to code in libcommon which
15252 # tracks in winsock stuff (e.g. init_common_subsystems).
15253 if test "$have_w32_system" = yes; then
15254 W32SOCKLIBS="-lws2_32"
15255 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15262 # TPM libtss library .. don't compile TPM support if we don't have it
15265 # Check whether --with-tss was given.
15266 if test "${with_tss+set}" = set; then :
15267 withval=$with_tss; with_tss=$withval
15269 with_tss=autodetect
15274 if test "$build_tpm2d" = "yes"; then
15276 _save_cflags="$CFLAGS"
15278 if test "$with_tss" = autodetect; then
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15280 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15281 if ${ac_cv_search_TSS_Create+:} false; then :
15282 $as_echo_n "(cached) " >&6
15284 ac_func_search_save_LIBS=$LIBS
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15288 /* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15294 char TSS_Create ();
15298 return TSS_Create ();
15303 for ac_lib in '' tss ibmtss; do
15304 if test -z "$ac_lib"; then
15305 ac_res="none required"
15308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15310 if ac_fn_c_try_link "$LINENO"; then :
15311 ac_cv_search_TSS_Create=$ac_res
15313 rm -f core conftest.err conftest.$ac_objext \
15315 if ${ac_cv_search_TSS_Create+:} false; then :
15319 if ${ac_cv_search_TSS_Create+:} false; then :
15322 ac_cv_search_TSS_Create=no
15324 rm conftest.$ac_ext
15325 LIBS=$ac_func_search_save_LIBS
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15328 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15329 ac_res=$ac_cv_search_TSS_Create
15330 if test "$ac_res" != no; then :
15331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15335 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15336 if ${ac_cv_search_Esys_Initialize+:} false; then :
15337 $as_echo_n "(cached) " >&6
15339 ac_func_search_save_LIBS=$LIBS
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15343 /* Override any GCC internal prototype to avoid an error.
15344 Use char because int might match the return type of a GCC
15345 builtin and then its argument prototype would still apply. */
15349 char Esys_Initialize ();
15353 return Esys_Initialize ();
15358 for ac_lib in '' tss2-esys; do
15359 if test -z "$ac_lib"; then
15360 ac_res="none required"
15363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15365 if ac_fn_c_try_link "$LINENO"; then :
15366 ac_cv_search_Esys_Initialize=$ac_res
15368 rm -f core conftest.err conftest.$ac_objext \
15370 if ${ac_cv_search_Esys_Initialize+:} false; then :
15374 if ${ac_cv_search_Esys_Initialize+:} false; then :
15377 ac_cv_search_Esys_Initialize=no
15379 rm conftest.$ac_ext
15380 LIBS=$ac_func_search_save_LIBS
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15383 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15384 ac_res=$ac_cv_search_Esys_Initialize
15385 if test "$ac_res" != no; then :
15386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15394 elif test "$with_tss" = ibm; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15396 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15397 if ${ac_cv_search_TSS_Create+:} false; then :
15398 $as_echo_n "(cached) " >&6
15400 ac_func_search_save_LIBS=$LIBS
15401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15410 char TSS_Create ();
15414 return TSS_Create ();
15419 for ac_lib in '' tss ibmtss; do
15420 if test -z "$ac_lib"; then
15421 ac_res="none required"
15424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15426 if ac_fn_c_try_link "$LINENO"; then :
15427 ac_cv_search_TSS_Create=$ac_res
15429 rm -f core conftest.err conftest.$ac_objext \
15431 if ${ac_cv_search_TSS_Create+:} false; then :
15435 if ${ac_cv_search_TSS_Create+:} false; then :
15438 ac_cv_search_TSS_Create=no
15440 rm conftest.$ac_ext
15441 LIBS=$ac_func_search_save_LIBS
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15444 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15445 ac_res=$ac_cv_search_TSS_Create
15446 if test "$ac_res" != no; then :
15447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15450 as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15453 elif test "$with_tss" = intel; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15455 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15456 if ${ac_cv_search_Esys_Initialize+:} false; then :
15457 $as_echo_n "(cached) " >&6
15459 ac_func_search_save_LIBS=$LIBS
15460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15463 /* Override any GCC internal prototype to avoid an error.
15464 Use char because int might match the return type of a GCC
15465 builtin and then its argument prototype would still apply. */
15469 char Esys_Initialize ();
15473 return Esys_Initialize ();
15478 for ac_lib in '' tss2-esys; do
15479 if test -z "$ac_lib"; then
15480 ac_res="none required"
15483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15485 if ac_fn_c_try_link "$LINENO"; then :
15486 ac_cv_search_Esys_Initialize=$ac_res
15488 rm -f core conftest.err conftest.$ac_objext \
15490 if ${ac_cv_search_Esys_Initialize+:} false; then :
15494 if ${ac_cv_search_Esys_Initialize+:} false; then :
15497 ac_cv_search_Esys_Initialize=no
15499 rm conftest.$ac_ext
15500 LIBS=$ac_func_search_save_LIBS
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15503 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15504 ac_res=$ac_cv_search_Esys_Initialize
15505 if test "$ac_res" != no; then :
15506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15509 as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15513 as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15516 if test "$have_libtss" = IBM; then
15517 LIBTSS_CFLAGS="-DTPM_POSIX"
15518 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15519 ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15520 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15522 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15526 ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15527 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15529 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15534 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15546 elif test "$have_libtss" = Intel; then
15548 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15549 # until version 2.4.0.
15551 # Note: the missing API is fairly serious and is also easily backportable
15552 # so keep the check below as is intead of going by library version number.
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15555 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15556 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15557 $as_echo_n "(cached) " >&6
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-ltss2-esys $LIBS"
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15564 /* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply. */
15570 char Esys_TR_GetTpmHandle ();
15574 return Esys_TR_GetTpmHandle ();
15579 if ac_fn_c_try_link "$LINENO"; then :
15580 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15582 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15584 rm -f core conftest.err conftest.$ac_objext \
15585 conftest$ac_exeext conftest.$ac_ext
15586 LIBS=$ac_check_lib_save_LIBS
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15589 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15590 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15591 cat >>confdefs.h <<_ACEOF
15592 #define HAVE_LIBTSS2_ESYS 1
15595 LIBS="-ltss2-esys $LIBS"
15599 { $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
15600 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15605 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15607 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15611 CFLAGS="$_save_cflags"
15612 if test "$have_libtss" != no; then
15614 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15616 # look for a TPM emulator for testing
15617 # Extract the first word of "tpm_server", so it can be a program name with args.
15618 set dummy tpm_server; ac_word=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if ${ac_cv_path_TPMSERVER+:} false; then :
15622 $as_echo_n "(cached) " >&6
15626 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15631 for as_dir in $as_dummy
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15648 TPMSERVER=$ac_cv_path_TPMSERVER
15649 if test -n "$TPMSERVER"; then
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15651 $as_echo "$TPMSERVER" >&6; }
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15654 $as_echo "no" >&6; }
15658 # Extract the first word of "swtpm", so it can be a program name with args.
15659 set dummy swtpm; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15661 $as_echo_n "checking for $ac_word... " >&6; }
15662 if ${ac_cv_path_SWTPM+:} false; then :
15663 $as_echo_n "(cached) " >&6
15667 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15671 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15672 for as_dir in $as_dummy
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15689 SWTPM=$ac_cv_path_SWTPM
15690 if test -n "$SWTPM"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15692 $as_echo "$SWTPM" >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695 $as_echo "no" >&6; }
15699 # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15700 set dummy swtpm_ioctl; ac_word=$2
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15702 $as_echo_n "checking for $ac_word... " >&6; }
15703 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15704 $as_echo_n "(cached) " >&6
15706 case $SWTPM_IOCTL in
15708 ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15712 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15713 for as_dir in $as_dummy
15716 test -z "$as_dir" && as_dir=.
15717 for ac_exec_ext in '' $ac_executable_extensions; do
15718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15719 ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15730 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15731 if test -n "$SWTPM_IOCTL"; then
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15733 $as_echo "$SWTPM_IOCTL" >&6; }
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15736 $as_echo "no" >&6; }
15740 # Extract the first word of "tssstartup", so it can be a program name with args.
15741 set dummy tssstartup; ac_word=$2
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15743 $as_echo_n "checking for $ac_word... " >&6; }
15744 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15745 $as_echo_n "(cached) " >&6
15747 case $TSSSTARTUP in
15749 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15754 for as_dir in $as_dummy
15757 test -z "$as_dir" && as_dir=.
15758 for ac_exec_ext in '' $ac_executable_extensions; do
15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760 ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15771 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15772 if test -n "$TSSSTARTUP"; then
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15774 $as_echo "$TSSSTARTUP" >&6; }
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15783 if test "$have_libtss" = no; then
15788 if test "$have_libtss" != no; then
15790 HAVE_LIBTSS_FALSE='#'
15792 HAVE_LIBTSS_TRUE='#'
15796 if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15798 TEST_LIBTSS_FALSE='#'
15800 TEST_LIBTSS_TRUE='#'
15807 # Setup gcc specific options
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15811 $as_echo "$as_me: checking for cc features" >&6;}
15812 if test "$GCC" = yes; then
15814 mycflags_save=$CFLAGS
15816 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15817 # options. This is the case for gcc >= 4.6
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15819 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821 /* end confdefs.h. */
15823 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15834 if ac_fn_c_try_compile "$LINENO"; then :
15835 _gcc_silent_wno=yes
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15841 $as_echo "$_gcc_silent_wno" >&6; }
15843 # Note that it is okay to use CFLAGS here because these are just
15844 # warning options and the user should have a chance of overriding
15846 if test "$USE_MAINTAINER_MODE" = "yes"; then
15847 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15848 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15849 if test x"$_gcc_silent_wno" = xyes ; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15853 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15854 CFLAGS="-Wno-missing-field-initializers"
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15866 if ac_fn_c_try_compile "$LINENO"; then :
15871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15873 $as_echo "$_gcc_wopt" >&6; }
15875 if test x"$_gcc_wopt" = xyes ; then
15876 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15877 mycflags="$mycflags -Wno-missing-field-initializers"
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15881 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15882 CFLAGS="-Wdeclaration-after-statement"
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15894 if ac_fn_c_try_compile "$LINENO"; then :
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15901 $as_echo "$_gcc_wopt" >&6; }
15902 if test x"$_gcc_wopt" = xyes ; then
15903 mycflags="$mycflags -Wdeclaration-after-statement"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15907 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15908 CFLAGS="-Wlogical-op -Werror"
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15920 if ac_fn_c_try_compile "$LINENO"; then :
15925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15927 $as_echo "$_gcc_wopt" >&6; }
15928 if test x"$_gcc_wopt" = xyes ; then
15929 mycflags="$mycflags -Wlogical-op"
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15933 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15946 if ac_fn_c_try_compile "$LINENO"; then :
15951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15953 $as_echo "$_gcc_wopt" >&6; }
15954 if test x"$_gcc_wopt" = xyes ; then
15955 mycflags="$mycflags -Wvla"
15959 mycflags="$mycflags -Wall"
15960 if test x"$_gcc_silent_wno" = xyes ; then
15961 mycflags="$mycflags -Wno-format-zero-length"
15965 if test x"$_gcc_silent_wno" = xyes ; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15969 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15970 CFLAGS="-Wno-pointer-sign"
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15982 if ac_fn_c_try_compile "$LINENO"; then :
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15989 $as_echo "$_gcc_psign" >&6; }
15991 if test x"$_gcc_psign" = xyes ; then
15992 mycflags="$mycflags -Wno-pointer-sign"
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15996 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15997 CFLAGS="-Wpointer-arith"
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16009 if ac_fn_c_try_compile "$LINENO"; then :
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16016 $as_echo "$_gcc_psign" >&6; }
16017 if test x"$_gcc_psign" = xyes ; then
16018 mycflags="$mycflags -Wpointer-arith"
16021 CFLAGS="$mycflags $mycflags_save"
16022 if test "$use_libdns" = yes; then
16023 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
16024 USE_C99_CFLAGS="-std=gnu99"
16032 # This is handy for debugging so the compiler doesn't rearrange
16033 # things and eliminate variables.
16035 # Check whether --enable-optimization was given.
16036 if test "${enable_optimization+set}" = set; then :
16037 enableval=$enable_optimization; if test $enableval = no ; then
16038 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16044 # log_debug has certain requirements which might hamper portability.
16045 # Thus we use an option to enable it.
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16048 $as_echo_n "checking whether to enable log_clock... " >&6; }
16049 # Check whether --enable-log_clock was given.
16050 if test "${enable_log_clock+set}" = set; then :
16051 enableval=$enable_log_clock; enable_log_clock=$enableval
16053 enable_log_clock=no
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16057 $as_echo "$enable_log_clock" >&6; }
16058 if test "$enable_log_clock" = yes ; then
16060 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16064 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
16065 # misbehaving autoconf tests in case the user supplied -Werror.
16067 # Check whether --enable-werror was given.
16068 if test "${enable_werror+set}" = set; then :
16069 enableval=$enable_werror; if test $enableval = yes ; then
16070 CFLAGS="$CFLAGS -Werror"
16076 # Configure option --enable-all-tests
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16079 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16080 # Check whether --enable-all-tests was given.
16081 if test "${enable_all_tests+set}" = set; then :
16082 enableval=$enable_all_tests; run_all_tests=$enableval
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16088 $as_echo "$run_all_tests" >&6; }
16089 if test "$run_all_tests" = "yes"; then
16091 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16096 # Configure option --disable-tests
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16099 $as_echo_n "checking whether tests should be run... " >&6; }
16100 # Check whether --enable-tests was given.
16101 if test "${enable_tests+set}" = set; then :
16102 enableval=$enable_tests; run_tests=$enableval
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16108 $as_echo "$run_tests" >&6; }
16111 # We do not want support for the GNUPG_BUILDDIR environment variable
16112 # in a released version. However, our regression tests suite requires
16113 # this and thus we build with support for it during "make distcheck".
16114 # This configure option implements this along with the top Makefile's
16115 # AM_DISTCHECK_CONFIGURE_FLAGS.
16117 gnupg_builddir_envvar=no
16118 # Check whether --enable-gnupg-builddir-envvar was given.
16119 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16120 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16123 if test x"$gnupg_builddir_envvar" = x"yes"; then
16125 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16131 # To avoid problems with systemd cleaning up the /run/user directory,
16132 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16135 # Check whether --enable-run-gnupg-user-socket was given.
16136 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16137 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16140 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16142 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16148 # Decide what to build
16151 build_scdaemon_extra=""
16152 if test "$build_scdaemon" = "yes"; then
16153 if test $have_libusb = no; then
16154 build_scdaemon_extra="without internal CCID driver"
16156 if test -n "$build_scdaemon_extra"; then
16157 build_scdaemon_extra="(${build_scdaemon_extra})"
16163 # Set variables for use by automake makefiles.
16165 if test "$build_gpg" = "yes"; then
16167 BUILD_GPG_FALSE='#'
16173 if test "$build_gpgsm" = "yes"; then
16175 BUILD_GPGSM_FALSE='#'
16177 BUILD_GPGSM_TRUE='#'
16181 if test "$build_agent" = "yes"; then
16183 BUILD_AGENT_FALSE='#'
16185 BUILD_AGENT_TRUE='#'
16189 if test "$build_scdaemon" = "yes"; then
16190 BUILD_SCDAEMON_TRUE=
16191 BUILD_SCDAEMON_FALSE='#'
16193 BUILD_SCDAEMON_TRUE='#'
16194 BUILD_SCDAEMON_FALSE=
16197 if test "$build_g13" = "yes"; then
16199 BUILD_G13_FALSE='#'
16205 if test "$build_dirmngr" = "yes"; then
16206 BUILD_DIRMNGR_TRUE=
16207 BUILD_DIRMNGR_FALSE='#'
16209 BUILD_DIRMNGR_TRUE='#'
16210 BUILD_DIRMNGR_FALSE=
16213 if test "$build_keyboxd" = "yes"; then
16214 BUILD_KEYBOXD_TRUE=
16215 BUILD_KEYBOXD_FALSE='#'
16217 BUILD_KEYBOXD_TRUE='#'
16218 BUILD_KEYBOXD_FALSE=
16221 if test "$build_tpm2d" = "yes"; then
16223 BUILD_TPM2D_FALSE='#'
16225 BUILD_TPM2D_TRUE='#'
16229 if test "$build_doc" = "yes"; then
16231 BUILD_DOC_FALSE='#'
16237 if test "$build_gpgtar" = "yes"; then
16239 BUILD_GPGTAR_FALSE='#'
16241 BUILD_GPGTAR_TRUE='#'
16242 BUILD_GPGTAR_FALSE=
16245 if test "$build_wks_tools" = "yes"; then
16246 BUILD_WKS_TOOLS_TRUE=
16247 BUILD_WKS_TOOLS_FALSE='#'
16249 BUILD_WKS_TOOLS_TRUE='#'
16250 BUILD_WKS_TOOLS_FALSE=
16254 if test "$run_tests" != yes; then
16255 DISABLE_TESTS_TRUE=
16256 DISABLE_TESTS_FALSE='#'
16258 DISABLE_TESTS_TRUE='#'
16259 DISABLE_TESTS_FALSE=
16262 if test "$card_support" = yes; then
16263 ENABLE_CARD_SUPPORT_TRUE=
16264 ENABLE_CARD_SUPPORT_FALSE='#'
16266 ENABLE_CARD_SUPPORT_TRUE='#'
16267 ENABLE_CARD_SUPPORT_FALSE=
16270 if test "$use_trust_models" = no; then
16271 NO_TRUST_MODELS_TRUE=
16272 NO_TRUST_MODELS_FALSE='#'
16274 NO_TRUST_MODELS_TRUE='#'
16275 NO_TRUST_MODELS_FALSE=
16278 if test "$use_tofu" = yes; then
16288 # Set some defines for use gpgconf.
16290 if test "$build_gpg" = yes ; then
16292 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16295 if test "$build_gpgsm" = yes ; then
16297 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16300 if test "$build_agent" = yes ; then
16302 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16305 if test "$build_scdaemon" = yes ; then
16307 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16310 if test "$build_dirmngr" = yes ; then
16312 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16315 if test "$build_keyboxd" = yes ; then
16317 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16320 if test "$build_tpm2d" = yes ; then
16322 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16325 if test "$build_g13" = yes ; then
16327 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16333 # Define Name strings
16336 cat >>confdefs.h <<_ACEOF
16337 #define GNUPG_NAME "GnuPG"
16342 cat >>confdefs.h <<_ACEOF
16343 #define GPG_NAME "gpg"
16347 cat >>confdefs.h <<_ACEOF
16348 #define GPG_DISP_NAME "GnuPG"
16353 cat >>confdefs.h <<_ACEOF
16354 #define GPGSM_NAME "gpgsm"
16358 cat >>confdefs.h <<_ACEOF
16359 #define GPGSM_DISP_NAME "GPGSM"
16364 cat >>confdefs.h <<_ACEOF
16365 #define GPG_AGENT_NAME "gpg-agent"
16369 cat >>confdefs.h <<_ACEOF
16370 #define GPG_AGENT_DISP_NAME "GPG Agent"
16375 cat >>confdefs.h <<_ACEOF
16376 #define TPM2DAEMON_NAME "tpm2daemon"
16380 cat >>confdefs.h <<_ACEOF
16381 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16386 cat >>confdefs.h <<_ACEOF
16387 #define SCDAEMON_NAME "scdaemon"
16391 cat >>confdefs.h <<_ACEOF
16392 #define SCDAEMON_DISP_NAME "SCDaemon"
16397 cat >>confdefs.h <<_ACEOF
16398 #define DIRMNGR_NAME "dirmngr"
16402 cat >>confdefs.h <<_ACEOF
16403 #define DIRMNGR_DISP_NAME "DirMngr"
16408 cat >>confdefs.h <<_ACEOF
16409 #define KEYBOXD_NAME "keyboxd"
16413 cat >>confdefs.h <<_ACEOF
16414 #define KEYBOXD_DISP_NAME "Keyboxd"
16419 cat >>confdefs.h <<_ACEOF
16420 #define G13_NAME "g13"
16424 cat >>confdefs.h <<_ACEOF
16425 #define G13_DISP_NAME "G13"
16430 cat >>confdefs.h <<_ACEOF
16431 #define GPGCONF_NAME "gpgconf"
16435 cat >>confdefs.h <<_ACEOF
16436 #define GPGCONF_DISP_NAME "GPGConf"
16441 cat >>confdefs.h <<_ACEOF
16442 #define GPGTAR_NAME "gpgtar"
16447 cat >>confdefs.h <<_ACEOF
16448 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16452 cat >>confdefs.h <<_ACEOF
16453 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16457 cat >>confdefs.h <<_ACEOF
16458 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16462 cat >>confdefs.h <<_ACEOF
16463 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16467 cat >>confdefs.h <<_ACEOF
16468 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16472 cat >>confdefs.h <<_ACEOF
16473 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16477 cat >>confdefs.h <<_ACEOF
16478 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16482 cat >>confdefs.h <<_ACEOF
16483 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16487 cat >>confdefs.h <<_ACEOF
16488 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16492 cat >>confdefs.h <<_ACEOF
16493 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16498 cat >>confdefs.h <<_ACEOF
16499 #define GPGEXT_GPG "gpg"
16503 if test "$have_w32_system" = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16513 # Provide information about the build.
16515 BUILD_REVISION="d073f26d8"
16518 cat >>confdefs.h <<_ACEOF
16519 #define BUILD_REVISION "$BUILD_REVISION"
16523 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16524 BUILD_VERSION="${BUILD_VERSION}53363"
16525 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16529 # Check whether --enable-build-timestamp was given.
16530 if test "${enable_build_timestamp+set}" = set; then :
16531 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16532 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16534 BUILD_TIMESTAMP="$enableval"
16536 BUILD_HOSTNAME="$ac_hostname"
16538 BUILD_TIMESTAMP="<none>"
16539 BUILD_HOSTNAME="<anon>"
16544 cat >>confdefs.h <<_ACEOF
16545 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16552 # Print errors here so that they are visible all
16553 # together and the user can acquire them all together.
16556 if test "$have_gpg_error" = "no"; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}:
16560 *** You need libgpg-error to build this program.
16561 ** This library is for example available at
16562 *** https://gnupg.org/ftp/gcrypt/gpgrt
16563 *** (at least version $NEED_GPGRT_VERSION is required.)
16567 *** You need libgpg-error to build this program.
16568 ** This library is for example available at
16569 *** https://gnupg.org/ftp/gcrypt/gpgrt
16570 *** (at least version $NEED_GPGRT_VERSION is required.)
16573 if test "$have_libgcrypt" = "no"; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}:
16577 *** You need libgcrypt to build this program.
16578 ** This library is for example available at
16579 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16580 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16584 *** You need libgcrypt to build this program.
16585 ** This library is for example available at
16586 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16587 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16590 if test "$have_libassuan" = "no"; then
16592 { $as_echo "$as_me:${as_lineno-$LINENO}:
16594 *** You need libassuan to build this program.
16595 *** This library is for example available at
16596 *** https://gnupg.org/ftp/gcrypt/libassuan/
16597 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16601 *** You need libassuan to build this program.
16602 *** This library is for example available at
16603 *** https://gnupg.org/ftp/gcrypt/libassuan/
16604 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16607 if test "$have_ksba" = "no"; then
16609 { $as_echo "$as_me:${as_lineno-$LINENO}:
16611 *** You need libksba to build this program.
16612 *** This library is for example available at
16613 *** https://gnupg.org/ftp/gcrypt/libksba/
16614 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16618 *** You need libksba to build this program.
16619 *** This library is for example available at
16620 *** https://gnupg.org/ftp/gcrypt/libksba/
16621 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16624 if test "$have_npth" = "no"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}:
16628 *** It is now required to build with support for the
16629 *** New Portable Threads Library (nPth). Please install this
16630 *** library first. The library is for example available at
16631 *** https://gnupg.org/ftp/gcrypt/npth/
16632 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16636 *** It is now required to build with support for the
16637 *** New Portable Threads Library (nPth). Please install this
16638 *** library first. The library is for example available at
16639 *** https://gnupg.org/ftp/gcrypt/npth/
16640 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16644 if test "$require_iconv" = yes; then
16645 if test "$am_func_iconv" != yes; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}:
16649 *** The system does not provide a working iconv function. Please
16650 *** install a suitable library; for example GNU Libiconv which is
16652 *** https://ftp.gnu.org/gnu/libiconv/
16656 *** The system does not provide a working iconv function. Please
16657 *** install a suitable library; for example GNU Libiconv which is
16659 *** https://ftp.gnu.org/gnu/libiconv/
16664 if test "$use_ccid_driver" = yes; then
16665 if test "$have_libusb" != yes; then
16667 { $as_echo "$as_me:${as_lineno-$LINENO}:
16669 *** You need libusb to build the internal ccid driver. Please
16670 *** install a libusb suitable for your system.
16674 *** You need libusb to build the internal ccid driver. Please
16675 *** install a libusb suitable for your system.
16680 if test "$die" = "yes"; then
16683 *** Required libraries not found. Please consult the above messages
16684 *** and install them before running configure again.
16690 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 g10/gpgv.w32-manifest sm/gpgsm.w32-manifest kbx/keyboxd.w32-manifest agent/gpg-agent.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest dirmngr/dirmngr_ldap.w32-manifest dirmngr/dirmngr-client.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"
16694 cat >confcache <<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems. If it contains results you don't
16699 # want to keep, you may remove or edit it.
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717 eval ac_val=\$$ac_var
16721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16725 _ | IFS | as_nl) ;; #(
16726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16727 *) { eval $ac_var=; unset $ac_var;} ;;
16733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734 *${as_nl}ac_space=\ *)
16735 # `set' does not quote correctly, so add quotes: double-quote
16736 # substitution turns \\\\ into \\, and sed turns \\ into \.
16739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16742 # `set' quotes correctly as required by POSIX, so do not add quotes.
16743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16757 if test -w "$cache_file"; then
16758 if test "x$cache_file" != "x/dev/null"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761 if test ! -f "$cache_file" || test -h "$cache_file"; then
16762 cat confcache >"$cache_file"
16764 case $cache_file in #(
16766 mv -f confcache "$cache_file"$$ &&
16767 mv -f "$cache_file"$$ "$cache_file" ;; #(
16769 mv -f confcache "$cache_file" ;;
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16781 # Let make expand exec_prefix.
16782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16784 DEFS=-DHAVE_CONFIG_H
16789 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16790 # 1. Remove the extension, and $U if already installed.
16791 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16792 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16793 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16794 # will be set to the directory where LIBOBJS objects are built.
16795 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16796 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16798 LIBOBJS=$ac_libobjs
16800 LTLIBOBJS=$ac_ltlibobjs
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16804 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16805 if test -n "$am_sleep_pid"; then
16806 # Hide warnings about reused PIDs.
16807 wait $am_sleep_pid 2>/dev/null
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16810 $as_echo "done" >&6; }
16811 if test -n "$EXEEXT"; then
16813 am__EXEEXT_FALSE='#'
16815 am__EXEEXT_TRUE='#'
16819 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16820 as_fn_error $? "conditional \"AMDEP\" was never defined.
16821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16824 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16828 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16832 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16836 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16840 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16844 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16847 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16848 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16851 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16852 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16855 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16856 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16859 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16860 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16863 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16864 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16867 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16868 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16872 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16873 if test -n "$am_sleep_pid"; then
16874 # Hide warnings about reused PIDs.
16875 wait $am_sleep_pid 2>/dev/null
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16878 $as_echo "done" >&6; }
16879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16880 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16883 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16884 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16887 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16888 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16891 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16892 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16895 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16896 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16899 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16900 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16903 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16904 as_fn_error $? "conditional \"SQLITE3\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16907 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16908 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16911 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16912 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16915 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16916 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16919 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
16920 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16923 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
16924 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16927 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16928 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16931 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16932 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16935 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16936 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16939 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16940 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16943 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16944 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16948 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16951 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
16952 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
16953 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
16956 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
16957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16959 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16960 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16963 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16964 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16967 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16968 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16971 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16972 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16975 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16976 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16979 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16980 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16983 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16984 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16988 : "${CONFIG_STATUS=./config.status}"
16990 ac_clean_files_save=$ac_clean_files
16991 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16997 # Generated by $as_me.
16998 # Run this file to recreate the current configuration.
16999 # Compiler output produced by configure, useful for debugging
17000 # configure, is in config.log if it exists.
17003 ac_cs_recheck=false
17006 SHELL=\${CONFIG_SHELL-$SHELL}
17009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17010 ## -------------------- ##
17011 ## M4sh Initialization. ##
17012 ## -------------------- ##
17014 # Be more Bourne compatible
17015 DUALCASE=1; export DUALCASE # for MKS sh
17016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17020 # is contrary to our usage. Disable this feature.
17021 alias -g '${1+"$@"}'='"$@"'
17022 setopt NO_GLOB_SUBST
17024 case `(set -o) 2>/dev/null` in #(
17036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17037 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17040 # Prefer a ksh shell builtin over an external printf program on Solaris,
17041 # but without wasting forks for bash or zsh.
17042 if test -z "$BASH_VERSION$ZSH_VERSION" \
17043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17044 as_echo='print -r --'
17045 as_echo_n='print -rn --'
17046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17047 as_echo='printf %s\n'
17048 as_echo_n='printf %s'
17050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17051 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17052 as_echo_n='/usr/ucb/echo -n'
17054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17055 as_echo_n_body='eval
17059 expr "X$arg" : "X\\(.*\\)$as_nl";
17060 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17062 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17064 export as_echo_n_body
17065 as_echo_n='sh -c $as_echo_n_body as_echo'
17067 export as_echo_body
17068 as_echo='sh -c $as_echo_body as_echo'
17071 # The user is always right.
17072 if test "${PATH_SEPARATOR+set}" != set; then
17074 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17075 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17082 # We need space, tab and new line, in precisely that order. Quoting is
17083 # there to prevent editors from complaining about space-tab.
17084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17085 # splitting by setting IFS to empty value.)
17088 # Find who we are. Look in the path if we contain no directory separator.
17091 *[\\/]* ) as_myself=$0 ;;
17092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17093 for as_dir in $PATH
17096 test -z "$as_dir" && as_dir=.
17097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17103 # We did not find ourselves, most probably we were run as `sh COMMAND'
17104 # in which case we are not to be found in the path.
17105 if test "x$as_myself" = x; then
17108 if test ! -f "$as_myself"; then
17109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17113 # Unset variables that we do not need and which cause bugs (e.g. in
17114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17115 # suppresses any "Segmentation fault" message there. '((' could
17116 # trigger a bug in pdksh 5.2.14.
17117 for as_var in BASH_ENV ENV MAIL MAILPATH
17118 do eval test x\${$as_var+set} = xset \
17119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17136 # ----------------------------------------
17137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17139 # script with STATUS, using 1 if that was 0.
17142 as_status=$1; test $as_status -eq 0 && as_status=1
17144 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17147 $as_echo "$as_me: error: $2" >&2
17148 as_fn_exit $as_status
17152 # as_fn_set_status STATUS
17153 # -----------------------
17154 # Set $? to STATUS, without forking.
17155 as_fn_set_status ()
17158 } # as_fn_set_status
17160 # as_fn_exit STATUS
17161 # -----------------
17162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17166 as_fn_set_status $1
17172 # Portably unset VAR.
17175 { eval $1=; unset $1;}
17177 as_unset=as_fn_unset
17178 # as_fn_append VAR VALUE
17179 # ----------------------
17180 # Append the text in VALUE to the end of the definition contained in VAR. Take
17181 # advantage of any shell optimizations that allow amortized linear growth over
17182 # repeated appends, instead of the typical quadratic growth present in naive
17184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17185 eval 'as_fn_append ()
17196 # as_fn_arith ARG...
17197 # ------------------
17198 # Perform arithmetic evaluation on the ARGs, and store the result in the
17199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17200 # must be portable across $(()) and expr.
17201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17202 eval 'as_fn_arith ()
17209 as_val=`expr "$@" || test $? -eq 1`
17214 if expr a : '\(a\)' >/dev/null 2>&1 &&
17215 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17221 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17222 as_basename=basename
17227 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17233 as_me=`$as_basename -- "$0" ||
17234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17235 X"$0" : 'X\(//\)$' \| \
17236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17238 sed '/^.*\/\([^/][^/]*\)\/*$/{
17252 # Avoid depending upon Character Ranges.
17253 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17254 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17255 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17256 as_cr_digits='0123456789'
17257 as_cr_alnum=$as_cr_Letters$as_cr_digits
17259 ECHO_C= ECHO_N= ECHO_T=
17260 case `echo -n x` in #(((((
17262 case `echo 'xy\c'` in
17263 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17265 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17272 rm -f conf$$ conf$$.exe conf$$.file
17273 if test -d conf$$.dir; then
17274 rm -f conf$$.dir/conf$$.file
17277 mkdir conf$$.dir 2>/dev/null
17279 if (echo >conf$$.file) 2>/dev/null; then
17280 if ln -s conf$$.file conf$$ 2>/dev/null; then
17282 # ... but there are two gotchas:
17283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17285 # In both cases, we have to default to `cp -pR'.
17286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17288 elif ln conf$$.file conf$$ 2>/dev/null; then
17296 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17297 rmdir conf$$.dir 2>/dev/null
17302 # Create "$as_dir" as a directory, including parents if necessary.
17307 -*) as_dir=./$as_dir;;
17309 test -d "$as_dir" || eval $as_mkdir_p || {
17313 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17314 *) as_qdir=$as_dir;;
17316 as_dirs="'$as_qdir' $as_dirs"
17317 as_dir=`$as_dirname -- "$as_dir" ||
17318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$as_dir" : 'X\(//\)[^/]' \| \
17320 X"$as_dir" : 'X\(//\)$' \| \
17321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17322 $as_echo X"$as_dir" |
17323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17327 /^X\(\/\/\)[^/].*/{
17340 test -d "$as_dir" && break
17342 test -z "$as_dirs" || eval "mkdir $as_dirs"
17343 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17347 if mkdir -p . 2>/dev/null; then
17348 as_mkdir_p='mkdir -p "$as_dir"'
17350 test -d ./-p && rmdir ./-p
17355 # as_fn_executable_p FILE
17356 # -----------------------
17357 # Test if FILE is an executable regular file.
17358 as_fn_executable_p ()
17360 test -f "$1" && test -x "$1"
17361 } # as_fn_executable_p
17362 as_test_x='test -x'
17363 as_executable_p=as_fn_executable_p
17365 # Sed expression to map a string onto a valid CPP name.
17366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17368 # Sed expression to map a string onto a valid variable name.
17369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17373 ## ----------------------------------- ##
17374 ## Main body of $CONFIG_STATUS script. ##
17375 ## ----------------------------------- ##
17377 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17380 # Save the log message, to keep $0 and so on meaningful, and to
17381 # report actual input values of CONFIG_FILES etc. instead of their
17382 # values after options handling.
17384 This file was extended by gnupg $as_me 2.4.3, which was
17385 generated by GNU Autoconf 2.69. Invocation command line was
17387 CONFIG_FILES = $CONFIG_FILES
17388 CONFIG_HEADERS = $CONFIG_HEADERS
17389 CONFIG_LINKS = $CONFIG_LINKS
17390 CONFIG_COMMANDS = $CONFIG_COMMANDS
17393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17398 case $ac_config_files in *"
17399 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17402 case $ac_config_headers in *"
17403 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408 # Files that config.status was made for.
17409 config_files="$ac_config_files"
17410 config_headers="$ac_config_headers"
17411 config_commands="$ac_config_commands"
17415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17417 \`$as_me' instantiates files and other configuration actions
17418 from templates according to the current configuration. Unless the files
17419 and actions are specified as TAGs, all are instantiated by default.
17421 Usage: $0 [OPTION]... [TAG]...
17423 -h, --help print this help, then exit
17424 -V, --version print version number and configuration settings, then exit
17425 --config print configuration, then exit
17426 -q, --quiet, --silent
17427 do not print progress messages
17428 -d, --debug don't remove temporary files
17429 --recheck update $as_me by reconfiguring in the same conditions
17430 --file=FILE[:TEMPLATE]
17431 instantiate the configuration file FILE
17432 --header=FILE[:TEMPLATE]
17433 instantiate the configuration header FILE
17435 Configuration files:
17438 Configuration headers:
17441 Configuration commands:
17444 Report bugs to <https://bugs.gnupg.org>."
17447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17450 gnupg config.status 2.4.3
17451 configured by $0, generated by GNU Autoconf 2.69,
17452 with options \\"\$ac_cs_config\\"
17454 Copyright (C) 2012 Free Software Foundation, Inc.
17455 This config.status script is free software; the Free Software Foundation
17456 gives unlimited permission to copy, distribute and modify it."
17463 test -n "\$AWK" || AWK=awk
17466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17467 # The default lists apply if the user does not specify any file.
17473 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17474 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17490 # Handling of the options.
17491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17493 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17494 $as_echo "$ac_cs_version"; exit ;;
17495 --config | --confi | --conf | --con | --co | --c )
17496 $as_echo "$ac_cs_config"; exit ;;
17497 --debug | --debu | --deb | --de | --d | -d )
17499 --file | --fil | --fi | --f )
17502 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17503 '') as_fn_error $? "missing file argument" ;;
17505 as_fn_append CONFIG_FILES " '$ac_optarg'"
17506 ac_need_defaults=false;;
17507 --header | --heade | --head | --hea )
17510 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17512 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17513 ac_need_defaults=false;;
17515 # Conflict between --help and --header
17516 as_fn_error $? "ambiguous option: \`$1'
17517 Try \`$0 --help' for more information.";;
17518 --help | --hel | -h )
17519 $as_echo "$ac_cs_usage"; exit ;;
17520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17521 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17524 # This is an error.
17525 -*) as_fn_error $? "unrecognized option: \`$1'
17526 Try \`$0 --help' for more information." ;;
17528 *) as_fn_append ac_config_targets " $1"
17529 ac_need_defaults=false ;;
17535 ac_configure_extra_args=
17537 if $ac_cs_silent; then
17539 ac_configure_extra_args="$ac_configure_extra_args --silent"
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 if \$ac_cs_recheck; then
17545 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17548 CONFIG_SHELL='$SHELL'
17549 export CONFIG_SHELL
17554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17559 ## Running $as_me. ##
17565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17569 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17570 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17571 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17572 # from automake < 1.5.
17573 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17574 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17575 LINGUAS="${LINGUAS-%UNSET%}"
17580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17582 # Handling of arguments.
17583 for ac_config_target in $ac_config_targets
17585 case $ac_config_target in
17586 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17587 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17588 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17589 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17591 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17592 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17593 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17594 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17595 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17596 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17597 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17598 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17599 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17600 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17601 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17602 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17603 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17604 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17605 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17606 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17607 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17608 "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17609 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17610 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17611 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17612 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17613 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17614 "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17615 "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17616 "kbx/keyboxd.w32-manifest") CONFIG_FILES="$CONFIG_FILES kbx/keyboxd.w32-manifest" ;;
17617 "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17618 "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17619 "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17620 "dirmngr/dirmngr_ldap.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr_ldap.w32-manifest" ;;
17621 "dirmngr/dirmngr-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr-client.w32-manifest" ;;
17622 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17623 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17624 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17625 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17626 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17627 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17629 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17634 # If the user did not use the arguments to specify the items to instantiate,
17635 # then the envvar interface is used. Set only those that are not.
17636 # We use the long form for the default assignment because of an extremely
17637 # bizarre bug on SunOS 4.1.3.
17638 if $ac_need_defaults; then
17639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17640 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17641 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17644 # Have a temporary directory for convenience. Make it in the build tree
17645 # simply because there is no reason against having it here, and in addition,
17646 # creating and moving files from /tmp can sometimes cause problems.
17647 # Hook for its removal unless debugging.
17648 # Note that there is a small window in which the directory will not be cleaned:
17649 # after its creation but before its name has been assigned to `$tmp'.
17653 trap 'exit_status=$?
17654 : "${ac_tmp:=$tmp}"
17655 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17657 trap 'as_fn_exit 1' 1 2 13 15
17659 # Create a (secure) tmp directory for tmp files.
17662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17666 tmp=./conf$$-$RANDOM
17667 (umask 077 && mkdir "$tmp")
17668 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17671 # Set up the scripts for CONFIG_FILES section.
17672 # No need to generate them if there are no CONFIG_FILES.
17673 # This happens for instance with `./config.status config.h'.
17674 if test -n "$CONFIG_FILES"; then
17677 ac_cr=`echo X | tr X '\015'`
17678 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17679 # But we know of no other shell where ac_cr would be empty at this
17680 # point, so we can use a bashism as a fallback.
17681 if test "x$ac_cr" = x; then
17682 eval ac_cr=\$\'\\r\'
17684 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17685 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17688 ac_cs_awk_cr=$ac_cr
17691 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17696 echo "cat >conf$$subs.awk <<_ACEOF" &&
17697 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17699 } >conf$$subs.sh ||
17700 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17701 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17703 for ac_last_try in false false false false false :; do
17704 . ./conf$$subs.sh ||
17705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17707 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17708 if test $ac_delim_n = $ac_delim_num; then
17710 elif $ac_last_try; then
17711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17716 rm -f conf$$subs.sh
17718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17719 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17723 s/^/S["/; s/!.*/"]=/
17733 s/\(.\{148\}\)..*/\1/
17735 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17747 s/\(.\{148\}\)..*/\1/
17749 s/["\\]/\\&/g; s/^/"/; s/$/"/
17753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17758 ' <conf$$subs.awk | sed '
17763 ' >>$CONFIG_STATUS || ac_write_fail=1
17764 rm -f conf$$subs.awk
17765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17767 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17768 for (key in S) S_is_set[key] = 1
17774 nfields = split(line, field, "@")
17776 len = length(field[1])
17777 for (i = 2; i < nfields; i++) {
17779 keylen = length(key)
17780 if (S_is_set[key]) {
17782 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17783 len += length(value) + length(field[++i])
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17796 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17799 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17800 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17803 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17804 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17805 # trailing colons and then remove the whole line if VPATH becomes empty
17806 # (actually we leave an empty line to preserve line numbers).
17807 if test "x$srcdir" = x.; then
17808 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827 fi # test -n "$CONFIG_FILES"
17829 # Set up the scripts for CONFIG_HEADERS section.
17830 # No need to generate them if there are no CONFIG_HEADERS.
17831 # This happens for instance with `./config.status Makefile'.
17832 if test -n "$CONFIG_HEADERS"; then
17833 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17837 # Transform confdefs.h into an awk script `defines.awk', embedded as
17838 # here-document in config.status, that substitutes the proper values into
17839 # config.h.in to produce config.h.
17841 # Create a delimiter string that does not exist in confdefs.h, to ease
17842 # handling of long lines.
17844 for ac_last_try in false false :; do
17845 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17846 if test -z "$ac_tt"; then
17848 elif $ac_last_try; then
17849 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17851 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17855 # For the awk script, D is an array of macro values keyed by name,
17856 # likewise P contains macro parameters if any. Preserve backslash
17857 # newline sequences.
17859 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17861 s/.\{148\}/&'"$ac_delim"'/g
17864 s/^[ ]*#[ ]*define[ ][ ]*/ /
17871 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17873 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17877 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17878 D["\1"]=" \3\\\\\\n"\\/p
17880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17885 s/.\{148\}/&'"$ac_delim"'/g
17890 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17893 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17895 ' <confdefs.h | sed '
17896 s/'"$ac_delim"'/"\\\
17897 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17900 for (key in D) D_is_set[key] = 1
17903 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17905 split(line, arg, " ")
17906 if (arg[1] == "#") {
17910 defundef = substr(arg[1], 2)
17913 split(mac1, mac2, "(") #)
17915 prefix = substr(line, 1, index(line, defundef) - 1)
17916 if (D_is_set[macro]) {
17917 # Preserve the white space surrounding the "#".
17918 print prefix "define", macro P[macro] D[macro]
17921 # Replace #undef with comments. This is necessary, for example,
17922 # in the case of _POSIX_SOURCE, which is predefined and required
17923 # on some systems where configure will not decide to define it.
17924 if (defundef == "undef") {
17925 print "/*", prefix defundef, macro, "*/"
17933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17934 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17935 fi # test -n "$CONFIG_HEADERS"
17938 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17943 :[FHLC]) ac_mode=$ac_tag; continue;;
17945 case $ac_mode$ac_tag in
17947 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17948 :[FH]-) ac_tag=-:-;;
17949 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17966 -) ac_f="$ac_tmp/stdin";;
17967 *) # Look for the file first in the build tree, then in the source tree
17968 # (if the path is not absolute). The absolute path cannot be DOS-style,
17969 # because $ac_f cannot contain `:'.
17973 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17975 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17977 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17978 as_fn_append ac_file_inputs " '$ac_f'"
17981 # Let's still pretend it is `configure' which instantiates (i.e., don't
17982 # use $as_me), people would be surprised to read:
17983 # /* config.h. Generated by config.status. */
17984 configure_input='Generated from '`
17985 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17987 if test x"$ac_file" != x-; then
17988 configure_input="$ac_file. $configure_input"
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17990 $as_echo "$as_me: creating $ac_file" >&6;}
17992 # Neutralize special characters interpreted by sed in replacement strings.
17993 case $configure_input in #(
17994 *\&* | *\|* | *\\* )
17995 ac_sed_conf_input=`$as_echo "$configure_input" |
17996 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17997 *) ac_sed_conf_input=$configure_input;;
18001 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18007 ac_dir=`$as_dirname -- "$ac_file" ||
18008 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18009 X"$ac_file" : 'X\(//\)[^/]' \| \
18010 X"$ac_file" : 'X\(//\)$' \| \
18011 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18012 $as_echo X"$ac_file" |
18013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18017 /^X\(\/\/\)[^/].*/{
18030 as_dir="$ac_dir"; as_fn_mkdir_p
18034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18036 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18037 # A ".." for each directory in $ac_dir_suffix.
18038 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18039 case $ac_top_builddir_sub in
18040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18044 ac_abs_top_builddir=$ac_pwd
18045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18046 # for backward compatibility:
18047 ac_top_builddir=$ac_top_build_prefix
18050 .) # We are building in place.
18052 ac_top_srcdir=$ac_top_builddir_sub
18053 ac_abs_top_srcdir=$ac_pwd ;;
18054 [\\/]* | ?:[\\/]* ) # Absolute name.
18055 ac_srcdir=$srcdir$ac_dir_suffix;
18056 ac_top_srcdir=$srcdir
18057 ac_abs_top_srcdir=$srcdir ;;
18058 *) # Relative name.
18059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18060 ac_top_srcdir=$ac_top_build_prefix$srcdir
18061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18074 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18076 ac_MKDIR_P=$MKDIR_P
18078 [\\/$]* | ?:[\\/]* ) ;;
18079 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18084 # If the template does not know about datarootdir, expand it.
18085 # FIXME: This hack should be removed a few years after 2.60.
18086 ac_datarootdir_hack=; ac_datarootdir_seen=
18097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18098 *datarootdir*) ac_datarootdir_seen=yes;;
18099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18101 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104 ac_datarootdir_hack='
18105 s&@datadir@&$datadir&g
18106 s&@docdir@&$docdir&g
18107 s&@infodir@&$infodir&g
18108 s&@localedir@&$localedir&g
18109 s&@mandir@&$mandir&g
18110 s&\\\${datarootdir}&$datarootdir&g' ;;
18114 # Neutralize VPATH when `$srcdir' = `.'.
18115 # Shell code in configure.ac might set extrasub.
18116 # FIXME: do we really want to maintain this feature?
18117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18118 ac_sed_extra="$ac_vpsub
18121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18124 s|@configure_input@|$ac_sed_conf_input|;t t
18125 s&@top_builddir@&$ac_top_builddir_sub&;t t
18126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18127 s&@srcdir@&$ac_srcdir&;t t
18128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18129 s&@top_srcdir@&$ac_top_srcdir&;t t
18130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18131 s&@builddir@&$ac_builddir&;t t
18132 s&@abs_builddir@&$ac_abs_builddir&;t t
18133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18134 s&@INSTALL@&$ac_INSTALL&;t t
18135 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18136 $ac_datarootdir_hack
18138 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18139 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18142 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18143 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18144 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18146 which seems to be undefined. Please make sure it is defined" >&5
18147 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18148 which seems to be undefined. Please make sure it is defined" >&2;}
18150 rm -f "$ac_tmp/stdin"
18152 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18153 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18161 if test x"$ac_file" != x-; then
18163 $as_echo "/* $configure_input */" \
18164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18165 } >"$ac_tmp/config.h" \
18166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18167 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18169 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18172 mv "$ac_tmp/config.h" "$ac_file" \
18173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18176 $as_echo "/* $configure_input */" \
18177 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18178 || as_fn_error $? "could not create -" "$LINENO" 5
18180 # Compute "$ac_file"'s index in $config_headers.
18183 for _am_header in $config_headers :; do
18184 case $_am_header in
18185 $_am_arg | $_am_arg:* )
18188 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18191 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18192 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18193 X"$_am_arg" : 'X\(//\)[^/]' \| \
18194 X"$_am_arg" : 'X\(//\)$' \| \
18195 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18196 $as_echo X"$_am_arg" |
18197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18201 /^X\(\/\/\)[^/].*/{
18213 s/.*/./; q'`/stamp-h$_am_stamp_count
18216 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18217 $as_echo "$as_me: executing $ac_file commands" >&6;}
18222 case $ac_file$ac_mode in
18223 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18224 # Older Autoconf quotes --file arguments for eval, but not when files
18225 # are listed without --file. Let's play safe and only enable the eval
18226 # if we detect the quoting.
18227 # TODO: see whether this extra hack can be removed once we start
18228 # requiring Autoconf 2.70 or later.
18229 case $CONFIG_FILES in #(
18231 eval set x "$CONFIG_FILES" ;; #(
18233 set x $CONFIG_FILES ;; #(
18238 # Used to flag and report bootstrapping failures.
18242 # Strip MF so we end up with the name of the file.
18243 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18244 # Check whether this is an Automake generated Makefile which includes
18245 # dependency-tracking related rules and includes.
18246 # Grep'ing the whole file directly is not great: AIX grep has a line
18247 # limit of 2048, but all sed's we know have understand at least 4000.
18248 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18250 am_dirpart=`$as_dirname -- "$am_mf" ||
18251 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18252 X"$am_mf" : 'X\(//\)[^/]' \| \
18253 X"$am_mf" : 'X\(//\)$' \| \
18254 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18255 $as_echo X"$am_mf" |
18256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18260 /^X\(\/\/\)[^/].*/{
18273 am_filepart=`$as_basename -- "$am_mf" ||
18274 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18275 X"$am_mf" : 'X\(//\)$' \| \
18276 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18277 $as_echo X/"$am_mf" |
18278 sed '/^.*\/\([^/][^/]*\)\/*$/{
18291 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18292 && sed -e '/# am--include-marker/d' "$am_filepart" \
18293 | $MAKE -f - am--depfiles" >&5
18294 (cd "$am_dirpart" \
18295 && sed -e '/# am--include-marker/d' "$am_filepart" \
18296 | $MAKE -f - am--depfiles) >&5 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } || am_rc=$?
18301 if test $am_rc -ne 0; then
18302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18304 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18305 for automatic dependency tracking. If GNU make was not used, consider
18306 re-running the configure script with MAKE=\"gmake\" (or whatever is
18307 necessary). You can also try re-running configure with the
18308 '--disable-dependency-tracking' option to at least be able to build
18309 the package (albeit without support for automatic dependency tracking).
18310 See \`config.log' for more details" "$LINENO" 5; }
18312 { am_dirpart=; unset am_dirpart;}
18313 { am_filepart=; unset am_filepart;}
18314 { am_mf=; unset am_mf;}
18315 { am_rc=; unset am_rc;}
18316 rm -f conftest-deps.mk
18319 "po-directories":C)
18320 for ac_file in $CONFIG_FILES; do
18321 # Support "outfile[:infile[:infile...]]"
18323 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18325 # PO directories have a Makefile.in generated from Makefile.in.in.
18326 case "$ac_file" in */Makefile.in)
18327 # Adjust a relative srcdir.
18328 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18329 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18330 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18331 # In autoconf-2.13 it is called $ac_given_srcdir.
18332 # In autoconf-2.50 it is called $srcdir.
18333 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18334 case "$ac_given_srcdir" in
18335 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18336 /*) top_srcdir="$ac_given_srcdir" ;;
18337 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18339 # Treat a directory as a PO directory if and only if it has a
18340 # POTFILES.in file. This allows packages to have multiple PO
18341 # directories under different names or in different locations.
18342 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18343 rm -f "$ac_dir/POTFILES"
18344 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18345 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18346 POMAKEFILEDEPS="POTFILES.in"
18347 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18348 # on $ac_dir but don't depend on user-specified configuration
18350 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18351 # The LINGUAS file contains the set of available languages.
18352 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18353 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18355 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18356 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18357 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18358 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18360 # The set of available languages was given in configure.in.
18361 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18362 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18365 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18366 # Compute UPDATEPOFILES
18367 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18368 # Compute DUMMYPOFILES
18369 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18371 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18372 case "$ac_given_srcdir" in
18374 *) srcdirpre='$(srcdir)/' ;;
18380 for lang in $ALL_LINGUAS; do
18381 POFILES="$POFILES $srcdirpre$lang.po"
18382 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18383 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18384 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18386 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18387 # environment variable.
18389 if test -n "$ALL_LINGUAS"; then
18390 for presentlang in $ALL_LINGUAS; do
18392 if test "%UNSET%" != "$LINGUAS"; then
18393 desiredlanguages="$LINGUAS"
18395 desiredlanguages="$ALL_LINGUAS"
18397 for desiredlang in $desiredlanguages; do
18398 # Use the presentlang catalog if desiredlang is
18399 # a. equal to presentlang, or
18400 # b. a variant of presentlang (because in this case,
18401 # presentlang can be used as a fallback for messages
18402 # which are not translated in the desiredlang catalog).
18403 case "$desiredlang" in
18404 "$presentlang"*) useit=yes;;
18407 if test $useit = yes; then
18408 INST_LINGUAS="$INST_LINGUAS $presentlang"
18413 if test -n "$INST_LINGUAS"; then
18414 for lang in $INST_LINGUAS; do
18415 CATALOGS="$CATALOGS $lang.gmo"
18418 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18419 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"
18420 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18421 if test -f "$f"; then
18423 *.orig | *.bak | *~) ;;
18424 *) cat "$f" >> "$ac_dir/Makefile" ;;
18439 ac_clean_files=$ac_clean_files_save
18441 test $ac_write_fail = 0 ||
18442 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18445 # configure is writing to config.log, and then calls config.status.
18446 # config.status does its own redirection, appending to config.log.
18447 # Unfortunately, on DOS this fails, as config.log is still kept open
18448 # by configure, so config.status won't be able to write to it; its
18449 # output is simply discarded. So we exec the FD to /dev/null,
18450 # effectively closing config.log, so it can be properly (re)opened and
18451 # appended to by config.status. When coming back to configure, we
18452 # need to make the FD available again.
18453 if test "$no_create" != yes; then
18455 ac_config_status_args=
18456 test "$silent" = yes &&
18457 ac_config_status_args="$ac_config_status_args --quiet"
18459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18462 # would make configure fail if this is the last instruction.
18463 $ac_cs_success || as_fn_exit 1
18465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18472 if test "$build_tpm2d" = "yes"; then
18473 show_tss_type="($have_libtss)"
18477 GnuPG v${VERSION} has been configured as follows:
18479 Revision: d073f26d8 (53363)
18480 Platform: $PRINTABLE_OS_NAME ($host)
18482 OpenPGP: $build_gpg
18483 S/MIME: $build_gpgsm
18484 Agent: $build_agent
18485 Smartcard: $build_scdaemon $build_scdaemon_extra
18486 TPM: $build_tpm2d $show_tss_type
18488 Dirmngr: $build_dirmngr
18489 Keyboxd: $build_keyboxd
18490 Gpgtar: $build_gpgtar
18491 WKS tools: $build_wks_tools
18493 Protect tool: $show_gnupg_protect_tool_pgm
18494 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18495 Default agent: $show_gnupg_agent_pgm
18496 Default pinentry: $show_gnupg_pinentry_pgm
18497 Default scdaemon: $show_gnupg_scdaemon_pgm
18498 Default keyboxd: $show_gnupg_keyboxd_pgm
18499 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18500 Default dirmngr: $show_gnupg_dirmngr_pgm
18502 Dirmngr auto start: $dirmngr_auto_start
18503 Readline support: $gnupg_cv_have_readline
18504 LDAP support: $gnupg_have_ldap
18505 TLS support: $use_tls_library
18506 TOFU support: $use_tofu
18507 Tor support: $show_tor_support
18509 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18511 Warning: TPM support is compiled in but no software TPM
18512 for testing was discovered. TPM tests are disabled
18516 if test "x${gpg_config_script_warn}" != x; then
18518 Warning: Mismatches between the target platform and the
18519 to be used libraries have been detected for:
18520 ${gpg_config_script_warn}
18521 Please check above for more warning messages.
18525 if test "${build_gpg}" != "yes"; then
18527 Warning: The component "gpg" is used by other components as
18528 well as for the test suite. You have disabled
18529 this component and thus other things won't work.
18533 if test "${run_tests}" != "yes"; then
18535 Warning: The use of the test suite has been disabled!
18536 This is in almost all cases a bad idea. Take care.