2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.0.
5 # Report bugs to <https://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
240 if test "x$CONFIG_SHELL" != x; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://bugs.gnupg.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 as_val=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status=$1; test $as_status -eq 0 && as_status=1
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
546 test -d ./-p && rmdir ./-p
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
580 # Identity of this package.
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.3.0'
584 PACKAGE_STRING='gnupg 2.3.0'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
602 # ifdef HAVE_STDLIB_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
627 ac_subst_vars='am__EXEEXT_FALSE
638 NO_TRUST_MODELS_FALSE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
644 BUILD_WKS_TOOLS_FALSE
681 CROSS_COMPILING_FALSE
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
688 BUILD_INCLUDED_LIBINTL
695 XGETTEXT_EXTRA_OPTIONS
703 GETTEXT_MACRO_VERSION
747 HAVE_ANDROID_SYSTEM_FALSE
748 HAVE_ANDROID_SYSTEM_TRUE
749 HAVE_W32CE_SYSTEM_FALSE
750 HAVE_W32CE_SYSTEM_TRUE
751 HAVE_W32_SYSTEM_FALSE
753 USE_SIMPLE_GETTEXT_FALSE
754 USE_SIMPLE_GETTEXT_TRUE
755 HAVE_DOSISH_SYSTEM_FALSE
756 HAVE_DOSISH_SYSTEM_TRUE
761 AWK_HEX_NUMBER_OPTION
772 MAINTAINER_MODE_FALSE
778 GNUPG_DIRMNGR_LDAP_PGM_FALSE
779 GNUPG_DIRMNGR_LDAP_PGM_TRUE
780 GNUPG_DIRMNGR_LDAP_PGM
781 GNUPG_PROTECT_TOOL_PGM_FALSE
782 GNUPG_PROTECT_TOOL_PGM_TRUE
783 GNUPG_PROTECT_TOOL_PGM
784 GNUPG_KEYBOXD_PGM_FALSE
785 GNUPG_KEYBOXD_PGM_TRUE
787 GNUPG_DIRMNGR_PGM_FALSE
788 GNUPG_DIRMNGR_PGM_TRUE
790 GNUPG_TPM2DAEMON_PGM_FALSE
791 GNUPG_TPM2DAEMON_PGM_TRUE
793 GNUPG_SCDAEMON_PGM_FALSE
794 GNUPG_SCDAEMON_PGM_TRUE
796 GNUPG_PINENTRY_PGM_FALSE
797 GNUPG_PINENTRY_PGM_TRUE
799 GNUPG_AGENT_PGM_FALSE
842 INSTALL_STRIP_PROGRAM
885 program_transform_name
899 enable_option_checking
901 enable_dependency_tracking
917 with_protect_tool_pgm
918 with_dirmngr_ldap_pgm
920 enable_selinux_support
922 with_agent_s2k_calibration
937 enable_gpg_camellia128
938 enable_gpg_camellia192
939 enable_gpg_camellia256
954 enable_dirmngr_auto_start
955 enable_maintainer_mode
957 with_libgpg_error_prefix
958 with_gpg_error_prefix
959 with_libgcrypt_prefix
960 with_libassuan_prefix
969 with_default_trust_store_file
987 enable_gnupg_builddir_envvar
988 enable_run_gnupg_user_socket
989 enable_build_timestamp
991 ac_precious_vars='build_alias
1012 # Initialize some variables set by options.
1014 ac_init_version=false
1015 ac_unrecognized_opts=
1016 ac_unrecognized_sep=
1017 # The variables have the same names as the options, with
1018 # dashes changed to underlines.
1019 cache_file=/dev/null
1026 program_transform_name=s,x,x,
1034 # Installation directory options.
1035 # These are left unexpanded so users can "make install exec_prefix=/foo"
1036 # and all the variables that are supposed to be based on exec_prefix
1037 # by default will actually change.
1038 # Use braces instead of parens because sh, perl, etc. also accept them.
1039 # (The list follows the same order as the GNU Coding Standards.)
1040 bindir='${exec_prefix}/bin'
1041 sbindir='${exec_prefix}/sbin'
1042 libexecdir='${exec_prefix}/libexec'
1043 datarootdir='${prefix}/share'
1044 datadir='${datarootdir}'
1045 sysconfdir='${prefix}/etc'
1046 sharedstatedir='${prefix}/com'
1047 localstatedir='${prefix}/var'
1048 runstatedir='${localstatedir}/run'
1049 includedir='${prefix}/include'
1050 oldincludedir='/usr/include'
1051 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1052 infodir='${datarootdir}/info'
1057 libdir='${exec_prefix}/lib'
1058 localedir='${datarootdir}/locale'
1059 mandir='${datarootdir}/man'
1065 # If the previous option needs an argument, assign it.
1066 if test -n "$ac_prev"; then
1067 eval $ac_prev=\$ac_option
1073 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1078 # Accept the important Cygnus configure options, so we can diagnose typos.
1080 case $ac_dashdash$ac_option in
1084 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1086 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087 bindir=$ac_optarg ;;
1089 -build | --build | --buil | --bui | --bu)
1090 ac_prev=build_alias ;;
1091 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092 build_alias=$ac_optarg ;;
1094 -cache-file | --cache-file | --cache-fil | --cache-fi \
1095 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096 ac_prev=cache_file ;;
1097 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099 cache_file=$ac_optarg ;;
1101 --config-cache | -C)
1102 cache_file=config.cache ;;
1104 -datadir | --datadir | --datadi | --datad)
1106 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107 datadir=$ac_optarg ;;
1109 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110 | --dataroo | --dataro | --datar)
1111 ac_prev=datarootdir ;;
1112 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114 datarootdir=$ac_optarg ;;
1116 -disable-* | --disable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1125 "enable_$ac_useropt"
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval enable_$ac_useropt=no ;;
1132 -docdir | --docdir | --docdi | --doc | --do)
1134 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1135 docdir=$ac_optarg ;;
1137 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1140 dvidir=$ac_optarg ;;
1142 -enable-* | --enable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval enable_$ac_useropt=\$ac_optarg ;;
1158 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1159 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1160 | --exec | --exe | --ex)
1161 ac_prev=exec_prefix ;;
1162 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1163 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1164 | --exec=* | --exe=* | --ex=*)
1165 exec_prefix=$ac_optarg ;;
1167 -gas | --gas | --ga | --g)
1168 # Obsolete; use --with-gas.
1171 -help | --help | --hel | --he | -h)
1172 ac_init_help=long ;;
1173 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1174 ac_init_help=recursive ;;
1175 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1176 ac_init_help=short ;;
1178 -host | --host | --hos | --ho)
1179 ac_prev=host_alias ;;
1180 -host=* | --host=* | --hos=* | --ho=*)
1181 host_alias=$ac_optarg ;;
1183 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187 htmldir=$ac_optarg ;;
1189 -includedir | --includedir | --includedi | --included | --include \
1190 | --includ | --inclu | --incl | --inc)
1191 ac_prev=includedir ;;
1192 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1193 | --includ=* | --inclu=* | --incl=* | --inc=*)
1194 includedir=$ac_optarg ;;
1196 -infodir | --infodir | --infodi | --infod | --info | --inf)
1198 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1199 infodir=$ac_optarg ;;
1201 -libdir | --libdir | --libdi | --libd)
1203 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1204 libdir=$ac_optarg ;;
1206 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1207 | --libexe | --libex | --libe)
1208 ac_prev=libexecdir ;;
1209 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1210 | --libexe=* | --libex=* | --libe=*)
1211 libexecdir=$ac_optarg ;;
1213 -localedir | --localedir | --localedi | --localed | --locale)
1214 ac_prev=localedir ;;
1215 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1216 localedir=$ac_optarg ;;
1218 -localstatedir | --localstatedir | --localstatedi | --localstated \
1219 | --localstate | --localstat | --localsta | --localst | --locals)
1220 ac_prev=localstatedir ;;
1221 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1222 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1223 localstatedir=$ac_optarg ;;
1225 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1228 mandir=$ac_optarg ;;
1230 -nfp | --nfp | --nf)
1231 # Obsolete; use --without-fp.
1234 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1235 | --no-cr | --no-c | -n)
1238 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1239 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1242 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1243 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1244 | --oldin | --oldi | --old | --ol | --o)
1245 ac_prev=oldincludedir ;;
1246 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1247 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1248 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1249 oldincludedir=$ac_optarg ;;
1251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1254 prefix=$ac_optarg ;;
1256 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1257 | --program-pre | --program-pr | --program-p)
1258 ac_prev=program_prefix ;;
1259 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1260 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1261 program_prefix=$ac_optarg ;;
1263 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1264 | --program-suf | --program-su | --program-s)
1265 ac_prev=program_suffix ;;
1266 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1267 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1268 program_suffix=$ac_optarg ;;
1270 -program-transform-name | --program-transform-name \
1271 | --program-transform-nam | --program-transform-na \
1272 | --program-transform-n | --program-transform- \
1273 | --program-transform | --program-transfor \
1274 | --program-transfo | --program-transf \
1275 | --program-trans | --program-tran \
1276 | --progr-tra | --program-tr | --program-t)
1277 ac_prev=program_transform_name ;;
1278 -program-transform-name=* | --program-transform-name=* \
1279 | --program-transform-nam=* | --program-transform-na=* \
1280 | --program-transform-n=* | --program-transform-=* \
1281 | --program-transform=* | --program-transfor=* \
1282 | --program-transfo=* | --program-transf=* \
1283 | --program-trans=* | --program-tran=* \
1284 | --progr-tra=* | --program-tr=* | --program-t=*)
1285 program_transform_name=$ac_optarg ;;
1287 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1290 pdfdir=$ac_optarg ;;
1292 -psdir | --psdir | --psdi | --psd | --ps)
1294 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1298 | -silent | --silent | --silen | --sile | --sil)
1301 -runstatedir | --runstatedir | --runstatedi | --runstated \
1302 | --runstate | --runstat | --runsta | --runst | --runs \
1303 | --run | --ru | --r)
1304 ac_prev=runstatedir ;;
1305 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1306 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1307 | --run=* | --ru=* | --r=*)
1308 runstatedir=$ac_optarg ;;
1310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314 sbindir=$ac_optarg ;;
1316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1318 | --sharedst | --shareds | --shared | --share | --shar \
1320 ac_prev=sharedstatedir ;;
1321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325 sharedstatedir=$ac_optarg ;;
1327 -site | --site | --sit)
1329 -site=* | --site=* | --sit=*)
1332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1335 srcdir=$ac_optarg ;;
1337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1338 | --syscon | --sysco | --sysc | --sys | --sy)
1339 ac_prev=sysconfdir ;;
1340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1342 sysconfdir=$ac_optarg ;;
1344 -target | --target | --targe | --targ | --tar | --ta | --t)
1345 ac_prev=target_alias ;;
1346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1347 target_alias=$ac_optarg ;;
1349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 -version | --version | --versio | --versi | --vers | -V)
1353 ac_init_version=: ;;
1356 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1369 eval with_$ac_useropt=\$ac_optarg ;;
1371 -without-* | --without-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1385 eval with_$ac_useropt=no ;;
1388 # Obsolete; use --with-x.
1391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1392 | --x-incl | --x-inc | --x-in | --x-i)
1393 ac_prev=x_includes ;;
1394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1396 x_includes=$ac_optarg ;;
1398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1400 ac_prev=x_libraries ;;
1401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1403 x_libraries=$ac_optarg ;;
1405 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1406 Try \`$0 --help' for more information"
1410 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1411 # Reject names that are not valid shell variable names.
1412 case $ac_envvar in #(
1413 '' | [0-9]* | *[!_$as_cr_alnum]* )
1414 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1416 eval $ac_envvar=\$ac_optarg
1417 export $ac_envvar ;;
1420 # FIXME: should be removed in autoconf 3.0.
1421 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1422 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1423 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1424 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430 if test -n "$ac_prev"; then
1431 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1432 as_fn_error $? "missing argument to $ac_option"
1435 if test -n "$ac_unrecognized_opts"; then
1436 case $enable_option_checking in
1438 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1439 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 # Check all directory arguments for consistency.
1444 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1445 datadir sysconfdir sharedstatedir localstatedir includedir \
1446 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1447 libdir localedir mandir runstatedir
1449 eval ac_val=\$$ac_var
1450 # Remove trailing slashes.
1453 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1454 eval $ac_var=\$ac_val;;
1456 # Be sure to have absolute directory names.
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 # There might be people who depend on the old broken behavior: `$host'
1465 # used to hold the argument of --host etc.
1466 # FIXME: To remove some day.
1469 target=$target_alias
1471 # FIXME: To remove some day.
1472 if test "x$host_alias" != x; then
1473 if test "x$build_alias" = x; then
1474 cross_compiling=maybe
1475 elif test "x$build_alias" != "x$host_alias"; then
1481 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483 test "$silent" = yes && exec 6>/dev/null
1486 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1487 ac_ls_di=`ls -di .` &&
1488 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1489 as_fn_error $? "working directory cannot be determined"
1490 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1491 as_fn_error $? "pwd does not report name of working directory"
1494 # Find the source files, if location was not specified.
1495 if test -z "$srcdir"; then
1496 ac_srcdir_defaulted=yes
1497 # Try the directory containing this script, then the parent directory.
1498 ac_confdir=`$as_dirname -- "$as_myself" ||
1499 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1500 X"$as_myself" : 'X\(//\)[^/]' \| \
1501 X"$as_myself" : 'X\(//\)$' \| \
1502 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1503 $as_echo X"$as_myself" |
1504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1526 ac_srcdir_defaulted=no
1528 if test ! -r "$srcdir/$ac_unique_file"; then
1529 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1530 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1536 # When building in place, set srcdir=.
1537 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 # Remove unnecessary trailing slashes from srcdir.
1541 # Double slashes in file names in object file debugging info
1542 # mess up M-x gdb in Emacs.
1544 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1546 for ac_var in $ac_precious_vars; do
1547 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_env_${ac_var}_value=\$${ac_var}
1549 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 # Report the --help message.
1556 if test "$ac_init_help" = "long"; then
1557 # Omit some internal or obsolete options to make the list less imposing.
1558 # This message is too long to be a string in the A/UX 3.1 sh.
1560 \`configure' configures gnupg 2.3.0 to adapt to many kinds of systems.
1562 Usage: $0 [OPTION]... [VAR=VALUE]...
1564 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1565 VAR=VALUE. See below for descriptions of some of the useful variables.
1567 Defaults for the options are specified in brackets.
1570 -h, --help display this help and exit
1571 --help=short display options specific to this package
1572 --help=recursive display the short help of all the included packages
1573 -V, --version display version information and exit
1574 -q, --quiet, --silent do not print \`checking ...' messages
1575 --cache-file=FILE cache test results in FILE [disabled]
1576 -C, --config-cache alias for \`--cache-file=config.cache'
1577 -n, --no-create do not create output files
1578 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1580 Installation directories:
1581 --prefix=PREFIX install architecture-independent files in PREFIX
1582 [$ac_default_prefix]
1583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 By default, \`make install' will install all the files in
1587 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1588 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1589 for instance \`--prefix=\$HOME'.
1591 For better control, use the options below.
1593 Fine tuning of the installation directories:
1594 --bindir=DIR user executables [EPREFIX/bin]
1595 --sbindir=DIR system admin executables [EPREFIX/sbin]
1596 --libexecdir=DIR program executables [EPREFIX/libexec]
1597 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1598 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1599 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1600 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1601 --libdir=DIR object code libraries [EPREFIX/lib]
1602 --includedir=DIR C header files [PREFIX/include]
1603 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1604 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1605 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1606 --infodir=DIR info documentation [DATAROOTDIR/info]
1607 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1608 --mandir=DIR man documentation [DATAROOTDIR/man]
1609 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1610 --htmldir=DIR html documentation [DOCDIR]
1611 --dvidir=DIR dvi documentation [DOCDIR]
1612 --pdfdir=DIR pdf documentation [DOCDIR]
1613 --psdir=DIR ps documentation [DOCDIR]
1619 --program-prefix=PREFIX prepend PREFIX to installed program names
1620 --program-suffix=SUFFIX append SUFFIX to installed program names
1621 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1629 if test -n "$ac_init_help"; then
1630 case $ac_init_help in
1631 short | recursive ) echo "Configuration of gnupg 2.3.0:";;
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --enable-silent-rules less verbose build output (undo: "make V=1")
1640 --disable-silent-rules verbose build output (undo: "make V=0")
1641 --enable-dependency-tracking
1642 do not reject slow dependency extractors
1643 --disable-dependency-tracking
1644 speeds up one-time build
1645 --disable-gpgsm do not build the gpgsm program
1646 --disable-scdaemon do not build the scdaemon program
1647 --enable-g13 build the g13 program
1648 --disable-dirmngr do not build the dirmngr program
1649 --disable-keyboxd do not build the keyboxd program
1650 --disable-tpm2d do not build the tpm2d program
1651 --disable-doc do not build the doc program
1652 --disable-gpgtar do not build the gpgtar program
1653 --disable-wks-tools do not build the wks-tools program
1654 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1655 --enable-selinux-support
1656 enable SELinux support
1657 --enable-large-secmem allocate extra secure memory
1658 --disable-trust-models disable all trust models except "always"
1659 --disable-tofu disable the TOFU trust model
1660 --disable-libdns do not build with libdns support
1661 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1662 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1663 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1664 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1665 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1666 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1667 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1668 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1669 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1670 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1671 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1672 --disable-gpg-camellia128
1673 disable the CAMELLIA128 cipher algorithm in gpg
1674 --disable-gpg-camellia192
1675 disable the CAMELLIA192 cipher algorithm in gpg
1676 --disable-gpg-camellia256
1677 disable the CAMELLIA256 cipher algorithm in gpg
1678 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1679 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1680 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1681 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1682 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1683 --disable-zip disable the ZIP and ZLIB compression algorithm
1684 --disable-bzip2 disable the BZIP2 compression algorithm
1685 --disable-exec disable all external program execution
1686 --disable-photo-viewers disable photo ID viewers
1687 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1688 --disable-card-support disable smartcard support
1689 --disable-ccid-driver disable the internal CCID driver
1690 --disable-dirmngr-auto-start
1691 disable auto starting of the dirmngr
1692 --enable-maintainer-mode
1693 enable make rules and dependencies not useful (and
1694 sometimes confusing) to the casual installer
1695 --disable-largefile omit support for large files
1696 --disable-sqlite disable the use of SQLITE
1697 --enable-npth-debug build with debug version of npth
1698 --disable-ntbtls disable the use of NTBTLS as TLS library
1699 --disable-gnutls disable GNUTLS as fallback TLS library
1700 --disable-ldap disable LDAP support
1701 --disable-rpath do not hardcode runtime library paths
1702 --disable-nls do not use Native Language Support
1703 --disable-endian-check disable the endian check and trust the OS provided
1705 --disable-optimization disable compiler optimization
1706 --enable-log-clock enable log_clock timestamps
1707 --enable-werror append -Werror to CFLAGS
1708 --enable-all-tests let "make check" run all tests
1709 --disable-tests do not run any tests
1711 --enable-run-gnupg-user-socket
1712 try /run/gnupg/user for sockets prior to /run/user
1713 --enable-build-timestamp
1714 set an explicit build timestamp for reproducibility.
1715 (default is the current time in ISO-8601 format)
1718 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1719 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1720 --with-agent-pgm=PATH Use PATH as the default for the agent)
1721 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1722 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1723 --with-tpm2daemon-pgm=PATH Use PATH as the default for the tpm2daemon)
1724 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1725 --with-keyboxd-pgm=PATH Use PATH as the default for the keyboxd)
1726 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1727 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1728 --with-agent-s2k-calibration=MSEC
1729 calibrate passphrase stretching (s2k) to MSEC
1731 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1732 --with-capabilities use linux capabilities default=no
1733 --with-libgpg-error-prefix=PFX
1734 prefix where GPG Error is installed (optional)
1736 --with-libgcrypt-prefix=PFX
1737 prefix where LIBGCRYPT is installed (optional)
1738 --with-libassuan-prefix=PFX
1739 prefix where LIBASSUAN is installed (optional)
1740 --with-libksba-prefix=PFX
1741 prefix where KSBA is installed (optional)
1742 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1743 --with-ntbtls-prefix=PFX
1744 prefix where NTBTLS is installed (optional)
1745 --with-default-trust-store-file=FILE
1746 Use FILE as system trust store
1747 --with-ldap=DIR look for the LDAP library in DIR
1748 --with-mailprog=NAME use "NAME -t" for mail transport
1749 --with-gnu-ld assume the C compiler uses GNU ld default=no
1750 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1751 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1752 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1753 --without-libintl-prefix don't search for libintl in includedir and libdir
1754 --with-zlib=DIR use libz in DIR
1755 --with-bzip2=DIR look for bzip2 in DIR
1756 --with-readline=DIR look for the readline library in DIR
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.3.0
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.3.0, 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 and Makefile.am
2914 cat >>confdefs.h <<_ACEOF
2915 #define GNUPG_SWDB_TAG "gnupg24"
2919 NEED_GPGRT_VERSION=1.41
2921 NEED_LIBGCRYPT_API=1
2922 NEED_LIBGCRYPT_VERSION=1.9.1
2924 NEED_LIBASSUAN_API=2
2925 NEED_LIBASSUAN_VERSION=2.5.0
2928 NEED_KSBA_VERSION=1.3.4
2931 NEED_NTBTLS_VERSION=0.1.0
2934 NEED_NPTH_VERSION=1.2
2937 NEED_GNUTLS_VERSION=3.0
2939 NEED_SQLITE_VERSION=3.27
2941 development_version=no
2942 PACKAGE=$PACKAGE_NAME
2943 PACKAGE_GT=${PACKAGE_NAME}2
2944 VERSION=$PACKAGE_VERSION
2947 for ac_dir in build-aux "$srcdir"/build-aux; do
2948 if test -f "$ac_dir/install-sh"; then
2950 ac_install_sh="$ac_aux_dir/install-sh -c"
2952 elif test -f "$ac_dir/install.sh"; then
2954 ac_install_sh="$ac_aux_dir/install.sh -c"
2956 elif test -f "$ac_dir/shtool"; then
2958 ac_install_sh="$ac_aux_dir/shtool install -c"
2962 if test -z "$ac_aux_dir"; then
2963 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2966 # These three variables are undocumented and unsupported,
2967 # and are intended to be withdrawn in a future Autoconf release.
2968 # They can cause serious problems if a builder's source tree is in a directory
2969 # whose full name contains unusual characters.
2970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2976 ac_config_headers="$ac_config_headers config.h"
2978 am__api_version='1.16'
2980 # Find a good install program. We prefer a C program (faster),
2981 # so one script is as good as another. But avoid the broken or
2982 # incompatible versions:
2983 # SysV /etc/install, /usr/sbin/install
2984 # SunOS /usr/etc/install
2985 # IRIX /sbin/install
2987 # AmigaOS /C/install, which installs bootblocks on floppy discs
2988 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2989 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2990 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2991 # OS/2's system install, which has a completely different semantic
2992 # ./install, which can be erroneously created by make from ./install.sh.
2993 # Reject install programs that cannot install multiple files.
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2995 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2996 if test -z "$INSTALL"; then
2997 if ${ac_cv_path_install+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 # Account for people who put trailing slashes in PATH elements.
3006 case $as_dir/ in #((
3007 ./ | .// | /[cC]/* | \
3008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3009 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3012 # OSF1 and SCO ODT 3.0 have their own names for install.
3013 # Don't use installbsd from OSF since it installs stuff as root
3015 for ac_prog in ginstall scoinst install; do
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3018 if test $ac_prog = install &&
3019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3020 # AIX install. It has an incompatible calling convention.
3022 elif test $ac_prog = install &&
3023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024 # program-specific install script used by HP pwplus--don't use.
3027 rm -rf conftest.one conftest.two conftest.dir
3028 echo one > conftest.one
3029 echo two > conftest.two
3031 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3032 test -s conftest.one && test -s conftest.two &&
3033 test -s conftest.dir/conftest.one &&
3034 test -s conftest.dir/conftest.two
3036 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049 rm -rf conftest.one conftest.two conftest.dir
3052 if test "${ac_cv_path_install+set}" = set; then
3053 INSTALL=$ac_cv_path_install
3055 # As a last resort, use the slow shell script. Don't cache a
3056 # value for INSTALL within a source directory, because that will
3057 # break other packages using the cache if that directory is
3058 # removed, or if the value is a relative name.
3059 INSTALL=$ac_install_sh
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3063 $as_echo "$INSTALL" >&6; }
3065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3066 # It thinks the first close brace ends the variable substitution.
3067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3074 $as_echo_n "checking whether build environment is sane... " >&6; }
3075 # Reject unsafe characters in $srcdir or the absolute working directory
3076 # name. Accept space and tab only in the latter.
3080 *[\\\"\#\$\&\'\`$am_lf]*)
3081 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3084 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3085 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3088 # Do 'set' in a subshell so we don't clobber the current shell's
3089 # arguments. Must try -L first in case configure is actually a
3090 # symlink; some systems play weird games with the mod time of symlinks
3091 # (eg FreeBSD returns the mod time of the symlink's containing
3095 for am_try in 1 2; do
3096 echo "timestamp, slept: $am_has_slept" > conftest.file
3097 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3098 if test "$*" = "X"; then
3100 set X `ls -t "$srcdir/configure" conftest.file`
3102 if test "$*" != "X $srcdir/configure conftest.file" \
3103 && test "$*" != "X conftest.file $srcdir/configure"; then
3105 # If neither matched, then we have a broken ls. This can happen
3106 # if, for instance, CONFIG_SHELL is bash and it inherits a
3107 # broken ls alias from the environment. This has actually
3108 # happened. Such a system could not be considered "sane".
3109 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3110 alias in your environment" "$LINENO" 5
3112 if test "$2" = conftest.file || test $am_try -eq 2; then
3119 test "$2" = conftest.file
3125 as_fn_error $? "newly created file is older than distributed files!
3126 Check your system clock" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 # If we didn't sleep, we still need to ensure time stamps of config.status and
3131 # generated files are strictly newer.
3133 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3140 test "$program_prefix" != NONE &&
3141 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3142 # Use a double $ so make ignores it.
3143 test "$program_suffix" != NONE &&
3144 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3145 # Double any \ or $.
3146 # By default was `s,x,x', remove it if useless.
3147 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3148 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3150 # Expand $ac_aux_dir to an absolute path.
3151 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3153 if test x"${MISSING+set}" != xset; then
3154 MISSING="\${SHELL} '$am_aux_dir/missing'"
3156 # Use eval to expand $SHELL
3157 if eval "$MISSING --is-lightweight"; then
3158 am_missing_run="$MISSING "
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3162 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3165 if test x"${install_sh+set}" != xset; then
3168 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3170 install_sh="\${SHELL} $am_aux_dir/install-sh"
3174 # Installed binaries are usually stripped using 'strip' when the user
3175 # run "make install-strip". However 'strip' might not be the right
3176 # tool to use in cross-compilation environments, therefore Automake
3177 # will honor the 'STRIP' environment variable to overrule this program.
3178 if test "$cross_compiling" != no; then
3179 if test -n "$ac_tool_prefix"; then
3180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3181 set dummy ${ac_tool_prefix}strip; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if ${ac_cv_prog_STRIP+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 if test -n "$STRIP"; then
3188 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 STRIP=$ac_cv_prog_STRIP
3208 if test -n "$STRIP"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3210 $as_echo "$STRIP" >&6; }
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3218 if test -z "$ac_cv_prog_STRIP"; then
3220 # Extract the first word of "strip", so it can be a program name with args.
3221 set dummy strip; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3225 $as_echo_n "(cached) " >&6
3227 if test -n "$ac_ct_STRIP"; then
3228 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_ac_ct_STRIP="strip"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3248 if test -n "$ac_ct_STRIP"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3250 $as_echo "$ac_ct_STRIP" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3256 if test "x$ac_ct_STRIP" = x; then
3259 case $cross_compiling:$ac_tool_warned in
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3268 STRIP="$ac_cv_prog_STRIP"
3272 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3275 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3276 if test -z "$MKDIR_P"; then
3277 if ${ac_cv_path_mkdir+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3284 test -z "$as_dir" && as_dir=.
3285 for ac_prog in mkdir gmkdir; do
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3288 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3289 'mkdir (GNU coreutils) '* | \
3290 'mkdir (coreutils) '* | \
3291 'mkdir (fileutils) '4.1*)
3292 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3302 test -d ./--version && rmdir ./--version
3303 if test "${ac_cv_path_mkdir+set}" = set; then
3304 MKDIR_P="$ac_cv_path_mkdir -p"
3306 # As a last resort, use the slow shell script. Don't cache a
3307 # value for MKDIR_P within a source directory, because that will
3308 # break other packages using the cache if that directory is
3309 # removed, or if the value is a relative name.
3310 MKDIR_P="$ac_install_sh -d"
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3314 $as_echo "$MKDIR_P" >&6; }
3316 for ac_prog in gawk mawk nawk awk
3318 # Extract the first word of "$ac_prog", so it can be a program name with args.
3319 set dummy $ac_prog; ac_word=$2
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3321 $as_echo_n "checking for $ac_word... " >&6; }
3322 if ${ac_cv_prog_AWK+:} false; then :
3323 $as_echo_n "(cached) " >&6
3325 if test -n "$AWK"; then
3326 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_AWK="$ac_prog"
3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346 if test -n "$AWK"; then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3348 $as_echo "$AWK" >&6; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 test -n "$AWK" && break
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3359 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3361 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3362 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3363 $as_echo_n "(cached) " >&6
3365 cat >conftest.make <<\_ACEOF
3368 @echo '@@@%%%=$(MAKE)=@@@%%%'
3370 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3371 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3373 eval ac_cv_prog_make_${ac_make}_set=yes;;
3375 eval ac_cv_prog_make_${ac_make}_set=no;;
3379 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3381 $as_echo "yes" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 SET_MAKE="MAKE=${MAKE-make}"
3389 rm -rf .tst 2>/dev/null
3390 mkdir .tst 2>/dev/null
3391 if test -d .tst; then
3396 rmdir .tst 2>/dev/null
3398 # Check whether --enable-silent-rules was given.
3399 if test "${enable_silent_rules+set}" = set; then :
3400 enableval=$enable_silent_rules;
3403 case $enable_silent_rules in # (((
3404 yes) AM_DEFAULT_VERBOSITY=0;;
3405 no) AM_DEFAULT_VERBOSITY=1;;
3406 *) AM_DEFAULT_VERBOSITY=1;;
3408 am_make=${MAKE-make}
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3410 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3411 if ${am_cv_make_support_nested_variables+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if $as_echo 'TRUE=$(BAR$(V))
3420 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3421 am_cv_make_support_nested_variables=yes
3423 am_cv_make_support_nested_variables=no
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3427 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3428 if test $am_cv_make_support_nested_variables = yes; then
3430 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3432 AM_V=$AM_DEFAULT_VERBOSITY
3433 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3437 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3438 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3439 # is not polluted with repeated "-I."
3440 am__isrc=' -I$(srcdir)'
3441 # test to see if srcdir already configured
3442 if test -f $srcdir/config.status; then
3443 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3447 # test whether we have cygpath
3448 if test -z "$CYGPATH_W"; then
3449 if (cygpath --version) >/dev/null 2>/dev/null; then
3450 CYGPATH_W='cygpath -w'
3457 # Define the identity of the package.
3462 cat >>confdefs.h <<_ACEOF
3463 #define PACKAGE "$PACKAGE"
3467 cat >>confdefs.h <<_ACEOF
3468 #define VERSION "$VERSION"
3471 # Some tools Automake needs.
3473 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3476 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3479 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3482 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3485 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3487 # For better backward compatibility. To be removed once Automake 1.9.x
3488 # dies out for good. For more background, see:
3489 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3490 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3491 mkdir_p='$(MKDIR_P)'
3493 # We need awk for the "check" target (and possibly the TAP driver). The
3494 # system "awk" is bad on some platforms.
3495 # Always define AMTAR for backward compatibility. Yes, it's still used
3496 # in the wild :-( We should find a proper way to deprecate it ...
3500 # We'll loop over all known methods to create a tar archive until one works.
3501 _am_tools='gnutar pax cpio none'
3503 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3510 # POSIX will say in a future version that running "rm -f" with no argument
3511 # is OK; and we want to be able to make that assumption in our Makefile
3512 # recipes. So use an aggressive probe to check that the usage we want is
3513 # actually supported "in the wild" to an acceptable degree.
3514 # See automake bug#10828.
3515 # To make any issue more visible, cause the running configure to be aborted
3516 # by default if the 'rm' program in use doesn't match our expectations; the
3517 # user can still override this though.
3518 if rm -f && rm -fr && rm -rf; then : OK; else
3522 Your 'rm' program seems unable to run without file operands specified
3523 on the command line, even when the '-f' option is present. This is contrary
3524 to the behaviour of most rm programs out there, and not conforming with
3525 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3527 Please tell bug-automake@gnu.org about your system, including the value
3528 of your $PATH and any error possibly output before this message. This
3529 can help us improve future automake versions.
3532 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3533 echo 'Configuration will proceed anyway, since you have set the' >&2
3534 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3538 Aborting the configuration process, to ensure you take notice of the issue.
3540 You can download and install GNU coreutils to get an 'rm' implementation
3541 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3543 If you want to complete the configuration process using your problematic
3544 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3545 to "yes", and re-run configure.
3548 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3552 # Make sure we can run config.sub.
3553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3557 $as_echo_n "checking build system type... " >&6; }
3558 if ${ac_cv_build+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_build_alias=$build_alias
3562 test "x$ac_build_alias" = x &&
3563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3564 test "x$ac_build_alias" = x &&
3565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3571 $as_echo "$ac_cv_build" >&6; }
3572 case $ac_cv_build in
3574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3577 ac_save_IFS=$IFS; IFS='-'
3583 # Remember, the first character of IFS is used to create $*,
3584 # except with old shells:
3587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3591 $as_echo_n "checking host system type... " >&6; }
3592 if ${ac_cv_host+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test "x$host_alias" = x; then
3596 ac_cv_host=$ac_cv_build
3598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3604 $as_echo "$ac_cv_host" >&6; }
3607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3610 ac_save_IFS=$IFS; IFS='-'
3616 # Remember, the first character of IFS is used to create $*,
3617 # except with old shells:
3620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3628 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3630 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3632 if test "$hostname"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3634 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3637 date=`date +%Y%m%d-%H%M%S`
3638 if test "$?" != 0; then
3641 if test "$date"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3643 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3647 DEPDIR="${am__leading_dot}deps"
3649 ac_config_commands="$ac_config_commands depfiles"
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3652 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3653 cat > confinc.mk << 'END'
3655 @echo this is the am__doit target >confinc.out
3660 # BSD make does it like this.
3661 echo '.include "confinc.mk" # ignored' > confmf.BSD
3662 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3663 echo 'include confinc.mk # ignored' > confmf.GNU
3665 for s in GNU BSD; do
3666 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3667 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }
3671 case $?:`cat confinc.out 2>/dev/null` in #(
3672 '0:this is the am__doit target') :
3675 am__include='.include' am__quote='"' ;; #(
3677 am__include='include' am__quote='' ;;
3682 if test "$am__include" != "#"; then
3683 _am_result="yes ($s style)"
3687 rm -f confinc.* confmf.*
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3689 $as_echo "${_am_result}" >&6; }
3691 # Check whether --enable-dependency-tracking was given.
3692 if test "${enable_dependency_tracking+set}" = set; then :
3693 enableval=$enable_dependency_tracking;
3696 if test "x$enable_dependency_tracking" != xno; then
3697 am_depcomp="$ac_aux_dir/depcomp"
3701 if test "x$enable_dependency_tracking" != xno; then
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CC+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 if test -n "$CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3754 if test -z "$ac_cv_prog_CC"; then
3756 # Extract the first word of "gcc", so it can be a program name with args.
3757 set dummy gcc; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$ac_ct_CC"; then
3764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_ac_ct_CC="gcc"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3784 if test -n "$ac_ct_CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3786 $as_echo "$ac_ct_CC" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 if test "x$ac_ct_CC" = x; then
3795 case $cross_compiling:$ac_tool_warned in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3807 if test -z "$CC"; then
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}cc; ac_word=$2
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3812 $as_echo_n "checking for $ac_word... " >&6; }
3813 if ${ac_cv_prog_CC+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 if test -n "$CC"; then
3817 ac_cv_prog_CC="$CC" # Let the user override the test.
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826 ac_cv_prog_CC="${ac_tool_prefix}cc"
3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 if test -n "$CC"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3839 $as_echo "$CC" >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3848 if test -z "$CC"; then
3849 # Extract the first word of "cc", so it can be a program name with args.
3850 set dummy cc; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if ${ac_cv_prog_CC+:} false; then :
3854 $as_echo_n "(cached) " >&6
3856 if test -n "$CC"; then
3857 ac_cv_prog_CC="$CC" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3868 ac_prog_rejected=yes
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 if test $ac_prog_rejected = yes; then
3880 # We found a bogon in the path, so make sure we never use it.
3881 set dummy $ac_cv_prog_CC
3883 if test $# != 0; then
3884 # We chose a different compiler from the bogus one.
3885 # However, it has the same basename, so the bogon will be chosen
3886 # first if we set CC to just the basename; use the full file name.
3888 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3894 if test -n "$CC"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3896 $as_echo "$CC" >&6; }
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3904 if test -z "$CC"; then
3905 if test -n "$ac_tool_prefix"; then
3906 for ac_prog in cl.exe
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_CC+:} false; then :
3913 $as_echo_n "(cached) " >&6
3915 if test -n "$CC"; then
3916 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 if test -n "$CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938 $as_echo "$CC" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3945 test -n "$CC" && break
3948 if test -z "$CC"; then
3950 for ac_prog in cl.exe
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 if test -n "$ac_ct_CC"; then
3960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_ac_ct_CC="$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3980 if test -n "$ac_ct_CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3982 $as_echo "$ac_ct_CC" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3989 test -n "$ac_ct_CC" && break
3992 if test "x$ac_ct_CC" = x; then
3995 case $cross_compiling:$ac_tool_warned in
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3999 ac_tool_warned=yes ;;
4008 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "no acceptable C compiler found in \$PATH
4011 See \`config.log' for more details" "$LINENO" 5; }
4013 # Provide some information about the compiler.
4014 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4017 for ac_option in --version -v -V -qversion; do
4018 { { ac_try="$ac_compiler $ac_option >&5"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024 $as_echo "$ac_try_echo"; } >&5
4025 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4027 if test -s conftest.err; then
4029 ... rest of stderr output deleted ...
4030 10q' conftest.err >conftest.er1
4031 cat conftest.er1 >&5
4033 rm -f conftest.er1 conftest.err
4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 ac_clean_files_save=$ac_clean_files
4050 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4051 # Try to create an executable without -o first, disregard a.out.
4052 # It will help us diagnose broken compilers, and finding out an intuition
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4055 $as_echo_n "checking whether the C compiler works... " >&6; }
4056 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4058 # The possible output files:
4059 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4062 for ac_file in $ac_files
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4066 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4071 if { { ac_try="$ac_link_default"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078 (eval "$ac_link_default") 2>&5
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }; then :
4082 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4083 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4084 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4085 # so that the user can short-circuit this test for compilers unknown to
4087 for ac_file in $ac_files ''
4089 test -f "$ac_file" || continue
4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4094 # We found the default executable, but exeext='' is most
4098 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4100 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4102 # We set ac_cv_exeext here because the later test for it is not
4103 # safe: cross compilers may not add the suffix if given an `-o'
4104 # argument, so we may need to know it at that point already.
4105 # Even if this section looks crufty: it has the advantage of
4112 test "$ac_cv_exeext" = no && ac_cv_exeext=
4117 if test -z "$ac_file"; then :
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4125 as_fn_error 77 "C compiler cannot create executables
4126 See \`config.log' for more details" "$LINENO" 5; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4132 $as_echo_n "checking for C compiler default output file name... " >&6; }
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4134 $as_echo "$ac_file" >&6; }
4135 ac_exeext=$ac_cv_exeext
4137 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4138 ac_clean_files=$ac_clean_files_save
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4140 $as_echo_n "checking for suffix of executables... " >&6; }
4141 if { { ac_try="$ac_link"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_link") 2>&5
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; then :
4152 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4153 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4154 # work properly (i.e., refer to `conftest.exe'), while it won't with
4156 for ac_file in conftest.exe conftest conftest.*; do
4157 test -f "$ac_file" || continue
4159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4160 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4168 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4169 See \`config.log' for more details" "$LINENO" 5; }
4171 rm -f conftest conftest$ac_cv_exeext
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4173 $as_echo "$ac_cv_exeext" >&6; }
4175 rm -f conftest.$ac_ext
4176 EXEEXT=$ac_cv_exeext
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4184 FILE *f = fopen ("conftest.out", "w");
4185 return ferror (f) || fclose (f) != 0;
4191 ac_clean_files="$ac_clean_files conftest.out"
4192 # Check that the compiler produces executables we can run. If not, either
4193 # the compiler is broken, or we cross compile.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4195 $as_echo_n "checking whether we are cross compiling... " >&6; }
4196 if test "$cross_compiling" != yes; then
4197 { { ac_try="$ac_link"
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link") 2>&5
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }
4208 if { ac_try='./conftest$ac_cv_exeext'
4209 { { case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_try") 2>&5
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; }; then
4221 if test "$cross_compiling" = maybe; then
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error $? "cannot run C compiled programs.
4227 If you meant to cross compile, use \`--host'.
4228 See \`config.log' for more details" "$LINENO" 5; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233 $as_echo "$cross_compiling" >&6; }
4235 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4236 ac_clean_files=$ac_clean_files_save
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4238 $as_echo_n "checking for suffix of object files... " >&6; }
4239 if ${ac_cv_objext+:} false; then :
4240 $as_echo_n "(cached) " >&6
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4253 rm -f conftest.o conftest.obj
4254 if { { ac_try="$ac_compile"
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4260 $as_echo "$ac_try_echo"; } >&5
4261 (eval "$ac_compile") 2>&5
4263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4264 test $ac_status = 0; }; then :
4265 for ac_file in conftest.o conftest.obj conftest.*; do
4266 test -f "$ac_file" || continue;
4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279 as_fn_error $? "cannot compute suffix of object files: cannot compile
4280 See \`config.log' for more details" "$LINENO" 5; }
4282 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4285 $as_echo "$ac_cv_objext" >&6; }
4286 OBJEXT=$ac_cv_objext
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4289 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4290 if ${ac_cv_c_compiler_gnu+:} false; then :
4291 $as_echo_n "(cached) " >&6
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4307 if ac_fn_c_try_compile "$LINENO"; then :
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4317 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4318 if test $ac_compiler_gnu = yes; then
4323 ac_test_CFLAGS=${CFLAGS+set}
4324 ac_save_CFLAGS=$CFLAGS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4326 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4327 if ${ac_cv_prog_cc_g+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 ac_save_c_werror_flag=$ac_c_werror_flag
4331 ac_c_werror_flag=yes
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 if ac_fn_c_try_compile "$LINENO"; then :
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4360 if ac_fn_c_try_compile "$LINENO"; then :
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4376 if ac_fn_c_try_compile "$LINENO"; then :
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 ac_c_werror_flag=$ac_save_c_werror_flag
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4387 $as_echo "$ac_cv_prog_cc_g" >&6; }
4388 if test "$ac_test_CFLAGS" = set; then
4389 CFLAGS=$ac_save_CFLAGS
4390 elif test $ac_cv_prog_cc_g = yes; then
4391 if test "$GCC" = yes; then
4397 if test "$GCC" = yes; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4404 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4405 if ${ac_cv_prog_cc_c89+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 ac_cv_prog_cc_c89=no
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4429 s = g (p, va_arg (v,int));
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4472 rm -f conftest.$ac_ext
4477 case "x$ac_cv_prog_cc_c89" in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4505 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4506 if ${am_cv_prog_cc_c_o+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4520 # Make sure it works both with $CC and with simple cc.
4521 # Following AC_PROG_CC_C_O, we do the test twice because some
4522 # compilers refuse to overwrite an existing .o file with -o,
4523 # though they will create one.
4524 am_cv_prog_cc_c_o=yes
4526 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4527 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } \
4531 && test -f conftest2.$ac_objext; then
4534 am_cv_prog_cc_c_o=no
4538 rm -f core conftest*
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4542 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4543 if test "$am_cv_prog_cc_c_o" != yes; then
4544 # Losing compiler, so override with the script.
4545 # FIXME: It is wrong to rewrite CC.
4546 # But if we don't then we get into trouble of one sort or another.
4547 # A longer-term fix would be to have automake use am__CC in this case,
4548 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4549 CC="$am_aux_dir/compile $CC"
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558 depcc="$CC" am_compiler_list=
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4561 $as_echo_n "checking dependency style of $depcc... " >&6; }
4562 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4566 # We make a subdir and do the tests there. Otherwise we can end up
4567 # making bogus files that we don't know about and never remove. For
4568 # instance it was reported that on HP-UX the gcc test will end up
4569 # making a dummy file named 'D' -- because '-MD' means "put the output
4573 # Copy depcomp to subdir because otherwise we won't find it if we're
4574 # using a relative directory.
4575 cp "$am_depcomp" conftest.dir
4577 # We will build objects and dependencies in a subdirectory because
4578 # it helps to detect inapplicable dependency modes. For instance
4579 # both Tru64's cc and ICC support -MD to output dependencies as a
4580 # side effect of compilation, but ICC will put the dependencies in
4581 # the current directory while Tru64 will put them in the object
4585 am_cv_CC_dependencies_compiler_type=none
4586 if test "$am_compiler_list" = ""; then
4587 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4590 case " $depcc " in #(
4591 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4594 for depmode in $am_compiler_list; do
4595 # Setup a source with many dependencies, because some compilers
4596 # like to wrap large dependency lists on column 80 (with \), and
4597 # we should not choose a depcomp mode which is confused by this.
4599 # We need to recreate these files for each test, as the compiler may
4600 # overwrite some of them when testing with obscure command lines.
4601 # This happens at least with the AIX C compiler.
4603 for i in 1 2 3 4 5 6; do
4604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4605 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4606 # Solaris 10 /bin/sh.
4607 echo '/* dummy */' > sub/conftst$i.h
4609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4611 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4612 # mode. It turns out that the SunPro C++ compiler does not properly
4613 # handle '-M -o', and we need to detect this. Also, some Intel
4614 # versions had trouble with output in subdirs.
4615 am__obj=sub/conftest.${OBJEXT-o}
4616 am__minus_obj="-o $am__obj"
4619 # This depmode causes a compiler race in universal mode.
4620 test "$am__universal" = false || continue
4623 # After this tag, mechanisms are not by side-effect, so they'll
4624 # only be used when explicitly requested.
4625 if test "x$enable_dependency_tracking" = xyes; then
4631 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4632 # This compiler won't grok '-c -o', but also, the minuso test has
4633 # not run yet. These depmodes are late enough in the game, and
4634 # so weak that their functioning should not be impacted.
4635 am__obj=conftest.${OBJEXT-o}
4640 if depmode=$depmode \
4641 source=sub/conftest.c object=$am__obj \
4642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4643 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4644 >/dev/null 2>conftest.err &&
4645 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4646 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4648 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4649 # icc doesn't choke on unknown options, it will just issue warnings
4650 # or remarks (even with -Werror). So we grep stderr for any message
4651 # that says an option was ignored or not supported.
4652 # When given -MP, icc 7.0 and 7.1 complain thusly:
4653 # icc: Command line warning: ignoring option '-M'; no argument required
4654 # The diagnosis changed in icc 8.0:
4655 # icc: Command line remark: option '-MP' not supported
4656 if (grep 'ignoring option' conftest.err ||
4657 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4658 am_cv_CC_dependencies_compiler_type=$depmode
4667 am_cv_CC_dependencies_compiler_type=none
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4672 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4673 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4676 test "x$enable_dependency_tracking" != xno \
4677 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4679 am__fastdepCC_FALSE='#'
4681 am__fastdepCC_TRUE='#'
4682 am__fastdepCC_FALSE=
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4693 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4694 # On Suns, sometimes $CPP names a directory.
4695 if test -n "$CPP" && test -d "$CPP"; then
4698 if test -z "$CPP"; then
4699 if ${ac_cv_prog_CPP+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 # Double quotes because CPP needs to be expanded
4703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706 for ac_c_preproc_warn_flag in '' yes
4708 # Use a header file that comes with gcc, so configuring glibc
4709 # with a fresh cross-compiler works.
4710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711 # <limits.h> exists even on freestanding compilers.
4712 # On the NeXT, cc -E runs the code through the compiler's parser,
4713 # not just through cpp. "Syntax error" is here to catch this case.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4717 # include <limits.h>
4719 # include <assert.h>
4723 if ac_fn_c_try_cpp "$LINENO"; then :
4726 # Broken: fails on valid input.
4729 rm -f conftest.err conftest.i conftest.$ac_ext
4731 # OK, works on sane cases. Now check whether nonexistent headers
4732 # can be detected and how.
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 #include <ac_nonexistent.h>
4737 if ac_fn_c_try_cpp "$LINENO"; then :
4738 # Broken: success on invalid input.
4741 # Passes both tests.
4745 rm -f conftest.err conftest.i conftest.$ac_ext
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.i conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then :
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4763 $as_echo "$CPP" >&6; }
4765 for ac_c_preproc_warn_flag in '' yes
4767 # Use a header file that comes with gcc, so configuring glibc
4768 # with a fresh cross-compiler works.
4769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770 # <limits.h> exists even on freestanding compilers.
4771 # On the NeXT, cc -E runs the code through the compiler's parser,
4772 # not just through cpp. "Syntax error" is here to catch this case.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4776 # include <limits.h>
4778 # include <assert.h>
4782 if ac_fn_c_try_cpp "$LINENO"; then :
4785 # Broken: fails on valid input.
4788 rm -f conftest.err conftest.i conftest.$ac_ext
4790 # OK, works on sane cases. Now check whether nonexistent headers
4791 # can be detected and how.
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <ac_nonexistent.h>
4796 if ac_fn_c_try_cpp "$LINENO"; then :
4797 # Broken: success on invalid input.
4800 # Passes both tests.
4804 rm -f conftest.err conftest.i conftest.$ac_ext
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.i conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok; then :
4812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4814 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4815 See \`config.log' for more details" "$LINENO" 5; }
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4826 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4827 if ${ac_cv_path_GREP+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 if test -z "$GREP"; then
4831 ac_path_GREP_found=false
4832 # Loop through the user's path and test for each of PROGNAME-LIST
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4837 test -z "$as_dir" && as_dir=.
4838 for ac_prog in grep ggrep; do
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4841 as_fn_executable_p "$ac_path_GREP" || continue
4842 # Check for GNU ac_path_GREP and select it if it is found.
4843 # Check for GNU $ac_path_GREP
4844 case `"$ac_path_GREP" --version 2>&1` in
4846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4849 $as_echo_n 0123456789 >"conftest.in"
4852 cat "conftest.in" "conftest.in" >"conftest.tmp"
4853 mv "conftest.tmp" "conftest.in"
4854 cp "conftest.in" "conftest.nl"
4855 $as_echo 'GREP' >> "conftest.nl"
4856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858 as_fn_arith $ac_count + 1 && ac_count=$as_val
4859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4860 # Best one so far, save it but keep looking for a better one
4861 ac_cv_path_GREP="$ac_path_GREP"
4862 ac_path_GREP_max=$ac_count
4864 # 10*(2^10) chars as input seems more than enough
4865 test $ac_count -gt 10 && break
4867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4870 $ac_path_GREP_found && break 3
4875 if test -z "$ac_cv_path_GREP"; then
4876 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4879 ac_cv_path_GREP=$GREP
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4884 $as_echo "$ac_cv_path_GREP" >&6; }
4885 GREP="$ac_cv_path_GREP"
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4889 $as_echo_n "checking for egrep... " >&6; }
4890 if ${ac_cv_path_EGREP+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4894 then ac_cv_path_EGREP="$GREP -E"
4896 if test -z "$EGREP"; then
4897 ac_path_EGREP_found=false
4898 # Loop through the user's path and test for each of PROGNAME-LIST
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903 test -z "$as_dir" && as_dir=.
4904 for ac_prog in egrep; do
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4907 as_fn_executable_p "$ac_path_EGREP" || continue
4908 # Check for GNU ac_path_EGREP and select it if it is found.
4909 # Check for GNU $ac_path_EGREP
4910 case `"$ac_path_EGREP" --version 2>&1` in
4912 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4915 $as_echo_n 0123456789 >"conftest.in"
4918 cat "conftest.in" "conftest.in" >"conftest.tmp"
4919 mv "conftest.tmp" "conftest.in"
4920 cp "conftest.in" "conftest.nl"
4921 $as_echo 'EGREP' >> "conftest.nl"
4922 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4924 as_fn_arith $ac_count + 1 && ac_count=$as_val
4925 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4926 # Best one so far, save it but keep looking for a better one
4927 ac_cv_path_EGREP="$ac_path_EGREP"
4928 ac_path_EGREP_max=$ac_count
4930 # 10*(2^10) chars as input seems more than enough
4931 test $ac_count -gt 10 && break
4933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4936 $ac_path_EGREP_found && break 3
4941 if test -z "$ac_cv_path_EGREP"; then
4942 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4945 ac_cv_path_EGREP=$EGREP
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4951 $as_echo "$ac_cv_path_EGREP" >&6; }
4952 EGREP="$ac_cv_path_EGREP"
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4956 $as_echo_n "checking for ANSI C header files... " >&6; }
4957 if ${ac_cv_header_stdc+:} false; then :
4958 $as_echo_n "(cached) " >&6
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4975 if ac_fn_c_try_compile "$LINENO"; then :
4976 ac_cv_header_stdc=yes
4978 ac_cv_header_stdc=no
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982 if test $ac_cv_header_stdc = yes; then
4983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990 $EGREP "memchr" >/dev/null 2>&1; then :
4993 ac_cv_header_stdc=no
4999 if test $ac_cv_header_stdc = yes; then
5000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007 $EGREP "free" >/dev/null 2>&1; then :
5010 ac_cv_header_stdc=no
5016 if test $ac_cv_header_stdc = yes; then
5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018 if test "$cross_compiling" = yes; then :
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5025 #if ((' ' & 0x0FF) == 0x020)
5026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5029 # define ISLOWER(c) \
5030 (('a' <= (c) && (c) <= 'i') \
5031 || ('j' <= (c) && (c) <= 'r') \
5032 || ('s' <= (c) && (c) <= 'z'))
5033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041 for (i = 0; i < 256; i++)
5042 if (XOR (islower (i), ISLOWER (i))
5043 || toupper (i) != TOUPPER (i))
5048 if ac_fn_c_try_run "$LINENO"; then :
5051 ac_cv_header_stdc=no
5053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5054 conftest.$ac_objext conftest.beam conftest.$ac_ext
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5060 $as_echo "$ac_cv_header_stdc" >&6; }
5061 if test $ac_cv_header_stdc = yes; then
5063 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5067 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5068 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5069 inttypes.h stdint.h unistd.h
5071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5072 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5074 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5075 cat >>confdefs.h <<_ACEOF
5076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5085 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5093 if test "$MINIX" = yes; then
5095 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5098 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5101 $as_echo "#define _MINIX 1" >>confdefs.h
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5107 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5108 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5109 $as_echo_n "(cached) " >&6
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5114 # define __EXTENSIONS__ 1
5115 $ac_includes_default
5124 if ac_fn_c_try_compile "$LINENO"; then :
5125 ac_cv_safe_to_define___extensions__=yes
5127 ac_cv_safe_to_define___extensions__=no
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5132 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5133 test $ac_cv_safe_to_define___extensions__ = yes &&
5134 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5136 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5138 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5140 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5142 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5147 # Some status variables.
5158 have_system_resolver=no
5159 gnupg_have_ldap="n/a"
5164 use_trust_models=yes
5168 use_ccid_driver=auto
5169 dirmngr_auto_start=yes
5174 # gpg is a required part and can't be disabled anymore.
5179 # Check whether --enable-gpgsm was given.
5180 if test "${enable_gpgsm+set}" = set; then :
5181 enableval=$enable_gpgsm; build_gpgsm=$enableval
5187 case "$build_gpgsm" in
5191 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5196 # The agent is a required part and can't be disabled anymore.
5201 # Check whether --enable-scdaemon was given.
5202 if test "${enable_scdaemon+set}" = set; then :
5203 enableval=$enable_scdaemon; build_scdaemon=$enableval
5209 case "$build_scdaemon" in
5213 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5221 # Check whether --enable-g13 was given.
5222 if test "${enable_g13+set}" = set; then :
5223 enableval=$enable_g13; build_g13=$enableval
5229 case "$build_g13" in
5233 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5241 # Check whether --enable-dirmngr was given.
5242 if test "${enable_dirmngr+set}" = set; then :
5243 enableval=$enable_dirmngr; build_dirmngr=$enableval
5249 case "$build_dirmngr" in
5253 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5261 # Check whether --enable-keyboxd was given.
5262 if test "${enable_keyboxd+set}" = set; then :
5263 enableval=$enable_keyboxd; build_keyboxd=$enableval
5269 case "$build_keyboxd" in
5273 as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5281 # Check whether --enable-tpm2d was given.
5282 if test "${enable_tpm2d+set}" = set; then :
5283 enableval=$enable_tpm2d; build_tpm2d=$enableval
5289 case "$build_tpm2d" in
5293 as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5301 # Check whether --enable-doc was given.
5302 if test "${enable_doc+set}" = set; then :
5303 enableval=$enable_doc; build_doc=$enableval
5309 case "$build_doc" in
5313 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5318 # We use gpgtar to unpack test data, hence we always build it. If the
5319 # user opts out, we simply don't install it.
5323 # Check whether --enable-gpgtar was given.
5324 if test "${enable_gpgtar+set}" = set; then :
5325 enableval=$enable_gpgtar; build_gpgtar=$enableval
5331 case "$build_gpgtar" in
5335 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5340 # We also install the gpg-wks-server tool by default but disable it
5341 # later for platforms where it can't be build.
5345 # Check whether --enable-wks-tools was given.
5346 if test "${enable_wks_tools+set}" = set; then :
5347 enableval=$enable_wks_tools; build_wks_tools=$enableval
5353 case "$build_wks_tools" in
5357 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5368 cat >>confdefs.h <<_ACEOF
5369 #define PACKAGE "$PACKAGE"
5373 cat >>confdefs.h <<_ACEOF
5374 #define PACKAGE_GT "$PACKAGE_GT"
5378 cat >>confdefs.h <<_ACEOF
5379 #define VERSION "$VERSION"
5383 cat >>confdefs.h <<_ACEOF
5384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5388 cat >>confdefs.h <<_ACEOF
5389 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5393 cat >>confdefs.h <<_ACEOF
5394 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5398 cat >>confdefs.h <<_ACEOF
5399 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5405 # The default is to use the modules from this package and the few
5406 # other packages in a standard place; i.e where this package gets
5407 # installed. With these options it is possible to override these
5408 # ${prefix} depended values with fixed paths, which can't be replaced
5409 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5411 # Check whether --with-agent-pgm was given.
5412 if test "${with_agent_pgm+set}" = set; then :
5413 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5419 if test -n "$GNUPG_AGENT_PGM"; then
5420 GNUPG_AGENT_PGM_TRUE=
5421 GNUPG_AGENT_PGM_FALSE='#'
5423 GNUPG_AGENT_PGM_TRUE='#'
5424 GNUPG_AGENT_PGM_FALSE=
5427 show_gnupg_agent_pgm="(default)"
5428 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5431 # Check whether --with-pinentry-pgm was given.
5432 if test "${with_pinentry_pgm+set}" = set; then :
5433 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5435 GNUPG_PINENTRY_PGM=""
5439 if test -n "$GNUPG_PINENTRY_PGM"; then
5440 GNUPG_PINENTRY_PGM_TRUE=
5441 GNUPG_PINENTRY_PGM_FALSE='#'
5443 GNUPG_PINENTRY_PGM_TRUE='#'
5444 GNUPG_PINENTRY_PGM_FALSE=
5447 show_gnupg_pinentry_pgm="(default)"
5448 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5452 # Check whether --with-scdaemon-pgm was given.
5453 if test "${with_scdaemon_pgm+set}" = set; then :
5454 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5456 GNUPG_SCDAEMON_PGM=""
5460 if test -n "$GNUPG_SCDAEMON_PGM"; then
5461 GNUPG_SCDAEMON_PGM_TRUE=
5462 GNUPG_SCDAEMON_PGM_FALSE='#'
5464 GNUPG_SCDAEMON_PGM_TRUE='#'
5465 GNUPG_SCDAEMON_PGM_FALSE=
5468 show_gnupg_scdaemon_pgm="(default)"
5469 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5473 # Check whether --with-tpm2daemon-pgm was given.
5474 if test "${with_tpm2daemon_pgm+set}" = set; then :
5475 withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5477 GNUPG_TPM2DAEMON_PGM=""
5481 if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5482 GNUPG_TPM2DAEMON_PGM_TRUE=
5483 GNUPG_TPM2DAEMON_PGM_FALSE='#'
5485 GNUPG_TPM2DAEMON_PGM_TRUE='#'
5486 GNUPG_TPM2DAEMON_PGM_FALSE=
5489 show_gnupg_tpm2daemon_pgm="(default)"
5490 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5494 # Check whether --with-dirmngr-pgm was given.
5495 if test "${with_dirmngr_pgm+set}" = set; then :
5496 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5498 GNUPG_DIRMNGR_PGM=""
5502 if test -n "$GNUPG_DIRMNGR_PGM"; then
5503 GNUPG_DIRMNGR_PGM_TRUE=
5504 GNUPG_DIRMNGR_PGM_FALSE='#'
5506 GNUPG_DIRMNGR_PGM_TRUE='#'
5507 GNUPG_DIRMNGR_PGM_FALSE=
5510 show_gnupg_dirmngr_pgm="(default)"
5511 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5514 # Check whether --with-keyboxd-pgm was given.
5515 if test "${with_keyboxd_pgm+set}" = set; then :
5516 withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5518 GNUPG_KEYBOXD_PGM=""
5522 if test -n "$GNUPG_KEYBOXD_PGM"; then
5523 GNUPG_KEYBOXD_PGM_TRUE=
5524 GNUPG_KEYBOXD_PGM_FALSE='#'
5526 GNUPG_KEYBOXD_PGM_TRUE='#'
5527 GNUPG_KEYBOXD_PGM_FALSE=
5530 show_gnupg_keyboxd_pgm="(default)"
5531 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5534 # Check whether --with-protect-tool-pgm was given.
5535 if test "${with_protect_tool_pgm+set}" = set; then :
5536 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5538 GNUPG_PROTECT_TOOL_PGM=""
5542 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5543 GNUPG_PROTECT_TOOL_PGM_TRUE=
5544 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5546 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5547 GNUPG_PROTECT_TOOL_PGM_FALSE=
5550 show_gnupg_protect_tool_pgm="(default)"
5551 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5552 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5555 # Check whether --with-dirmngr-ldap-pgm was given.
5556 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5557 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5559 GNUPG_DIRMNGR_LDAP_PGM=""
5563 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5564 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5565 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5567 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5568 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5571 show_gnupg_dirmngr_ldap_pgm="(default)"
5572 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5573 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5577 # For a long time gpg 2.x was installed as gpg2. This changed with
5578 # 2.2. This option can be used to install gpg under the name gpg2.
5580 # Check whether --enable-gpg-is-gpg2 was given.
5581 if test "${enable_gpg_is_gpg2+set}" = set; then :
5582 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5585 if test "$gpg_is_gpg2" = "yes"; then
5587 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5590 if test "$gpg_is_gpg2" = "yes"; then
5592 USE_GPG2_HACK_FALSE='#'
5594 USE_GPG2_HACK_TRUE='#'
5595 USE_GPG2_HACK_FALSE=
5600 # SELinux support includes tracking of sensitive files to avoid
5601 # leaking their contents through processing these files by gpg itself
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5603 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5604 # Check whether --enable-selinux-support was given.
5605 if test "${enable_selinux_support+set}" = set; then :
5606 enableval=$enable_selinux_support; selinux_support=$enableval
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5612 $as_echo "$selinux_support" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5616 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5617 # Check whether --enable-large-secmem was given.
5618 if test "${enable_large_secmem+set}" = set; then :
5619 enableval=$enable_large_secmem; large_secmem=$enableval
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5625 $as_echo "$large_secmem" >&6; }
5626 if test "$large_secmem" = yes ; then
5627 SECMEM_BUFFER_SIZE=65536
5629 SECMEM_BUFFER_SIZE=32768
5632 cat >>confdefs.h <<_ACEOF
5633 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5638 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5640 # Check whether --with-agent-s2k-calibration was given.
5641 if test "${with_agent_s2k_calibration+set}" = set; then :
5642 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5644 agent_s2k_calibration=100
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5648 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5650 cat >>confdefs.h <<_ACEOF
5651 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5656 $as_echo_n "checking whether to enable trust models... " >&6; }
5657 # Check whether --enable-trust-models was given.
5658 if test "${enable_trust_models+set}" = set; then :
5659 enableval=$enable_trust_models; use_trust_models=$enableval
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5663 $as_echo "$use_trust_models" >&6; }
5664 if test "$use_trust_models" = no ; then
5666 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5671 $as_echo_n "checking whether to enable TOFU... " >&6; }
5672 # Check whether --enable-tofu was given.
5673 if test "${enable_tofu+set}" = set; then :
5674 enableval=$enable_tofu; use_tofu=$enableval
5676 use_tofu=$use_trust_models
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5680 $as_echo "$use_tofu" >&6; }
5681 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5682 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5686 $as_echo_n "checking whether to enable libdns... " >&6; }
5687 # Check whether --enable-libdns was given.
5688 if test "${enable_libdns+set}" = set; then :
5689 enableval=$enable_libdns; use_libdns=$enableval
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5695 $as_echo "$use_libdns" >&6; }
5696 if test x"$use_libdns" = xyes ; then
5698 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5701 if test "$use_libdns" = yes; then
5703 USE_LIBDNS_FALSE='#'
5712 # Options to disable algorithm
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5716 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5717 # Check whether --enable-gpg-rsa was given.
5718 if test "${enable_gpg_rsa+set}" = set; then :
5719 enableval=$enable_gpg_rsa;
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5725 $as_echo "$enableval" >&6; }
5726 if test x"$enableval" = xyes ; then
5728 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5732 # Elgamal is a MUST algorithm
5733 # DSA is a MUST algorithm
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5735 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5736 # Check whether --enable-gpg-ecdh was given.
5737 if test "${enable_gpg_ecdh+set}" = set; then :
5738 enableval=$enable_gpg_ecdh;
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5744 $as_echo "$enableval" >&6; }
5745 if test x"$enableval" = xyes ; then
5747 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5752 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5753 # Check whether --enable-gpg-ecdsa was given.
5754 if test "${enable_gpg_ecdsa+set}" = set; then :
5755 enableval=$enable_gpg_ecdsa;
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5761 $as_echo "$enableval" >&6; }
5762 if test x"$enableval" = xyes ; then
5764 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5769 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5770 # Check whether --enable-gpg-eddsa was given.
5771 if test "${enable_gpg_eddsa+set}" = set; then :
5772 enableval=$enable_gpg_eddsa;
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5778 $as_echo "$enableval" >&6; }
5779 if test x"$enableval" = xyes ; then
5781 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5787 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5788 # Check whether --enable-gpg-idea was given.
5789 if test "${enable_gpg_idea+set}" = set; then :
5790 enableval=$enable_gpg_idea;
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5796 $as_echo "$enableval" >&6; }
5797 if test x"$enableval" = xyes ; then
5799 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5803 # 3DES is a MUST algorithm
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5805 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5806 # Check whether --enable-gpg-cast5 was given.
5807 if test "${enable_gpg_cast5+set}" = set; then :
5808 enableval=$enable_gpg_cast5;
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5814 $as_echo "$enableval" >&6; }
5815 if test x"$enableval" = xyes ; then
5817 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5822 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5823 # Check whether --enable-gpg-blowfish was given.
5824 if test "${enable_gpg_blowfish+set}" = set; then :
5825 enableval=$enable_gpg_blowfish;
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5831 $as_echo "$enableval" >&6; }
5832 if test x"$enableval" = xyes ; then
5834 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5839 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5840 # Check whether --enable-gpg-aes128 was given.
5841 if test "${enable_gpg_aes128+set}" = set; then :
5842 enableval=$enable_gpg_aes128;
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5848 $as_echo "$enableval" >&6; }
5849 if test x"$enableval" = xyes ; then
5851 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5856 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5857 # Check whether --enable-gpg-aes192 was given.
5858 if test "${enable_gpg_aes192+set}" = set; then :
5859 enableval=$enable_gpg_aes192;
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5865 $as_echo "$enableval" >&6; }
5866 if test x"$enableval" = xyes ; then
5868 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5873 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5874 # Check whether --enable-gpg-aes256 was given.
5875 if test "${enable_gpg_aes256+set}" = set; then :
5876 enableval=$enable_gpg_aes256;
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5882 $as_echo "$enableval" >&6; }
5883 if test x"$enableval" = xyes ; then
5885 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5890 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5891 # Check whether --enable-gpg-twofish was given.
5892 if test "${enable_gpg_twofish+set}" = set; then :
5893 enableval=$enable_gpg_twofish;
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5899 $as_echo "$enableval" >&6; }
5900 if test x"$enableval" = xyes ; then
5902 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5907 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5908 # Check whether --enable-gpg-camellia128 was given.
5909 if test "${enable_gpg_camellia128+set}" = set; then :
5910 enableval=$enable_gpg_camellia128;
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5916 $as_echo "$enableval" >&6; }
5917 if test x"$enableval" = xyes ; then
5919 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5924 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5925 # Check whether --enable-gpg-camellia192 was given.
5926 if test "${enable_gpg_camellia192+set}" = set; then :
5927 enableval=$enable_gpg_camellia192;
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5933 $as_echo "$enableval" >&6; }
5934 if test x"$enableval" = xyes ; then
5936 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5941 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5942 # Check whether --enable-gpg-camellia256 was given.
5943 if test "${enable_gpg_camellia256+set}" = set; then :
5944 enableval=$enable_gpg_camellia256;
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5950 $as_echo "$enableval" >&6; }
5951 if test x"$enableval" = xyes ; then
5953 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5959 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5960 # Check whether --enable-gpg-md5 was given.
5961 if test "${enable_gpg_md5+set}" = set; then :
5962 enableval=$enable_gpg_md5;
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5968 $as_echo "$enableval" >&6; }
5969 if test x"$enableval" = xyes ; then
5971 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5975 # SHA1 is a MUST algorithm
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5977 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5978 # Check whether --enable-gpg-rmd160 was given.
5979 if test "${enable_gpg_rmd160+set}" = set; then :
5980 enableval=$enable_gpg_rmd160;
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5986 $as_echo "$enableval" >&6; }
5987 if test x"$enableval" = xyes ; then
5989 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5994 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5995 # Check whether --enable-gpg-sha224 was given.
5996 if test "${enable_gpg_sha224+set}" = set; then :
5997 enableval=$enable_gpg_sha224;
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6003 $as_echo "$enableval" >&6; }
6004 if test x"$enableval" = xyes ; then
6006 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6010 # SHA256 is a MUST algorithm for GnuPG.
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6012 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6013 # Check whether --enable-gpg-sha384 was given.
6014 if test "${enable_gpg_sha384+set}" = set; then :
6015 enableval=$enable_gpg_sha384;
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6021 $as_echo "$enableval" >&6; }
6022 if test x"$enableval" = xyes ; then
6024 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6029 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6030 # Check whether --enable-gpg-sha512 was given.
6031 if test "${enable_gpg_sha512+set}" = set; then :
6032 enableval=$enable_gpg_sha512;
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6038 $as_echo "$enableval" >&6; }
6039 if test x"$enableval" = xyes ; then
6041 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6047 # Allow disabling of zip support.
6048 # This is in general not a good idea because according to rfc4880 OpenPGP
6049 # implementations SHOULD support ZLIB.
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6051 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6052 # Check whether --enable-zip was given.
6053 if test "${enable_zip+set}" = set; then :
6054 enableval=$enable_zip; use_zip=$enableval
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6058 $as_echo "$use_zip" >&6; }
6060 # Allow disabling of bzib2 support.
6061 # It is defined only after we confirm the library is available later
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6063 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6064 # Check whether --enable-bzip2 was given.
6065 if test "${enable_bzip2+set}" = set; then :
6066 enableval=$enable_bzip2; use_bzip2=$enableval
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6070 $as_echo "$use_bzip2" >&6; }
6072 # Configure option to allow or disallow execution of external
6073 # programs, like a photo viewer.
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6075 $as_echo_n "checking whether to enable external program execution... " >&6; }
6076 # Check whether --enable-exec was given.
6077 if test "${enable_exec+set}" = set; then :
6078 enableval=$enable_exec; use_exec=$enableval
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6082 $as_echo "$use_exec" >&6; }
6083 if test "$use_exec" = no ; then
6085 $as_echo "#define NO_EXEC 1" >>confdefs.h
6089 if test "$use_exec" = yes ; then
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6091 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6092 # Check whether --enable-photo-viewers was given.
6093 if test "${enable_photo_viewers+set}" = set; then :
6094 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6096 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6103 gnupg_cv_enable_photo_viewers=$enableval
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6105 $as_echo "$enableval" >&6; }
6107 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6109 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6111 # Check whether --with-photo-viewer was given.
6112 if test "${with_photo_viewer+set}" = set; then :
6113 withval=$with_photo_viewer; if test "$withval" = yes ; then
6115 elif test "$withval" != no ; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define FIXED_PHOTO_VIEWER "$withval"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6127 $as_echo "$withval" >&6; }
6133 # Check for the key/uid cache size. This can't be zero, but can be
6134 # pretty small on embedded systems. This is used for the gpg part.
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6137 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6138 # Check whether --enable-key-cache was given.
6139 if test "${enable_key_cache+set}" = set; then :
6140 enableval=$enable_key_cache;
6145 if test "$enableval" = "no"; then
6147 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6150 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6151 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6152 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6155 $as_echo "$key_cache_size" >&6; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define PK_UID_CACHE_SIZE $key_cache_size
6165 # Check whether we want to use Linux capabilities
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6168 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6170 # Check whether --with-capabilities was given.
6171 if test "${with_capabilities+set}" = set; then :
6172 withval=$with_capabilities; use_capabilities="$withval"
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6178 $as_echo "$use_capabilities" >&6; }
6181 # Check whether to disable the card support
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6183 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6184 # Check whether --enable-card-support was given.
6185 if test "${enable_card_support+set}" = set; then :
6186 enableval=$enable_card_support; card_support=$enableval
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6190 $as_echo "$card_support" >&6; }
6191 if test "$card_support" = yes ; then
6193 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6200 # Allow disabling of internal CCID support.
6201 # It is defined only after we confirm the library is available later
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6204 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6205 # Check whether --enable-ccid-driver was given.
6206 if test "${enable_ccid_driver+set}" = set; then :
6207 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6211 $as_echo "$use_ccid_driver" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6214 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6215 # Check whether --enable-dirmngr-auto-start was given.
6216 if test "${enable_dirmngr_auto_start+set}" = set; then :
6217 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6221 $as_echo "$dirmngr_auto_start" >&6; }
6222 if test "$dirmngr_auto_start" = yes ; then
6224 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6230 # To avoid double inclusion of config.h which might happen at some
6231 # places, we add the usual double inclusion protection at the top of
6237 # Stuff which goes at the bottom of config.h.
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6245 # Check whether --enable-maintainer-mode was given.
6246 if test "${enable_maintainer_mode+set}" = set; then :
6247 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6249 USE_MAINTAINER_MODE=no
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6253 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6254 if test $USE_MAINTAINER_MODE = yes; then
6255 MAINTAINER_MODE_TRUE=
6256 MAINTAINER_MODE_FALSE='#'
6258 MAINTAINER_MODE_TRUE='#'
6259 MAINTAINER_MODE_FALSE=
6262 MAINT=$MAINTAINER_MODE_TRUE
6267 # Checks for programs.
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6269 $as_echo "$as_me: checking for programs" >&6;}
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6271 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6273 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6274 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6275 $as_echo_n "(cached) " >&6
6277 cat >conftest.make <<\_ACEOF
6280 @echo '@@@%%%=$(MAKE)=@@@%%%'
6282 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6283 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6285 eval ac_cv_prog_make_${ac_make}_set=yes;;
6287 eval ac_cv_prog_make_${ac_make}_set=no;;
6291 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6293 $as_echo "yes" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6298 SET_MAKE="MAKE=${MAKE-make}"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6302 $as_echo_n "checking whether build environment is sane... " >&6; }
6303 # Reject unsafe characters in $srcdir or the absolute working directory
6304 # name. Accept space and tab only in the latter.
6308 *[\\\"\#\$\&\'\`$am_lf]*)
6309 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6312 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6313 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6316 # Do 'set' in a subshell so we don't clobber the current shell's
6317 # arguments. Must try -L first in case configure is actually a
6318 # symlink; some systems play weird games with the mod time of symlinks
6319 # (eg FreeBSD returns the mod time of the symlink's containing
6323 for am_try in 1 2; do
6324 echo "timestamp, slept: $am_has_slept" > conftest.file
6325 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6326 if test "$*" = "X"; then
6328 set X `ls -t "$srcdir/configure" conftest.file`
6330 if test "$*" != "X $srcdir/configure conftest.file" \
6331 && test "$*" != "X conftest.file $srcdir/configure"; then
6333 # If neither matched, then we have a broken ls. This can happen
6334 # if, for instance, CONFIG_SHELL is bash and it inherits a
6335 # broken ls alias from the environment. This has actually
6336 # happened. Such a system could not be considered "sane".
6337 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6338 alias in your environment" "$LINENO" 5
6340 if test "$2" = conftest.file || test $am_try -eq 2; then
6347 test "$2" = conftest.file
6353 as_fn_error $? "newly created file is older than distributed files!
6354 Check your system clock" "$LINENO" 5
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6357 $as_echo "yes" >&6; }
6358 # If we didn't sleep, we still need to ensure time stamps of config.status and
6359 # generated files are strictly newer.
6361 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6368 missing_dir=`cd $ac_aux_dir && pwd`
6370 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6373 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6376 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6379 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6382 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6384 # Check whether --enable-silent-rules was given.
6385 if test "${enable_silent_rules+set}" = set; then :
6386 enableval=$enable_silent_rules;
6389 case $enable_silent_rules in # (((
6390 yes) AM_DEFAULT_VERBOSITY=0;;
6391 no) AM_DEFAULT_VERBOSITY=1;;
6392 *) AM_DEFAULT_VERBOSITY=1;;
6394 am_make=${MAKE-make}
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6396 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6397 if ${am_cv_make_support_nested_variables+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if $as_echo 'TRUE=$(BAR$(V))
6406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6407 am_cv_make_support_nested_variables=yes
6409 am_cv_make_support_nested_variables=no
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6413 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6414 if test $am_cv_make_support_nested_variables = yes; then
6416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6418 AM_V=$AM_DEFAULT_VERBOSITY
6419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6423 for ac_prog in gawk mawk nawk awk
6425 # Extract the first word of "$ac_prog", so it can be a program name with args.
6426 set dummy $ac_prog; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_AWK+:} false; then :
6430 $as_echo_n "(cached) " >&6
6432 if test -n "$AWK"; then
6433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_AWK="$ac_prog"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 if test -n "$AWK"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6455 $as_echo "$AWK" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6462 test -n "$AWK" && break
6466 ac_cpp='$CPP $CPPFLAGS'
6467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6472 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_CC+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 if test -n "$CC"; then
6479 ac_cv_prog_CC="$CC" # Let the user override the test.
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499 if test -n "$CC"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6501 $as_echo "$CC" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6509 if test -z "$ac_cv_prog_CC"; then
6511 # Extract the first word of "gcc", so it can be a program name with args.
6512 set dummy gcc; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$ac_ct_CC"; then
6519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_ac_ct_CC="gcc"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6539 if test -n "$ac_ct_CC"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6541 $as_echo "$ac_ct_CC" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6547 if test "x$ac_ct_CC" = x; then
6550 case $cross_compiling:$ac_tool_warned in
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554 ac_tool_warned=yes ;;
6562 if test -z "$CC"; then
6563 if test -n "$ac_tool_prefix"; then
6564 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}cc; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_CC+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 if test -n "$CC"; then
6572 ac_cv_prog_CC="$CC" # Let the user override the test.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_CC="${ac_tool_prefix}cc"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 if test -n "$CC"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6594 $as_echo "$CC" >&6; }
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6603 if test -z "$CC"; then
6604 # Extract the first word of "cc", so it can be a program name with args.
6605 set dummy cc; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_CC+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$CC"; then
6612 ac_cv_prog_CC="$CC" # Let the user override the test.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6623 ac_prog_rejected=yes
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 if test $ac_prog_rejected = yes; then
6635 # We found a bogon in the path, so make sure we never use it.
6636 set dummy $ac_cv_prog_CC
6638 if test $# != 0; then
6639 # We chose a different compiler from the bogus one.
6640 # However, it has the same basename, so the bogon will be chosen
6641 # first if we set CC to just the basename; use the full file name.
6643 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6649 if test -n "$CC"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6651 $as_echo "$CC" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 if test -z "$CC"; then
6660 if test -n "$ac_tool_prefix"; then
6661 for ac_prog in cl.exe
6663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6664 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_CC+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$CC"; then
6671 ac_cv_prog_CC="$CC" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 if test -n "$CC"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6693 $as_echo "$CC" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6700 test -n "$CC" && break
6703 if test -z "$CC"; then
6705 for ac_prog in cl.exe
6707 # Extract the first word of "$ac_prog", so it can be a program name with args.
6708 set dummy $ac_prog; ac_word=$2
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 $as_echo_n "checking for $ac_word... " >&6; }
6711 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6712 $as_echo_n "(cached) " >&6
6714 if test -n "$ac_ct_CC"; then
6715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6724 ac_cv_prog_ac_ct_CC="$ac_prog"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6735 if test -n "$ac_ct_CC"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6737 $as_echo "$ac_ct_CC" >&6; }
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740 $as_echo "no" >&6; }
6744 test -n "$ac_ct_CC" && break
6747 if test "x$ac_ct_CC" = x; then
6750 case $cross_compiling:$ac_tool_warned in
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6763 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6765 as_fn_error $? "no acceptable C compiler found in \$PATH
6766 See \`config.log' for more details" "$LINENO" 5; }
6768 # Provide some information about the compiler.
6769 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6772 for ac_option in --version -v -V -qversion; do
6773 { { ac_try="$ac_compiler $ac_option >&5"
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6779 $as_echo "$ac_try_echo"; } >&5
6780 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6782 if test -s conftest.err; then
6784 ... rest of stderr output deleted ...
6785 10q' conftest.err >conftest.er1
6786 cat conftest.er1 >&5
6788 rm -f conftest.er1 conftest.err
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6794 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6795 if ${ac_cv_c_compiler_gnu+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6812 if ac_fn_c_try_compile "$LINENO"; then :
6817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6823 if test $ac_compiler_gnu = yes; then
6828 ac_test_CFLAGS=${CFLAGS+set}
6829 ac_save_CFLAGS=$CFLAGS
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6832 if ${ac_cv_prog_cc_g+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 ac_save_c_werror_flag=$ac_c_werror_flag
6836 ac_c_werror_flag=yes
6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6850 if ac_fn_c_try_compile "$LINENO"; then :
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6865 if ac_fn_c_try_compile "$LINENO"; then :
6868 ac_c_werror_flag=$ac_save_c_werror_flag
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6881 if ac_fn_c_try_compile "$LINENO"; then :
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 ac_c_werror_flag=$ac_save_c_werror_flag
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6892 $as_echo "$ac_cv_prog_cc_g" >&6; }
6893 if test "$ac_test_CFLAGS" = set; then
6894 CFLAGS=$ac_save_CFLAGS
6895 elif test $ac_cv_prog_cc_g = yes; then
6896 if test "$GCC" = yes; then
6902 if test "$GCC" = yes; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6909 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6910 if ${ac_cv_prog_cc_c89+:} false; then :
6911 $as_echo_n "(cached) " >&6
6913 ac_cv_prog_cc_c89=no
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6921 struct buf { int x; };
6922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6923 static char *e (p, i)
6929 static char *f (char * (*g) (char **, int), char **p, ...)
6934 s = g (p, va_arg (v,int));
6939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6940 function prototypes and stuff, but not '\xHH' hex character constants.
6941 These don't provoke an error unfortunately, instead are silently treated
6942 as 'x'. The following induces an error, until -std is added to get
6943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6944 array size at least. It's necessary to write '\x00'==0 to get something
6945 that's true only with -std. */
6946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6949 inside strings and character constants. */
6951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6953 int test (int i, double x);
6954 struct s1 {int (*f) (int a);};
6955 struct s2 {int (*f) (double a);};
6956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6970 CC="$ac_save_CC $ac_arg"
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972 ac_cv_prog_cc_c89=$ac_arg
6974 rm -f core conftest.err conftest.$ac_objext
6975 test "x$ac_cv_prog_cc_c89" != "xno" && break
6977 rm -f conftest.$ac_ext
6982 case "x$ac_cv_prog_cc_c89" in
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6985 $as_echo "none needed" >&6; } ;;
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6988 $as_echo "unsupported" >&6; } ;;
6990 CC="$CC $ac_cv_prog_cc_c89"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6992 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6994 if test "x$ac_cv_prog_cc_c89" != xno; then :
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7010 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7011 if ${am_cv_prog_cc_c_o+:} false; then :
7012 $as_echo_n "(cached) " >&6
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7025 # Make sure it works both with $CC and with simple cc.
7026 # Following AC_PROG_CC_C_O, we do the test twice because some
7027 # compilers refuse to overwrite an existing .o file with -o,
7028 # though they will create one.
7029 am_cv_prog_cc_c_o=yes
7031 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7032 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } \
7036 && test -f conftest2.$ac_objext; then
7039 am_cv_prog_cc_c_o=no
7043 rm -f core conftest*
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7047 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7048 if test "$am_cv_prog_cc_c_o" != yes; then
7049 # Losing compiler, so override with the script.
7050 # FIXME: It is wrong to rewrite CC.
7051 # But if we don't then we get into trouble of one sort or another.
7052 # A longer-term fix would be to have automake use am__CC in this case,
7053 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7054 CC="$am_aux_dir/compile $CC"
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 depcc="$CC" am_compiler_list=
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7066 $as_echo_n "checking dependency style of $depcc... " >&6; }
7067 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7071 # We make a subdir and do the tests there. Otherwise we can end up
7072 # making bogus files that we don't know about and never remove. For
7073 # instance it was reported that on HP-UX the gcc test will end up
7074 # making a dummy file named 'D' -- because '-MD' means "put the output
7078 # Copy depcomp to subdir because otherwise we won't find it if we're
7079 # using a relative directory.
7080 cp "$am_depcomp" conftest.dir
7082 # We will build objects and dependencies in a subdirectory because
7083 # it helps to detect inapplicable dependency modes. For instance
7084 # both Tru64's cc and ICC support -MD to output dependencies as a
7085 # side effect of compilation, but ICC will put the dependencies in
7086 # the current directory while Tru64 will put them in the object
7090 am_cv_CC_dependencies_compiler_type=none
7091 if test "$am_compiler_list" = ""; then
7092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7095 case " $depcc " in #(
7096 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7099 for depmode in $am_compiler_list; do
7100 # Setup a source with many dependencies, because some compilers
7101 # like to wrap large dependency lists on column 80 (with \), and
7102 # we should not choose a depcomp mode which is confused by this.
7104 # We need to recreate these files for each test, as the compiler may
7105 # overwrite some of them when testing with obscure command lines.
7106 # This happens at least with the AIX C compiler.
7108 for i in 1 2 3 4 5 6; do
7109 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7110 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7111 # Solaris 10 /bin/sh.
7112 echo '/* dummy */' > sub/conftst$i.h
7114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7116 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7117 # mode. It turns out that the SunPro C++ compiler does not properly
7118 # handle '-M -o', and we need to detect this. Also, some Intel
7119 # versions had trouble with output in subdirs.
7120 am__obj=sub/conftest.${OBJEXT-o}
7121 am__minus_obj="-o $am__obj"
7124 # This depmode causes a compiler race in universal mode.
7125 test "$am__universal" = false || continue
7128 # After this tag, mechanisms are not by side-effect, so they'll
7129 # only be used when explicitly requested.
7130 if test "x$enable_dependency_tracking" = xyes; then
7136 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7137 # This compiler won't grok '-c -o', but also, the minuso test has
7138 # not run yet. These depmodes are late enough in the game, and
7139 # so weak that their functioning should not be impacted.
7140 am__obj=conftest.${OBJEXT-o}
7145 if depmode=$depmode \
7146 source=sub/conftest.c object=$am__obj \
7147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7149 >/dev/null 2>conftest.err &&
7150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7154 # icc doesn't choke on unknown options, it will just issue warnings
7155 # or remarks (even with -Werror). So we grep stderr for any message
7156 # that says an option was ignored or not supported.
7157 # When given -MP, icc 7.0 and 7.1 complain thusly:
7158 # icc: Command line warning: ignoring option '-M'; no argument required
7159 # The diagnosis changed in icc 8.0:
7160 # icc: Command line remark: option '-MP' not supported
7161 if (grep 'ignoring option' conftest.err ||
7162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7163 am_cv_CC_dependencies_compiler_type=$depmode
7172 am_cv_CC_dependencies_compiler_type=none
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7177 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7178 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7181 test "x$enable_dependency_tracking" != xno \
7182 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7184 am__fastdepCC_FALSE='#'
7186 am__fastdepCC_TRUE='#'
7187 am__fastdepCC_FALSE=
7192 ac_cpp='$CPP $CPPFLAGS'
7193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7198 # On Suns, sometimes $CPP names a directory.
7199 if test -n "$CPP" && test -d "$CPP"; then
7202 if test -z "$CPP"; then
7203 if ${ac_cv_prog_CPP+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 # Double quotes because CPP needs to be expanded
7207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7210 for ac_c_preproc_warn_flag in '' yes
7212 # Use a header file that comes with gcc, so configuring glibc
7213 # with a fresh cross-compiler works.
7214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215 # <limits.h> exists even on freestanding compilers.
7216 # On the NeXT, cc -E runs the code through the compiler's parser,
7217 # not just through cpp. "Syntax error" is here to catch this case.
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7221 # include <limits.h>
7223 # include <assert.h>
7227 if ac_fn_c_try_cpp "$LINENO"; then :
7230 # Broken: fails on valid input.
7233 rm -f conftest.err conftest.i conftest.$ac_ext
7235 # OK, works on sane cases. Now check whether nonexistent headers
7236 # can be detected and how.
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7239 #include <ac_nonexistent.h>
7241 if ac_fn_c_try_cpp "$LINENO"; then :
7242 # Broken: success on invalid input.
7245 # Passes both tests.
7249 rm -f conftest.err conftest.i conftest.$ac_ext
7252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7253 rm -f conftest.i conftest.err conftest.$ac_ext
7254 if $ac_preproc_ok; then :
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7267 $as_echo "$CPP" >&6; }
7269 for ac_c_preproc_warn_flag in '' yes
7271 # Use a header file that comes with gcc, so configuring glibc
7272 # with a fresh cross-compiler works.
7273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7274 # <limits.h> exists even on freestanding compilers.
7275 # On the NeXT, cc -E runs the code through the compiler's parser,
7276 # not just through cpp. "Syntax error" is here to catch this case.
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7280 # include <limits.h>
7282 # include <assert.h>
7286 if ac_fn_c_try_cpp "$LINENO"; then :
7289 # Broken: fails on valid input.
7292 rm -f conftest.err conftest.i conftest.$ac_ext
7294 # OK, works on sane cases. Now check whether nonexistent headers
7295 # can be detected and how.
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 #include <ac_nonexistent.h>
7300 if ac_fn_c_try_cpp "$LINENO"; then :
7301 # Broken: success on invalid input.
7304 # Passes both tests.
7308 rm -f conftest.err conftest.i conftest.$ac_ext
7311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7312 rm -f conftest.i conftest.err conftest.$ac_ext
7313 if $ac_preproc_ok; then :
7316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7318 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7319 See \`config.log' for more details" "$LINENO" 5; }
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7329 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7330 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7334 $as_echo_n "checking whether ln -s works... " >&6; }
7336 if test "$LN_S" = "ln -s"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338 $as_echo "yes" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7341 $as_echo "no, using $LN_S" >&6; }
7344 if test -n "$ac_tool_prefix"; then
7345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7346 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_RANLIB+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 if test -n "$RANLIB"; then
7353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 RANLIB=$ac_cv_prog_RANLIB
7373 if test -n "$RANLIB"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7375 $as_echo "$RANLIB" >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7383 if test -z "$ac_cv_prog_RANLIB"; then
7384 ac_ct_RANLIB=$RANLIB
7385 # Extract the first word of "ranlib", so it can be a program name with args.
7386 set dummy ranlib; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7390 $as_echo_n "(cached) " >&6
7392 if test -n "$ac_ct_RANLIB"; then
7393 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_ac_ct_RANLIB="ranlib"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7413 if test -n "$ac_ct_RANLIB"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7415 $as_echo "$ac_ct_RANLIB" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7421 if test "x$ac_ct_RANLIB" = x; then
7424 case $cross_compiling:$ac_tool_warned in
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7428 ac_tool_warned=yes ;;
7430 RANLIB=$ac_ct_RANLIB
7433 RANLIB="$ac_cv_prog_RANLIB"
7436 if test -n "$ac_tool_prefix"; then
7437 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7438 set dummy ${ac_tool_prefix}ar; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_AR+:} false; then :
7442 $as_echo_n "(cached) " >&6
7444 if test -n "$AR"; then
7445 ac_cv_prog_AR="$AR" # Let the user override the test.
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_AR="${ac_tool_prefix}ar"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 if test -n "$AR"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7467 $as_echo "$AR" >&6; }
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7475 if test -z "$ac_cv_prog_AR"; then
7477 # Extract the first word of "ar", so it can be a program name with args.
7478 set dummy ar; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 if test -n "$ac_ct_AR"; then
7485 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_ac_ct_AR="ar"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7505 if test -n "$ac_ct_AR"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7507 $as_echo "$ac_ct_AR" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7513 if test "x$ac_ct_AR" = x; then
7516 case $cross_compiling:$ac_tool_warned in
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7528 # Extract the first word of ""perl"", so it can be a program name with args.
7529 set dummy "perl"; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_path_PERL+:} false; then :
7533 $as_echo_n "(cached) " >&6
7537 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 test -z "$as_dir" && as_dir=.
7545 for ac_exec_ext in '' $ac_executable_extensions; do
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 PERL=$ac_cv_path_PERL
7559 if test -n "$PERL"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7561 $as_echo "$PERL" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7568 if test -n "$ac_tool_prefix"; then
7569 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}windres; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_WINDRES+:} false; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$WINDRES"; then
7577 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 WINDRES=$ac_cv_prog_WINDRES
7597 if test -n "$WINDRES"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7599 $as_echo "$WINDRES" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7607 if test -z "$ac_cv_prog_WINDRES"; then
7608 ac_ct_WINDRES=$WINDRES
7609 # Extract the first word of "windres", so it can be a program name with args.
7610 set dummy windres; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 if test -n "$ac_ct_WINDRES"; then
7617 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_ac_ct_WINDRES="windres"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7637 if test -n "$ac_ct_WINDRES"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7639 $as_echo "$ac_ct_WINDRES" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7645 if test "x$ac_ct_WINDRES" = x; then
7648 case $cross_compiling:$ac_tool_warned in
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7654 WINDRES=$ac_ct_WINDRES
7657 WINDRES="$ac_cv_prog_WINDRES"
7660 # Extract the first word of ""yat2m"", so it can be a program name with args.
7661 set dummy "yat2m"; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_path_YAT2M+:} false; then :
7665 $as_echo_n "(cached) " >&6
7669 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7691 YAT2M=$ac_cv_path_YAT2M
7692 if test -n "$YAT2M"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7694 $as_echo "$YAT2M" >&6; }
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7702 if test -n "$ac_cv_path_YAT2M"; then
7704 HAVE_YAT2M_FALSE='#'
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7711 $as_echo_n "checking for library containing strerror... " >&6; }
7712 if ${ac_cv_search_strerror+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 ac_func_search_save_LIBS=$LIBS
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7719 /* Override any GCC internal prototype to avoid an error.
7720 Use char because int might match the return type of a GCC
7721 builtin and then its argument prototype would still apply. */
7734 for ac_lib in '' cposix; do
7735 if test -z "$ac_lib"; then
7736 ac_res="none required"
7739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7741 if ac_fn_c_try_link "$LINENO"; then :
7742 ac_cv_search_strerror=$ac_res
7744 rm -f core conftest.err conftest.$ac_objext \
7746 if ${ac_cv_search_strerror+:} false; then :
7750 if ${ac_cv_search_strerror+:} false; then :
7753 ac_cv_search_strerror=no
7756 LIBS=$ac_func_search_save_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7759 $as_echo "$ac_cv_search_strerror" >&6; }
7760 ac_res=$ac_cv_search_strerror
7761 if test "$ac_res" != no; then :
7762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7766 # Check whether --enable-largefile was given.
7767 if test "${enable_largefile+set}" = set; then :
7768 enableval=$enable_largefile;
7771 if test "$enable_largefile" != no; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7774 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7775 if ${ac_cv_sys_largefile_CC+:} false; then :
7776 $as_echo_n "(cached) " >&6
7778 ac_cv_sys_largefile_CC=no
7779 if test "$GCC" != yes; then
7782 # IRIX 6.2 and later do not support large files by default,
7783 # so use the C compiler's -n32 option if that helps.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 /* Check that off_t can represent 2**63 - 1 correctly.
7788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7789 since some C++ compilers masquerading as C compilers
7790 incorrectly reject 9223372036854775807. */
7791 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7793 && LARGE_OFF_T % 2147483647 == 1)
7803 if ac_fn_c_try_compile "$LINENO"; then :
7806 rm -f core conftest.err conftest.$ac_objext
7808 if ac_fn_c_try_compile "$LINENO"; then :
7809 ac_cv_sys_largefile_CC=' -n32'; break
7811 rm -f core conftest.err conftest.$ac_objext
7815 rm -f conftest.$ac_ext
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7819 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7820 if test "$ac_cv_sys_largefile_CC" != no; then
7821 CC=$CC$ac_cv_sys_largefile_CC
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7825 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7826 if ${ac_cv_sys_file_offset_bits+:} false; then :
7827 $as_echo_n "(cached) " >&6
7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832 #include <sys/types.h>
7833 /* Check that off_t can represent 2**63 - 1 correctly.
7834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7835 since some C++ compilers masquerading as C compilers
7836 incorrectly reject 9223372036854775807. */
7837 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7839 && LARGE_OFF_T % 2147483647 == 1)
7849 if ac_fn_c_try_compile "$LINENO"; then :
7850 ac_cv_sys_file_offset_bits=no; break
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855 #define _FILE_OFFSET_BITS 64
7856 #include <sys/types.h>
7857 /* Check that off_t can represent 2**63 - 1 correctly.
7858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7859 since some C++ compilers masquerading as C compilers
7860 incorrectly reject 9223372036854775807. */
7861 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7863 && LARGE_OFF_T % 2147483647 == 1)
7873 if ac_fn_c_try_compile "$LINENO"; then :
7874 ac_cv_sys_file_offset_bits=64; break
7876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 ac_cv_sys_file_offset_bits=unknown
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7882 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7883 case $ac_cv_sys_file_offset_bits in #(
7886 cat >>confdefs.h <<_ACEOF
7887 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7892 if test $ac_cv_sys_file_offset_bits = unknown; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7894 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7895 if ${ac_cv_sys_large_files+:} false; then :
7896 $as_echo_n "(cached) " >&6
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 #include <sys/types.h>
7902 /* Check that off_t can represent 2**63 - 1 correctly.
7903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7904 since some C++ compilers masquerading as C compilers
7905 incorrectly reject 9223372036854775807. */
7906 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7908 && LARGE_OFF_T % 2147483647 == 1)
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_sys_large_files=no; break
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 #define _LARGE_FILES 1
7925 #include <sys/types.h>
7926 /* Check that off_t can represent 2**63 - 1 correctly.
7927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7928 since some C++ compilers masquerading as C compilers
7929 incorrectly reject 9223372036854775807. */
7930 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7932 && LARGE_OFF_T % 2147483647 == 1)
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943 ac_cv_sys_large_files=1; break
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 ac_cv_sys_large_files=unknown
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7951 $as_echo "$ac_cv_sys_large_files" >&6; }
7952 case $ac_cv_sys_large_files in #(
7955 cat >>confdefs.h <<_ACEOF
7956 #define _LARGE_FILES $ac_cv_sys_large_files
7968 # GNU AWK requires -n option to interpret "0xHH" as a number
7969 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7970 AWK_HEX_NUMBER_OPTION=''
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7972 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7974 AWK_HEX_NUMBER_OPTION='-n'
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7976 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7980 # We need to compile and run a program on the build machine. A
7981 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7982 # the AC archive is broken for autoconf 2.57. Given that there is no
7983 # newer version of that macro, we assume that it is also broken for
7984 # autoconf 2.61 and thus we use a simple but usually sufficient
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7987 $as_echo_n "checking for cc for build... " >&6; }
7988 if test "$cross_compiling" = "yes"; then
7989 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7991 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7994 $as_echo "$CC_FOR_BUILD" >&6; }
7997 # We need to call this macro because other pkg-config macros are
8006 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 $as_echo_n "checking for $ac_word... " >&6; }
8012 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8013 $as_echo_n "(cached) " >&6
8017 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8039 if test -n "$PKG_CONFIG"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8041 $as_echo "$PKG_CONFIG" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8049 if test -z "$ac_cv_path_PKG_CONFIG"; then
8050 ac_pt_PKG_CONFIG=$PKG_CONFIG
8051 # Extract the first word of "pkg-config", so it can be a program name with args.
8052 set dummy pkg-config; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 case $ac_pt_PKG_CONFIG in
8060 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8070 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8082 if test -n "$ac_pt_PKG_CONFIG"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8084 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_pt_PKG_CONFIG" = x; then
8093 case $cross_compiling:$ac_tool_warned in
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8099 PKG_CONFIG=$ac_pt_PKG_CONFIG
8102 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8106 if test -n "$PKG_CONFIG"; then
8107 _pkg_min_version=0.9.0
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8109 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8110 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8112 $as_echo "yes" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8123 have_dosish_system=no
8125 have_w32ce_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
8146 have_w32ce_system=yes
8150 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8155 use_simple_gettext=yes
8159 i?86-emx-os2 | i?86-*-os2*emx )
8160 # OS/2 with the EMX environment
8161 ac_cv_have_dev_random=no
8162 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8164 have_dosish_system=yes
8170 # DOS with the DJGPP environment
8171 ac_cv_have_dev_random=no
8172 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8174 have_dosish_system=yes
8180 if test -z "$GCC" ; then
8181 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8185 if test -z "$GCC" ; then
8186 # Suppress all warnings
8187 # to get rid of the unsigned/signed char mismatch warnings.
8192 if test -z "$GCC" ; then
8193 # Use the newer compiler `-msg_disable ptrmismatch1' to
8194 # get rid of the unsigned/signed char mismatch warnings.
8195 # Using this may hide other pointer mismatch warnings, but
8196 # it at least lets other warning classes through
8197 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8203 have_android_system=yes
8204 # Android is fully utf-8 and we do not want to use iconv to
8205 # keeps things simple
8211 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
8215 require_pipe_to_unblock_pselect=yes
8221 if test "$require_pipe_to_unblock_pselect" = yes; then
8223 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8227 if test "$have_dosish_system" = yes; then
8229 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8232 if test "$have_dosish_system" = yes; then
8233 HAVE_DOSISH_SYSTEM_TRUE=
8234 HAVE_DOSISH_SYSTEM_FALSE='#'
8236 HAVE_DOSISH_SYSTEM_TRUE='#'
8237 HAVE_DOSISH_SYSTEM_FALSE=
8241 if test x"$use_simple_gettext" = xyes; then
8242 USE_SIMPLE_GETTEXT_TRUE=
8243 USE_SIMPLE_GETTEXT_FALSE='#'
8245 USE_SIMPLE_GETTEXT_TRUE='#'
8246 USE_SIMPLE_GETTEXT_FALSE=
8250 if test "$have_w32_system" = yes; then
8252 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8254 if test "$have_w32ce_system" = yes; then
8256 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
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=
8268 if test "$have_w32ce_system" = yes; then
8269 HAVE_W32CE_SYSTEM_TRUE=
8270 HAVE_W32CE_SYSTEM_FALSE='#'
8272 HAVE_W32CE_SYSTEM_TRUE='#'
8273 HAVE_W32CE_SYSTEM_FALSE=
8277 if test "$have_android_system" = yes; then
8279 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8282 if test "$have_android_system" = yes; then
8283 HAVE_ANDROID_SYSTEM_TRUE=
8284 HAVE_ANDROID_SYSTEM_FALSE='#'
8286 HAVE_ANDROID_SYSTEM_TRUE='#'
8287 HAVE_ANDROID_SYSTEM_FALSE=
8292 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8294 cat >>confdefs.h <<_ACEOF
8295 #define EXEEXT "$EXEEXT"
8301 # Checks for libraries.
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8304 $as_echo "$as_me: checking for libraries" >&6;}
8308 # gpgrt (aka libgpg-error) is a library with error codes shared
8309 # between GnuPG related projects.
8312 gpg_error_config_prefix=""
8314 # Check whether --with-libgpg-error-prefix was given.
8315 if test "${with_libgpg_error_prefix+set}" = set; then :
8316 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8321 # Check whether --with-gpg-error-prefix was given.
8322 if test "${with_gpg_error_prefix+set}" = set; then :
8323 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8327 if test x"${GPG_ERROR_CONFIG}" = x ; then
8328 if test x"${gpg_error_config_prefix}" != x ; then
8329 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8331 case "${SYSROOT}" in
8333 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8334 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8341 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8347 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8348 set dummy gpg-error-config; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 case $GPG_ERROR_CONFIG in
8356 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8378 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8379 if test -n "$GPG_ERROR_CONFIG"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8381 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8388 min_gpg_error_version="$NEED_GPGRT_VERSION"
8391 # Extract the first word of "gpgrt-config", so it can be a program name with args.
8392 set dummy gpgrt-config; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 case $GPGRT_CONFIG in
8400 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 as_dummy="$prefix/bin:$PATH"
8405 for as_dir in $as_dummy
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8411 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8423 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8424 if test -n "$GPGRT_CONFIG"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8426 $as_echo "$GPGRT_CONFIG" >&6; }
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8433 if test "$GPGRT_CONFIG" != "no"; then
8434 # Determine gpgrt_libdir
8436 # Get the prefix of gpgrt-config assuming it's something like:
8437 # <PREFIX>/bin/gpgrt-config
8438 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8439 possible_libdir1=${gpgrt_prefix}/lib
8440 # Determine by using system libdir-format with CC, it's like:
8441 # Normal style: /usr/lib
8442 # GNU cross style: /usr/<triplet>/lib
8443 # Debian style: /usr/lib/<multiarch-name>
8444 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8445 # It is assumed that CC is specified to the one of host on cross build.
8446 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8447 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8449 # From the output of -print-search-dirs, select valid pkgconfig dirs.
8450 libdir_candidates=$(for dir in $libdir_candidates; do
8451 if p=$(cd $dir 2>/dev/null && pwd); then
8452 test -d "$p/pkgconfig" && echo $p;
8456 for possible_libdir0 in $libdir_candidates; do
8458 # Fallback candidate, the one of system-installed (by $CC)
8459 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8461 # Another candidate, user-locally-installed
8462 # (<gpgrt_prefix>/lib)
8465 # (<gpgrt_prefix>/<triplet>/lib,
8466 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8467 if test "${possible_libdir0##*/}" = "lib"; then
8468 possible_prefix0=${possible_libdir0%/lib}
8469 possible_prefix0_triplet=${possible_prefix0##*/}
8470 if test -z "$possible_prefix0_triplet"; then
8473 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8475 possible_prefix0=${possible_libdir0%%/lib*}
8476 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8478 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8479 gpgrt_libdir=${possible_libdir2}
8480 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8481 gpgrt_libdir=${possible_libdir1}
8482 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8483 gpgrt_libdir=${possible_libdir0}
8485 if test -n "$gpgrt_libdir"; then break; fi
8488 # When we cannot determine system libdir-format, use this:
8489 gpgrt_libdir=${possible_libdir1}
8495 if test -n "$gpgrt_libdir"; then
8496 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8497 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8498 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8500 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8501 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8505 elif test "$GPG_ERROR_CONFIG" != "no"; then
8506 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8508 if test "$GPG_ERROR_CONFIG" != "no"; then
8509 req_major=`echo $min_gpg_error_version | \
8510 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8511 req_minor=`echo $min_gpg_error_version | \
8512 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8513 major=`echo $gpg_error_config_version | \
8514 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8515 minor=`echo $gpg_error_config_version | \
8516 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8517 if test "$major" -gt "$req_major"; then
8520 if test "$major" -eq "$req_major"; then
8521 if test "$minor" -ge "$req_minor"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8528 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8529 if test $ok = yes; then
8530 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8531 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8532 if test -z "$GPGRT_CONFIG"; then
8533 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8534 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8536 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8537 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8538 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8539 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8542 $as_echo "yes ($gpg_error_config_version)" >&6; }
8544 if test -z "$GPGRT_CONFIG"; then
8545 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8547 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8549 if test x"$gpg_error_config_host" != xnone ; then
8550 if test x"$gpg_error_config_host" != x"$host" ; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8553 *** The config script \"$GPG_ERROR_CONFIG\" was
8554 *** built for $gpg_error_config_host and thus may not match the
8555 *** used host $host.
8556 *** You may want to use the configure option --with-libgpg-error-prefix
8557 *** to specify a matching config script or use \$SYSROOT.
8559 $as_echo "$as_me: WARNING:
8561 *** The config script \"$GPG_ERROR_CONFIG\" was
8562 *** built for $gpg_error_config_host and thus may not match the
8563 *** used host $host.
8564 *** You may want to use the configure option --with-libgpg-error-prefix
8565 *** to specify a matching config script or use \$SYSROOT.
8567 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8573 GPG_ERROR_MT_CFLAGS=""
8574 GPG_ERROR_MT_LIBS=""
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8587 # Libgcrypt is our generic crypto library
8591 # Check whether --with-libgcrypt-prefix was given.
8592 if test "${with_libgcrypt_prefix+set}" = set; then :
8593 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8595 libgcrypt_config_prefix=""
8598 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8599 if test x"${libgcrypt_config_prefix}" != x ; then
8600 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8605 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8606 if $GPGRT_CONFIG libgcrypt --exists; then
8607 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8609 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8610 use_gpgrt_config=yes
8613 if test -z "$use_gpgrt_config"; then
8614 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8615 case "${SYSROOT}" in
8617 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8618 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8625 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8629 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8630 set dummy libgcrypt-config; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8634 $as_echo_n "(cached) " >&6
8636 case $LIBGCRYPT_CONFIG in
8638 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 test -z "$as_dir" && as_dir=.
8646 for ac_exec_ext in '' $ac_executable_extensions; do
8647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8648 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8660 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8661 if test -n "$LIBGCRYPT_CONFIG"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8663 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8672 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8673 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8674 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8675 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8678 min_libgcrypt_version="$tmp"
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8682 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8684 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8685 req_major=`echo $min_libgcrypt_version | \
8686 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8687 req_minor=`echo $min_libgcrypt_version | \
8688 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8689 req_micro=`echo $min_libgcrypt_version | \
8690 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8691 if test -z "$use_gpgrt_config"; then
8692 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8694 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8696 major=`echo $libgcrypt_config_version | \
8697 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8698 minor=`echo $libgcrypt_config_version | \
8699 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8700 micro=`echo $libgcrypt_config_version | \
8701 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8702 if test "$major" -gt "$req_major"; then
8705 if test "$major" -eq "$req_major"; then
8706 if test "$minor" -gt "$req_minor"; then
8709 if test "$minor" -eq "$req_minor"; then
8710 if test "$micro" -ge "$req_micro"; then
8718 if test $ok = yes; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8720 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8725 if test $ok = yes; then
8726 # If we have a recent libgcrypt, we should also check that the
8728 if test "$req_libgcrypt_api" -gt 0 ; then
8729 if test -z "$use_gpgrt_config"; then
8730 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8732 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8734 if test "$tmp" -gt 0 ; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8736 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8737 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8739 $as_echo "okay" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8743 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8748 if test $ok = yes; then
8749 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8750 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8752 if test -z "$use_gpgrt_config"; then
8753 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8755 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8757 if test x"$libgcrypt_config_host" != xnone ; then
8758 if test x"$libgcrypt_config_host" != x"$host" ; then
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8761 *** The config script \"$LIBGCRYPT_CONFIG\" was
8762 *** built for $libgcrypt_config_host and thus may not match the
8763 *** used host $host.
8764 *** You may want to use the configure option --with-libgcrypt-prefix
8765 *** to specify a matching config script or use \$SYSROOT.
8767 $as_echo "$as_me: WARNING:
8769 *** The config script \"$LIBGCRYPT_CONFIG\" was
8770 *** built for $libgcrypt_config_host and thus may not match the
8771 *** used host $host.
8772 *** You may want to use the configure option --with-libgcrypt-prefix
8773 *** to specify a matching config script or use \$SYSROOT.
8775 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8786 # And, then, check if it's newer than 1.9.0 so that we can
8787 # conditionally build some programs.
8788 # Note: This is not anymore needed but keep the code commented in case
8789 # we need it again with some future libgcrypt.
8790 #have_libgcrypt_newer=no
8791 #if test $ok = yes; then
8792 # if test "$major" -gt 1; then
8793 # have_libgcrypt_newer=yes
8795 # if test "$major" -eq 1; then
8796 # if test "$minor" -gt 9; then
8797 # have_libgcrypt_newer=yes
8799 # if test "$minor" -eq 9; then
8800 # if test "$micro" -ge 0; then
8801 # have_libgcrypt_newer=yes
8808 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8811 # libassuan is used for IPC
8815 # Check whether --with-libassuan-prefix was given.
8816 if test "${with_libassuan_prefix+set}" = set; then :
8817 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8819 libassuan_config_prefix=""
8822 if test x$libassuan_config_prefix != x ; then
8823 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8824 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8829 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8830 if $GPGRT_CONFIG libassuan --exists; then
8831 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8833 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8834 use_gpgrt_config=yes
8837 if test -z "$use_gpgrt_config"; then
8838 # Extract the first word of "libassuan-config", so it can be a program name with args.
8839 set dummy libassuan-config; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 case $LIBASSUAN_CONFIG in
8847 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8869 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8870 if test -n "$LIBASSUAN_CONFIG"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8872 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8881 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8882 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8883 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8884 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8887 min_libassuan_version="$tmp"
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8891 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8893 if test "$LIBASSUAN_CONFIG" != "no"; then
8894 req_major=`echo $min_libassuan_version | \
8895 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8896 req_minor=`echo $min_libassuan_version | \
8897 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8898 req_micro=`echo $min_libassuan_version | \
8899 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8901 if test -z "$use_gpgrt_config"; then
8902 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8904 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8906 major=`echo $libassuan_config_version | \
8907 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8908 minor=`echo $libassuan_config_version | \
8909 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8910 micro=`echo $libassuan_config_version | \
8911 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8913 if test "$major" -gt "$req_major"; then
8916 if test "$major" -eq "$req_major"; then
8917 if test "$minor" -gt "$req_minor"; then
8920 if test "$minor" -eq "$req_minor"; then
8921 if test "$micro" -ge "$req_micro"; then
8930 if test $ok = yes; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8932 $as_echo "yes ($libassuan_config_version)" >&6; }
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8938 if test $ok = yes; then
8939 if test "$req_libassuan_api" -gt 0 ; then
8940 if test -z "$use_gpgrt_config"; then
8941 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8943 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8945 if test "$tmp" -gt 0 ; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8947 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8948 if test "$req_libassuan_api" -eq "$tmp" ; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8950 $as_echo "okay" >&6; }
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8954 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8960 if test $ok = yes; then
8961 if test x"$host" != x ; then
8962 if test -z "$use_gpgrt_config"; then
8963 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8965 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8967 if test x"$libassuan_config_host" != xnone ; then
8968 if test x"$libassuan_config_host" != x"$host" ; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8971 *** The config script \"$LIBASSUAN_CONFIG\" was
8972 *** built for $libassuan_config_host and thus may not match the
8973 *** used host $host.
8974 *** You may want to use the configure option --with-libassuan-prefix
8975 *** to specify a matching config script.
8977 $as_echo "$as_me: WARNING:
8979 *** The config script \"$LIBASSUAN_CONFIG\" was
8980 *** built for $libassuan_config_host and thus may not match the
8981 *** used host $host.
8982 *** You may want to use the configure option --with-libassuan-prefix
8983 *** to specify a matching config script.
8990 if test $ok = yes; then
8991 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8992 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
9002 if test "$have_libassuan" = "yes"; then
9004 cat >>confdefs.h <<_ACEOF
9005 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9008 show_tor_support="only .onion"
9013 # libksba is our X.509 support library
9017 # Check whether --with-libksba-prefix was given.
9018 if test "${with_libksba_prefix+set}" = set; then :
9019 withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9021 ksba_config_prefix=""
9026 # Check whether --with-ksba-prefix was given.
9027 if test "${with_ksba_prefix+set}" = set; then :
9028 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9030 ksba_config_prefix=""
9034 if test x$ksba_config_prefix != x ; then
9035 if test x${KSBA_CONFIG+set} != xset ; then
9036 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9041 if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9042 if $GPGRT_CONFIG ksba --exists; then
9043 KSBA_CONFIG="$GPGRT_CONFIG ksba"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9045 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9046 use_gpgrt_config=yes
9049 if test -z "$use_gpgrt_config"; then
9050 # Extract the first word of "ksba-config", so it can be a program name with args.
9051 set dummy ksba-config; ac_word=$2
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053 $as_echo_n "checking for $ac_word... " >&6; }
9054 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9055 $as_echo_n "(cached) " >&6
9057 case $KSBA_CONFIG in
9059 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9081 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9082 if test -n "$KSBA_CONFIG"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9084 $as_echo "$KSBA_CONFIG" >&6; }
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9093 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9094 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9095 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9096 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9099 min_ksba_version="$tmp"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9103 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9105 if test "$KSBA_CONFIG" != "no" ; then
9106 req_major=`echo $min_ksba_version | \
9107 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9108 req_minor=`echo $min_ksba_version | \
9109 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9110 req_micro=`echo $min_ksba_version | \
9111 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9112 if test -z "$use_gpgrt_config"; then
9113 ksba_config_version=`$KSBA_CONFIG --version`
9115 ksba_config_version=`$KSBA_CONFIG --modversion`
9117 major=`echo $ksba_config_version | \
9118 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9119 minor=`echo $ksba_config_version | \
9120 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9121 micro=`echo $ksba_config_version | \
9122 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9123 if test "$major" -gt "$req_major"; then
9126 if test "$major" -eq "$req_major"; then
9127 if test "$minor" -gt "$req_minor"; then
9130 if test "$minor" -eq "$req_minor"; then
9131 if test "$micro" -ge "$req_micro"; then
9139 if test $ok = yes; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9141 $as_echo "yes ($ksba_config_version)" >&6; }
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9146 if test $ok = yes; then
9147 # Even if we have a recent libksba, we should check that the
9148 # API is compatible.
9149 if test "$req_ksba_api" -gt 0 ; then
9150 if test -z "$use_gpgrt_config"; then
9151 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9153 tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9155 if test "$tmp" -gt 0 ; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9157 $as_echo_n "checking KSBA API version... " >&6; }
9158 if test "$req_ksba_api" -eq "$tmp" ; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9160 $as_echo "okay" >&6; }
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
9164 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
9169 if test $ok = yes; then
9170 KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9171 KSBA_LIBS=`$KSBA_CONFIG --libs`
9173 if test -z "$use_gpgrt_config"; then
9174 libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9176 libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9178 if test x"$libksba_config_host" != xnone ; then
9179 if test x"$libksba_config_host" != x"$host" ; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9182 *** The config script \"$KSBA_CONFIG\" was
9183 *** built for $libksba_config_host and thus may not match the
9184 *** used host $host.
9185 *** You may want to use the configure option --with-libksba-prefix
9186 *** to specify a matching config script.
9188 $as_echo "$as_me: WARNING:
9190 *** The config script \"$KSBA_CONFIG\" was
9191 *** built for $libksba_config_host and thus may not match the
9192 *** used host $host.
9193 *** You may want to use the configure option --with-libksba-prefix
9194 *** to specify a matching config script.
9209 # libusb allows us to use the integrated CCID smartcard reader driver.
9211 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9212 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9221 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9224 # FreeBSD has a native 1.0 compatible library by -lusb.
9234 if test x"$LIBUSB_NAME" != x ; then
9235 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9237 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9238 if eval \${$as_ac_Lib+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-l$LIBUSB_NAME $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9252 char libusb_init ();
9256 return libusb_init ();
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 eval "$as_ac_Lib=yes"
9264 eval "$as_ac_Lib=no"
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9270 eval ac_res=\$$as_ac_Lib
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9272 $as_echo "$ac_res" >&6; }
9273 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9274 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9279 $as_echo_n "checking libusb include dir... " >&6; }
9280 usb_incdir_found="no"
9281 for _incdir in "" "/usr/include/libusb-1.0" \
9282 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9283 _libusb_save_cppflags=$CPPFLAGS
9284 if test -n "${_incdir}"; then
9285 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9291 if ac_fn_c_try_cpp "$LINENO"; then :
9292 usb_incdir=${_incdir}; usb_incdir_found="yes"
9294 rm -f conftest.err conftest.i conftest.$ac_ext
9295 CPPFLAGS=${_libusb_save_cppflags}
9296 if test "$usb_incdir_found" = "yes"; then
9300 if test "$usb_incdir_found" = "yes"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9302 $as_echo "${usb_incdir}" >&6; }
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9305 $as_echo "not found" >&6; }
9308 if test "$use_ccid_driver" != yes; then
9314 if test "$have_libusb" = yes; then
9316 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9319 if test x"$usb_incdir" = x; then
9322 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9329 # Check whether it is necessary to link against libdl.
9330 # (For example to load libpcsclite)
9332 gnupg_dlopen_save_libs="$LIBS"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9335 $as_echo_n "checking for library containing dlopen... " >&6; }
9336 if ${ac_cv_search_dlopen+:} false; then :
9337 $as_echo_n "(cached) " >&6
9339 ac_func_search_save_LIBS=$LIBS
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9343 /* Override any GCC internal prototype to avoid an error.
9344 Use char because int might match the return type of a GCC
9345 builtin and then its argument prototype would still apply. */
9358 for ac_lib in '' c dl; do
9359 if test -z "$ac_lib"; then
9360 ac_res="none required"
9363 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 ac_cv_search_dlopen=$ac_res
9368 rm -f core conftest.err conftest.$ac_objext \
9370 if ${ac_cv_search_dlopen+:} false; then :
9374 if ${ac_cv_search_dlopen+:} false; then :
9377 ac_cv_search_dlopen=no
9380 LIBS=$ac_func_search_save_LIBS
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9383 $as_echo "$ac_cv_search_dlopen" >&6; }
9384 ac_res=$ac_cv_search_dlopen
9385 if test "$ac_res" != no; then :
9386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9392 LIBS="$gnupg_dlopen_save_libs"
9397 # Check whether --enable-sqlite was given.
9398 if test "${enable_sqlite+set}" = set; then :
9399 enableval=$enable_sqlite; try_sqlite=$enableval
9405 if test x"$use_tofu" = xyes ; then
9406 if test x"$try_sqlite" = xyes ; then
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9410 $as_echo_n "checking for SQLITE3... " >&6; }
9412 if test -n "$SQLITE3_CFLAGS"; then
9413 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9414 elif test -n "$PKG_CONFIG"; then
9415 if test -n "$PKG_CONFIG" && \
9416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9417 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9420 test $ac_status = 0; }; then
9421 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9422 test "x$?" != "x0" && pkg_failed=yes
9429 if test -n "$SQLITE3_LIBS"; then
9430 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9431 elif test -n "$PKG_CONFIG"; then
9432 if test -n "$PKG_CONFIG" && \
9433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9434 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9437 test $ac_status = 0; }; then
9438 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9439 test "x$?" != "x0" && pkg_failed=yes
9449 if test $pkg_failed = yes; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451 $as_echo "no" >&6; }
9453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9454 _pkg_short_errors_supported=yes
9456 _pkg_short_errors_supported=no
9458 if test $_pkg_short_errors_supported = yes; then
9459 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9461 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9463 # Put the nasty error message in config.log where it belongs
9464 echo "$SQLITE3_PKG_ERRORS" >&5
9467 elif test $pkg_failed = untried; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9472 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9473 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9475 $as_echo "yes" >&6; }
9479 if test "$have_sqlite" = "yes"; then
9486 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9489 *** Building without SQLite support - TOFU and Keyboxd disabled
9492 $as_echo "$as_me: WARNING:
9494 *** Building without SQLite support - TOFU and Keyboxd disabled
9500 if test "$have_sqlite" = "yes"; then
9509 if test x"$use_tofu" = xyes ; then
9511 $as_echo "#define USE_TOFU 1" >>confdefs.h
9518 # Extract the first word of "encfs", so it can be a program name with args.
9519 set dummy encfs; ac_word=$2
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521 $as_echo_n "checking for $ac_word... " >&6; }
9522 if ${ac_cv_path_ENCFS+:} false; then :
9523 $as_echo_n "(cached) " >&6
9527 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 test -z "$as_dir" && as_dir=.
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9537 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9549 ENCFS=$ac_cv_path_ENCFS
9550 if test -n "$ENCFS"; then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9552 $as_echo "$ENCFS" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9555 $as_echo "no" >&6; }
9560 cat >>confdefs.h <<_ACEOF
9561 #define ENCFS "${ENCFS}"
9565 # Extract the first word of "fusermount", so it can be a program name with args.
9566 set dummy fusermount; ac_word=$2
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9570 $as_echo_n "(cached) " >&6
9574 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9584 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9596 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9597 if test -n "$FUSERMOUNT"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9599 $as_echo "$FUSERMOUNT" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9607 cat >>confdefs.h <<_ACEOF
9608 #define FUSERMOUNT "${FUSERMOUNT}"
9615 # Check whether the nPth library is available
9618 # Check whether --with-npth-prefix was given.
9619 if test "${with_npth_prefix+set}" = set; then :
9620 withval=$with_npth_prefix; npth_config_prefix="$withval"
9622 npth_config_prefix=""
9625 if test "x$npth_config_prefix" != x ; then
9626 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9630 if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9631 if $GPGRT_CONFIG npth --exists; then
9632 NPTH_CONFIG="$GPGRT_CONFIG npth"
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9634 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9635 use_gpgrt_config=yes
9638 if test -z "$use_gpgrt_config"; then
9639 # Extract the first word of "npth-config", so it can be a program name with args.
9640 set dummy npth-config; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9644 $as_echo_n "(cached) " >&6
9646 case $NPTH_CONFIG in
9648 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 test -z "$as_dir" && as_dir=.
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9658 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9670 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9671 if test -n "$NPTH_CONFIG"; then
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9673 $as_echo "$NPTH_CONFIG" >&6; }
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676 $as_echo "no" >&6; }
9682 if test "$NPTH_CONFIG" != "no" ; then
9683 if test -z "$use_gpgrt_config"; then
9684 npth_version=`$NPTH_CONFIG --version`
9686 npth_version=`$NPTH_CONFIG --modversion`
9689 npth_version_major=`echo $npth_version | \
9690 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9691 npth_version_minor=`echo $npth_version | \
9692 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9694 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9695 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9696 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9697 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9700 min_npth_version="$tmp"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9704 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9706 if test "$NPTH_CONFIG" != "no" ; then
9707 req_major=`echo $min_npth_version | \
9708 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9709 req_minor=`echo $min_npth_version | \
9710 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9711 if test "$npth_version_major" -gt "$req_major"; then
9714 if test "$npth_version_major" -eq "$req_major"; then
9715 if test "$npth_version_minor" -gt "$req_minor"; then
9718 if test "$npth_version_minor" -eq "$req_minor"; then
9725 if test $ok = yes; then
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9727 $as_echo "yes ($npth_version)" >&6; }
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730 $as_echo "no" >&6; }
9732 if test $ok = yes; then
9733 # If we have a recent NPTH, we should also check that the
9734 # API is compatible.
9735 if test "$req_npth_api" -gt 0 ; then
9736 if test -z "$use_gpgrt_config"; then
9737 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9739 tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9741 if test "$tmp" -gt 0 ; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9743 $as_echo_n "checking NPTH API version... " >&6; }
9744 if test "$req_npth_api" -eq "$tmp" ; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9746 $as_echo "okay" >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9750 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9755 if test $ok = yes; then
9756 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9757 NPTH_LIBS=`$NPTH_CONFIG --libs`
9759 if test -z "$use_gpgrt_config"; then
9760 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9762 npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9764 if test x"$npth_config_host" != xnone ; then
9765 if test x"$npth_config_host" != x"$host" ; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9768 *** The config script \"$NPTH_CONFIG\" was
9769 *** built for $npth_config_host and thus may not match the
9770 *** used host $host.
9771 *** You may want to use the configure option --with-npth-prefix
9772 *** to specify a matching config script.
9774 $as_echo "$as_me: WARNING:
9776 *** The config script \"$NPTH_CONFIG\" was
9777 *** built for $npth_config_host and thus may not match the
9778 *** used host $host.
9779 *** You may want to use the configure option --with-npth-prefix
9780 *** to specify a matching config script.
9792 if test "$have_npth" = "yes"; then
9794 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9797 $as_echo "#define USE_NPTH 1" >>confdefs.h
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9802 *** To support concurrent access for example in gpg-agent and the SCdaemon
9803 *** we need the support of the New Portable Threads Library.
9805 $as_echo "$as_me: WARNING:
9807 *** To support concurrent access for example in gpg-agent and the SCdaemon
9808 *** we need the support of the New Portable Threads Library.
9812 # Enable debugging of nPth
9814 # Check whether --enable-npth-debug was given.
9815 if test "${enable_npth_debug+set}" = set; then :
9816 enableval=$enable_npth_debug; if test $enableval = yes ; then
9818 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9827 # NTBTLS is our TLS library. If it is not available we fall back to
9830 # Check whether --enable-ntbtls was given.
9831 if test "${enable_ntbtls+set}" = set; then :
9832 enableval=$enable_ntbtls; try_ntbtls=$enableval
9837 if test x"$try_ntbtls" = xyes ; then
9840 # Check whether --with-ntbtls-prefix was given.
9841 if test "${with_ntbtls_prefix+set}" = set; then :
9842 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9844 ntbtls_config_prefix=""
9847 if test x"${NTBTLS_CONFIG}" = x ; then
9848 if test x"${ntbtls_config_prefix}" != x ; then
9849 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9854 if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9855 if $GPGRT_CONFIG ntbtls --exists; then
9856 NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9858 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9859 use_gpgrt_config=yes
9862 if test -z "$use_gpgrt_config"; then
9863 if test x"${NTBTLS_CONFIG}" = x ; then
9864 case "${SYSROOT}" in
9866 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9867 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9874 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9878 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9879 set dummy ntbtls-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9883 $as_echo_n "(cached) " >&6
9885 case $NTBTLS_CONFIG in
9887 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 test -z "$as_dir" && as_dir=.
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9897 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9909 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9910 if test -n "$NTBTLS_CONFIG"; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9912 $as_echo "$NTBTLS_CONFIG" >&6; }
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915 $as_echo "no" >&6; }
9921 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9922 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9923 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9924 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9927 min_ntbtls_version="$tmp"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9931 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9933 if test "$NTBTLS_CONFIG" != "no" ; then
9934 req_major=`echo $min_ntbtls_version | \
9935 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9936 req_minor=`echo $min_ntbtls_version | \
9937 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9938 req_micro=`echo $min_ntbtls_version | \
9939 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9940 if test -z "$use_gpgrt_config"; then
9941 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9943 ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9945 major=`echo $ntbtls_config_version | \
9946 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9947 minor=`echo $ntbtls_config_version | \
9948 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9949 micro=`echo $ntbtls_config_version | \
9950 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9951 if test "$major" -gt "$req_major"; then
9954 if test "$major" -eq "$req_major"; then
9955 if test "$minor" -gt "$req_minor"; then
9958 if test "$minor" -eq "$req_minor"; then
9959 if test "$micro" -ge "$req_micro"; then
9967 if test $ok = yes; then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9969 $as_echo "yes ($ntbtls_config_version)" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972 $as_echo "no" >&6; }
9974 if test $ok = yes; then
9975 # If we have a recent ntbtls, we should also check that the
9977 if test "$req_ntbtls_api" -gt 0 ; then
9978 if test -z "$use_gpgrt_config"; then
9979 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9981 tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9983 if test "$tmp" -gt 0 ; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9985 $as_echo_n "checking NTBTLS API version... " >&6; }
9986 if test "$req_ntbtls_api" -eq "$tmp" ; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9988 $as_echo "okay" >&6; }
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9992 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9997 if test $ok = yes; then
9998 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9999 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10001 if test -z "$use_gpgrt_config"; then
10002 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10004 ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10006 if test x"$ntbtls_config_host" != xnone ; then
10007 if test x"$ntbtls_config_host" != x"$host" ; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10010 *** The config script \"$NTBTLS_CONFIG\" was
10011 *** built for $ntbtls_config_host and thus may not match the
10012 *** used host $host.
10013 *** You may want to use the configure option --with-ntbtls-prefix
10014 *** to specify a matching config script or use \$SYSROOT.
10016 $as_echo "$as_me: WARNING:
10018 *** The config script \"$NTBTLS_CONFIG\" was
10019 *** built for $ntbtls_config_host and thus may not match the
10020 *** used host $host.
10021 *** You may want to use the configure option --with-ntbtls-prefix
10022 *** to specify a matching config script or use \$SYSROOT.
10024 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10036 if test "$have_ntbtls" = yes ; then
10037 use_tls_library=ntbtls
10039 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10042 # Check whether --enable-gnutls was given.
10043 if test "${enable_gnutls+set}" = set; then :
10044 enableval=$enable_gnutls; try_gnutls=$enableval
10049 if test x"$try_gnutls" = xyes ; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10053 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10055 if test -n "$LIBGNUTLS_CFLAGS"; then
10056 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10057 elif test -n "$PKG_CONFIG"; then
10058 if test -n "$PKG_CONFIG" && \
10059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10060 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10063 test $ac_status = 0; }; then
10064 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10065 test "x$?" != "x0" && pkg_failed=yes
10072 if test -n "$LIBGNUTLS_LIBS"; then
10073 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10074 elif test -n "$PKG_CONFIG"; then
10075 if test -n "$PKG_CONFIG" && \
10076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10077 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10080 test $ac_status = 0; }; then
10081 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10082 test "x$?" != "x0" && pkg_failed=yes
10092 if test $pkg_failed = yes; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10097 _pkg_short_errors_supported=yes
10099 _pkg_short_errors_supported=no
10101 if test $_pkg_short_errors_supported = yes; then
10102 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10104 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10106 # Put the nasty error message in config.log where it belongs
10107 echo "$LIBGNUTLS_PKG_ERRORS" >&5
10110 elif test $pkg_failed = untried; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10115 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10116 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118 $as_echo "yes" >&6; }
10122 if test "$have_gnutls" = "yes"; then
10125 use_tls_library=gnutls
10127 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10130 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10134 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10137 $as_echo "$as_me: WARNING:
10139 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10146 # Allow to set a fixed trust store file for system provided certificates.
10149 # Check whether --with-default-trust-store-file was given.
10150 if test "${with_default_trust_store_file+set}" = set; then :
10151 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10153 default_trust_store_file=""
10156 if test x"$default_trust_store_file" = xno;then
10157 default_trust_store_file=""
10159 if test x"$default_trust_store_file" != x ; then
10161 cat >>confdefs.h <<_ACEOF
10162 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10169 $as_echo "$as_me: checking for networking options" >&6;}
10172 # Must check for network library requirements before doing link tests
10173 # for ldap, for example. If ldap libs are static (or dynamic and without
10174 # ELF runtime link paths), then link will fail and LDAP support won't
10177 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10178 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 ac_check_lib_save_LIBS=$LIBS
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 /* Override any GCC internal prototype to avoid an error.
10192 Use char because int might match the return type of a GCC
10193 builtin and then its argument prototype would still apply. */
10197 char gethostbyname ();
10201 return gethostbyname ();
10206 if ac_fn_c_try_link "$LINENO"; then :
10207 ac_cv_lib_nsl_gethostbyname=yes
10209 ac_cv_lib_nsl_gethostbyname=no
10211 rm -f core conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10216 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10217 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10218 NETLIBS="-lnsl $NETLIBS"
10223 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10224 if test "x$ac_cv_func_setsockopt" = xyes; then :
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10228 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10229 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10230 $as_echo_n "(cached) " >&6
10232 ac_check_lib_save_LIBS=$LIBS
10233 LIBS="-lsocket $LIBS"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10243 char setsockopt ();
10247 return setsockopt ();
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 ac_cv_lib_socket_setsockopt=yes
10255 ac_cv_lib_socket_setsockopt=no
10257 rm -f core conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10262 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10263 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10264 NETLIBS="-lsocket $NETLIBS"
10272 # Check standard resolver functions.
10274 if test "$build_dirmngr" = "yes"; then
10275 _dns_save_libs=$LIBS
10278 # Find the system resolver which can always be enabled with
10279 # the dirmngr option --standard-resolver.
10281 # the double underscore thing is a glibc-ism?
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10283 $as_echo_n "checking for library containing res_query... " >&6; }
10284 if ${ac_cv_search_res_query+:} false; then :
10285 $as_echo_n "(cached) " >&6
10287 ac_func_search_save_LIBS=$LIBS
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10291 /* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
10301 return res_query ();
10306 for ac_lib in '' resolv bind; do
10307 if test -z "$ac_lib"; then
10308 ac_res="none required"
10311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 ac_cv_search_res_query=$ac_res
10316 rm -f core conftest.err conftest.$ac_objext \
10318 if ${ac_cv_search_res_query+:} false; then :
10322 if ${ac_cv_search_res_query+:} false; then :
10325 ac_cv_search_res_query=no
10327 rm conftest.$ac_ext
10328 LIBS=$ac_func_search_save_LIBS
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10331 $as_echo "$ac_cv_search_res_query" >&6; }
10332 ac_res=$ac_cv_search_res_query
10333 if test "$ac_res" != no; then :
10334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10338 $as_echo_n "checking for library containing __res_query... " >&6; }
10339 if ${ac_cv_search___res_query+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 ac_func_search_save_LIBS=$LIBS
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10346 /* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10352 char __res_query ();
10356 return __res_query ();
10361 for ac_lib in '' resolv bind; do
10362 if test -z "$ac_lib"; then
10363 ac_res="none required"
10366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 ac_cv_search___res_query=$ac_res
10371 rm -f core conftest.err conftest.$ac_objext \
10373 if ${ac_cv_search___res_query+:} false; then :
10377 if ${ac_cv_search___res_query+:} false; then :
10380 ac_cv_search___res_query=no
10382 rm conftest.$ac_ext
10383 LIBS=$ac_func_search_save_LIBS
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10386 $as_echo "$ac_cv_search___res_query" >&6; }
10387 ac_res=$ac_cv_search___res_query
10388 if test "$ac_res" != no; then :
10389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10398 $as_echo_n "checking for library containing dn_expand... " >&6; }
10399 if ${ac_cv_search_dn_expand+:} false; then :
10400 $as_echo_n "(cached) " >&6
10402 ac_func_search_save_LIBS=$LIBS
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10406 /* Override any GCC internal prototype to avoid an error.
10407 Use char because int might match the return type of a GCC
10408 builtin and then its argument prototype would still apply. */
10416 return dn_expand ();
10421 for ac_lib in '' resolv bind; do
10422 if test -z "$ac_lib"; then
10423 ac_res="none required"
10426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10428 if ac_fn_c_try_link "$LINENO"; then :
10429 ac_cv_search_dn_expand=$ac_res
10431 rm -f core conftest.err conftest.$ac_objext \
10433 if ${ac_cv_search_dn_expand+:} false; then :
10437 if ${ac_cv_search_dn_expand+:} false; then :
10440 ac_cv_search_dn_expand=no
10442 rm conftest.$ac_ext
10443 LIBS=$ac_func_search_save_LIBS
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10446 $as_echo "$ac_cv_search_dn_expand" >&6; }
10447 ac_res=$ac_cv_search_dn_expand
10448 if test "$ac_res" != no; then :
10449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10453 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10454 if ${ac_cv_search___dn_expand+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 ac_func_search_save_LIBS=$LIBS
10458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h. */
10461 /* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
10467 char __dn_expand ();
10471 return __dn_expand ();
10476 for ac_lib in '' resolv bind; do
10477 if test -z "$ac_lib"; then
10478 ac_res="none required"
10481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10483 if ac_fn_c_try_link "$LINENO"; then :
10484 ac_cv_search___dn_expand=$ac_res
10486 rm -f core conftest.err conftest.$ac_objext \
10488 if ${ac_cv_search___dn_expand+:} false; then :
10492 if ${ac_cv_search___dn_expand+:} false; then :
10495 ac_cv_search___dn_expand=no
10497 rm conftest.$ac_ext
10498 LIBS=$ac_func_search_save_LIBS
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10501 $as_echo "$ac_cv_search___dn_expand" >&6; }
10502 ac_res=$ac_cv_search___dn_expand
10503 if test "$ac_res" != no; then :
10504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10513 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10514 # and for some reason fools us into believing we don't need
10515 # -lresolv even if we do. Since the test program checking for the
10516 # symbol does not include <resolv.h>, we need to check for the
10517 # renamed symbol explicitly.
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10519 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10520 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10521 $as_echo_n "(cached) " >&6
10523 ac_func_search_save_LIBS=$LIBS
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10533 char res_9_dn_skipname ();
10537 return res_9_dn_skipname ();
10542 for ac_lib in '' resolv bind; do
10543 if test -z "$ac_lib"; then
10544 ac_res="none required"
10547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10549 if ac_fn_c_try_link "$LINENO"; then :
10550 ac_cv_search_res_9_dn_skipname=$ac_res
10552 rm -f core conftest.err conftest.$ac_objext \
10554 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10558 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10561 ac_cv_search_res_9_dn_skipname=no
10563 rm conftest.$ac_ext
10564 LIBS=$ac_func_search_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10567 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10568 ac_res=$ac_cv_search_res_9_dn_skipname
10569 if test "$ac_res" != no; then :
10570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10574 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10575 if ${ac_cv_search_dn_skipname+:} false; then :
10576 $as_echo_n "(cached) " >&6
10578 ac_func_search_save_LIBS=$LIBS
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10588 char dn_skipname ();
10592 return dn_skipname ();
10597 for ac_lib in '' resolv bind; do
10598 if test -z "$ac_lib"; then
10599 ac_res="none required"
10602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10604 if ac_fn_c_try_link "$LINENO"; then :
10605 ac_cv_search_dn_skipname=$ac_res
10607 rm -f core conftest.err conftest.$ac_objext \
10609 if ${ac_cv_search_dn_skipname+:} false; then :
10613 if ${ac_cv_search_dn_skipname+:} false; then :
10616 ac_cv_search_dn_skipname=no
10618 rm conftest.$ac_ext
10619 LIBS=$ac_func_search_save_LIBS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10622 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10623 ac_res=$ac_cv_search_dn_skipname
10624 if test "$ac_res" != no; then :
10625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10629 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10630 if ${ac_cv_search___dn_skipname+:} false; then :
10631 $as_echo_n "(cached) " >&6
10633 ac_func_search_save_LIBS=$LIBS
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10643 char __dn_skipname ();
10647 return __dn_skipname ();
10652 for ac_lib in '' resolv bind; do
10653 if test -z "$ac_lib"; then
10654 ac_res="none required"
10657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_search___dn_skipname=$ac_res
10662 rm -f core conftest.err conftest.$ac_objext \
10664 if ${ac_cv_search___dn_skipname+:} false; then :
10668 if ${ac_cv_search___dn_skipname+:} false; then :
10671 ac_cv_search___dn_skipname=no
10673 rm conftest.$ac_ext
10674 LIBS=$ac_func_search_save_LIBS
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10677 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10678 ac_res=$ac_cv_search___dn_skipname
10679 if test "$ac_res" != no; then :
10680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10691 if test x"$have_resolver" != xno ; then
10693 # Make sure that the BIND 4 resolver interface is workable before
10694 # enabling any code that calls it. At some point I'll rewrite the
10695 # code to use the BIND 8 resolver API.
10696 # We might also want to use libdns instead.
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10699 $as_echo_n "checking whether the resolver is usable... " >&6; }
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 #include <sys/types.h>
10703 #include <netinet/in.h>
10704 #include <arpa/nameser.h>
10705 #include <resolv.h>
10709 unsigned char answer[PACKETSZ];
10710 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10712 dn_expand(0,0,0,0,0);
10718 if ac_fn_c_try_link "$LINENO"; then :
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10726 $as_echo "$have_resolver" >&6; }
10728 # This is Apple-specific and somewhat bizarre as they changed the
10729 # define in bind 8 for some reason.
10731 if test x"$have_resolver" != xyes ; then
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10733 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #define BIND_8_COMPAT
10737 #include <sys/types.h>
10738 #include <netinet/in.h>
10739 #include <arpa/nameser.h>
10740 #include <resolv.h>
10744 unsigned char answer[PACKETSZ];
10745 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10746 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10752 if ac_fn_c_try_link "$LINENO"; then :
10753 have_resolver=yes ; need_compat=yes
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10758 $as_echo "$have_resolver" >&6; }
10762 if test x"$have_resolver" = xyes ; then
10764 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10766 DNSLIBS="$DNSLIBS $LIBS"
10767 if test x"$need_compat" = xyes ; then
10769 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10772 if test "$use_libdns" = yes; then
10773 show_tor_support=yes
10775 elif test "$use_libdns" = yes; then
10776 show_tor_support=yes
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10780 *** The system's DNS resolver is not usable.
10781 *** Dirmngr functionality is limited.
10783 $as_echo "$as_me: WARNING:
10785 *** The system's DNS resolver is not usable.
10786 *** Dirmngr functionality is limited.
10788 show_tor_support="${show_tor_support} (no system resolver)"
10791 if test "$have_w32_system" = yes; then
10792 if test "$use_libdns" = yes; then
10793 DNSLIBS="$DNSLIBS -liphlpapi"
10797 LIBS=$_dns_save_libs
10806 # Note that running the check changes the variable
10807 # gnupg_have_ldap from "n/a" to "no" or "yes".
10809 # Check whether --enable-ldap was given.
10810 if test "${enable_ldap+set}" = set; then :
10811 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10815 if test "$gnupg_have_ldap" != "no" ; then
10816 if test "$build_dirmngr" = "yes" ; then
10818 # Try and link a LDAP test program to weed out unusable LDAP
10819 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10820 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10821 # If all else fails, the user can play guess-the-dependency by using
10822 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10825 # Check whether --with-ldap was given.
10826 if test "${with_ldap+set}" = set; then :
10827 withval=$with_ldap; _ldap_with=$withval
10831 if test x$_ldap_with != xno ; then
10833 if test -d "$withval" ; then
10834 LDAP_CPPFLAGS="-I$withval/include"
10835 LDAP_LDFLAGS="-L$withval/lib"
10838 _ldap_save_cppflags=$CPPFLAGS
10839 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10840 _ldap_save_ldflags=$LDFLAGS
10841 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10843 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10844 _ldap_save_libs=$LIBS
10845 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10848 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10853 #include <winsock2.h>
10854 #include <winldap.h>
10862 ldap_open("foobar",1234);
10867 if ac_fn_c_try_link "$LINENO"; then :
10868 gnupg_cv_func_ldap_init=yes
10870 gnupg_cv_func_ldap_init=no
10872 rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10875 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10877 if test $gnupg_cv_func_ldap_init = no; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10879 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h. */
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="W32CE"
11143 PRINTABLE_OS_NAME="MingW32"
11146 PRINTABLE_OS_NAME="Cygwin"
11148 i?86-emx-os2 | i?86-*-os2*emx )
11149 PRINTABLE_OS_NAME="OS/2"
11151 i?86-*-msdosdjgpp*)
11152 PRINTABLE_OS_NAME="MSDOS/DJGPP"
11156 PRINTABLE_OS_NAME="GNU/Linux"
11159 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11163 cat >>confdefs.h <<_ACEOF
11164 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11170 # Checking for iconv
11172 if test "$require_iconv" = yes; then
11174 if test "X$prefix" = "XNONE"; then
11175 acl_final_prefix="$ac_default_prefix"
11177 acl_final_prefix="$prefix"
11179 if test "X$exec_prefix" = "XNONE"; then
11180 acl_final_exec_prefix='${prefix}'
11182 acl_final_exec_prefix="$exec_prefix"
11184 acl_save_prefix="$prefix"
11185 prefix="$acl_final_prefix"
11186 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11187 prefix="$acl_save_prefix"
11190 # Check whether --with-gnu-ld was given.
11191 if test "${with_gnu_ld+set}" = set; then :
11192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11197 # Prepare PATH_SEPARATOR.
11198 # The user is always right.
11199 if test "${PATH_SEPARATOR+set}" != set; then
11200 echo "#! /bin/sh" >conf$$.sh
11201 echo "exit 0" >>conf$$.sh
11203 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11211 if test "$GCC" = yes; then
11212 # Check if gcc -print-prog-name=ld gives a path.
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11214 $as_echo_n "checking for ld used by GCC... " >&6; }
11217 # gcc leaves a trailing carriage return which upsets mingw
11218 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11220 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11223 # Accept absolute paths.
11224 [\\/]* | [A-Za-z]:[\\/]*)
11225 re_direlt='/[^/][^/]*/\.\./'
11226 # Canonicalize the path of ld
11227 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11228 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11229 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11231 test -z "$LD" && LD="$ac_prog"
11234 # If it fails, then pretend we aren't using GCC.
11238 # If it is relative, then search for the first ld in PATH.
11239 with_gnu_ld=unknown
11242 elif test "$with_gnu_ld" = yes; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11244 $as_echo_n "checking for GNU ld... " >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11247 $as_echo_n "checking for non-GNU ld... " >&6; }
11249 if ${acl_cv_path_LD+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 if test -z "$LD"; then
11253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11254 for ac_dir in $PATH; do
11255 test -z "$ac_dir" && ac_dir=.
11256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11257 acl_cv_path_LD="$ac_dir/$ac_prog"
11258 # Check to see if the program is GNU ld. I'd rather use --version,
11259 # but apparently some GNU ld's only accept -v.
11260 # Break only if it was the GNU/non-GNU ld that we prefer.
11261 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11262 *GNU* | *'with BFD'*)
11263 test "$with_gnu_ld" != no && break ;;
11265 test "$with_gnu_ld" != yes && break ;;
11271 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11275 LD="$acl_cv_path_LD"
11276 if test -n "$LD"; then
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11278 $as_echo "$LD" >&6; }
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281 $as_echo "no" >&6; }
11283 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11285 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11286 if ${acl_cv_prog_gnu_ld+:} false; then :
11287 $as_echo_n "(cached) " >&6
11289 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11290 case `$LD -v 2>&1 </dev/null` in
11291 *GNU* | *'with BFD'*)
11292 acl_cv_prog_gnu_ld=yes ;;
11294 acl_cv_prog_gnu_ld=no ;;
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11298 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11299 with_gnu_ld=$acl_cv_prog_gnu_ld
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11305 $as_echo_n "checking for shared library run path origin... " >&6; }
11306 if ${acl_cv_rpath+:} false; then :
11307 $as_echo_n "(cached) " >&6
11310 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11311 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11313 rm -f ./conftest.sh
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11318 $as_echo "$acl_cv_rpath" >&6; }
11320 acl_libext="$acl_cv_libext"
11321 acl_shlibext="$acl_cv_shlibext"
11322 acl_libname_spec="$acl_cv_libname_spec"
11323 acl_library_names_spec="$acl_cv_library_names_spec"
11324 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11325 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11326 acl_hardcode_direct="$acl_cv_hardcode_direct"
11327 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11328 # Check whether --enable-rpath was given.
11329 if test "${enable_rpath+set}" = set; then :
11330 enableval=$enable_rpath; :
11338 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11339 if test -n "$searchpath"; then
11340 acl_save_IFS="${IFS= }"; IFS=":"
11341 for searchdir in $searchpath; do
11342 if test -d "$searchdir"; then
11343 case "$searchdir" in
11344 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11345 *) searchdir=`cd "$searchdir" && pwd`
11346 case "$searchdir" in
11347 */lib64 ) acl_libdirstem=lib64 ;;
11352 IFS="$acl_save_IFS"
11365 acl_save_prefix="$prefix"
11366 prefix="$acl_final_prefix"
11367 acl_save_exec_prefix="$exec_prefix"
11368 exec_prefix="$acl_final_exec_prefix"
11370 eval additional_includedir=\"$includedir\"
11371 eval additional_libdir=\"$libdir\"
11373 exec_prefix="$acl_save_exec_prefix"
11374 prefix="$acl_save_prefix"
11377 # Check whether --with-libiconv-prefix was given.
11378 if test "${with_libiconv_prefix+set}" = set; then :
11379 withval=$with_libiconv_prefix;
11380 if test "X$withval" = "Xno"; then
11383 if test "X$withval" = "X"; then
11385 acl_save_prefix="$prefix"
11386 prefix="$acl_final_prefix"
11387 acl_save_exec_prefix="$exec_prefix"
11388 exec_prefix="$acl_final_exec_prefix"
11390 eval additional_includedir=\"$includedir\"
11391 eval additional_libdir=\"$libdir\"
11393 exec_prefix="$acl_save_exec_prefix"
11394 prefix="$acl_save_prefix"
11397 additional_includedir="$withval/include"
11398 additional_libdir="$withval/$acl_libdirstem"
11410 names_already_handled=
11411 names_next_round='iconv '
11412 while test -n "$names_next_round"; do
11413 names_this_round="$names_next_round"
11415 for name in $names_this_round; do
11417 for n in $names_already_handled; do
11418 if test "$n" = "$name"; then
11419 already_handled=yes
11423 if test -z "$already_handled"; then
11424 names_already_handled="$names_already_handled $name"
11425 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11426 eval value=\"\$HAVE_LIB$uppername\"
11427 if test -n "$value"; then
11428 if test "$value" = yes; then
11429 eval value=\"\$LIB$uppername\"
11430 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11431 eval value=\"\$LTLIB$uppername\"
11432 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11441 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11442 if test -n "$acl_shlibext"; then
11443 shrext=".$acl_shlibext" # typically: shrext=.so
11447 if test $use_additional = yes; then
11448 dir="$additional_libdir"
11449 if test -n "$acl_shlibext"; then
11450 if test -f "$dir/$libname$shrext"; then
11452 found_so="$dir/$libname$shrext"
11454 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11455 ver=`(cd "$dir" && \
11456 for f in "$libname$shrext".*; do echo "$f"; done \
11457 | sed -e "s,^$libname$shrext\\\\.,," \
11458 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11459 | sed 1q ) 2>/dev/null`
11460 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11462 found_so="$dir/$libname$shrext.$ver"
11465 eval library_names=\"$acl_library_names_spec\"
11466 for f in $library_names; do
11467 if test -f "$dir/$f"; then
11476 if test "X$found_dir" = "X"; then
11477 if test -f "$dir/$libname.$acl_libext"; then
11479 found_a="$dir/$libname.$acl_libext"
11482 if test "X$found_dir" != "X"; then
11483 if test -f "$dir/$libname.la"; then
11484 found_la="$dir/$libname.la"
11488 if test "X$found_dir" = "X"; then
11489 for x in $LDFLAGS $LTLIBICONV; do
11491 acl_save_prefix="$prefix"
11492 prefix="$acl_final_prefix"
11493 acl_save_exec_prefix="$exec_prefix"
11494 exec_prefix="$acl_final_exec_prefix"
11496 exec_prefix="$acl_save_exec_prefix"
11497 prefix="$acl_save_prefix"
11501 dir=`echo "X$x" | sed -e 's/^X-L//'`
11502 if test -n "$acl_shlibext"; then
11503 if test -f "$dir/$libname$shrext"; then
11505 found_so="$dir/$libname$shrext"
11507 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11508 ver=`(cd "$dir" && \
11509 for f in "$libname$shrext".*; do echo "$f"; done \
11510 | sed -e "s,^$libname$shrext\\\\.,," \
11511 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11512 | sed 1q ) 2>/dev/null`
11513 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11515 found_so="$dir/$libname$shrext.$ver"
11518 eval library_names=\"$acl_library_names_spec\"
11519 for f in $library_names; do
11520 if test -f "$dir/$f"; then
11529 if test "X$found_dir" = "X"; then
11530 if test -f "$dir/$libname.$acl_libext"; then
11532 found_a="$dir/$libname.$acl_libext"
11535 if test "X$found_dir" != "X"; then
11536 if test -f "$dir/$libname.la"; then
11537 found_la="$dir/$libname.la"
11542 if test "X$found_dir" != "X"; then
11547 if test "X$found_dir" != "X"; then
11548 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11549 if test "X$found_so" != "X"; then
11550 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11551 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11554 for x in $ltrpathdirs; do
11555 if test "X$x" = "X$found_dir"; then
11560 if test -z "$haveit"; then
11561 ltrpathdirs="$ltrpathdirs $found_dir"
11563 if test "$acl_hardcode_direct" = yes; then
11564 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11566 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11569 for x in $rpathdirs; do
11570 if test "X$x" = "X$found_dir"; then
11575 if test -z "$haveit"; then
11576 rpathdirs="$rpathdirs $found_dir"
11580 for x in $LDFLAGS $LIBICONV; do
11582 acl_save_prefix="$prefix"
11583 prefix="$acl_final_prefix"
11584 acl_save_exec_prefix="$exec_prefix"
11585 exec_prefix="$acl_final_exec_prefix"
11587 exec_prefix="$acl_save_exec_prefix"
11588 prefix="$acl_save_prefix"
11590 if test "X$x" = "X-L$found_dir"; then
11595 if test -z "$haveit"; then
11596 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11598 if test "$acl_hardcode_minus_L" != no; then
11599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11601 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11607 if test "X$found_a" != "X"; then
11608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11610 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11613 additional_includedir=
11614 case "$found_dir" in
11615 */$acl_libdirstem | */$acl_libdirstem/)
11616 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11617 LIBICONV_PREFIX="$basedir"
11618 additional_includedir="$basedir/include"
11621 if test "X$additional_includedir" != "X"; then
11622 if test "X$additional_includedir" != "X/usr/include"; then
11624 if test "X$additional_includedir" = "X/usr/local/include"; then
11625 if test -n "$GCC"; then
11627 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11631 if test -z "$haveit"; then
11632 for x in $CPPFLAGS $INCICONV; do
11634 acl_save_prefix="$prefix"
11635 prefix="$acl_final_prefix"
11636 acl_save_exec_prefix="$exec_prefix"
11637 exec_prefix="$acl_final_exec_prefix"
11639 exec_prefix="$acl_save_exec_prefix"
11640 prefix="$acl_save_prefix"
11642 if test "X$x" = "X-I$additional_includedir"; then
11647 if test -z "$haveit"; then
11648 if test -d "$additional_includedir"; then
11649 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11655 if test -n "$found_la"; then
11656 save_libdir="$libdir"
11657 case "$found_la" in
11658 */* | *\\*) . "$found_la" ;;
11659 *) . "./$found_la" ;;
11661 libdir="$save_libdir"
11662 for dep in $dependency_libs; do
11665 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11666 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11668 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11669 if test -n "$GCC"; then
11671 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11675 if test -z "$haveit"; then
11677 for x in $LDFLAGS $LIBICONV; do
11679 acl_save_prefix="$prefix"
11680 prefix="$acl_final_prefix"
11681 acl_save_exec_prefix="$exec_prefix"
11682 exec_prefix="$acl_final_exec_prefix"
11684 exec_prefix="$acl_save_exec_prefix"
11685 prefix="$acl_save_prefix"
11687 if test "X$x" = "X-L$additional_libdir"; then
11692 if test -z "$haveit"; then
11693 if test -d "$additional_libdir"; then
11694 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11698 for x in $LDFLAGS $LTLIBICONV; do
11700 acl_save_prefix="$prefix"
11701 prefix="$acl_final_prefix"
11702 acl_save_exec_prefix="$exec_prefix"
11703 exec_prefix="$acl_final_exec_prefix"
11705 exec_prefix="$acl_save_exec_prefix"
11706 prefix="$acl_save_prefix"
11708 if test "X$x" = "X-L$additional_libdir"; then
11713 if test -z "$haveit"; then
11714 if test -d "$additional_libdir"; then
11715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11722 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11723 if test "$enable_rpath" != no; then
11725 for x in $rpathdirs; do
11726 if test "X$x" = "X$dir"; then
11731 if test -z "$haveit"; then
11732 rpathdirs="$rpathdirs $dir"
11735 for x in $ltrpathdirs; do
11736 if test "X$x" = "X$dir"; then
11741 if test -z "$haveit"; then
11742 ltrpathdirs="$ltrpathdirs $dir"
11747 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11750 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11753 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11754 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11760 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11761 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11767 if test "X$rpathdirs" != "X"; then
11768 if test -n "$acl_hardcode_libdir_separator"; then
11770 for found_dir in $rpathdirs; do
11771 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11773 acl_save_libdir="$libdir"
11775 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11776 libdir="$acl_save_libdir"
11777 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11779 for found_dir in $rpathdirs; do
11780 acl_save_libdir="$libdir"
11781 libdir="$found_dir"
11782 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11783 libdir="$acl_save_libdir"
11784 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11788 if test "X$ltrpathdirs" != "X"; then
11789 for found_dir in $ltrpathdirs; do
11790 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11800 am_save_CPPFLAGS="$CPPFLAGS"
11802 for element in $INCICONV; do
11804 for x in $CPPFLAGS; do
11806 acl_save_prefix="$prefix"
11807 prefix="$acl_final_prefix"
11808 acl_save_exec_prefix="$exec_prefix"
11809 exec_prefix="$acl_final_exec_prefix"
11811 exec_prefix="$acl_save_exec_prefix"
11812 prefix="$acl_save_prefix"
11814 if test "X$x" = "X$element"; then
11819 if test -z "$haveit"; then
11820 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11826 $as_echo_n "checking for iconv... " >&6; }
11827 if ${am_cv_func_iconv+:} false; then :
11828 $as_echo_n "(cached) " >&6
11831 am_cv_func_iconv="no, consider installing GNU libiconv"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 #include <stdlib.h>
11842 iconv_t cd = iconv_open("","");
11843 iconv(cd,NULL,NULL,NULL,NULL);
11849 if ac_fn_c_try_link "$LINENO"; then :
11850 am_cv_func_iconv=yes
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 if test "$am_cv_func_iconv" != yes; then
11855 am_save_LIBS="$LIBS"
11856 LIBS="$LIBS $LIBICONV"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 #include <stdlib.h>
11866 iconv_t cd = iconv_open("","");
11867 iconv(cd,NULL,NULL,NULL,NULL);
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 am_cv_lib_iconv=yes
11875 am_cv_func_iconv=yes
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS="$am_save_LIBS"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11884 $as_echo "$am_cv_func_iconv" >&6; }
11885 if test "$am_cv_func_iconv" = yes; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11887 $as_echo_n "checking for working iconv... " >&6; }
11888 if ${am_cv_func_iconv_works+:} false; then :
11889 $as_echo_n "(cached) " >&6
11892 am_save_LIBS="$LIBS"
11893 if test $am_cv_lib_iconv = yes; then
11894 LIBS="$LIBS $LIBICONV"
11896 am_cv_func_iconv_works=no
11897 for ac_iconv_const in '' 'const'; do
11898 if test "$cross_compiling" = yes; then :
11900 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11901 *) am_cv_func_iconv_works="guessing yes" ;;
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11908 #include <string.h>
11910 #ifndef ICONV_CONST
11911 # define ICONV_CONST $ac_iconv_const
11918 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11921 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11922 if (cd_utf8_to_88591 != (iconv_t)(-1))
11924 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11926 ICONV_CONST char *inptr = input;
11927 size_t inbytesleft = strlen (input);
11928 char *outptr = buf;
11929 size_t outbytesleft = sizeof (buf);
11930 size_t res = iconv (cd_utf8_to_88591,
11931 &inptr, &inbytesleft,
11932 &outptr, &outbytesleft);
11935 iconv_close (cd_utf8_to_88591);
11938 /* Test against Solaris 10 bug: Failures are not distinguishable from
11939 successful returns. */
11941 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11942 if (cd_ascii_to_88591 != (iconv_t)(-1))
11944 static ICONV_CONST char input[] = "\263";
11946 ICONV_CONST char *inptr = input;
11947 size_t inbytesleft = strlen (input);
11948 char *outptr = buf;
11949 size_t outbytesleft = sizeof (buf);
11950 size_t res = iconv (cd_ascii_to_88591,
11951 &inptr, &inbytesleft,
11952 &outptr, &outbytesleft);
11955 iconv_close (cd_ascii_to_88591);
11958 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11960 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11961 if (cd_88591_to_utf8 != (iconv_t)(-1))
11963 static ICONV_CONST char input[] = "\304";
11964 static char buf[2] = { (char)0xDE, (char)0xAD };
11965 ICONV_CONST char *inptr = input;
11966 size_t inbytesleft = 1;
11967 char *outptr = buf;
11968 size_t outbytesleft = 1;
11969 size_t res = iconv (cd_88591_to_utf8,
11970 &inptr, &inbytesleft,
11971 &outptr, &outbytesleft);
11972 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11974 iconv_close (cd_88591_to_utf8);
11977 #if 0 /* This bug could be worked around by the caller. */
11978 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11980 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11981 if (cd_88591_to_utf8 != (iconv_t)(-1))
11983 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11985 ICONV_CONST char *inptr = input;
11986 size_t inbytesleft = strlen (input);
11987 char *outptr = buf;
11988 size_t outbytesleft = sizeof (buf);
11989 size_t res = iconv (cd_88591_to_utf8,
11990 &inptr, &inbytesleft,
11991 &outptr, &outbytesleft);
11994 iconv_close (cd_88591_to_utf8);
11998 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12001 /* Try standardized names. */
12002 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12003 /* Try IRIX, OSF/1 names. */
12004 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12005 /* Try AIX names. */
12006 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12007 /* Try HP-UX names. */
12008 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12009 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12010 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12012 if (cd1 != (iconv_t)(-1))
12014 if (cd2 != (iconv_t)(-1))
12016 if (cd3 != (iconv_t)(-1))
12018 if (cd4 != (iconv_t)(-1))
12027 if ac_fn_c_try_run "$LINENO"; then :
12028 am_cv_func_iconv_works=yes
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12031 conftest.$ac_objext conftest.beam conftest.$ac_ext
12034 test "$am_cv_func_iconv_works" = no || break
12036 LIBS="$am_save_LIBS"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12040 $as_echo "$am_cv_func_iconv_works" >&6; }
12041 case "$am_cv_func_iconv_works" in
12042 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12043 *) am_func_iconv=yes ;;
12046 am_func_iconv=no am_cv_lib_iconv=no
12048 if test "$am_func_iconv" = yes; then
12050 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12053 if test "$am_cv_lib_iconv" = yes; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12055 $as_echo_n "checking how to link with libiconv... " >&6; }
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12057 $as_echo "$LIBICONV" >&6; }
12059 CPPFLAGS="$am_save_CPPFLAGS"
12066 if test "$am_cv_func_iconv" = yes; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12068 $as_echo_n "checking for iconv declaration... " >&6; }
12069 if ${am_cv_proto_iconv+:} false; then :
12070 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 #include <stdlib.h>
12082 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12083 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12096 if ac_fn_c_try_compile "$LINENO"; then :
12097 am_cv_proto_iconv_arg1=""
12099 am_cv_proto_iconv_arg1="const"
12101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 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);"
12105 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12107 $am_cv_proto_iconv" >&5
12109 $am_cv_proto_iconv" >&6; }
12111 am_cv_proto_iconv_arg1=""
12114 cat >>confdefs.h <<_ACEOF
12115 #define ICONV_CONST $am_cv_proto_iconv_arg1
12129 # Check for gettext
12131 # This is "GNU gnupg" - The project-id script from gettext
12132 # needs this string
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12135 $as_echo "$as_me: checking for gettext" >&6;}
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12138 $as_echo_n "checking whether NLS is requested... " >&6; }
12139 # Check whether --enable-nls was given.
12140 if test "${enable_nls+set}" = set; then :
12141 enableval=$enable_nls; USE_NLS=$enableval
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12147 $as_echo "$USE_NLS" >&6; }
12152 GETTEXT_MACRO_VERSION=0.17
12157 # Prepare PATH_SEPARATOR.
12158 # The user is always right.
12159 if test "${PATH_SEPARATOR+set}" != set; then
12160 echo "#! /bin/sh" >conf$$.sh
12161 echo "exit 0" >>conf$$.sh
12163 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12171 # Find out how to test for executable files. Don't use a zero-byte file,
12172 # as systems may use methods other than mode bits to determine executability.
12173 cat >conf$$.file <<_ASEOF
12177 chmod +x conf$$.file
12178 if test -x conf$$.file >/dev/null 2>&1; then
12179 ac_executable_p="test -x"
12181 ac_executable_p="test -f"
12185 # Extract the first word of "msgfmt", so it can be a program name with args.
12186 set dummy msgfmt; ac_word=$2
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if ${ac_cv_path_MSGFMT+:} false; then :
12190 $as_echo_n "(cached) " >&6
12194 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12197 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12198 for ac_dir in $PATH; do
12200 test -z "$ac_dir" && ac_dir=.
12201 for ac_exec_ext in '' $ac_executable_extensions; do
12202 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12203 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12204 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12205 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12206 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12213 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12217 MSGFMT="$ac_cv_path_MSGFMT"
12218 if test "$MSGFMT" != ":"; then
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12220 $as_echo "$MSGFMT" >&6; }
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223 $as_echo "no" >&6; }
12226 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12227 set dummy gmsgfmt; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_path_GMSGFMT+:} false; then :
12231 $as_echo_n "(cached) " >&6
12235 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12257 GMSGFMT=$ac_cv_path_GMSGFMT
12258 if test -n "$GMSGFMT"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12260 $as_echo "$GMSGFMT" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12268 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12269 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12270 *) MSGFMT_015=$MSGFMT ;;
12273 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12274 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12275 *) GMSGFMT_015=$GMSGFMT ;;
12280 # Prepare PATH_SEPARATOR.
12281 # The user is always right.
12282 if test "${PATH_SEPARATOR+set}" != set; then
12283 echo "#! /bin/sh" >conf$$.sh
12284 echo "exit 0" >>conf$$.sh
12286 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12294 # Find out how to test for executable files. Don't use a zero-byte file,
12295 # as systems may use methods other than mode bits to determine executability.
12296 cat >conf$$.file <<_ASEOF
12300 chmod +x conf$$.file
12301 if test -x conf$$.file >/dev/null 2>&1; then
12302 ac_executable_p="test -x"
12304 ac_executable_p="test -f"
12308 # Extract the first word of "xgettext", so it can be a program name with args.
12309 set dummy xgettext; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_path_XGETTEXT+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 case "$XGETTEXT" in
12317 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12320 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12321 for ac_dir in $PATH; do
12323 test -z "$ac_dir" && ac_dir=.
12324 for ac_exec_ext in '' $ac_executable_extensions; do
12325 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12326 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12327 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12328 (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
12329 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12336 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12340 XGETTEXT="$ac_cv_path_XGETTEXT"
12341 if test "$XGETTEXT" != ":"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12343 $as_echo "$XGETTEXT" >&6; }
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12351 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12352 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12353 *) XGETTEXT_015=$XGETTEXT ;;
12358 # Prepare PATH_SEPARATOR.
12359 # The user is always right.
12360 if test "${PATH_SEPARATOR+set}" != set; then
12361 echo "#! /bin/sh" >conf$$.sh
12362 echo "exit 0" >>conf$$.sh
12364 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12372 # Find out how to test for executable files. Don't use a zero-byte file,
12373 # as systems may use methods other than mode bits to determine executability.
12374 cat >conf$$.file <<_ASEOF
12378 chmod +x conf$$.file
12379 if test -x conf$$.file >/dev/null 2>&1; then
12380 ac_executable_p="test -x"
12382 ac_executable_p="test -f"
12386 # Extract the first word of "msgmerge", so it can be a program name with args.
12387 set dummy msgmerge; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_path_MSGMERGE+:} false; then :
12391 $as_echo_n "(cached) " >&6
12393 case "$MSGMERGE" in
12395 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12398 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12399 for ac_dir in $PATH; do
12401 test -z "$ac_dir" && ac_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12404 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12405 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12406 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12413 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12417 MSGMERGE="$ac_cv_path_MSGMERGE"
12418 if test "$MSGMERGE" != ":"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12420 $as_echo "$MSGMERGE" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423 $as_echo "no" >&6; }
12427 test -n "$localedir" || localedir='${datadir}/locale'
12430 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12433 ac_config_commands="$ac_config_commands po-directories"
12437 if test "$try_gettext" = yes; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12462 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12463 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12464 $as_echo_n "(cached) " >&6
12466 gt_save_LIBS="$LIBS"
12467 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 #include <CoreFoundation/CFPreferences.h>
12474 CFPreferencesCopyAppValue(NULL, NULL)
12479 if ac_fn_c_try_link "$LINENO"; then :
12480 gt_cv_func_CFPreferencesCopyAppValue=yes
12482 gt_cv_func_CFPreferencesCopyAppValue=no
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 LIBS="$gt_save_LIBS"
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12489 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12490 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12492 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12496 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12497 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12498 $as_echo_n "(cached) " >&6
12500 gt_save_LIBS="$LIBS"
12501 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 #include <CoreFoundation/CFLocale.h>
12508 CFLocaleCopyCurrent();
12513 if ac_fn_c_try_link "$LINENO"; then :
12514 gt_cv_func_CFLocaleCopyCurrent=yes
12516 gt_cv_func_CFLocaleCopyCurrent=no
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
12520 LIBS="$gt_save_LIBS"
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12523 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12524 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12526 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12530 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12531 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12543 case " $gt_needs " in
12544 *" need-formatstring-macros "*) gt_api_version=3 ;;
12545 *" need-ngettext "*) gt_api_version=2 ;;
12546 *) gt_api_version=1 ;;
12548 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12549 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12551 if test "$USE_NLS" = "yes"; then
12552 gt_use_preinstalled_gnugettext=no
12555 if test $gt_api_version -ge 3; then
12556 gt_revision_test_code='
12557 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12558 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12560 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12563 gt_revision_test_code=
12565 if test $gt_api_version -ge 2; then
12566 gt_expression_test_code=' + * ngettext ("", "", 0)'
12568 gt_expression_test_code=
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12572 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12573 if eval \${$gt_func_gnugettext_libc+:} false; then :
12574 $as_echo_n "(cached) " >&6
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 #include <libintl.h>
12580 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12581 extern int _nl_msg_cat_cntr;
12582 extern int *_nl_domain_bindings;
12583 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12585 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12587 $gt_revision_test_code
12593 bindtextdomain ("", "");
12594 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12600 if ac_fn_c_try_link "$LINENO"; then :
12601 eval "$gt_func_gnugettext_libc=yes"
12603 eval "$gt_func_gnugettext_libc=no"
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12608 eval ac_res=\$$gt_func_gnugettext_libc
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12610 $as_echo "$ac_res" >&6; }
12612 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12618 am_save_CPPFLAGS="$CPPFLAGS"
12620 for element in $INCICONV; do
12622 for x in $CPPFLAGS; do
12624 acl_save_prefix="$prefix"
12625 prefix="$acl_final_prefix"
12626 acl_save_exec_prefix="$exec_prefix"
12627 exec_prefix="$acl_final_exec_prefix"
12629 exec_prefix="$acl_save_exec_prefix"
12630 prefix="$acl_save_prefix"
12632 if test "X$x" = "X$element"; then
12637 if test -z "$haveit"; then
12638 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12644 $as_echo_n "checking for iconv... " >&6; }
12645 if ${am_cv_func_iconv+:} false; then :
12646 $as_echo_n "(cached) " >&6
12649 am_cv_func_iconv="no, consider installing GNU libiconv"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12654 #include <stdlib.h>
12660 iconv_t cd = iconv_open("","");
12661 iconv(cd,NULL,NULL,NULL,NULL);
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 am_cv_func_iconv=yes
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 if test "$am_cv_func_iconv" != yes; then
12673 am_save_LIBS="$LIBS"
12674 LIBS="$LIBS $LIBICONV"
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12678 #include <stdlib.h>
12684 iconv_t cd = iconv_open("","");
12685 iconv(cd,NULL,NULL,NULL,NULL);
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 am_cv_lib_iconv=yes
12693 am_cv_func_iconv=yes
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LIBS="$am_save_LIBS"
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12702 $as_echo "$am_cv_func_iconv" >&6; }
12703 if test "$am_cv_func_iconv" = yes; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12705 $as_echo_n "checking for working iconv... " >&6; }
12706 if ${am_cv_func_iconv_works+:} false; then :
12707 $as_echo_n "(cached) " >&6
12710 am_save_LIBS="$LIBS"
12711 if test $am_cv_lib_iconv = yes; then
12712 LIBS="$LIBS $LIBICONV"
12714 am_cv_func_iconv_works=no
12715 for ac_iconv_const in '' 'const'; do
12716 if test "$cross_compiling" = yes; then :
12718 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12719 *) am_cv_func_iconv_works="guessing yes" ;;
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12726 #include <string.h>
12728 #ifndef ICONV_CONST
12729 # define ICONV_CONST $ac_iconv_const
12736 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12739 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12740 if (cd_utf8_to_88591 != (iconv_t)(-1))
12742 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12744 ICONV_CONST char *inptr = input;
12745 size_t inbytesleft = strlen (input);
12746 char *outptr = buf;
12747 size_t outbytesleft = sizeof (buf);
12748 size_t res = iconv (cd_utf8_to_88591,
12749 &inptr, &inbytesleft,
12750 &outptr, &outbytesleft);
12753 iconv_close (cd_utf8_to_88591);
12756 /* Test against Solaris 10 bug: Failures are not distinguishable from
12757 successful returns. */
12759 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12760 if (cd_ascii_to_88591 != (iconv_t)(-1))
12762 static ICONV_CONST char input[] = "\263";
12764 ICONV_CONST char *inptr = input;
12765 size_t inbytesleft = strlen (input);
12766 char *outptr = buf;
12767 size_t outbytesleft = sizeof (buf);
12768 size_t res = iconv (cd_ascii_to_88591,
12769 &inptr, &inbytesleft,
12770 &outptr, &outbytesleft);
12773 iconv_close (cd_ascii_to_88591);
12776 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12778 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12779 if (cd_88591_to_utf8 != (iconv_t)(-1))
12781 static ICONV_CONST char input[] = "\304";
12782 static char buf[2] = { (char)0xDE, (char)0xAD };
12783 ICONV_CONST char *inptr = input;
12784 size_t inbytesleft = 1;
12785 char *outptr = buf;
12786 size_t outbytesleft = 1;
12787 size_t res = iconv (cd_88591_to_utf8,
12788 &inptr, &inbytesleft,
12789 &outptr, &outbytesleft);
12790 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12792 iconv_close (cd_88591_to_utf8);
12795 #if 0 /* This bug could be worked around by the caller. */
12796 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12798 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12799 if (cd_88591_to_utf8 != (iconv_t)(-1))
12801 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12803 ICONV_CONST char *inptr = input;
12804 size_t inbytesleft = strlen (input);
12805 char *outptr = buf;
12806 size_t outbytesleft = sizeof (buf);
12807 size_t res = iconv (cd_88591_to_utf8,
12808 &inptr, &inbytesleft,
12809 &outptr, &outbytesleft);
12812 iconv_close (cd_88591_to_utf8);
12816 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12819 /* Try standardized names. */
12820 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12821 /* Try IRIX, OSF/1 names. */
12822 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12823 /* Try AIX names. */
12824 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12825 /* Try HP-UX names. */
12826 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12827 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12828 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12830 if (cd1 != (iconv_t)(-1))
12832 if (cd2 != (iconv_t)(-1))
12834 if (cd3 != (iconv_t)(-1))
12836 if (cd4 != (iconv_t)(-1))
12845 if ac_fn_c_try_run "$LINENO"; then :
12846 am_cv_func_iconv_works=yes
12848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12849 conftest.$ac_objext conftest.beam conftest.$ac_ext
12852 test "$am_cv_func_iconv_works" = no || break
12854 LIBS="$am_save_LIBS"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12858 $as_echo "$am_cv_func_iconv_works" >&6; }
12859 case "$am_cv_func_iconv_works" in
12860 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12861 *) am_func_iconv=yes ;;
12864 am_func_iconv=no am_cv_lib_iconv=no
12866 if test "$am_func_iconv" = yes; then
12868 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12871 if test "$am_cv_lib_iconv" = yes; then
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12873 $as_echo_n "checking how to link with libiconv... " >&6; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12875 $as_echo "$LIBICONV" >&6; }
12877 CPPFLAGS="$am_save_CPPFLAGS"
12891 acl_save_prefix="$prefix"
12892 prefix="$acl_final_prefix"
12893 acl_save_exec_prefix="$exec_prefix"
12894 exec_prefix="$acl_final_exec_prefix"
12896 eval additional_includedir=\"$includedir\"
12897 eval additional_libdir=\"$libdir\"
12899 exec_prefix="$acl_save_exec_prefix"
12900 prefix="$acl_save_prefix"
12903 # Check whether --with-libintl-prefix was given.
12904 if test "${with_libintl_prefix+set}" = set; then :
12905 withval=$with_libintl_prefix;
12906 if test "X$withval" = "Xno"; then
12909 if test "X$withval" = "X"; then
12911 acl_save_prefix="$prefix"
12912 prefix="$acl_final_prefix"
12913 acl_save_exec_prefix="$exec_prefix"
12914 exec_prefix="$acl_final_exec_prefix"
12916 eval additional_includedir=\"$includedir\"
12917 eval additional_libdir=\"$libdir\"
12919 exec_prefix="$acl_save_exec_prefix"
12920 prefix="$acl_save_prefix"
12923 additional_includedir="$withval/include"
12924 additional_libdir="$withval/$acl_libdirstem"
12936 names_already_handled=
12937 names_next_round='intl '
12938 while test -n "$names_next_round"; do
12939 names_this_round="$names_next_round"
12941 for name in $names_this_round; do
12943 for n in $names_already_handled; do
12944 if test "$n" = "$name"; then
12945 already_handled=yes
12949 if test -z "$already_handled"; then
12950 names_already_handled="$names_already_handled $name"
12951 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12952 eval value=\"\$HAVE_LIB$uppername\"
12953 if test -n "$value"; then
12954 if test "$value" = yes; then
12955 eval value=\"\$LIB$uppername\"
12956 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12957 eval value=\"\$LTLIB$uppername\"
12958 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12967 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12968 if test -n "$acl_shlibext"; then
12969 shrext=".$acl_shlibext" # typically: shrext=.so
12973 if test $use_additional = yes; then
12974 dir="$additional_libdir"
12975 if test -n "$acl_shlibext"; then
12976 if test -f "$dir/$libname$shrext"; then
12978 found_so="$dir/$libname$shrext"
12980 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12981 ver=`(cd "$dir" && \
12982 for f in "$libname$shrext".*; do echo "$f"; done \
12983 | sed -e "s,^$libname$shrext\\\\.,," \
12984 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12985 | sed 1q ) 2>/dev/null`
12986 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12988 found_so="$dir/$libname$shrext.$ver"
12991 eval library_names=\"$acl_library_names_spec\"
12992 for f in $library_names; do
12993 if test -f "$dir/$f"; then
13002 if test "X$found_dir" = "X"; then
13003 if test -f "$dir/$libname.$acl_libext"; then
13005 found_a="$dir/$libname.$acl_libext"
13008 if test "X$found_dir" != "X"; then
13009 if test -f "$dir/$libname.la"; then
13010 found_la="$dir/$libname.la"
13014 if test "X$found_dir" = "X"; then
13015 for x in $LDFLAGS $LTLIBINTL; do
13017 acl_save_prefix="$prefix"
13018 prefix="$acl_final_prefix"
13019 acl_save_exec_prefix="$exec_prefix"
13020 exec_prefix="$acl_final_exec_prefix"
13022 exec_prefix="$acl_save_exec_prefix"
13023 prefix="$acl_save_prefix"
13027 dir=`echo "X$x" | sed -e 's/^X-L//'`
13028 if test -n "$acl_shlibext"; then
13029 if test -f "$dir/$libname$shrext"; then
13031 found_so="$dir/$libname$shrext"
13033 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13034 ver=`(cd "$dir" && \
13035 for f in "$libname$shrext".*; do echo "$f"; done \
13036 | sed -e "s,^$libname$shrext\\\\.,," \
13037 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13038 | sed 1q ) 2>/dev/null`
13039 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13041 found_so="$dir/$libname$shrext.$ver"
13044 eval library_names=\"$acl_library_names_spec\"
13045 for f in $library_names; do
13046 if test -f "$dir/$f"; then
13055 if test "X$found_dir" = "X"; then
13056 if test -f "$dir/$libname.$acl_libext"; then
13058 found_a="$dir/$libname.$acl_libext"
13061 if test "X$found_dir" != "X"; then
13062 if test -f "$dir/$libname.la"; then
13063 found_la="$dir/$libname.la"
13068 if test "X$found_dir" != "X"; then
13073 if test "X$found_dir" != "X"; then
13074 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13075 if test "X$found_so" != "X"; then
13076 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13080 for x in $ltrpathdirs; do
13081 if test "X$x" = "X$found_dir"; then
13086 if test -z "$haveit"; then
13087 ltrpathdirs="$ltrpathdirs $found_dir"
13089 if test "$acl_hardcode_direct" = yes; then
13090 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13092 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13093 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13095 for x in $rpathdirs; do
13096 if test "X$x" = "X$found_dir"; then
13101 if test -z "$haveit"; then
13102 rpathdirs="$rpathdirs $found_dir"
13106 for x in $LDFLAGS $LIBINTL; do
13108 acl_save_prefix="$prefix"
13109 prefix="$acl_final_prefix"
13110 acl_save_exec_prefix="$exec_prefix"
13111 exec_prefix="$acl_final_exec_prefix"
13113 exec_prefix="$acl_save_exec_prefix"
13114 prefix="$acl_save_prefix"
13116 if test "X$x" = "X-L$found_dir"; then
13121 if test -z "$haveit"; then
13122 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13124 if test "$acl_hardcode_minus_L" != no; then
13125 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13127 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13133 if test "X$found_a" != "X"; then
13134 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13136 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13139 additional_includedir=
13140 case "$found_dir" in
13141 */$acl_libdirstem | */$acl_libdirstem/)
13142 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13143 LIBINTL_PREFIX="$basedir"
13144 additional_includedir="$basedir/include"
13147 if test "X$additional_includedir" != "X"; then
13148 if test "X$additional_includedir" != "X/usr/include"; then
13150 if test "X$additional_includedir" = "X/usr/local/include"; then
13151 if test -n "$GCC"; then
13153 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13157 if test -z "$haveit"; then
13158 for x in $CPPFLAGS $INCINTL; do
13160 acl_save_prefix="$prefix"
13161 prefix="$acl_final_prefix"
13162 acl_save_exec_prefix="$exec_prefix"
13163 exec_prefix="$acl_final_exec_prefix"
13165 exec_prefix="$acl_save_exec_prefix"
13166 prefix="$acl_save_prefix"
13168 if test "X$x" = "X-I$additional_includedir"; then
13173 if test -z "$haveit"; then
13174 if test -d "$additional_includedir"; then
13175 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13181 if test -n "$found_la"; then
13182 save_libdir="$libdir"
13183 case "$found_la" in
13184 */* | *\\*) . "$found_la" ;;
13185 *) . "./$found_la" ;;
13187 libdir="$save_libdir"
13188 for dep in $dependency_libs; do
13191 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13192 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13194 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13195 if test -n "$GCC"; then
13197 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13201 if test -z "$haveit"; then
13203 for x in $LDFLAGS $LIBINTL; do
13205 acl_save_prefix="$prefix"
13206 prefix="$acl_final_prefix"
13207 acl_save_exec_prefix="$exec_prefix"
13208 exec_prefix="$acl_final_exec_prefix"
13210 exec_prefix="$acl_save_exec_prefix"
13211 prefix="$acl_save_prefix"
13213 if test "X$x" = "X-L$additional_libdir"; then
13218 if test -z "$haveit"; then
13219 if test -d "$additional_libdir"; then
13220 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13224 for x in $LDFLAGS $LTLIBINTL; do
13226 acl_save_prefix="$prefix"
13227 prefix="$acl_final_prefix"
13228 acl_save_exec_prefix="$exec_prefix"
13229 exec_prefix="$acl_final_exec_prefix"
13231 exec_prefix="$acl_save_exec_prefix"
13232 prefix="$acl_save_prefix"
13234 if test "X$x" = "X-L$additional_libdir"; then
13239 if test -z "$haveit"; then
13240 if test -d "$additional_libdir"; then
13241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13248 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13249 if test "$enable_rpath" != no; then
13251 for x in $rpathdirs; do
13252 if test "X$x" = "X$dir"; then
13257 if test -z "$haveit"; then
13258 rpathdirs="$rpathdirs $dir"
13261 for x in $ltrpathdirs; do
13262 if test "X$x" = "X$dir"; then
13267 if test -z "$haveit"; then
13268 ltrpathdirs="$ltrpathdirs $dir"
13273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13279 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13286 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13293 if test "X$rpathdirs" != "X"; then
13294 if test -n "$acl_hardcode_libdir_separator"; then
13296 for found_dir in $rpathdirs; do
13297 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13299 acl_save_libdir="$libdir"
13301 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13302 libdir="$acl_save_libdir"
13303 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13305 for found_dir in $rpathdirs; do
13306 acl_save_libdir="$libdir"
13307 libdir="$found_dir"
13308 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13309 libdir="$acl_save_libdir"
13310 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13314 if test "X$ltrpathdirs" != "X"; then
13315 for found_dir in $ltrpathdirs; do
13316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13321 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13322 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 gt_save_CPPFLAGS="$CPPFLAGS"
13326 CPPFLAGS="$CPPFLAGS $INCINTL"
13327 gt_save_LIBS="$LIBS"
13328 LIBS="$LIBS $LIBINTL"
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13332 #include <libintl.h>
13333 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13334 extern int _nl_msg_cat_cntr;
13339 const char *_nl_expand_alias (const char *);
13340 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13342 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13344 $gt_revision_test_code
13350 bindtextdomain ("", "");
13351 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 eval "$gt_func_gnugettext_libintl=yes"
13360 eval "$gt_func_gnugettext_libintl=no"
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13365 LIBS="$LIBS $LIBICONV"
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 #include <libintl.h>
13370 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13371 extern int _nl_msg_cat_cntr;
13376 const char *_nl_expand_alias (const char *);
13377 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13379 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13381 $gt_revision_test_code
13387 bindtextdomain ("", "");
13388 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13394 if ac_fn_c_try_link "$LINENO"; then :
13395 LIBINTL="$LIBINTL $LIBICONV"
13396 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13397 eval "$gt_func_gnugettext_libintl=yes"
13400 rm -f core conftest.err conftest.$ac_objext \
13401 conftest$ac_exeext conftest.$ac_ext
13403 CPPFLAGS="$gt_save_CPPFLAGS"
13404 LIBS="$gt_save_LIBS"
13406 eval ac_res=\$$gt_func_gnugettext_libintl
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13411 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13412 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13413 && test "$PACKAGE" != gettext-runtime \
13414 && test "$PACKAGE" != gettext-tools; }; then
13415 gt_use_preinstalled_gnugettext=yes
13424 if test -n "$INTL_MACOSX_LIBS"; then
13425 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13426 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13427 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13428 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13432 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13433 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13435 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13443 $as_echo_n "checking whether to use NLS... " >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13445 $as_echo "$USE_NLS" >&6; }
13446 if test "$USE_NLS" = "yes"; then
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13448 $as_echo_n "checking where the gettext function comes from... " >&6; }
13449 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13450 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13451 gt_source="external libintl"
13456 gt_source="included intl directory"
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13459 $as_echo "$gt_source" >&6; }
13462 if test "$USE_NLS" = "yes"; then
13464 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13465 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13467 $as_echo_n "checking how to link with libintl... " >&6; }
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13469 $as_echo "$LIBINTL" >&6; }
13471 for element in $INCINTL; do
13473 for x in $CPPFLAGS; do
13475 acl_save_prefix="$prefix"
13476 prefix="$acl_final_prefix"
13477 acl_save_exec_prefix="$exec_prefix"
13478 exec_prefix="$acl_final_exec_prefix"
13480 exec_prefix="$acl_save_exec_prefix"
13481 prefix="$acl_save_prefix"
13483 if test "X$x" = "X$element"; then
13488 if test -z "$haveit"; then
13489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13496 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13499 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13508 INTLLIBS="$LIBINTL"
13516 # gettext requires some extra checks. These really should be part of
13517 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13518 # function checks to here.
13520 for ac_func in strchr
13522 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13523 if test "x$ac_cv_func_strchr" = xyes; then :
13524 cat >>confdefs.h <<_ACEOF
13525 #define HAVE_STRCHR 1
13533 USE_INCLUDED_LIBINTL=no
13534 BUILD_INCLUDED_LIBINTL=no
13542 # We use HAVE_LANGINFO_CODESET in a couple of places.
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13545 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13546 if ${am_cv_langinfo_codeset+:} false; then :
13547 $as_echo_n "(cached) " >&6
13549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13550 /* end confdefs.h. */
13551 #include <langinfo.h>
13555 char* cs = nl_langinfo(CODESET); return !cs;
13560 if ac_fn_c_try_link "$LINENO"; then :
13561 am_cv_langinfo_codeset=yes
13563 am_cv_langinfo_codeset=no
13565 rm -f core conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13570 $as_echo "$am_cv_langinfo_codeset" >&6; }
13571 if test $am_cv_langinfo_codeset = yes; then
13573 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13578 # Checks required for our use of locales
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13581 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13582 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13583 $as_echo_n "(cached) " >&6
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h. */
13587 #include <locale.h>
13596 if ac_fn_c_try_link "$LINENO"; then :
13597 gt_cv_val_LC_MESSAGES=yes
13599 gt_cv_val_LC_MESSAGES=no
13601 rm -f core conftest.err conftest.$ac_objext \
13602 conftest$ac_exeext conftest.$ac_ext
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13605 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13606 if test $gt_cv_val_LC_MESSAGES = yes; then
13608 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13617 if test "$selinux_support" = yes ; then
13619 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13625 # Checks for header files.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13628 $as_echo "$as_me: checking for header files" >&6;}
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13630 $as_echo_n "checking for ANSI C header files... " >&6; }
13631 if ${ac_cv_header_stdc+:} false; then :
13632 $as_echo_n "(cached) " >&6
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13636 #include <stdlib.h>
13637 #include <stdarg.h>
13638 #include <string.h>
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 ac_cv_header_stdc=yes
13652 ac_cv_header_stdc=no
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13656 if test $ac_cv_header_stdc = yes; then
13657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h. */
13660 #include <string.h>
13663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13664 $EGREP "memchr" >/dev/null 2>&1; then :
13667 ac_cv_header_stdc=no
13673 if test $ac_cv_header_stdc = yes; then
13674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <stdlib.h>
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "free" >/dev/null 2>&1; then :
13684 ac_cv_header_stdc=no
13690 if test $ac_cv_header_stdc = yes; then
13691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13692 if test "$cross_compiling" = yes; then :
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 #include <stdlib.h>
13699 #if ((' ' & 0x0FF) == 0x020)
13700 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13701 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13703 # define ISLOWER(c) \
13704 (('a' <= (c) && (c) <= 'i') \
13705 || ('j' <= (c) && (c) <= 'r') \
13706 || ('s' <= (c) && (c) <= 'z'))
13707 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13710 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13715 for (i = 0; i < 256; i++)
13716 if (XOR (islower (i), ISLOWER (i))
13717 || toupper (i) != TOUPPER (i))
13722 if ac_fn_c_try_run "$LINENO"; then :
13725 ac_cv_header_stdc=no
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728 conftest.$ac_objext conftest.beam conftest.$ac_ext
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13734 $as_echo "$ac_cv_header_stdc" >&6; }
13735 if test $ac_cv_header_stdc = yes; then
13737 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13741 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13742 pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \
13743 stdint.h signal.h util.h libutil.h termios.h \
13744 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13749 cat >>confdefs.h <<_ACEOF
13750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13759 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13760 if ${ac_cv_header_time+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 #include <sys/types.h>
13766 #include <sys/time.h>
13772 if ((struct tm *) 0)
13778 if ac_fn_c_try_compile "$LINENO"; then :
13779 ac_cv_header_time=yes
13781 ac_cv_header_time=no
13783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13786 $as_echo "$ac_cv_header_time" >&6; }
13787 if test $ac_cv_header_time = yes; then
13789 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13796 # Checks for typedefs, structures, and compiler characteristics.
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13799 $as_echo "$as_me: checking for system characteristics" >&6;}
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13801 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13802 if ${ac_cv_c_const+:} false; then :
13803 $as_echo_n "(cached) " >&6
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13812 #ifndef __cplusplus
13813 /* Ultrix mips cc rejects this sort of thing. */
13814 typedef int charset[2];
13815 const charset cs = { 0, 0 };
13816 /* SunOS 4.1.1 cc rejects this. */
13817 char const *const *pcpcc;
13819 /* NEC SVR4.0.2 mips cc rejects this. */
13820 struct point {int x, y;};
13821 static struct point const zero = {0,0};
13822 /* AIX XL C 1.02.0.0 rejects this.
13823 It does not let you subtract one const X* pointer from another in
13824 an arm of an if-expression whose if-part is not a constant
13826 const char *g = "string";
13827 pcpcc = &g + (g ? g-g : 0);
13828 /* HPUX 7.0 cc rejects these. */
13830 ppc = (char**) pcpcc;
13831 pcpcc = (char const *const *) ppc;
13832 { /* SCO 3.2v4 cc rejects this sort of thing. */
13835 char const *s = 0 ? (char *) 0 : (char const *) 0;
13840 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13841 int x[] = {25, 17};
13842 const int *foo = &x[0];
13845 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13846 typedef const int *iptr;
13850 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13851 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13852 struct s { int j; const int *ap[3]; } bx;
13853 struct s *b = &bx; b->j = 5;
13855 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13856 const int foo = 10;
13857 if (!foo) return 0;
13859 return !cs[0] && !zero.x;
13866 if ac_fn_c_try_compile "$LINENO"; then :
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13874 $as_echo "$ac_cv_c_const" >&6; }
13875 if test $ac_cv_c_const = no; then
13877 $as_echo "#define const /**/" >>confdefs.h
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13882 $as_echo_n "checking for inline... " >&6; }
13883 if ${ac_cv_c_inline+:} false; then :
13884 $as_echo_n "(cached) " >&6
13887 for ac_kw in inline __inline__ __inline; do
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 #ifndef __cplusplus
13892 static $ac_kw foo_t static_foo () {return 0; }
13893 $ac_kw foo_t foo () {return 0; }
13897 if ac_fn_c_try_compile "$LINENO"; then :
13898 ac_cv_c_inline=$ac_kw
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 test "$ac_cv_c_inline" != no && break
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13906 $as_echo "$ac_cv_c_inline" >&6; }
13908 case $ac_cv_c_inline in
13911 case $ac_cv_c_inline in
13913 *) ac_val=$ac_cv_c_inline;;
13915 cat >>confdefs.h <<_ACEOF
13916 #ifndef __cplusplus
13917 #define inline $ac_val
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13924 $as_echo_n "checking for working volatile... " >&6; }
13925 if ${ac_cv_c_volatile+:} false; then :
13926 $as_echo_n "(cached) " >&6
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13936 int * volatile y = (int *) 0;
13942 if ac_fn_c_try_compile "$LINENO"; then :
13943 ac_cv_c_volatile=yes
13945 ac_cv_c_volatile=no
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13950 $as_echo "$ac_cv_c_volatile" >&6; }
13951 if test $ac_cv_c_volatile = no; then
13953 $as_echo "#define volatile /**/" >>confdefs.h
13957 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13958 if test "x$ac_cv_type_size_t" = xyes; then :
13962 cat >>confdefs.h <<_ACEOF
13963 #define size_t unsigned int
13968 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13969 if test "x$ac_cv_type_mode_t" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13979 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13980 /* NetBSD declares sys_siglist in unistd.h. */
13981 #ifdef HAVE_UNISTD_H
13982 # include <unistd.h>
13986 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
14001 for ac_header in $ac_header_list
14003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14004 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14006 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14007 cat >>confdefs.h <<_ACEOF
14008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 if test $ac_cv_header_sys_socket_h = yes; then
14022 for ac_header in winsock2.h ws2tcpip.h
14024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14025 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14027 cat >>confdefs.h <<_ACEOF
14028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14035 SYS_SOCKET_H='sys/socket.h'
14040 if test $ac_cv_header_sys_socket_h = no; then
14041 for ac_header in ws2tcpip.h
14043 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14044 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14045 cat >>confdefs.h <<_ACEOF
14046 #define HAVE_WS2TCPIP_H 1
14055 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14056 /* <sys/types.h> is not needed according to POSIX, but the
14057 <sys/socket.h> in i386-unknown-freebsd4.10 and
14058 powerpc-apple-darwin5.5 required it. */
14059 #include <sys/types.h>
14060 #if HAVE_SYS_SOCKET_H
14061 # include <sys/socket.h>
14062 #elif HAVE_WS2TCPIP_H
14063 # include <ws2tcpip.h>
14067 if test "x$ac_cv_type_socklen_t" = xyes; then :
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14071 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14072 if ${gl_cv_socklen_t_equiv+:} false; then :
14073 $as_echo_n "(cached) " >&6
14075 # Systems have either "struct sockaddr *" or
14076 # "void *" as the second argument to getpeername
14077 gl_cv_socklen_t_equiv=
14078 for arg2 in "struct sockaddr" void; do
14079 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 #include <sys/types.h>
14083 #include <sys/socket.h>
14085 int getpeername (int, $arg2 *, $t *);
14090 getpeername (0, 0, &len);
14095 if ac_fn_c_try_compile "$LINENO"; then :
14096 gl_cv_socklen_t_equiv="$t"
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 test "$gl_cv_socklen_t_equiv" != "" && break
14101 test "$gl_cv_socklen_t_equiv" != "" && break
14103 if test "$gl_cv_socklen_t_equiv" = ""; then
14104 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14109 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14111 cat >>confdefs.h <<_ACEOF
14112 #define socklen_t $gl_cv_socklen_t_equiv
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14119 $as_echo_n "checking for library containing inet_addr... " >&6; }
14120 if ${ac_cv_search_inet_addr+:} false; then :
14121 $as_echo_n "(cached) " >&6
14123 ac_func_search_save_LIBS=$LIBS
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14127 /* Override any GCC internal prototype to avoid an error.
14128 Use char because int might match the return type of a GCC
14129 builtin and then its argument prototype would still apply. */
14137 return inet_addr ();
14142 for ac_lib in '' nsl; do
14143 if test -z "$ac_lib"; then
14144 ac_res="none required"
14147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14149 if ac_fn_c_try_link "$LINENO"; then :
14150 ac_cv_search_inet_addr=$ac_res
14152 rm -f core conftest.err conftest.$ac_objext \
14154 if ${ac_cv_search_inet_addr+:} false; then :
14158 if ${ac_cv_search_inet_addr+:} false; then :
14161 ac_cv_search_inet_addr=no
14163 rm conftest.$ac_ext
14164 LIBS=$ac_func_search_save_LIBS
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14167 $as_echo "$ac_cv_search_inet_addr" >&6; }
14168 ac_res=$ac_cv_search_inet_addr
14169 if test "$ac_res" != no; then :
14170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14175 # Check whether --enable-endian-check was given.
14176 if test "${enable_endian_check+set}" = set; then :
14177 enableval=$enable_endian_check; endiancheck=$enableval
14183 if test x"$endiancheck" = xyes ; then
14185 tmp_assumed_endian=big
14187 if test "$cross_compiling" = yes; then
14188 case "$host_cpu" in
14190 tmp_assumed_endian=little
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14197 $as_echo_n "checking endianness... " >&6; }
14198 if ${gnupg_cv_c_endian+:} false; then :
14199 $as_echo_n "(cached) " >&6
14201 gnupg_cv_c_endian=unknown
14202 # See if sys/param.h defines the BYTE_ORDER macro.
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 #include <sys/types.h>
14206 #include <sys/param.h>
14211 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14212 bogus endian macros
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219 # It does; now see whether it defined to BIG_ENDIAN or not.
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222 #include <sys/types.h>
14223 #include <sys/param.h>
14228 #if BYTE_ORDER != BIG_ENDIAN
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 gnupg_cv_c_endian=big
14238 gnupg_cv_c_endian=little
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 if test "$gnupg_cv_c_endian" = unknown; then
14244 if test "$cross_compiling" = yes; then :
14245 gnupg_cv_c_endian=$tmp_assumed_endian
14246 tmp_assumed_warn=" (assumed)"
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14252 /* Are we little or big endian? From Harbison&Steele. */
14256 char c[sizeof (long)];
14259 exit (u.c[sizeof (long) - 1] == 1);
14262 if ac_fn_c_try_run "$LINENO"; then :
14263 gnupg_cv_c_endian=little
14265 gnupg_cv_c_endian=big
14267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14268 conftest.$ac_objext conftest.beam conftest.$ac_ext
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14276 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14277 if test "$gnupg_cv_c_endian" = little; then
14279 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14283 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14289 # fixme: we should get rid of the byte type
14290 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14291 if test "x$ac_cv_type_byte" = xyes; then :
14293 cat >>confdefs.h <<_ACEOF
14294 #define HAVE_BYTE 1
14299 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14300 if test "x$ac_cv_type_ushort" = xyes; then :
14302 cat >>confdefs.h <<_ACEOF
14303 #define HAVE_USHORT 1
14308 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14309 if test "x$ac_cv_type_ulong" = xyes; then :
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_ULONG 1
14317 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14318 if test "x$ac_cv_type_u16" = xyes; then :
14320 cat >>confdefs.h <<_ACEOF
14326 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14327 if test "x$ac_cv_type_u32" = xyes; then :
14329 cat >>confdefs.h <<_ACEOF
14336 # The cast to long int works around a bug in the HP C Compiler
14337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14339 # This bug is HP SR number 8606223364.
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14341 $as_echo_n "checking size of unsigned short... " >&6; }
14342 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14343 $as_echo_n "(cached) " >&6
14345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14348 if test "$ac_cv_type_unsigned_short" = yes; then
14349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14351 as_fn_error 77 "cannot compute sizeof (unsigned short)
14352 See \`config.log' for more details" "$LINENO" 5; }
14354 ac_cv_sizeof_unsigned_short=0
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14360 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14364 cat >>confdefs.h <<_ACEOF
14365 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14369 # The cast to long int works around a bug in the HP C Compiler
14370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14372 # This bug is HP SR number 8606223364.
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14374 $as_echo_n "checking size of unsigned int... " >&6; }
14375 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14376 $as_echo_n "(cached) " >&6
14378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14381 if test "$ac_cv_type_unsigned_int" = yes; then
14382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14384 as_fn_error 77 "cannot compute sizeof (unsigned int)
14385 See \`config.log' for more details" "$LINENO" 5; }
14387 ac_cv_sizeof_unsigned_int=0
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14393 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14397 cat >>confdefs.h <<_ACEOF
14398 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14402 # The cast to long int works around a bug in the HP C Compiler
14403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14405 # This bug is HP SR number 8606223364.
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14407 $as_echo_n "checking size of unsigned long... " >&6; }
14408 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14409 $as_echo_n "(cached) " >&6
14411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14414 if test "$ac_cv_type_unsigned_long" = yes; then
14415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14417 as_fn_error 77 "cannot compute sizeof (unsigned long)
14418 See \`config.log' for more details" "$LINENO" 5; }
14420 ac_cv_sizeof_unsigned_long=0
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14426 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14430 cat >>confdefs.h <<_ACEOF
14431 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14435 # The cast to long int works around a bug in the HP C Compiler
14436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14438 # This bug is HP SR number 8606223364.
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14440 $as_echo_n "checking size of unsigned long long... " >&6; }
14441 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14442 $as_echo_n "(cached) " >&6
14444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14447 if test "$ac_cv_type_unsigned_long_long" = yes; then
14448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14450 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14451 See \`config.log' for more details" "$LINENO" 5; }
14453 ac_cv_sizeof_unsigned_long_long=0
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14459 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14463 cat >>confdefs.h <<_ACEOF
14464 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14468 # The cast to long int works around a bug in the HP C Compiler
14469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14471 # This bug is HP SR number 8606223364.
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14473 $as_echo_n "checking size of size_t... " >&6; }
14474 if ${ac_cv_sizeof_size_t+:} false; then :
14475 $as_echo_n "(cached) " >&6
14477 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14480 if test "$ac_cv_type_size_t" = yes; then
14481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14483 as_fn_error 77 "cannot compute sizeof (size_t)
14484 See \`config.log' for more details" "$LINENO" 5; }
14486 ac_cv_sizeof_size_t=0
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14492 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14496 cat >>confdefs.h <<_ACEOF
14497 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14502 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14503 if ${ac_cv_header_time+:} false; then :
14504 $as_echo_n "(cached) " >&6
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508 #include <sys/types.h>
14509 #include <sys/time.h>
14515 if ((struct tm *) 0)
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 ac_cv_header_time=yes
14524 ac_cv_header_time=no
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14529 $as_echo "$ac_cv_header_time" >&6; }
14530 if test $ac_cv_header_time = yes; then
14532 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14536 # The cast to long int works around a bug in the HP C Compiler
14537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14539 # This bug is HP SR number 8606223364.
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14541 $as_echo_n "checking size of time_t... " >&6; }
14542 if ${ac_cv_sizeof_time_t+:} false; then :
14543 $as_echo_n "(cached) " >&6
14545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14547 #if TIME_WITH_SYS_TIME
14548 # include <sys/time.h>
14551 # if HAVE_SYS_TIME_H
14552 # include <sys/time.h>
14561 if test "$ac_cv_type_time_t" = yes; then
14562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14564 as_fn_error 77 "cannot compute sizeof (time_t)
14565 See \`config.log' for more details" "$LINENO" 5; }
14567 ac_cv_sizeof_time_t=0
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14573 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14577 cat >>confdefs.h <<_ACEOF
14578 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14583 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14584 if ${gnupg_cv_time_t_unsigned+:} false; then :
14585 $as_echo_n "(cached) " >&6
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 $ac_includes_default
14590 #if TIME_WITH_SYS_TIME
14591 # include <sys/time.h>
14594 # if HAVE_SYS_TIME_H
14595 # include <sys/time.h>
14604 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14605 test_array [0] = 0;
14606 return test_array [0];
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 gnupg_cv_time_t_unsigned=no
14615 gnupg_cv_time_t_unsigned=yes
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14620 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14621 if test $gnupg_cv_time_t_unsigned = yes; then
14623 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14629 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14630 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14631 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14633 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14638 # Checks for library functions.
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14641 $as_echo "$as_me: checking for library functions" >&6;}
14642 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14643 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14649 cat >>confdefs.h <<_ACEOF
14650 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14654 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14655 if ${ac_cv_sys_largefile_source+:} false; then :
14656 $as_echo_n "(cached) " >&6
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14661 #include <sys/types.h> /* for off_t */
14666 int (*fp) (FILE *, off_t, int) = fseeko;
14667 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14672 if ac_fn_c_try_link "$LINENO"; then :
14673 ac_cv_sys_largefile_source=no; break
14675 rm -f core conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14679 #define _LARGEFILE_SOURCE 1
14680 #include <sys/types.h> /* for off_t */
14685 int (*fp) (FILE *, off_t, int) = fseeko;
14686 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14691 if ac_fn_c_try_link "$LINENO"; then :
14692 ac_cv_sys_largefile_source=1; break
14694 rm -f core conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14696 ac_cv_sys_largefile_source=unknown
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14701 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14702 case $ac_cv_sys_largefile_source in #(
14705 cat >>confdefs.h <<_ACEOF
14706 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14712 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14713 # in glibc 2.1.3, but that breaks too many other things.
14714 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14715 if test $ac_cv_sys_largefile_source != unknown; then
14717 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14721 for ac_func in vprintf
14723 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14724 if test "x$ac_cv_func_vprintf" = xyes; then :
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_VPRINTF 1
14729 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14730 if test "x$ac_cv_func__doprnt" = xyes; then :
14732 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14740 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14741 if test "x$ac_cv_type_pid_t" = xyes; then :
14745 cat >>confdefs.h <<_ACEOF
14751 for ac_header in vfork.h
14753 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14754 if test "x$ac_cv_header_vfork_h" = xyes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_VFORK_H 1
14763 for ac_func in fork vfork
14765 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14766 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14767 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14768 cat >>confdefs.h <<_ACEOF
14769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14775 if test "x$ac_cv_func_fork" = xyes; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14777 $as_echo_n "checking for working fork... " >&6; }
14778 if ${ac_cv_func_fork_works+:} false; then :
14779 $as_echo_n "(cached) " >&6
14781 if test "$cross_compiling" = yes; then :
14782 ac_cv_func_fork_works=cross
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 $ac_includes_default
14791 /* By Ruediger Kuhlmann. */
14792 return fork () < 0;
14798 if ac_fn_c_try_run "$LINENO"; then :
14799 ac_cv_func_fork_works=yes
14801 ac_cv_func_fork_works=no
14803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14804 conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14809 $as_echo "$ac_cv_func_fork_works" >&6; }
14812 ac_cv_func_fork_works=$ac_cv_func_fork
14814 if test "x$ac_cv_func_fork_works" = xcross; then
14816 *-*-amigaos* | *-*-msdosdjgpp*)
14817 # Override, as these systems have only a dummy fork() stub
14818 ac_cv_func_fork_works=no
14821 ac_cv_func_fork_works=yes
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14825 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14827 ac_cv_func_vfork_works=$ac_cv_func_vfork
14828 if test "x$ac_cv_func_vfork" = xyes; then
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14830 $as_echo_n "checking for working vfork... " >&6; }
14831 if ${ac_cv_func_vfork_works+:} false; then :
14832 $as_echo_n "(cached) " >&6
14834 if test "$cross_compiling" = yes; then :
14835 ac_cv_func_vfork_works=cross
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839 /* Thanks to Paul Eggert for this test. */
14840 $ac_includes_default
14841 #include <sys/wait.h>
14842 #ifdef HAVE_VFORK_H
14843 # include <vfork.h>
14845 /* On some sparc systems, changes by the child to local and incoming
14846 argument registers are propagated back to the parent. The compiler
14847 is told about this with #include <vfork.h>, but some compilers
14848 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14849 static variable whose address is put into a register that is
14850 clobbered by the vfork. */
14853 sparc_address_test (int arg)
14855 sparc_address_test (arg) int arg;
14858 static pid_t child;
14876 pid_t parent = getpid ();
14879 sparc_address_test (0);
14884 /* Here is another test for sparc vfork register problems. This
14885 test uses lots of local variables, at least as many local
14886 variables as main has allocated so far including compiler
14887 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14888 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14889 reuse the register of parent for one of the local variables,
14890 since it will think that parent can't possibly be used any more
14891 in this routine. Assigning to the local variable will thus
14892 munge parent in the parent process. */
14894 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14895 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14896 /* Convince the compiler that p..p7 are live; otherwise, it might
14897 use the same hardware register for all 8 local variables. */
14898 if (p != p1 || p != p2 || p != p3 || p != p4
14899 || p != p5 || p != p6 || p != p7)
14902 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14903 from child file descriptors. If the child closes a descriptor
14904 before it execs or exits, this munges the parent's descriptor
14905 as well. Test for this by closing stdout in the child. */
14906 _exit(close(fileno(stdout)) != 0);
14911 while (wait(&status) != child)
14914 /* Was there some problem with vforking? */
14917 /* Did the child fail? (This shouldn't happen.) */
14920 /* Did the vfork/compiler bug occur? */
14921 || parent != getpid()
14923 /* Did the file descriptor bug occur? */
14924 || fstat(fileno(stdout), &st) != 0
14929 if ac_fn_c_try_run "$LINENO"; then :
14930 ac_cv_func_vfork_works=yes
14932 ac_cv_func_vfork_works=no
14934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14935 conftest.$ac_objext conftest.beam conftest.$ac_ext
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14940 $as_echo "$ac_cv_func_vfork_works" >&6; }
14943 if test "x$ac_cv_func_fork_works" = xcross; then
14944 ac_cv_func_vfork_works=$ac_cv_func_vfork
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14946 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14949 if test "x$ac_cv_func_vfork_works" = xyes; then
14951 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14955 $as_echo "#define vfork fork" >>confdefs.h
14958 if test "x$ac_cv_func_fork_works" = xyes; then
14960 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14964 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14965 explicit_bzero fcntl flockfile fsync ftello \
14966 ftruncate funlockfile getaddrinfo getenv getpagesize \
14967 getpwnam getpwuid getrlimit getrusage gettimeofday \
14968 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14969 memmove memrchr mmap nl_langinfo pipe raise rand \
14970 setenv setlocale setrlimit sigaction sigprocmask \
14971 stat stpcpy strcasecmp strerror strftime stricmp \
14972 strlwr strncasecmp strpbrk strsep strtol strtoul \
14973 strtoull tcgetattr timegm times ttyname unsetenv \
14976 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14979 cat >>confdefs.h <<_ACEOF
14980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14987 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14988 # Given that we use nanosleep only as an optimization over a select
14989 # based wait function we want it only if it is available in libc.
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14992 $as_echo_n "checking for library containing nanosleep... " >&6; }
14993 if ${ac_cv_search_nanosleep+:} false; then :
14994 $as_echo_n "(cached) " >&6
14996 ac_func_search_save_LIBS=$LIBS
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15010 return nanosleep ();
15015 for ac_lib in '' ; do
15016 if test -z "$ac_lib"; then
15017 ac_res="none required"
15020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15022 if ac_fn_c_try_link "$LINENO"; then :
15023 ac_cv_search_nanosleep=$ac_res
15025 rm -f core conftest.err conftest.$ac_objext \
15027 if ${ac_cv_search_nanosleep+:} false; then :
15031 if ${ac_cv_search_nanosleep+:} false; then :
15034 ac_cv_search_nanosleep=no
15036 rm conftest.$ac_ext
15037 LIBS=$ac_func_search_save_LIBS
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15040 $as_echo "$ac_cv_search_nanosleep" >&6; }
15041 ac_res=$ac_cv_search_nanosleep
15042 if test "$ac_res" != no; then :
15043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15045 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15052 # See whether libc supports the Linux inotify interface
15055 for ac_func in inotify_init
15057 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15058 if test "x$ac_cv_func_inotify_init" = xyes; then :
15059 cat >>confdefs.h <<_ACEOF
15060 #define HAVE_INOTIFY_INIT 1
15070 if test "$have_android_system" = yes; then
15071 # On Android ttyname is a stub but prints an error message.
15073 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15077 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15079 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15081 cat >>confdefs.h <<_ACEOF
15082 #define HAVE_STRUCT_SIGACTION 1
15087 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15089 if test "x$ac_cv_type_sigset_t" = xyes; then :
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_SIGSET_T 1
15099 # Dirmngr requires mmap on Unix systems.
15100 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15101 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15106 # Check for the getsockopt SO_PEERCRED, etc.
15108 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15109 #include <sys/socket.h>
15111 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15113 cat >>confdefs.h <<_ACEOF
15114 #define HAVE_STRUCT_UCRED_PID 1
15119 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15120 #include <sys/socket.h>
15122 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15124 cat >>confdefs.h <<_ACEOF
15125 #define HAVE_STRUCT_UCRED_CR_PID 1
15130 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15131 #include <sys/socket.h>
15133 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15144 for ac_func in getpeerucred
15146 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15147 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15148 cat >>confdefs.h <<_ACEOF
15149 #define HAVE_GETPEERUCRED 1
15158 # W32 specific test
15163 # Do we have zlib? Must do it here because Solaris failed
15164 # when compiling a conftest (due to the "-lz" from LIBS).
15165 # Note that we combine zlib and bzlib2 in ZLIBS.
15167 if test "$use_zip" = yes ; then
15168 _cppflags="${CPPFLAGS}"
15169 _ldflags="${LDFLAGS}"
15171 # Check whether --with-zlib was given.
15172 if test "${with_zlib+set}" = set; then :
15173 withval=$with_zlib;
15174 if test -d "$withval"; then
15175 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15176 LDFLAGS="${LDFLAGS} -L$withval/lib"
15182 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15183 if test "x$ac_cv_header_zlib_h" = xyes; then :
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15185 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15186 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15187 $as_echo_n "(cached) " >&6
15189 ac_check_lib_save_LIBS=$LIBS
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15200 char deflateInit2_ ();
15204 return deflateInit2_ ();
15209 if ac_fn_c_try_link "$LINENO"; then :
15210 ac_cv_lib_z_deflateInit2_=yes
15212 ac_cv_lib_z_deflateInit2_=no
15214 rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LIBS=$ac_check_lib_save_LIBS
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15219 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15220 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15224 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15228 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15232 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15240 # Check whether we can support bzip2
15242 if test "$use_bzip2" = yes ; then
15243 _cppflags="${CPPFLAGS}"
15244 _ldflags="${LDFLAGS}"
15246 # Check whether --with-bzip2 was given.
15247 if test "${with_bzip2+set}" = set; then :
15248 withval=$with_bzip2;
15249 if test -d "$withval" ; then
15250 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15251 LDFLAGS="${LDFLAGS} -L$withval/lib"
15259 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15260 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15261 # woefully out of date.
15262 if test "$withval" != no ; then
15263 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15265 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15267 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15268 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15269 $as_echo_n "(cached) " >&6
15271 ac_check_lib_save_LIBS=$LIBS
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15282 char BZ2_bzCompressInit ();
15286 return BZ2_bzCompressInit ();
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15294 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15301 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15302 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15305 ZLIBS="$ZLIBS -lbz2"
15307 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15311 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15315 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15321 if test x"$have_bz2" = "xyes"; then
15322 ENABLE_BZIP2_SUPPORT_TRUE=
15323 ENABLE_BZIP2_SUPPORT_FALSE='#'
15325 ENABLE_BZIP2_SUPPORT_TRUE='#'
15326 ENABLE_BZIP2_SUPPORT_FALSE=
15332 # Check for readline support
15335 # Check whether --with-readline was given.
15336 if test "${with_readline+set}" = set; then :
15337 withval=$with_readline; _do_readline=$withval
15343 gnupg_cv_have_readline=no
15344 if test "$_do_readline" != "no" ; then
15345 if test -d "$withval" ; then
15346 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15347 LDFLAGS="${LDFLAGS} -L$withval/lib"
15350 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15351 _readline_save_libs=$LIBS
15352 _combo="-lreadline${_termcap:+ $_termcap}"
15353 LIBS="$LIBS $_combo"
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15356 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15359 /* end confdefs.h. */
15362 #include <readline/readline.h>
15363 #include <readline/history.h>
15369 rl_completion_func_t *completer;
15370 add_history("foobar");
15371 rl_catch_signals=0;
15372 rl_inhibit_completion=0;
15373 rl_attempted_completion_function=NULL;
15374 rl_completion_matches(NULL,NULL);
15380 if ac_fn_c_try_link "$LINENO"; then :
15381 _found_readline=yes
15385 rm -f core conftest.err conftest.$ac_objext \
15386 conftest$ac_exeext conftest.$ac_ext
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15389 $as_echo "$_found_readline" >&6; }
15391 LIBS=$_readline_save_libs
15393 if test $_found_readline = yes ; then
15395 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15397 LIBREADLINE=$_combo
15399 gnupg_cv_have_readline=yes
15405 unset _readline_save_libs
15407 unset _found_readline
15412 if test "$development_version" = yes; then
15414 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15418 if test "$USE_MAINTAINER_MODE" = "yes"; then
15420 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15424 if test x$cross_compiling = xyes; then
15425 CROSS_COMPILING_TRUE=
15426 CROSS_COMPILING_FALSE='#'
15428 CROSS_COMPILING_TRUE='#'
15429 CROSS_COMPILING_FALSE=
15434 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15439 *** It seems that you are not using GNU make. Some make tools have serious
15440 *** flaws and you may not be able to build this software at all. Before you
15441 *** complain, please try GNU make: GNU make is easy to build and available
15442 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15444 $as_echo "$as_me: WARNING:
15446 *** It seems that you are not using GNU make. Some make tools have serious
15447 *** flaws and you may not be able to build this software at all. Before you
15448 *** complain, please try GNU make: GNU make is easy to build and available
15449 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15454 # Add some extra libs here so that previous tests don't fail for
15455 # mysterious reasons - the final link step should bail out.
15456 # W32SOCKLIBS is also defined so that if can be used for tools not
15457 # requiring any network stuff but linking to code in libcommon which
15458 # tracks in winsock stuff (e.g. init_common_subsystems).
15459 if test "$have_w32_system" = yes; then
15460 if test "$have_w32ce_system" = yes; then
15461 W32SOCKLIBS="-lws2"
15463 W32SOCKLIBS="-lws2_32"
15465 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15472 # TPM libtss library .. don't compile TPM support if we don't have it
15476 if test "$build_tpm2d" = "yes"; then
15478 _save_cflags="$CFLAGS"
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15481 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15482 if ${ac_cv_search_TSS_Create+:} false; then :
15483 $as_echo_n "(cached) " >&6
15485 ac_func_search_save_LIBS=$LIBS
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15495 char TSS_Create ();
15499 return TSS_Create ();
15504 for ac_lib in '' tss ibmtss; do
15505 if test -z "$ac_lib"; then
15506 ac_res="none required"
15509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15511 if ac_fn_c_try_link "$LINENO"; then :
15512 ac_cv_search_TSS_Create=$ac_res
15514 rm -f core conftest.err conftest.$ac_objext \
15516 if ${ac_cv_search_TSS_Create+:} false; then :
15520 if ${ac_cv_search_TSS_Create+:} false; then :
15523 ac_cv_search_TSS_Create=no
15525 rm conftest.$ac_ext
15526 LIBS=$ac_func_search_save_LIBS
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15529 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15530 ac_res=$ac_cv_search_TSS_Create
15531 if test "$ac_res" != no; then :
15532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15536 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15537 if ${ac_cv_search_Esys_Initialize+:} false; then :
15538 $as_echo_n "(cached) " >&6
15540 ac_func_search_save_LIBS=$LIBS
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15544 /* Override any GCC internal prototype to avoid an error.
15545 Use char because int might match the return type of a GCC
15546 builtin and then its argument prototype would still apply. */
15550 char Esys_Initialize ();
15554 return Esys_Initialize ();
15559 for ac_lib in '' tss2-esys; do
15560 if test -z "$ac_lib"; then
15561 ac_res="none required"
15564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15566 if ac_fn_c_try_link "$LINENO"; then :
15567 ac_cv_search_Esys_Initialize=$ac_res
15569 rm -f core conftest.err conftest.$ac_objext \
15571 if ${ac_cv_search_Esys_Initialize+:} false; then :
15575 if ${ac_cv_search_Esys_Initialize+:} false; then :
15578 ac_cv_search_Esys_Initialize=no
15580 rm conftest.$ac_ext
15581 LIBS=$ac_func_search_save_LIBS
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15584 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15585 ac_res=$ac_cv_search_Esys_Initialize
15586 if test "$ac_res" != no; then :
15587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15593 if test "$have_libtss" = IBM; then
15594 LIBTSS_CFLAGS="-DTPM_POSIX"
15595 CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15596 ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15597 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15599 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15603 ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15604 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15606 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15611 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15623 elif test "$have_libtss" = Intel; then
15625 # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15626 # until version 2.4.0.
15628 # Note: the missing API is fairly serious and is also easily backportable
15629 # so keep the check below as is intead of going by library version number.
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15632 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15633 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15634 $as_echo_n "(cached) " >&6
15636 ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-ltss2-esys $LIBS"
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15641 /* Override any GCC internal prototype to avoid an error.
15642 Use char because int might match the return type of a GCC
15643 builtin and then its argument prototype would still apply. */
15647 char Esys_TR_GetTpmHandle ();
15651 return Esys_TR_GetTpmHandle ();
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15659 ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15661 rm -f core conftest.err conftest.$ac_objext \
15662 conftest$ac_exeext conftest.$ac_ext
15663 LIBS=$ac_check_lib_save_LIBS
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15666 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15667 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15668 cat >>confdefs.h <<_ACEOF
15669 #define HAVE_LIBTSS2_ESYS 1
15672 LIBS="-ltss2-esys $LIBS"
15676 { $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
15677 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15682 LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15684 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15688 CFLAGS="$_save_cflags"
15689 if test "$have_libtss" != no; then
15691 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15693 # look for a TPM emulator for testing
15694 # Extract the first word of "tpm_server", so it can be a program name with args.
15695 set dummy tpm_server; ac_word=$2
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15697 $as_echo_n "checking for $ac_word... " >&6; }
15698 if ${ac_cv_path_TPMSERVER+:} false; then :
15699 $as_echo_n "(cached) " >&6
15703 ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15707 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15708 for as_dir in $as_dummy
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714 ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15725 TPMSERVER=$ac_cv_path_TPMSERVER
15726 if test -n "$TPMSERVER"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15728 $as_echo "$TPMSERVER" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15735 # Extract the first word of "swtpm", so it can be a program name with args.
15736 set dummy swtpm; ac_word=$2
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15738 $as_echo_n "checking for $ac_word... " >&6; }
15739 if ${ac_cv_path_SWTPM+:} false; then :
15740 $as_echo_n "(cached) " >&6
15744 ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15749 for as_dir in $as_dummy
15752 test -z "$as_dir" && as_dir=.
15753 for ac_exec_ext in '' $ac_executable_extensions; do
15754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15755 ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766 SWTPM=$ac_cv_path_SWTPM
15767 if test -n "$SWTPM"; then
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15769 $as_echo "$SWTPM" >&6; }
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15772 $as_echo "no" >&6; }
15776 # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15777 set dummy swtpm_ioctl; ac_word=$2
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15779 $as_echo_n "checking for $ac_word... " >&6; }
15780 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15781 $as_echo_n "(cached) " >&6
15783 case $SWTPM_IOCTL in
15785 ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15789 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15790 for as_dir in $as_dummy
15793 test -z "$as_dir" && as_dir=.
15794 for ac_exec_ext in '' $ac_executable_extensions; do
15795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15796 ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15807 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15808 if test -n "$SWTPM_IOCTL"; then
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15810 $as_echo "$SWTPM_IOCTL" >&6; }
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15813 $as_echo "no" >&6; }
15817 # Extract the first word of "tssstartup", so it can be a program name with args.
15818 set dummy tssstartup; ac_word=$2
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15820 $as_echo_n "checking for $ac_word... " >&6; }
15821 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15822 $as_echo_n "(cached) " >&6
15824 case $TSSSTARTUP in
15826 ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15831 for as_dir in $as_dummy
15834 test -z "$as_dir" && as_dir=.
15835 for ac_exec_ext in '' $ac_executable_extensions; do
15836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15837 ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15848 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15849 if test -n "$TSSSTARTUP"; then
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15851 $as_echo "$TSSSTARTUP" >&6; }
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15854 $as_echo "no" >&6; }
15860 if test "$have_libtss" = no; then
15865 if test "$have_libtss" != no; then
15867 HAVE_LIBTSS_FALSE='#'
15869 HAVE_LIBTSS_TRUE='#'
15873 if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15875 TEST_LIBTSS_FALSE='#'
15877 TEST_LIBTSS_TRUE='#'
15884 # Setup gcc specific options
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15888 $as_echo "$as_me: checking for cc features" >&6;}
15889 if test "$GCC" = yes; then
15891 mycflags_save=$CFLAGS
15893 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15894 # options. This is the case for gcc >= 4.6
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15896 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15900 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15911 if ac_fn_c_try_compile "$LINENO"; then :
15912 _gcc_silent_wno=yes
15916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15918 $as_echo "$_gcc_silent_wno" >&6; }
15920 # Note that it is okay to use CFLAGS here because these are just
15921 # warning options and the user should have a chance of overriding
15923 if test "$USE_MAINTAINER_MODE" = "yes"; then
15924 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15925 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15926 if test x"$_gcc_silent_wno" = xyes ; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15930 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15931 CFLAGS="-Wno-missing-field-initializers"
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15943 if ac_fn_c_try_compile "$LINENO"; then :
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15950 $as_echo "$_gcc_wopt" >&6; }
15952 if test x"$_gcc_wopt" = xyes ; then
15953 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15954 mycflags="$mycflags -Wno-missing-field-initializers"
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15958 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15959 CFLAGS="-Wdeclaration-after-statement"
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15971 if ac_fn_c_try_compile "$LINENO"; then :
15976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15978 $as_echo "$_gcc_wopt" >&6; }
15979 if test x"$_gcc_wopt" = xyes ; then
15980 mycflags="$mycflags -Wdeclaration-after-statement"
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15984 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15985 CFLAGS="-Wlogical-op -Werror"
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15997 if ac_fn_c_try_compile "$LINENO"; then :
16002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16004 $as_echo "$_gcc_wopt" >&6; }
16005 if test x"$_gcc_wopt" = xyes ; then
16006 mycflags="$mycflags -Wlogical-op"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16010 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16023 if ac_fn_c_try_compile "$LINENO"; then :
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16030 $as_echo "$_gcc_wopt" >&6; }
16031 if test x"$_gcc_wopt" = xyes ; then
16032 mycflags="$mycflags -Wvla"
16036 mycflags="$mycflags -Wall"
16037 if test x"$_gcc_silent_wno" = xyes ; then
16038 mycflags="$mycflags -Wno-format-zero-length"
16042 if test x"$_gcc_silent_wno" = xyes ; then
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16046 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16047 CFLAGS="-Wno-pointer-sign"
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16059 if ac_fn_c_try_compile "$LINENO"; then :
16064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16066 $as_echo "$_gcc_psign" >&6; }
16068 if test x"$_gcc_psign" = xyes ; then
16069 mycflags="$mycflags -Wno-pointer-sign"
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16073 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16074 CFLAGS="-Wpointer-arith"
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16086 if ac_fn_c_try_compile "$LINENO"; then :
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16093 $as_echo "$_gcc_psign" >&6; }
16094 if test x"$_gcc_psign" = xyes ; then
16095 mycflags="$mycflags -Wpointer-arith"
16098 CFLAGS="$mycflags $mycflags_save"
16099 if test "$use_libdns" = yes; then
16100 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
16101 USE_C99_CFLAGS="-std=gnu99"
16109 # This is handy for debugging so the compiler doesn't rearrange
16110 # things and eliminate variables.
16112 # Check whether --enable-optimization was given.
16113 if test "${enable_optimization+set}" = set; then :
16114 enableval=$enable_optimization; if test $enableval = no ; then
16115 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16121 # log_debug has certain requirements which might hamper portability.
16122 # Thus we use an option to enable it.
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16125 $as_echo_n "checking whether to enable log_clock... " >&6; }
16126 # Check whether --enable-log_clock was given.
16127 if test "${enable_log_clock+set}" = set; then :
16128 enableval=$enable_log_clock; enable_log_clock=$enableval
16130 enable_log_clock=no
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16134 $as_echo "$enable_log_clock" >&6; }
16135 if test "$enable_log_clock" = yes ; then
16137 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16141 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
16142 # misbehaving autoconf tests in case the user supplied -Werror.
16144 # Check whether --enable-werror was given.
16145 if test "${enable_werror+set}" = set; then :
16146 enableval=$enable_werror; if test $enableval = yes ; then
16147 CFLAGS="$CFLAGS -Werror"
16153 # Configure option --enable-all-tests
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16156 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16157 # Check whether --enable-all-tests was given.
16158 if test "${enable_all_tests+set}" = set; then :
16159 enableval=$enable_all_tests; run_all_tests=$enableval
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16165 $as_echo "$run_all_tests" >&6; }
16166 if test "$run_all_tests" = "yes"; then
16168 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16173 # Configure option --disable-tests
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16176 $as_echo_n "checking whether tests should be run... " >&6; }
16177 # Check whether --enable-tests was given.
16178 if test "${enable_tests+set}" = set; then :
16179 enableval=$enable_tests; run_tests=$enableval
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16185 $as_echo "$run_tests" >&6; }
16188 # We do not want support for the GNUPG_BUILDDIR environment variable
16189 # in a released version. However, our regression tests suite requires
16190 # this and thus we build with support for it during "make distcheck".
16191 # This configure option implements this along with the top Makefile's
16192 # AM_DISTCHECK_CONFIGURE_FLAGS.
16194 gnupg_builddir_envvar=no
16195 # Check whether --enable-gnupg-builddir-envvar was given.
16196 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16197 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16200 if test x"$gnupg_builddir_envvar" = x"yes"; then
16202 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16208 # To avoid problems with systemd cleaning up the /run/user directory,
16209 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16212 # Check whether --enable-run-gnupg-user-socket was given.
16213 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16214 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16217 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16219 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16225 # Decide what to build
16228 build_scdaemon_extra=""
16229 if test "$build_scdaemon" = "yes"; then
16230 if test $have_libusb = no; then
16231 build_scdaemon_extra="without internal CCID driver"
16233 if test -n "$build_scdaemon_extra"; then
16234 build_scdaemon_extra="(${build_scdaemon_extra})"
16240 # Set variables for use by automake makefiles.
16242 if test "$build_gpg" = "yes"; then
16244 BUILD_GPG_FALSE='#'
16250 if test "$build_gpgsm" = "yes"; then
16252 BUILD_GPGSM_FALSE='#'
16254 BUILD_GPGSM_TRUE='#'
16258 if test "$build_agent" = "yes"; then
16260 BUILD_AGENT_FALSE='#'
16262 BUILD_AGENT_TRUE='#'
16266 if test "$build_scdaemon" = "yes"; then
16267 BUILD_SCDAEMON_TRUE=
16268 BUILD_SCDAEMON_FALSE='#'
16270 BUILD_SCDAEMON_TRUE='#'
16271 BUILD_SCDAEMON_FALSE=
16274 if test "$build_g13" = "yes"; then
16276 BUILD_G13_FALSE='#'
16282 if test "$build_dirmngr" = "yes"; then
16283 BUILD_DIRMNGR_TRUE=
16284 BUILD_DIRMNGR_FALSE='#'
16286 BUILD_DIRMNGR_TRUE='#'
16287 BUILD_DIRMNGR_FALSE=
16290 if test "$build_keyboxd" = "yes"; then
16291 BUILD_KEYBOXD_TRUE=
16292 BUILD_KEYBOXD_FALSE='#'
16294 BUILD_KEYBOXD_TRUE='#'
16295 BUILD_KEYBOXD_FALSE=
16298 if test "$build_tpm2d" = "yes"; then
16300 BUILD_TPM2D_FALSE='#'
16302 BUILD_TPM2D_TRUE='#'
16306 if test "$build_doc" = "yes"; then
16308 BUILD_DOC_FALSE='#'
16314 if test "$build_gpgtar" = "yes"; then
16316 BUILD_GPGTAR_FALSE='#'
16318 BUILD_GPGTAR_TRUE='#'
16319 BUILD_GPGTAR_FALSE=
16322 if test "$build_wks_tools" = "yes"; then
16323 BUILD_WKS_TOOLS_TRUE=
16324 BUILD_WKS_TOOLS_FALSE='#'
16326 BUILD_WKS_TOOLS_TRUE='#'
16327 BUILD_WKS_TOOLS_FALSE=
16331 if test "$run_tests" != yes; then
16332 DISABLE_TESTS_TRUE=
16333 DISABLE_TESTS_FALSE='#'
16335 DISABLE_TESTS_TRUE='#'
16336 DISABLE_TESTS_FALSE=
16339 if test "$card_support" = yes; then
16340 ENABLE_CARD_SUPPORT_TRUE=
16341 ENABLE_CARD_SUPPORT_FALSE='#'
16343 ENABLE_CARD_SUPPORT_TRUE='#'
16344 ENABLE_CARD_SUPPORT_FALSE=
16347 if test "$use_trust_models" = no; then
16348 NO_TRUST_MODELS_TRUE=
16349 NO_TRUST_MODELS_FALSE='#'
16351 NO_TRUST_MODELS_TRUE='#'
16352 NO_TRUST_MODELS_FALSE=
16355 if test "$use_tofu" = yes; then
16365 # Set some defines for use gpgconf.
16367 if test "$build_gpg" = yes ; then
16369 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16372 if test "$build_gpgsm" = yes ; then
16374 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16377 if test "$build_agent" = yes ; then
16379 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16382 if test "$build_scdaemon" = yes ; then
16384 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16387 if test "$build_dirmngr" = yes ; then
16389 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16392 if test "$build_keyboxd" = yes ; then
16394 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16397 if test "$build_tpm2d" = yes ; then
16399 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16402 if test "$build_g13" = yes ; then
16404 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16410 # Define Name strings
16413 cat >>confdefs.h <<_ACEOF
16414 #define GNUPG_NAME "GnuPG"
16419 cat >>confdefs.h <<_ACEOF
16420 #define GPG_NAME "gpg"
16424 cat >>confdefs.h <<_ACEOF
16425 #define GPG_DISP_NAME "GnuPG"
16430 cat >>confdefs.h <<_ACEOF
16431 #define GPGSM_NAME "gpgsm"
16435 cat >>confdefs.h <<_ACEOF
16436 #define GPGSM_DISP_NAME "GPGSM"
16441 cat >>confdefs.h <<_ACEOF
16442 #define GPG_AGENT_NAME "gpg-agent"
16446 cat >>confdefs.h <<_ACEOF
16447 #define GPG_AGENT_DISP_NAME "GPG Agent"
16452 cat >>confdefs.h <<_ACEOF
16453 #define TPM2DAEMON_NAME "tpm2daemon"
16457 cat >>confdefs.h <<_ACEOF
16458 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16463 cat >>confdefs.h <<_ACEOF
16464 #define SCDAEMON_NAME "scdaemon"
16468 cat >>confdefs.h <<_ACEOF
16469 #define SCDAEMON_DISP_NAME "SCDaemon"
16474 cat >>confdefs.h <<_ACEOF
16475 #define DIRMNGR_NAME "dirmngr"
16479 cat >>confdefs.h <<_ACEOF
16480 #define DIRMNGR_DISP_NAME "DirMngr"
16485 cat >>confdefs.h <<_ACEOF
16486 #define KEYBOXD_NAME "keyboxd"
16490 cat >>confdefs.h <<_ACEOF
16491 #define KEYBOXD_DISP_NAME "Keyboxd"
16496 cat >>confdefs.h <<_ACEOF
16497 #define G13_NAME "g13"
16501 cat >>confdefs.h <<_ACEOF
16502 #define G13_DISP_NAME "G13"
16507 cat >>confdefs.h <<_ACEOF
16508 #define GPGCONF_NAME "gpgconf"
16512 cat >>confdefs.h <<_ACEOF
16513 #define GPGCONF_DISP_NAME "GPGConf"
16518 cat >>confdefs.h <<_ACEOF
16519 #define GPGTAR_NAME "gpgtar"
16524 cat >>confdefs.h <<_ACEOF
16525 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16529 cat >>confdefs.h <<_ACEOF
16530 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16534 cat >>confdefs.h <<_ACEOF
16535 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16539 cat >>confdefs.h <<_ACEOF
16540 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16544 cat >>confdefs.h <<_ACEOF
16545 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16549 cat >>confdefs.h <<_ACEOF
16550 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16554 cat >>confdefs.h <<_ACEOF
16555 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16559 cat >>confdefs.h <<_ACEOF
16560 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16564 cat >>confdefs.h <<_ACEOF
16565 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16569 cat >>confdefs.h <<_ACEOF
16570 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
16575 cat >>confdefs.h <<_ACEOF
16576 #define GPGEXT_GPG "gpg"
16580 if test "$have_w32_system" = yes; then
16582 cat >>confdefs.h <<_ACEOF
16583 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16590 # Provide information about the build.
16592 BUILD_REVISION="c922a798a"
16595 cat >>confdefs.h <<_ACEOF
16596 #define BUILD_REVISION "$BUILD_REVISION"
16600 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16601 BUILD_VERSION="${BUILD_VERSION}51490"
16602 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16606 # Check whether --enable-build-timestamp was given.
16607 if test "${enable_build_timestamp+set}" = set; then :
16608 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16609 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16611 BUILD_TIMESTAMP="$enableval"
16613 BUILD_HOSTNAME="$ac_hostname"
16615 BUILD_TIMESTAMP="<none>"
16616 BUILD_HOSTNAME="<anon>"
16621 cat >>confdefs.h <<_ACEOF
16622 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16629 # Print errors here so that they are visible all
16630 # together and the user can acquire them all together.
16633 if test "$have_gpg_error" = "no"; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}:
16637 *** You need libgpg-error to build this program.
16638 ** This library is for example available at
16639 *** https://gnupg.org/ftp/gcrypt/gpgrt
16640 *** (at least version $NEED_GPGRT_VERSION is required.)
16644 *** You need libgpg-error to build this program.
16645 ** This library is for example available at
16646 *** https://gnupg.org/ftp/gcrypt/gpgrt
16647 *** (at least version $NEED_GPGRT_VERSION is required.)
16650 if test "$have_libgcrypt" = "no"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}:
16654 *** You need libgcrypt to build this program.
16655 ** This library is for example available at
16656 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16657 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16661 *** You need libgcrypt to build this program.
16662 ** This library is for example available at
16663 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16664 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16667 if test "$have_libassuan" = "no"; then
16669 { $as_echo "$as_me:${as_lineno-$LINENO}:
16671 *** You need libassuan to build this program.
16672 *** This library is for example available at
16673 *** https://gnupg.org/ftp/gcrypt/libassuan/
16674 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16678 *** You need libassuan to build this program.
16679 *** This library is for example available at
16680 *** https://gnupg.org/ftp/gcrypt/libassuan/
16681 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16684 if test "$have_ksba" = "no"; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}:
16688 *** You need libksba to build this program.
16689 *** This library is for example available at
16690 *** https://gnupg.org/ftp/gcrypt/libksba/
16691 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16695 *** You need libksba to build this program.
16696 *** This library is for example available at
16697 *** https://gnupg.org/ftp/gcrypt/libksba/
16698 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16701 if test "$gnupg_have_ldap" = yes; then
16702 if test "$have_w32ce_system" = yes; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}:
16704 *** Note that CeGCC might be broken, a package fixing this is:
16705 *** http://files.kolab.org/local/windows-ce/
16706 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16707 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16710 *** Note that CeGCC might be broken, a package fixing this is:
16711 *** http://files.kolab.org/local/windows-ce/
16712 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16713 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16717 if test "$have_npth" = "no"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}:
16721 *** It is now required to build with support for the
16722 *** New Portable Threads Library (nPth). Please install this
16723 *** library first. The library is for example available at
16724 *** https://gnupg.org/ftp/gcrypt/npth/
16725 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16729 *** It is now required to build with support for the
16730 *** New Portable Threads Library (nPth). Please install this
16731 *** library first. The library is for example available at
16732 *** https://gnupg.org/ftp/gcrypt/npth/
16733 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16737 if test "$require_iconv" = yes; then
16738 if test "$am_func_iconv" != yes; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}:
16742 *** The system does not provide a working iconv function. Please
16743 *** install a suitable library; for example GNU Libiconv which is
16745 *** https://ftp.gnu.org/gnu/libiconv/
16749 *** The system does not provide a working iconv function. Please
16750 *** install a suitable library; for example GNU Libiconv which is
16752 *** https://ftp.gnu.org/gnu/libiconv/
16757 if test "$use_ccid_driver" = yes; then
16758 if test "$have_libusb" != yes; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}:
16762 *** You need libusb to build the internal ccid driver. Please
16763 *** install a libusb suitable for your system.
16767 *** You need libusb to build the internal ccid driver. Please
16768 *** install a libusb suitable for your system.
16773 if test "$die" = "yes"; then
16776 *** Required libraries not found. Please consult the above messages
16777 *** and install them before running configure again.
16783 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/tpm2dtests/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16787 cat >confcache <<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems. If it contains results you don't
16792 # want to keep, you may remove or edit it.
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16809 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810 eval ac_val=\$$ac_var
16814 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16818 _ | IFS | as_nl) ;; #(
16819 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16820 *) { eval $ac_var=; unset $ac_var;} ;;
16826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827 *${as_nl}ac_space=\ *)
16828 # `set' does not quote correctly, so add quotes: double-quote
16829 # substitution turns \\\\ into \\, and sed turns \\ into \.
16832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16835 # `set' quotes correctly as required by POSIX, so do not add quotes.
16836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16849 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16850 if test -w "$cache_file"; then
16851 if test "x$cache_file" != "x/dev/null"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854 if test ! -f "$cache_file" || test -h "$cache_file"; then
16855 cat confcache >"$cache_file"
16857 case $cache_file in #(
16859 mv -f confcache "$cache_file"$$ &&
16860 mv -f "$cache_file"$$ "$cache_file" ;; #(
16862 mv -f confcache "$cache_file" ;;
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16873 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16874 # Let make expand exec_prefix.
16875 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16877 DEFS=-DHAVE_CONFIG_H
16882 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16883 # 1. Remove the extension, and $U if already installed.
16884 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16885 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16887 # will be set to the directory where LIBOBJS objects are built.
16888 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16889 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16891 LIBOBJS=$ac_libobjs
16893 LTLIBOBJS=$ac_ltlibobjs
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16897 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16898 if test -n "$am_sleep_pid"; then
16899 # Hide warnings about reused PIDs.
16900 wait $am_sleep_pid 2>/dev/null
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16903 $as_echo "done" >&6; }
16904 if test -n "$EXEEXT"; then
16906 am__EXEEXT_FALSE='#'
16908 am__EXEEXT_TRUE='#'
16912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16913 as_fn_error $? "conditional \"AMDEP\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16917 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16920 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16921 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16924 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16925 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16928 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16929 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
16933 as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16936 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16937 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16940 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
16941 as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16944 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16945 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16948 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16949 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16952 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16953 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16956 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16957 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16961 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16965 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16966 if test -n "$am_sleep_pid"; then
16967 # Hide warnings about reused PIDs.
16968 wait $am_sleep_pid 2>/dev/null
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16971 $as_echo "done" >&6; }
16972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16973 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16976 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16977 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16980 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16981 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16984 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16985 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16988 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16989 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16992 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16993 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16996 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16997 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17000 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17001 as_fn_error $? "conditional \"SQLITE3\" was never defined.
17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17004 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17005 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17008 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17009 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17013 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17016 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17017 as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17020 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17021 as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17025 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17029 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17032 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17033 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17037 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17040 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17041 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17044 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17045 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17048 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17049 as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17052 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17053 as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17056 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17057 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17060 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17061 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17064 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17065 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17068 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17069 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17072 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17073 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17076 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17077 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17080 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17081 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085 : "${CONFIG_STATUS=./config.status}"
17087 ac_clean_files_save=$ac_clean_files
17088 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17090 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17092 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17094 # Generated by $as_me.
17095 # Run this file to recreate the current configuration.
17096 # Compiler output produced by configure, useful for debugging
17097 # configure, is in config.log if it exists.
17100 ac_cs_recheck=false
17103 SHELL=\${CONFIG_SHELL-$SHELL}
17106 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17107 ## -------------------- ##
17108 ## M4sh Initialization. ##
17109 ## -------------------- ##
17111 # Be more Bourne compatible
17112 DUALCASE=1; export DUALCASE # for MKS sh
17113 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17116 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17117 # is contrary to our usage. Disable this feature.
17118 alias -g '${1+"$@"}'='"$@"'
17119 setopt NO_GLOB_SUBST
17121 case `(set -o) 2>/dev/null` in #(
17133 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17134 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17137 # Prefer a ksh shell builtin over an external printf program on Solaris,
17138 # but without wasting forks for bash or zsh.
17139 if test -z "$BASH_VERSION$ZSH_VERSION" \
17140 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17141 as_echo='print -r --'
17142 as_echo_n='print -rn --'
17143 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17144 as_echo='printf %s\n'
17145 as_echo_n='printf %s'
17147 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17148 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17149 as_echo_n='/usr/ucb/echo -n'
17151 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17152 as_echo_n_body='eval
17156 expr "X$arg" : "X\\(.*\\)$as_nl";
17157 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17159 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17161 export as_echo_n_body
17162 as_echo_n='sh -c $as_echo_n_body as_echo'
17164 export as_echo_body
17165 as_echo='sh -c $as_echo_body as_echo'
17168 # The user is always right.
17169 if test "${PATH_SEPARATOR+set}" != set; then
17171 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17172 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17179 # We need space, tab and new line, in precisely that order. Quoting is
17180 # there to prevent editors from complaining about space-tab.
17181 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17182 # splitting by setting IFS to empty value.)
17185 # Find who we are. Look in the path if we contain no directory separator.
17188 *[\\/]* ) as_myself=$0 ;;
17189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17190 for as_dir in $PATH
17193 test -z "$as_dir" && as_dir=.
17194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17200 # We did not find ourselves, most probably we were run as `sh COMMAND'
17201 # in which case we are not to be found in the path.
17202 if test "x$as_myself" = x; then
17205 if test ! -f "$as_myself"; then
17206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17210 # Unset variables that we do not need and which cause bugs (e.g. in
17211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17212 # suppresses any "Segmentation fault" message there. '((' could
17213 # trigger a bug in pdksh 5.2.14.
17214 for as_var in BASH_ENV ENV MAIL MAILPATH
17215 do eval test x\${$as_var+set} = xset \
17216 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17229 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17232 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17233 # ----------------------------------------
17234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17236 # script with STATUS, using 1 if that was 0.
17239 as_status=$1; test $as_status -eq 0 && as_status=1
17241 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17244 $as_echo "$as_me: error: $2" >&2
17245 as_fn_exit $as_status
17249 # as_fn_set_status STATUS
17250 # -----------------------
17251 # Set $? to STATUS, without forking.
17252 as_fn_set_status ()
17255 } # as_fn_set_status
17257 # as_fn_exit STATUS
17258 # -----------------
17259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17263 as_fn_set_status $1
17269 # Portably unset VAR.
17272 { eval $1=; unset $1;}
17274 as_unset=as_fn_unset
17275 # as_fn_append VAR VALUE
17276 # ----------------------
17277 # Append the text in VALUE to the end of the definition contained in VAR. Take
17278 # advantage of any shell optimizations that allow amortized linear growth over
17279 # repeated appends, instead of the typical quadratic growth present in naive
17281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17282 eval 'as_fn_append ()
17293 # as_fn_arith ARG...
17294 # ------------------
17295 # Perform arithmetic evaluation on the ARGs, and store the result in the
17296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17297 # must be portable across $(()) and expr.
17298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17299 eval 'as_fn_arith ()
17306 as_val=`expr "$@" || test $? -eq 1`
17311 if expr a : '\(a\)' >/dev/null 2>&1 &&
17312 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17318 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17319 as_basename=basename
17324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17330 as_me=`$as_basename -- "$0" ||
17331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17332 X"$0" : 'X\(//\)$' \| \
17333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17335 sed '/^.*\/\([^/][^/]*\)\/*$/{
17349 # Avoid depending upon Character Ranges.
17350 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17351 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17352 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17353 as_cr_digits='0123456789'
17354 as_cr_alnum=$as_cr_Letters$as_cr_digits
17356 ECHO_C= ECHO_N= ECHO_T=
17357 case `echo -n x` in #(((((
17359 case `echo 'xy\c'` in
17360 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17362 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17369 rm -f conf$$ conf$$.exe conf$$.file
17370 if test -d conf$$.dir; then
17371 rm -f conf$$.dir/conf$$.file
17374 mkdir conf$$.dir 2>/dev/null
17376 if (echo >conf$$.file) 2>/dev/null; then
17377 if ln -s conf$$.file conf$$ 2>/dev/null; then
17379 # ... but there are two gotchas:
17380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17382 # In both cases, we have to default to `cp -pR'.
17383 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17385 elif ln conf$$.file conf$$ 2>/dev/null; then
17393 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17394 rmdir conf$$.dir 2>/dev/null
17399 # Create "$as_dir" as a directory, including parents if necessary.
17404 -*) as_dir=./$as_dir;;
17406 test -d "$as_dir" || eval $as_mkdir_p || {
17410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17411 *) as_qdir=$as_dir;;
17413 as_dirs="'$as_qdir' $as_dirs"
17414 as_dir=`$as_dirname -- "$as_dir" ||
17415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17416 X"$as_dir" : 'X\(//\)[^/]' \| \
17417 X"$as_dir" : 'X\(//\)$' \| \
17418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17419 $as_echo X"$as_dir" |
17420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424 /^X\(\/\/\)[^/].*/{
17437 test -d "$as_dir" && break
17439 test -z "$as_dirs" || eval "mkdir $as_dirs"
17440 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17444 if mkdir -p . 2>/dev/null; then
17445 as_mkdir_p='mkdir -p "$as_dir"'
17447 test -d ./-p && rmdir ./-p
17452 # as_fn_executable_p FILE
17453 # -----------------------
17454 # Test if FILE is an executable regular file.
17455 as_fn_executable_p ()
17457 test -f "$1" && test -x "$1"
17458 } # as_fn_executable_p
17459 as_test_x='test -x'
17460 as_executable_p=as_fn_executable_p
17462 # Sed expression to map a string onto a valid CPP name.
17463 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17465 # Sed expression to map a string onto a valid variable name.
17466 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17470 ## ----------------------------------- ##
17471 ## Main body of $CONFIG_STATUS script. ##
17472 ## ----------------------------------- ##
17474 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477 # Save the log message, to keep $0 and so on meaningful, and to
17478 # report actual input values of CONFIG_FILES etc. instead of their
17479 # values after options handling.
17481 This file was extended by gnupg $as_me 2.3.0, which was
17482 generated by GNU Autoconf 2.69. Invocation command line was
17484 CONFIG_FILES = $CONFIG_FILES
17485 CONFIG_HEADERS = $CONFIG_HEADERS
17486 CONFIG_LINKS = $CONFIG_LINKS
17487 CONFIG_COMMANDS = $CONFIG_COMMANDS
17490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17495 case $ac_config_files in *"
17496 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17499 case $ac_config_headers in *"
17500 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17505 # Files that config.status was made for.
17506 config_files="$ac_config_files"
17507 config_headers="$ac_config_headers"
17508 config_commands="$ac_config_commands"
17512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17514 \`$as_me' instantiates files and other configuration actions
17515 from templates according to the current configuration. Unless the files
17516 and actions are specified as TAGs, all are instantiated by default.
17518 Usage: $0 [OPTION]... [TAG]...
17520 -h, --help print this help, then exit
17521 -V, --version print version number and configuration settings, then exit
17522 --config print configuration, then exit
17523 -q, --quiet, --silent
17524 do not print progress messages
17525 -d, --debug don't remove temporary files
17526 --recheck update $as_me by reconfiguring in the same conditions
17527 --file=FILE[:TEMPLATE]
17528 instantiate the configuration file FILE
17529 --header=FILE[:TEMPLATE]
17530 instantiate the configuration header FILE
17532 Configuration files:
17535 Configuration headers:
17538 Configuration commands:
17541 Report bugs to <https://bugs.gnupg.org>."
17544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17545 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17547 gnupg config.status 2.3.0
17548 configured by $0, generated by GNU Autoconf 2.69,
17549 with options \\"\$ac_cs_config\\"
17551 Copyright (C) 2012 Free Software Foundation, Inc.
17552 This config.status script is free software; the Free Software Foundation
17553 gives unlimited permission to copy, distribute and modify it."
17560 test -n "\$AWK" || AWK=awk
17563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17564 # The default lists apply if the user does not specify any file.
17570 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17571 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17587 # Handling of the options.
17588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17591 $as_echo "$ac_cs_version"; exit ;;
17592 --config | --confi | --conf | --con | --co | --c )
17593 $as_echo "$ac_cs_config"; exit ;;
17594 --debug | --debu | --deb | --de | --d | -d )
17596 --file | --fil | --fi | --f )
17599 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17600 '') as_fn_error $? "missing file argument" ;;
17602 as_fn_append CONFIG_FILES " '$ac_optarg'"
17603 ac_need_defaults=false;;
17604 --header | --heade | --head | --hea )
17607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17609 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17610 ac_need_defaults=false;;
17612 # Conflict between --help and --header
17613 as_fn_error $? "ambiguous option: \`$1'
17614 Try \`$0 --help' for more information.";;
17615 --help | --hel | -h )
17616 $as_echo "$ac_cs_usage"; exit ;;
17617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17618 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17621 # This is an error.
17622 -*) as_fn_error $? "unrecognized option: \`$1'
17623 Try \`$0 --help' for more information." ;;
17625 *) as_fn_append ac_config_targets " $1"
17626 ac_need_defaults=false ;;
17632 ac_configure_extra_args=
17634 if $ac_cs_silent; then
17636 ac_configure_extra_args="$ac_configure_extra_args --silent"
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 if \$ac_cs_recheck; then
17642 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17644 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17645 CONFIG_SHELL='$SHELL'
17646 export CONFIG_SHELL
17651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17655 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17656 ## Running $as_me. ##
17662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17667 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17668 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17669 # from automake < 1.5.
17670 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17671 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17672 LINGUAS="${LINGUAS-%UNSET%}"
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17679 # Handling of arguments.
17680 for ac_config_target in $ac_config_targets
17682 case $ac_config_target in
17683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17685 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17686 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17688 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17689 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17690 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17691 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17692 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17693 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17694 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17695 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17696 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17697 "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17698 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17699 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17700 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17701 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17702 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17703 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17704 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17705 "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17706 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17707 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17708 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17709 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17710 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17711 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17712 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17713 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17714 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17715 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17716 "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17718 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17723 # If the user did not use the arguments to specify the items to instantiate,
17724 # then the envvar interface is used. Set only those that are not.
17725 # We use the long form for the default assignment because of an extremely
17726 # bizarre bug on SunOS 4.1.3.
17727 if $ac_need_defaults; then
17728 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17729 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17733 # Have a temporary directory for convenience. Make it in the build tree
17734 # simply because there is no reason against having it here, and in addition,
17735 # creating and moving files from /tmp can sometimes cause problems.
17736 # Hook for its removal unless debugging.
17737 # Note that there is a small window in which the directory will not be cleaned:
17738 # after its creation but before its name has been assigned to `$tmp'.
17742 trap 'exit_status=$?
17743 : "${ac_tmp:=$tmp}"
17744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17746 trap 'as_fn_exit 1' 1 2 13 15
17748 # Create a (secure) tmp directory for tmp files.
17751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17755 tmp=./conf$$-$RANDOM
17756 (umask 077 && mkdir "$tmp")
17757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17760 # Set up the scripts for CONFIG_FILES section.
17761 # No need to generate them if there are no CONFIG_FILES.
17762 # This happens for instance with `./config.status config.h'.
17763 if test -n "$CONFIG_FILES"; then
17766 ac_cr=`echo X | tr X '\015'`
17767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17768 # But we know of no other shell where ac_cr would be empty at this
17769 # point, so we can use a bashism as a fallback.
17770 if test "x$ac_cr" = x; then
17771 eval ac_cr=\$\'\\r\'
17773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17777 ac_cs_awk_cr=$ac_cr
17780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17785 echo "cat >conf$$subs.awk <<_ACEOF" &&
17786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17788 } >conf$$subs.sh ||
17789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17792 for ac_last_try in false false false false false :; do
17793 . ./conf$$subs.sh ||
17794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17797 if test $ac_delim_n = $ac_delim_num; then
17799 elif $ac_last_try; then
17800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17805 rm -f conf$$subs.sh
17807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17812 s/^/S["/; s/!.*/"]=/
17822 s/\(.\{148\}\)..*/\1/
17824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17836 s/\(.\{148\}\)..*/\1/
17838 s/["\\]/\\&/g; s/^/"/; s/$/"/
17842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17847 ' <conf$$subs.awk | sed '
17852 ' >>$CONFIG_STATUS || ac_write_fail=1
17853 rm -f conf$$subs.awk
17854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17857 for (key in S) S_is_set[key] = 1
17863 nfields = split(line, field, "@")
17865 len = length(field[1])
17866 for (i = 2; i < nfields; i++) {
17868 keylen = length(key)
17869 if (S_is_set[key]) {
17871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17872 len += length(value) + length(field[++i])
17883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17894 # trailing colons and then remove the whole line if VPATH becomes empty
17895 # (actually we leave an empty line to preserve line numbers).
17896 if test "x$srcdir" = x.; then
17897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 fi # test -n "$CONFIG_FILES"
17918 # Set up the scripts for CONFIG_HEADERS section.
17919 # No need to generate them if there are no CONFIG_HEADERS.
17920 # This happens for instance with `./config.status Makefile'.
17921 if test -n "$CONFIG_HEADERS"; then
17922 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17926 # Transform confdefs.h into an awk script `defines.awk', embedded as
17927 # here-document in config.status, that substitutes the proper values into
17928 # config.h.in to produce config.h.
17930 # Create a delimiter string that does not exist in confdefs.h, to ease
17931 # handling of long lines.
17933 for ac_last_try in false false :; do
17934 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17935 if test -z "$ac_tt"; then
17937 elif $ac_last_try; then
17938 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17944 # For the awk script, D is an array of macro values keyed by name,
17945 # likewise P contains macro parameters if any. Preserve backslash
17946 # newline sequences.
17948 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17950 s/.\{148\}/&'"$ac_delim"'/g
17953 s/^[ ]*#[ ]*define[ ][ ]*/ /
17960 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17962 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17966 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17967 D["\1"]=" \3\\\\\\n"\\/p
17969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17974 s/.\{148\}/&'"$ac_delim"'/g
17979 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17982 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17984 ' <confdefs.h | sed '
17985 s/'"$ac_delim"'/"\\\
17986 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17989 for (key in D) D_is_set[key] = 1
17992 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17994 split(line, arg, " ")
17995 if (arg[1] == "#") {
17999 defundef = substr(arg[1], 2)
18002 split(mac1, mac2, "(") #)
18004 prefix = substr(line, 1, index(line, defundef) - 1)
18005 if (D_is_set[macro]) {
18006 # Preserve the white space surrounding the "#".
18007 print prefix "define", macro P[macro] D[macro]
18010 # Replace #undef with comments. This is necessary, for example,
18011 # in the case of _POSIX_SOURCE, which is predefined and required
18012 # on some systems where configure will not decide to define it.
18013 if (defundef == "undef") {
18014 print "/*", prefix defundef, macro, "*/"
18022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18023 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18024 fi # test -n "$CONFIG_HEADERS"
18027 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18032 :[FHLC]) ac_mode=$ac_tag; continue;;
18034 case $ac_mode$ac_tag in
18036 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18037 :[FH]-) ac_tag=-:-;;
18038 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18055 -) ac_f="$ac_tmp/stdin";;
18056 *) # Look for the file first in the build tree, then in the source tree
18057 # (if the path is not absolute). The absolute path cannot be DOS-style,
18058 # because $ac_f cannot contain `:'.
18062 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18064 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18066 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18067 as_fn_append ac_file_inputs " '$ac_f'"
18070 # Let's still pretend it is `configure' which instantiates (i.e., don't
18071 # use $as_me), people would be surprised to read:
18072 # /* config.h. Generated by config.status. */
18073 configure_input='Generated from '`
18074 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18076 if test x"$ac_file" != x-; then
18077 configure_input="$ac_file. $configure_input"
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18079 $as_echo "$as_me: creating $ac_file" >&6;}
18081 # Neutralize special characters interpreted by sed in replacement strings.
18082 case $configure_input in #(
18083 *\&* | *\|* | *\\* )
18084 ac_sed_conf_input=`$as_echo "$configure_input" |
18085 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18086 *) ac_sed_conf_input=$configure_input;;
18090 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18096 ac_dir=`$as_dirname -- "$ac_file" ||
18097 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18098 X"$ac_file" : 'X\(//\)[^/]' \| \
18099 X"$ac_file" : 'X\(//\)$' \| \
18100 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18101 $as_echo X"$ac_file" |
18102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18106 /^X\(\/\/\)[^/].*/{
18119 as_dir="$ac_dir"; as_fn_mkdir_p
18123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18126 # A ".." for each directory in $ac_dir_suffix.
18127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18128 case $ac_top_builddir_sub in
18129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18133 ac_abs_top_builddir=$ac_pwd
18134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18135 # for backward compatibility:
18136 ac_top_builddir=$ac_top_build_prefix
18139 .) # We are building in place.
18141 ac_top_srcdir=$ac_top_builddir_sub
18142 ac_abs_top_srcdir=$ac_pwd ;;
18143 [\\/]* | ?:[\\/]* ) # Absolute name.
18144 ac_srcdir=$srcdir$ac_dir_suffix;
18145 ac_top_srcdir=$srcdir
18146 ac_abs_top_srcdir=$srcdir ;;
18147 *) # Relative name.
18148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18149 ac_top_srcdir=$ac_top_build_prefix$srcdir
18150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18162 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18163 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18165 ac_MKDIR_P=$MKDIR_P
18167 [\\/$]* | ?:[\\/]* ) ;;
18168 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18173 # If the template does not know about datarootdir, expand it.
18174 # FIXME: This hack should be removed a few years after 2.60.
18175 ac_datarootdir_hack=; ac_datarootdir_seen=
18186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18187 *datarootdir*) ac_datarootdir_seen=yes;;
18188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18193 ac_datarootdir_hack='
18194 s&@datadir@&$datadir&g
18195 s&@docdir@&$docdir&g
18196 s&@infodir@&$infodir&g
18197 s&@localedir@&$localedir&g
18198 s&@mandir@&$mandir&g
18199 s&\\\${datarootdir}&$datarootdir&g' ;;
18203 # Neutralize VPATH when `$srcdir' = `.'.
18204 # Shell code in configure.ac might set extrasub.
18205 # FIXME: do we really want to maintain this feature?
18206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18207 ac_sed_extra="$ac_vpsub
18210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18213 s|@configure_input@|$ac_sed_conf_input|;t t
18214 s&@top_builddir@&$ac_top_builddir_sub&;t t
18215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18216 s&@srcdir@&$ac_srcdir&;t t
18217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18218 s&@top_srcdir@&$ac_top_srcdir&;t t
18219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18220 s&@builddir@&$ac_builddir&;t t
18221 s&@abs_builddir@&$ac_abs_builddir&;t t
18222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18223 s&@INSTALL@&$ac_INSTALL&;t t
18224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18225 $ac_datarootdir_hack
18227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18228 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18231 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18233 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18235 which seems to be undefined. Please make sure it is defined" >&5
18236 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18237 which seems to be undefined. Please make sure it is defined" >&2;}
18239 rm -f "$ac_tmp/stdin"
18241 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18242 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18250 if test x"$ac_file" != x-; then
18252 $as_echo "/* $configure_input */" \
18253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18254 } >"$ac_tmp/config.h" \
18255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18256 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18258 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18261 mv "$ac_tmp/config.h" "$ac_file" \
18262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18265 $as_echo "/* $configure_input */" \
18266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18267 || as_fn_error $? "could not create -" "$LINENO" 5
18269 # Compute "$ac_file"'s index in $config_headers.
18272 for _am_header in $config_headers :; do
18273 case $_am_header in
18274 $_am_arg | $_am_arg:* )
18277 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18280 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18281 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282 X"$_am_arg" : 'X\(//\)[^/]' \| \
18283 X"$_am_arg" : 'X\(//\)$' \| \
18284 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18285 $as_echo X"$_am_arg" |
18286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18290 /^X\(\/\/\)[^/].*/{
18302 s/.*/./; q'`/stamp-h$_am_stamp_count
18305 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18306 $as_echo "$as_me: executing $ac_file commands" >&6;}
18311 case $ac_file$ac_mode in
18312 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18313 # Older Autoconf quotes --file arguments for eval, but not when files
18314 # are listed without --file. Let's play safe and only enable the eval
18315 # if we detect the quoting.
18316 # TODO: see whether this extra hack can be removed once we start
18317 # requiring Autoconf 2.70 or later.
18318 case $CONFIG_FILES in #(
18320 eval set x "$CONFIG_FILES" ;; #(
18322 set x $CONFIG_FILES ;; #(
18327 # Used to flag and report bootstrapping failures.
18331 # Strip MF so we end up with the name of the file.
18332 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18333 # Check whether this is an Automake generated Makefile which includes
18334 # dependency-tracking related rules and includes.
18335 # Grep'ing the whole file directly is not great: AIX grep has a line
18336 # limit of 2048, but all sed's we know have understand at least 4000.
18337 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18339 am_dirpart=`$as_dirname -- "$am_mf" ||
18340 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18341 X"$am_mf" : 'X\(//\)[^/]' \| \
18342 X"$am_mf" : 'X\(//\)$' \| \
18343 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18344 $as_echo X"$am_mf" |
18345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18349 /^X\(\/\/\)[^/].*/{
18362 am_filepart=`$as_basename -- "$am_mf" ||
18363 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18364 X"$am_mf" : 'X\(//\)$' \| \
18365 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18366 $as_echo X/"$am_mf" |
18367 sed '/^.*\/\([^/][^/]*\)\/*$/{
18380 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18381 && sed -e '/# am--include-marker/d' "$am_filepart" \
18382 | $MAKE -f - am--depfiles" >&5
18383 (cd "$am_dirpart" \
18384 && sed -e '/# am--include-marker/d' "$am_filepart" \
18385 | $MAKE -f - am--depfiles) >&5 2>&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } || am_rc=$?
18390 if test $am_rc -ne 0; then
18391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18393 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18394 for automatic dependency tracking. If GNU make was not used, consider
18395 re-running the configure script with MAKE=\"gmake\" (or whatever is
18396 necessary). You can also try re-running configure with the
18397 '--disable-dependency-tracking' option to at least be able to build
18398 the package (albeit without support for automatic dependency tracking).
18399 See \`config.log' for more details" "$LINENO" 5; }
18401 { am_dirpart=; unset am_dirpart;}
18402 { am_filepart=; unset am_filepart;}
18403 { am_mf=; unset am_mf;}
18404 { am_rc=; unset am_rc;}
18405 rm -f conftest-deps.mk
18408 "po-directories":C)
18409 for ac_file in $CONFIG_FILES; do
18410 # Support "outfile[:infile[:infile...]]"
18412 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18414 # PO directories have a Makefile.in generated from Makefile.in.in.
18415 case "$ac_file" in */Makefile.in)
18416 # Adjust a relative srcdir.
18417 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18418 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18419 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18420 # In autoconf-2.13 it is called $ac_given_srcdir.
18421 # In autoconf-2.50 it is called $srcdir.
18422 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18423 case "$ac_given_srcdir" in
18424 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18425 /*) top_srcdir="$ac_given_srcdir" ;;
18426 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18428 # Treat a directory as a PO directory if and only if it has a
18429 # POTFILES.in file. This allows packages to have multiple PO
18430 # directories under different names or in different locations.
18431 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18432 rm -f "$ac_dir/POTFILES"
18433 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18434 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18435 POMAKEFILEDEPS="POTFILES.in"
18436 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18437 # on $ac_dir but don't depend on user-specified configuration
18439 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18440 # The LINGUAS file contains the set of available languages.
18441 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18442 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18444 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18445 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18446 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18447 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18449 # The set of available languages was given in configure.in.
18450 # Hide the ALL_LINGUAS assignment from automake < 1.5.
18451 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18454 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18455 # Compute UPDATEPOFILES
18456 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18457 # Compute DUMMYPOFILES
18458 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18460 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18461 case "$ac_given_srcdir" in
18463 *) srcdirpre='$(srcdir)/' ;;
18469 for lang in $ALL_LINGUAS; do
18470 POFILES="$POFILES $srcdirpre$lang.po"
18471 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18472 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18473 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18475 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18476 # environment variable.
18478 if test -n "$ALL_LINGUAS"; then
18479 for presentlang in $ALL_LINGUAS; do
18481 if test "%UNSET%" != "$LINGUAS"; then
18482 desiredlanguages="$LINGUAS"
18484 desiredlanguages="$ALL_LINGUAS"
18486 for desiredlang in $desiredlanguages; do
18487 # Use the presentlang catalog if desiredlang is
18488 # a. equal to presentlang, or
18489 # b. a variant of presentlang (because in this case,
18490 # presentlang can be used as a fallback for messages
18491 # which are not translated in the desiredlang catalog).
18492 case "$desiredlang" in
18493 "$presentlang"*) useit=yes;;
18496 if test $useit = yes; then
18497 INST_LINGUAS="$INST_LINGUAS $presentlang"
18502 if test -n "$INST_LINGUAS"; then
18503 for lang in $INST_LINGUAS; do
18504 CATALOGS="$CATALOGS $lang.gmo"
18507 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18508 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"
18509 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18510 if test -f "$f"; then
18512 *.orig | *.bak | *~) ;;
18513 *) cat "$f" >> "$ac_dir/Makefile" ;;
18528 ac_clean_files=$ac_clean_files_save
18530 test $ac_write_fail = 0 ||
18531 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18534 # configure is writing to config.log, and then calls config.status.
18535 # config.status does its own redirection, appending to config.log.
18536 # Unfortunately, on DOS this fails, as config.log is still kept open
18537 # by configure, so config.status won't be able to write to it; its
18538 # output is simply discarded. So we exec the FD to /dev/null,
18539 # effectively closing config.log, so it can be properly (re)opened and
18540 # appended to by config.status. When coming back to configure, we
18541 # need to make the FD available again.
18542 if test "$no_create" != yes; then
18544 ac_config_status_args=
18545 test "$silent" = yes &&
18546 ac_config_status_args="$ac_config_status_args --quiet"
18548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18551 # would make configure fail if this is the last instruction.
18552 $ac_cs_success || as_fn_exit 1
18554 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18556 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18561 if test "$build_tpm2d" = "yes"; then
18562 show_tss_type="($have_libtss)"
18566 GnuPG v${VERSION} has been configured as follows:
18568 Revision: c922a798a (51490)
18569 Platform: $PRINTABLE_OS_NAME ($host)
18571 OpenPGP: $build_gpg
18572 S/MIME: $build_gpgsm
18573 Agent: $build_agent
18574 Smartcard: $build_scdaemon $build_scdaemon_extra
18575 TPM: $build_tpm2d $show_tss_type
18577 Dirmngr: $build_dirmngr
18578 Keyboxd: $build_keyboxd
18579 Gpgtar: $build_gpgtar
18580 WKS tools: $build_wks_tools
18582 Protect tool: $show_gnupg_protect_tool_pgm
18583 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18584 Default agent: $show_gnupg_agent_pgm
18585 Default pinentry: $show_gnupg_pinentry_pgm
18586 Default scdaemon: $show_gnupg_scdaemon_pgm
18587 Default keyboxd: $show_gnupg_keyboxd_pgm
18588 Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18589 Default dirmngr: $show_gnupg_dirmngr_pgm
18591 Dirmngr auto start: $dirmngr_auto_start
18592 Readline support: $gnupg_cv_have_readline
18593 LDAP support: $gnupg_have_ldap
18594 TLS support: $use_tls_library
18595 TOFU support: $use_tofu
18596 Tor support: $show_tor_support
18598 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18600 Warning: TPM support is compiled in but no software TPM
18601 for testing was discovered. TPM tests are disabled
18605 if test "x${gpg_config_script_warn}" != x; then
18607 Warning: Mismatches between the target platform and the
18608 to be used libraries have been detected for:
18609 ${gpg_config_script_warn}
18610 Please check above for more warning messages.
18614 if test "${build_gpg}" != "yes"; then
18616 Warning: The component "gpg" is used by other components as
18617 well as for the test suite. You have disabled
18618 this component and thus other things won't work.
18622 if test "${run_tests}" != "yes"; then
18624 Warning: The use of the test suite has been disabled!
18625 This is in almost all cases a bad idea. Take care.