2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.2.31.
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.2.31'
584 PACKAGE_STRING='gnupg 2.2.31'
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
665 CROSS_COMPILING_FALSE
669 ENABLE_BZIP2_SUPPORT_FALSE
670 ENABLE_BZIP2_SUPPORT_TRUE
672 BUILD_INCLUDED_LIBINTL
679 XGETTEXT_EXTRA_OPTIONS
687 GETTEXT_MACRO_VERSION
732 HAVE_ANDROID_SYSTEM_FALSE
733 HAVE_ANDROID_SYSTEM_TRUE
734 HAVE_W32CE_SYSTEM_FALSE
735 HAVE_W32CE_SYSTEM_TRUE
736 HAVE_W32_SYSTEM_FALSE
738 USE_SIMPLE_GETTEXT_FALSE
739 USE_SIMPLE_GETTEXT_TRUE
740 HAVE_DOSISH_SYSTEM_FALSE
741 HAVE_DOSISH_SYSTEM_TRUE
746 AWK_HEX_NUMBER_OPTION
760 MAINTAINER_MODE_FALSE
766 GNUPG_DIRMNGR_LDAP_PGM_FALSE
767 GNUPG_DIRMNGR_LDAP_PGM_TRUE
768 GNUPG_DIRMNGR_LDAP_PGM
769 GNUPG_PROTECT_TOOL_PGM_FALSE
770 GNUPG_PROTECT_TOOL_PGM_TRUE
771 GNUPG_PROTECT_TOOL_PGM
772 GNUPG_DIRMNGR_PGM_FALSE
773 GNUPG_DIRMNGR_PGM_TRUE
775 GNUPG_SCDAEMON_PGM_FALSE
776 GNUPG_SCDAEMON_PGM_TRUE
778 GNUPG_PINENTRY_PGM_FALSE
779 GNUPG_PINENTRY_PGM_TRUE
781 GNUPG_AGENT_PGM_FALSE
824 INSTALL_STRIP_PROGRAM
867 program_transform_name
881 enable_option_checking
883 enable_dependency_tracking
896 with_protect_tool_pgm
897 with_dirmngr_ldap_pgm
899 enable_selinux_support
901 with_agent_s2k_calibration
916 enable_gpg_camellia128
917 enable_gpg_camellia192
918 enable_gpg_camellia256
933 enable_dirmngr_auto_start
934 enable_maintainer_mode
937 with_libgpg_error_prefix
938 with_gpg_error_prefix
939 with_libgcrypt_prefix
940 with_libassuan_prefix
948 with_default_trust_store_file
965 enable_gnupg_builddir_envvar
966 enable_run_gnupg_user_socket
967 enable_build_timestamp
969 ac_precious_vars='build_alias
990 # Initialize some variables set by options.
992 ac_init_version=false
993 ac_unrecognized_opts=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
1004 program_transform_name=s,x,x,
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 runstatedir='${localstatedir}/run'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1030 infodir='${datarootdir}/info'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\$ac_option
1051 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1058 case $ac_dashdash$ac_option in
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1082 -datadir | --datadir | --datadi | --datad)
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval enable_$ac_useropt=no ;;
1110 -docdir | --docdir | --docdi | --doc | --do)
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
1120 -enable-* | --enable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error $? "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_$ac_useropt"
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1134 eval enable_$ac_useropt=\$ac_optarg ;;
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
1143 exec_prefix=$ac_optarg ;;
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
1156 -host | --host | --hos | --ho)
1157 ac_prev=host_alias ;;
1158 -host=* | --host=* | --hos=* | --ho=*)
1159 host_alias=$ac_optarg ;;
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 htmldir=$ac_optarg ;;
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
1172 includedir=$ac_optarg ;;
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177 infodir=$ac_optarg ;;
1179 -libdir | --libdir | --libdi | --libd)
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182 libdir=$ac_optarg ;;
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
1189 libexecdir=$ac_optarg ;;
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
1197 | --localstate | --localstat | --localsta | --localst | --locals)
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201 localstatedir=$ac_optarg ;;
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206 mandir=$ac_optarg ;;
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213 | --no-cr | --no-c | -n)
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227 oldincludedir=$ac_optarg ;;
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232 prefix=$ac_optarg ;;
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239 program_prefix=$ac_optarg ;;
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246 program_suffix=$ac_optarg ;;
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
1263 program_transform_name=$ac_optarg ;;
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1270 -psdir | --psdir | --psdi | --psd | --ps)
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1279 -runstatedir | --runstatedir | --runstatedi | --runstated \
1280 | --runstate | --runstat | --runsta | --runst | --runs \
1281 | --run | --ru | --r)
1282 ac_prev=runstatedir ;;
1283 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1284 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1285 | --run=* | --ru=* | --r=*)
1286 runstatedir=$ac_optarg ;;
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292 sbindir=$ac_optarg ;;
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303 sharedstatedir=$ac_optarg ;;
1305 -site | --site | --sit)
1307 -site=* | --site=* | --sit=*)
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error $? "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1347 eval with_$ac_useropt=\$ac_optarg ;;
1349 -without-* | --without-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid package name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1363 eval with_$ac_useropt=no ;;
1366 # Obsolete; use --with-x.
1369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1370 | --x-incl | --x-inc | --x-in | --x-i)
1371 ac_prev=x_includes ;;
1372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1374 x_includes=$ac_optarg ;;
1376 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1378 ac_prev=x_libraries ;;
1379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1381 x_libraries=$ac_optarg ;;
1383 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1384 Try \`$0 --help' for more information"
1388 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1389 # Reject names that are not valid shell variable names.
1390 case $ac_envvar in #(
1391 '' | [0-9]* | *[!_$as_cr_alnum]* )
1392 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1394 eval $ac_envvar=\$ac_optarg
1395 export $ac_envvar ;;
1398 # FIXME: should be removed in autoconf 3.0.
1399 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1400 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1401 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1402 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1408 if test -n "$ac_prev"; then
1409 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1410 as_fn_error $? "missing argument to $ac_option"
1413 if test -n "$ac_unrecognized_opts"; then
1414 case $enable_option_checking in
1416 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1417 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 # Check all directory arguments for consistency.
1422 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1423 datadir sysconfdir sharedstatedir localstatedir includedir \
1424 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1425 libdir localedir mandir runstatedir
1427 eval ac_val=\$$ac_var
1428 # Remove trailing slashes.
1431 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1432 eval $ac_var=\$ac_val;;
1434 # Be sure to have absolute directory names.
1436 [\\/$]* | ?:[\\/]* ) continue;;
1437 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 elif test "x$build_alias" != "x$host_alias"; then
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461 test "$silent" = yes && exec 6>/dev/null
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467 as_fn_error $? "working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 as_fn_error $? "pwd does not report name of working directory"
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1504 ac_srcdir_defaulted=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1510 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1538 \`configure' configures gnupg 2.2.31 to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking ...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1579 --libdir=DIR object code libraries [EPREFIX/lib]
1580 --includedir=DIR C header files [PREFIX/include]
1581 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1582 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1583 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1584 --infodir=DIR info documentation [DATAROOTDIR/info]
1585 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1586 --mandir=DIR man documentation [DATAROOTDIR/man]
1587 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1588 --htmldir=DIR html documentation [DOCDIR]
1589 --dvidir=DIR dvi documentation [DOCDIR]
1590 --pdfdir=DIR pdf documentation [DOCDIR]
1591 --psdir=DIR ps documentation [DOCDIR]
1597 --program-prefix=PREFIX prepend PREFIX to installed program names
1598 --program-suffix=SUFFIX append SUFFIX to installed program names
1599 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607 if test -n "$ac_init_help"; then
1608 case $ac_init_help in
1609 short | recursive ) echo "Configuration of gnupg 2.2.31:";;
1614 --disable-option-checking ignore unrecognized --enable/--with options
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1617 --enable-silent-rules less verbose build output (undo: "make V=1")
1618 --disable-silent-rules verbose build output (undo: "make V=0")
1619 --enable-dependency-tracking
1620 do not reject slow dependency extractors
1621 --disable-dependency-tracking
1622 speeds up one-time build
1623 --disable-gpg do not build the gpg program
1624 --disable-gpgsm do not build the gpgsm program
1625 --disable-scdaemon do not build the scdaemon program
1626 --enable-g13 build the g13 program
1627 --disable-dirmngr do not build the dirmngr program
1628 --disable-doc do not build the doc program
1629 --disable-gpgtar do not build the gpgtar program
1630 --disable-wks-tools do not build the wks-tools program
1631 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1632 --enable-selinux-support
1633 enable SELinux support
1634 --enable-large-secmem allocate extra secure memory
1635 --disable-trust-models disable all trust models except "always"
1636 --disable-tofu disable the TOFU trust model
1637 --disable-libdns do not build with libdns support
1638 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1639 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1640 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1641 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1642 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1643 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1644 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1645 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1646 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1647 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1648 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1649 --disable-gpg-camellia128
1650 disable the CAMELLIA128 cipher algorithm in gpg
1651 --disable-gpg-camellia192
1652 disable the CAMELLIA192 cipher algorithm in gpg
1653 --disable-gpg-camellia256
1654 disable the CAMELLIA256 cipher algorithm in gpg
1655 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1656 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1657 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1658 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1659 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1660 --disable-zip disable the ZIP and ZLIB compression algorithm
1661 --disable-bzip2 disable the BZIP2 compression algorithm
1662 --disable-exec disable all external program execution
1663 --disable-photo-viewers disable photo ID viewers
1664 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1665 --disable-card-support disable smartcard support
1666 --disable-ccid-driver disable the internal CCID driver
1667 --disable-dirmngr-auto-start
1668 disable auto starting of the dirmngr
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful (and
1671 sometimes confusing) to the casual installer
1672 --disable-largefile omit support for large files
1673 --disable-sqlite disable the use of SQLITE
1674 --enable-npth-debug build with debug version of npth
1675 --disable-ntbtls disable the use of NTBTLS as TLS library
1676 --disable-gnutls disable GNUTLS as fallback TLS library
1677 --disable-ldap disable LDAP support
1678 --disable-rpath do not hardcode runtime library paths
1679 --disable-nls do not use Native Language Support
1680 --disable-endian-check disable the endian check and trust the OS provided
1682 --disable-optimization disable compiler optimization
1683 --enable-werror append -Werror to CFLAGS
1684 --enable-all-tests let "make check" run all tests
1685 --disable-tests do not run any tests
1687 --enable-run-gnupg-user-socket
1688 try /run/gnupg/user for sockets prior to /run/user
1689 --enable-build-timestamp
1690 set an explicit build timestamp for reproducibility.
1691 (default is the current time in ISO-8601 format)
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-agent-pgm=PATH Use PATH as the default for the agent)
1697 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1698 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1699 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1700 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1701 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1702 --with-agent-s2k-calibration=MSEC
1703 calibrate passphrase stretching (s2k) to MSEC
1705 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1706 --with-capabilities use linux capabilities default=no
1707 --with-tar=PATH look for a tar program in PATH
1708 --with-libgpg-error-prefix=PFX
1709 prefix where GPG Error is installed (optional)
1711 --with-libgcrypt-prefix=PFX
1712 prefix where LIBGCRYPT is installed (optional)
1713 --with-libassuan-prefix=PFX
1714 prefix where LIBASSUAN is installed (optional)
1715 --with-ksba-prefix=PFX prefix where KSBA is installed (optional)
1716 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1717 --with-ntbtls-prefix=PFX
1718 prefix where NTBTLS is installed (optional)
1719 --with-default-trust-store-file=FILE
1720 Use FILE as system trust store
1721 --with-ldap=DIR look for the LDAP library in DIR
1722 --with-mailprog=NAME use "NAME -t" for mail transport
1723 --with-gnu-ld assume the C compiler uses GNU ld default=no
1724 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1725 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1726 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1727 --without-libintl-prefix don't search for libintl in includedir and libdir
1728 --with-zlib=DIR use libz in DIR
1729 --with-bzip2=DIR look for bzip2 in DIR
1730 --with-readline=DIR look for the readline library in DIR
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1741 SYSROOT locate config scripts also below that directory
1742 YAT2M tool to convert texi to man pages
1744 build system C compiler
1745 PKG_CONFIG path to pkg-config utility
1747 directories to add to pkg-config's search path
1749 path overriding pkg-config's built-in search path
1751 C compiler flags for SQLITE3, overriding pkg-config
1753 linker flags for SQLITE3, overriding pkg-config
1755 C compiler flags for LIBGNUTLS, overriding pkg-config
1757 linker flags for LIBGNUTLS, overriding pkg-config
1759 Use these variables to override the choices made by `configure' or to help
1760 it to find libraries and programs with nonstandard names/locations.
1762 Report bugs to <https://bugs.gnupg.org>.
1767 if test "$ac_init_help" = "recursive"; then
1768 # If there are subdirs, report their specific --help.
1769 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1770 test -d "$ac_dir" ||
1771 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1779 # A ".." for each directory in $ac_dir_suffix.
1780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1781 case $ac_top_builddir_sub in
1782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1786 ac_abs_top_builddir=$ac_pwd
1787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1788 # for backward compatibility:
1789 ac_top_builddir=$ac_top_build_prefix
1792 .) # We are building in place.
1794 ac_top_srcdir=$ac_top_builddir_sub
1795 ac_abs_top_srcdir=$ac_pwd ;;
1796 [\\/]* | ?:[\\/]* ) # Absolute name.
1797 ac_srcdir=$srcdir$ac_dir_suffix;
1798 ac_top_srcdir=$srcdir
1799 ac_abs_top_srcdir=$srcdir ;;
1801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1802 ac_top_srcdir=$ac_top_build_prefix$srcdir
1803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807 cd "$ac_dir" || { ac_status=$?; continue; }
1808 # Check for guested configure.
1809 if test -f "$ac_srcdir/configure.gnu"; then
1811 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1812 elif test -f "$ac_srcdir/configure"; then
1814 $SHELL "$ac_srcdir/configure" --help=recursive
1816 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 cd "$ac_pwd" || { ac_status=$?; break; }
1822 test -n "$ac_init_help" && exit $ac_status
1823 if $ac_init_version; then
1825 gnupg configure 2.2.31
1826 generated by GNU Autoconf 2.69
1828 Copyright (C) 2012 Free Software Foundation, Inc.
1829 This configure script is free software; the Free Software Foundation
1830 gives unlimited permission to copy, distribute and modify it.
1835 ## ------------------------ ##
1836 ## Autoconf initialization. ##
1837 ## ------------------------ ##
1839 # ac_fn_c_try_compile LINENO
1840 # --------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext; then :
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_c_try_compile
1877 # ac_fn_c_try_cpp LINENO
1878 # ----------------------
1879 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } > conftest.i && {
1899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1919 ac_fn_c_check_header_mongrel ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if eval \${$3+:} false; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1943 ac_header_compiler=no
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1959 ac_header_preproc=no
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ( $as_echo "## ------------------------------------- ##
1985 ## Report this to https://bugs.gnupg.org ##
1986 ## ------------------------------------- ##"
1987 ) | sed "s/^/$as_me: WARNING: /" >&2
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 eval "$3=\$ac_header_compiler"
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_try_run LINENO
2006 # ----------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2008 # that executables *can* be run.
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { { ac_try="$ac_link"
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>&5
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2023 { { case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_try") 2>&5
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; }; }; then :
2035 $as_echo "$as_me: program exited with status $ac_status" >&5
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2039 ac_retval=$ac_status
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2047 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2048 # -------------------------------------------------------
2049 # Tests whether HEADER exists and can be compiled using the include files in
2050 # INCLUDES, setting the cache variable VAR accordingly.
2051 ac_fn_c_check_header_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2064 if ac_fn_c_try_compile "$LINENO"; then :
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_header_compile
2078 # ac_fn_c_try_link LINENO
2079 # -----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded.
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 rm -f conftest.$ac_objext conftest$ac_exeext
2085 if { { ac_try="$ac_link"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>conftest.err
2094 if test -s conftest.err; then
2095 grep -v '^ *+' conftest.err >conftest.er1
2096 cat conftest.er1 >&5
2097 mv -f conftest.er1 conftest.err
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && {
2101 test -z "$ac_c_werror_flag" ||
2102 test ! -s conftest.err
2103 } && test -s conftest$ac_exeext && {
2104 test "$cross_compiling" = yes ||
2105 test -x conftest$ac_exeext
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2114 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2115 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2116 # interfere with the next link command; also delete a directory that is
2117 # left behind by Apple's compiler. We do this before executing the actions.
2118 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 as_fn_set_status $ac_retval
2122 } # ac_fn_c_try_link
2124 # ac_fn_c_check_func LINENO FUNC VAR
2125 # ----------------------------------
2126 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2127 ac_fn_c_check_func ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2139 #define $2 innocuous_$2
2141 /* System header to define __stub macros and hopefully few prototypes,
2142 which can conflict with char $2 (); below.
2143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2144 <limits.h> exists even on freestanding compilers. */
2147 # include <limits.h>
2149 # include <assert.h>
2154 /* Override any GCC internal prototype to avoid an error.
2155 Use char because int might match the return type of a GCC
2156 builtin and then its argument prototype would still apply. */
2161 /* The GNU C library defines this for functions which it implements
2162 to always fail with ENOSYS. Some functions are actually named
2163 something starting with __ and the normal name is an alias. */
2164 #if defined __stub_$2 || defined __stub___$2
2176 if ac_fn_c_try_link "$LINENO"; then :
2181 rm -f core conftest.err conftest.$ac_objext \
2182 conftest$ac_exeext conftest.$ac_ext
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189 } # ac_fn_c_check_func
2191 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2192 # -------------------------------------------
2193 # Tests whether TYPE exists after having included INCLUDES, setting cache
2194 # variable VAR accordingly.
2195 ac_fn_c_check_type ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199 $as_echo_n "checking for $2... " >&6; }
2200 if eval \${$3+:} false; then :
2201 $as_echo_n "(cached) " >&6
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2229 if ac_fn_c_try_compile "$LINENO"; then :
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243 } # ac_fn_c_check_type
2245 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2246 # ---------------------------------------------
2247 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2249 ac_fn_c_check_decl ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 as_decl_name=`echo $2|sed 's/ *(.*//'`
2253 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2256 if eval \${$3+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 #ifndef $as_decl_name
2267 (void) $as_decl_use;
2269 (void) $as_decl_name;
2277 if ac_fn_c_try_compile "$LINENO"; then :
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_decl
2291 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2292 # --------------------------------------------
2293 # Tries to find the compile-time value of EXPR in a program that includes
2294 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2296 ac_fn_c_compute_int ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 if test "$cross_compiling" = yes; then
2300 # Depending upon the size, compute the lo and hi bounds.
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2307 static int test_array [1 - 2 * !(($2) >= 0)];
2309 return test_array [0];
2315 if ac_fn_c_try_compile "$LINENO"; then :
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2324 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2326 return test_array [0];
2332 if ac_fn_c_try_compile "$LINENO"; then :
2333 ac_hi=$ac_mid; break
2335 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2336 if test $ac_lo -le $ac_mid; then
2340 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2351 static int test_array [1 - 2 * !(($2) < 0)];
2353 return test_array [0];
2359 if ac_fn_c_try_compile "$LINENO"; then :
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2370 return test_array [0];
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 ac_lo=$ac_mid; break
2379 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2380 if test $ac_mid -le $ac_hi; then
2384 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 # Binary search between lo and hi bounds.
2395 while test "x$ac_lo" != "x$ac_hi"; do
2396 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2403 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2405 return test_array [0];
2411 if ac_fn_c_try_compile "$LINENO"; then :
2414 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2426 static long int longval () { return $2; }
2427 static unsigned long int ulongval () { return $2; }
2434 FILE *f = fopen ("conftest.val", "w");
2439 long int i = longval ();
2442 fprintf (f, "%ld", i);
2446 unsigned long int i = ulongval ();
2449 fprintf (f, "%lu", i);
2451 /* Do not output a trailing newline, as this causes \r\n confusion
2452 on some platforms. */
2453 return ferror (f) || fclose (f) != 0;
2459 if ac_fn_c_try_run "$LINENO"; then :
2460 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2465 conftest.$ac_objext conftest.beam conftest.$ac_ext
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_c_compute_int
2474 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2475 # ----------------------------------------------------
2476 # Tries to find if the field MEMBER exists in type AGGR, after including
2477 # INCLUDES, setting cache variable VAR accordingly.
2478 ac_fn_c_check_member ()
2480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2482 $as_echo_n "checking for $2.$3... " >&6; }
2483 if eval \${$4+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2499 if ac_fn_c_try_compile "$LINENO"; then :
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2509 if (sizeof ac_aggr.$3)
2515 if ac_fn_c_try_compile "$LINENO"; then :
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 } # ac_fn_c_check_member
2530 cat >config.log <<_ACEOF
2531 This file contains any messages produced by compilers while
2532 running configure, to aid debugging if configure makes a mistake.
2534 It was created by gnupg $as_me 2.2.31, which was
2535 generated by GNU Autoconf 2.69. Invocation command line was
2547 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2548 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2549 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2550 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2551 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2553 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2554 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2556 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2557 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2558 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2559 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2560 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2561 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2562 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 $as_echo "PATH: $as_dir"
2587 # Keep a trace of the command line.
2588 # Strip out --no-create and --no-recursion so they do not pile up.
2589 # Strip out --silent because we don't want to record it for future runs.
2590 # Also quote any args containing shell meta-characters.
2591 # Make two passes to allow for proper duplicate-argument suppression.
2595 ac_must_keep_next=false
2601 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2603 | -silent | --silent | --silen | --sile | --sil)
2606 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2611 as_fn_append ac_configure_args1 " '$ac_arg'"
2612 if test $ac_must_keep_next = true; then
2613 ac_must_keep_next=false # Got value, back to normal.
2616 *=* | --config-cache | -C | -disable-* | --disable-* \
2617 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2618 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2619 | -with-* | --with-* | -without-* | --without-* | --x)
2620 case "$ac_configure_args0 " in
2621 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2624 -* ) ac_must_keep_next=true ;;
2627 as_fn_append ac_configure_args " '$ac_arg'"
2632 { ac_configure_args0=; unset ac_configure_args0;}
2633 { ac_configure_args1=; unset ac_configure_args1;}
2635 # When interrupted or exit'd, cleanup temporary files, and complete
2636 # config.log. We remove comments because anyway the quotes in there
2637 # would cause problems or look ugly.
2638 # WARNING: Use '\'' to represent an apostrophe within the trap.
2639 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2640 trap 'exit_status=$?
2641 # Save into config.log some information that might help in debugging.
2645 $as_echo "## ---------------- ##
2646 ## Cache variables. ##
2647 ## ---------------- ##"
2649 # The following way of writing the cache mishandles newlines in values,
2651 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2652 eval ac_val=\$$ac_var
2656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2660 _ | IFS | as_nl) ;; #(
2661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2662 *) { eval $ac_var=; unset $ac_var;} ;;
2667 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2668 *${as_nl}ac_space=\ *)
2670 "s/'\''/'\''\\\\'\'''\''/g;
2671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2681 $as_echo "## ----------------- ##
2682 ## Output variables. ##
2683 ## ----------------- ##"
2685 for ac_var in $ac_subst_vars
2687 eval ac_val=\$$ac_var
2689 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2691 $as_echo "$ac_var='\''$ac_val'\''"
2695 if test -n "$ac_subst_files"; then
2696 $as_echo "## ------------------- ##
2697 ## File substitutions. ##
2698 ## ------------------- ##"
2700 for ac_var in $ac_subst_files
2702 eval ac_val=\$$ac_var
2704 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2706 $as_echo "$ac_var='\''$ac_val'\''"
2711 if test -s confdefs.h; then
2712 $as_echo "## ----------- ##
2719 test "$ac_signal" != 0 &&
2720 $as_echo "$as_me: caught signal $ac_signal"
2721 $as_echo "$as_me: exit $exit_status"
2723 rm -f core *.core core.conftest.* &&
2724 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2727 for ac_signal in 1 2 13 15; do
2728 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2732 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2733 rm -f -r conftest* confdefs.h
2735 $as_echo "/* confdefs.h */" > confdefs.h
2737 # Predefined preprocessor variables.
2739 cat >>confdefs.h <<_ACEOF
2740 #define PACKAGE_NAME "$PACKAGE_NAME"
2743 cat >>confdefs.h <<_ACEOF
2744 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2747 cat >>confdefs.h <<_ACEOF
2748 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2751 cat >>confdefs.h <<_ACEOF
2752 #define PACKAGE_STRING "$PACKAGE_STRING"
2755 cat >>confdefs.h <<_ACEOF
2756 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2759 cat >>confdefs.h <<_ACEOF
2760 #define PACKAGE_URL "$PACKAGE_URL"
2764 # Let the site file select an alternate cache file if it wants to.
2765 # Prefer an explicitly selected file to automatically selected ones.
2768 if test -n "$CONFIG_SITE"; then
2769 # We do not want a PATH search for config.site.
2770 case $CONFIG_SITE in #((
2771 -*) ac_site_file1=./$CONFIG_SITE;;
2772 */*) ac_site_file1=$CONFIG_SITE;;
2773 *) ac_site_file1=./$CONFIG_SITE;;
2775 elif test "x$prefix" != xNONE; then
2776 ac_site_file1=$prefix/share/config.site
2777 ac_site_file2=$prefix/etc/config.site
2779 ac_site_file1=$ac_default_prefix/share/config.site
2780 ac_site_file2=$ac_default_prefix/etc/config.site
2782 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2784 test "x$ac_site_file" = xNONE && continue
2785 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2787 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2788 sed 's/^/| /' "$ac_site_file" >&5
2790 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 as_fn_error $? "failed to load site script $ac_site_file
2793 See \`config.log' for more details" "$LINENO" 5; }
2797 if test -r "$cache_file"; then
2798 # Some versions of bash will fail to source /dev/null (special files
2799 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2800 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2802 $as_echo "$as_me: loading cache $cache_file" >&6;}
2804 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2805 *) . "./$cache_file";;
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2810 $as_echo "$as_me: creating cache $cache_file" >&6;}
2814 gt_needs="$gt_needs need-ngettext"
2815 as_fn_append ac_header_list " sys/socket.h"
2816 # Check that the precious variables saved in the cache have kept the same
2818 ac_cache_corrupted=false
2819 for ac_var in $ac_precious_vars; do
2820 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2821 eval ac_new_set=\$ac_env_${ac_var}_set
2822 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2823 eval ac_new_val=\$ac_env_${ac_var}_value
2824 case $ac_old_set,$ac_new_set in
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2827 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2828 ac_cache_corrupted=: ;;
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2831 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2832 ac_cache_corrupted=: ;;
2835 if test "x$ac_old_val" != "x$ac_new_val"; then
2836 # differences in whitespace do not lead to failure.
2837 ac_old_val_w=`echo x $ac_old_val`
2838 ac_new_val_w=`echo x $ac_new_val`
2839 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2841 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2842 ac_cache_corrupted=:
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2845 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2846 eval $ac_var=\$ac_old_val
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2849 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2851 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2854 # Pass precious variables to config.status.
2855 if test "$ac_new_set" = set; then
2857 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2858 *) ac_arg=$ac_var=$ac_new_val ;;
2860 case " $ac_configure_args " in
2861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2862 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2866 if $ac_cache_corrupted; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2870 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2871 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2873 ## -------------------- ##
2874 ## Main body of script. ##
2875 ## -------------------- ##
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 # When changing the SWDB tag please also adjust the hard coded tags in
2886 # build-aux/speedo.mk and Makefile.am
2888 cat >>confdefs.h <<_ACEOF
2889 #define GNUPG_SWDB_TAG "gnupg22"
2893 NEED_GPG_ERROR_VERSION=1.27
2895 NEED_LIBGCRYPT_API=1
2896 NEED_LIBGCRYPT_VERSION=1.8.0
2898 NEED_LIBASSUAN_API=2
2899 NEED_LIBASSUAN_VERSION=2.5.0
2902 NEED_KSBA_VERSION=1.3.5
2905 NEED_NTBTLS_VERSION=0.1.0
2908 NEED_NPTH_VERSION=1.2
2911 NEED_GNUTLS_VERSION=3.0
2913 NEED_SQLITE_VERSION=3.7
2915 development_version=no
2916 PACKAGE=$PACKAGE_NAME
2917 PACKAGE_GT=${PACKAGE_NAME}2
2918 VERSION=$PACKAGE_VERSION
2921 for ac_dir in build-aux "$srcdir"/build-aux; do
2922 if test -f "$ac_dir/install-sh"; then
2924 ac_install_sh="$ac_aux_dir/install-sh -c"
2926 elif test -f "$ac_dir/install.sh"; then
2928 ac_install_sh="$ac_aux_dir/install.sh -c"
2930 elif test -f "$ac_dir/shtool"; then
2932 ac_install_sh="$ac_aux_dir/shtool install -c"
2936 if test -z "$ac_aux_dir"; then
2937 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2940 # These three variables are undocumented and unsupported,
2941 # and are intended to be withdrawn in a future Autoconf release.
2942 # They can cause serious problems if a builder's source tree is in a directory
2943 # whose full name contains unusual characters.
2944 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2945 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2946 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2950 ac_config_headers="$ac_config_headers config.h"
2952 am__api_version='1.16'
2954 # Find a good install program. We prefer a C program (faster),
2955 # so one script is as good as another. But avoid the broken or
2956 # incompatible versions:
2957 # SysV /etc/install, /usr/sbin/install
2958 # SunOS /usr/etc/install
2959 # IRIX /sbin/install
2961 # AmigaOS /C/install, which installs bootblocks on floppy discs
2962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965 # OS/2's system install, which has a completely different semantic
2966 # ./install, which can be erroneously created by make from ./install.sh.
2967 # Reject install programs that cannot install multiple files.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2969 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2970 if test -z "$INSTALL"; then
2971 if ${ac_cv_path_install+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in #((
2981 ./ | .// | /[cC]/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
3001 rm -rf conftest.one conftest.two conftest.dir
3002 echo one > conftest.one
3003 echo two > conftest.two
3005 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3006 test -s conftest.one && test -s conftest.two &&
3007 test -s conftest.dir/conftest.one &&
3008 test -s conftest.dir/conftest.two
3010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023 rm -rf conftest.one conftest.two conftest.dir
3026 if test "${ac_cv_path_install+set}" = set; then
3027 INSTALL=$ac_cv_path_install
3029 # As a last resort, use the slow shell script. Don't cache a
3030 # value for INSTALL within a source directory, because that will
3031 # break other packages using the cache if that directory is
3032 # removed, or if the value is a relative name.
3033 INSTALL=$ac_install_sh
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3037 $as_echo "$INSTALL" >&6; }
3039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3040 # It thinks the first close brace ends the variable substitution.
3041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3048 $as_echo_n "checking whether build environment is sane... " >&6; }
3049 # Reject unsafe characters in $srcdir or the absolute working directory
3050 # name. Accept space and tab only in the latter.
3054 *[\\\"\#\$\&\'\`$am_lf]*)
3055 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3058 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3059 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3062 # Do 'set' in a subshell so we don't clobber the current shell's
3063 # arguments. Must try -L first in case configure is actually a
3064 # symlink; some systems play weird games with the mod time of symlinks
3065 # (eg FreeBSD returns the mod time of the symlink's containing
3069 for am_try in 1 2; do
3070 echo "timestamp, slept: $am_has_slept" > conftest.file
3071 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3072 if test "$*" = "X"; then
3074 set X `ls -t "$srcdir/configure" conftest.file`
3076 if test "$*" != "X $srcdir/configure conftest.file" \
3077 && test "$*" != "X conftest.file $srcdir/configure"; then
3079 # If neither matched, then we have a broken ls. This can happen
3080 # if, for instance, CONFIG_SHELL is bash and it inherits a
3081 # broken ls alias from the environment. This has actually
3082 # happened. Such a system could not be considered "sane".
3083 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3084 alias in your environment" "$LINENO" 5
3086 if test "$2" = conftest.file || test $am_try -eq 2; then
3093 test "$2" = conftest.file
3099 as_fn_error $? "newly created file is older than distributed files!
3100 Check your system clock" "$LINENO" 5
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3103 $as_echo "yes" >&6; }
3104 # If we didn't sleep, we still need to ensure time stamps of config.status and
3105 # generated files are strictly newer.
3107 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3114 test "$program_prefix" != NONE &&
3115 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3116 # Use a double $ so make ignores it.
3117 test "$program_suffix" != NONE &&
3118 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3119 # Double any \ or $.
3120 # By default was `s,x,x', remove it if useless.
3121 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3122 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3124 # Expand $ac_aux_dir to an absolute path.
3125 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3127 if test x"${MISSING+set}" != xset; then
3128 MISSING="\${SHELL} '$am_aux_dir/missing'"
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --is-lightweight"; then
3132 am_missing_run="$MISSING "
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3136 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3139 if test x"${install_sh+set}" != xset; then
3142 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3144 install_sh="\${SHELL} $am_aux_dir/install-sh"
3148 # Installed binaries are usually stripped using 'strip' when the user
3149 # run "make install-strip". However 'strip' might not be the right
3150 # tool to use in cross-compilation environments, therefore Automake
3151 # will honor the 'STRIP' environment variable to overrule this program.
3152 if test "$cross_compiling" != no; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_STRIP+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$STRIP"; then
3162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 $as_echo "$STRIP" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_STRIP"; then
3194 # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_STRIP"; then
3202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_STRIP="strip"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3222 if test -n "$ac_ct_STRIP"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3224 $as_echo "$ac_ct_STRIP" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_STRIP" = x; then
3233 case $cross_compiling:$ac_tool_warned in
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3242 STRIP="$ac_cv_prog_STRIP"
3246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3250 if test -z "$MKDIR_P"; then
3251 if ${ac_cv_path_mkdir+:} false; then :
3252 $as_echo_n "(cached) " >&6
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3258 test -z "$as_dir" && as_dir=.
3259 for ac_prog in mkdir gmkdir; do
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3262 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3263 'mkdir (GNU coreutils) '* | \
3264 'mkdir (coreutils) '* | \
3265 'mkdir (fileutils) '4.1*)
3266 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3276 test -d ./--version && rmdir ./--version
3277 if test "${ac_cv_path_mkdir+set}" = set; then
3278 MKDIR_P="$ac_cv_path_mkdir -p"
3280 # As a last resort, use the slow shell script. Don't cache a
3281 # value for MKDIR_P within a source directory, because that will
3282 # break other packages using the cache if that directory is
3283 # removed, or if the value is a relative name.
3284 MKDIR_P="$ac_install_sh -d"
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3288 $as_echo "$MKDIR_P" >&6; }
3290 for ac_prog in gawk mawk nawk awk
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293 set dummy $ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_AWK+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$AWK"; then
3300 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_AWK="$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$AWK"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3322 $as_echo "$AWK" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3329 test -n "$AWK" && break
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3333 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3335 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3336 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3337 $as_echo_n "(cached) " >&6
3339 cat >conftest.make <<\_ACEOF
3342 @echo '@@@%%%=$(MAKE)=@@@%%%'
3344 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3345 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3347 eval ac_cv_prog_make_${ac_make}_set=yes;;
3349 eval ac_cv_prog_make_${ac_make}_set=no;;
3353 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3355 $as_echo "yes" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 SET_MAKE="MAKE=${MAKE-make}"
3363 rm -rf .tst 2>/dev/null
3364 mkdir .tst 2>/dev/null
3365 if test -d .tst; then
3370 rmdir .tst 2>/dev/null
3372 # Check whether --enable-silent-rules was given.
3373 if test "${enable_silent_rules+set}" = set; then :
3374 enableval=$enable_silent_rules;
3377 case $enable_silent_rules in # (((
3378 yes) AM_DEFAULT_VERBOSITY=0;;
3379 no) AM_DEFAULT_VERBOSITY=1;;
3380 *) AM_DEFAULT_VERBOSITY=1;;
3382 am_make=${MAKE-make}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3384 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3385 if ${am_cv_make_support_nested_variables+:} false; then :
3386 $as_echo_n "(cached) " >&6
3388 if $as_echo 'TRUE=$(BAR$(V))
3394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3395 am_cv_make_support_nested_variables=yes
3397 am_cv_make_support_nested_variables=no
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3401 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3402 if test $am_cv_make_support_nested_variables = yes; then
3404 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3406 AM_V=$AM_DEFAULT_VERBOSITY
3407 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3413 # is not polluted with repeated "-I."
3414 am__isrc=' -I$(srcdir)'
3415 # test to see if srcdir already configured
3416 if test -f $srcdir/config.status; then
3417 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3421 # test whether we have cygpath
3422 if test -z "$CYGPATH_W"; then
3423 if (cygpath --version) >/dev/null 2>/dev/null; then
3424 CYGPATH_W='cygpath -w'
3431 # Define the identity of the package.
3436 cat >>confdefs.h <<_ACEOF
3437 #define PACKAGE "$PACKAGE"
3441 cat >>confdefs.h <<_ACEOF
3442 #define VERSION "$VERSION"
3445 # Some tools Automake needs.
3447 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3450 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3453 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3456 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3459 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3461 # For better backward compatibility. To be removed once Automake 1.9.x
3462 # dies out for good. For more background, see:
3463 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3464 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3465 mkdir_p='$(MKDIR_P)'
3467 # We need awk for the "check" target (and possibly the TAP driver). The
3468 # system "awk" is bad on some platforms.
3469 # Always define AMTAR for backward compatibility. Yes, it's still used
3470 # in the wild :-( We should find a proper way to deprecate it ...
3474 # We'll loop over all known methods to create a tar archive until one works.
3475 _am_tools='gnutar pax cpio none'
3477 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3484 # POSIX will say in a future version that running "rm -f" with no argument
3485 # is OK; and we want to be able to make that assumption in our Makefile
3486 # recipes. So use an aggressive probe to check that the usage we want is
3487 # actually supported "in the wild" to an acceptable degree.
3488 # See automake bug#10828.
3489 # To make any issue more visible, cause the running configure to be aborted
3490 # by default if the 'rm' program in use doesn't match our expectations; the
3491 # user can still override this though.
3492 if rm -f && rm -fr && rm -rf; then : OK; else
3496 Your 'rm' program seems unable to run without file operands specified
3497 on the command line, even when the '-f' option is present. This is contrary
3498 to the behaviour of most rm programs out there, and not conforming with
3499 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3501 Please tell bug-automake@gnu.org about your system, including the value
3502 of your $PATH and any error possibly output before this message. This
3503 can help us improve future automake versions.
3506 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3507 echo 'Configuration will proceed anyway, since you have set the' >&2
3508 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3512 Aborting the configuration process, to ensure you take notice of the issue.
3514 You can download and install GNU coreutils to get an 'rm' implementation
3515 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3517 If you want to complete the configuration process using your problematic
3518 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3519 to "yes", and re-run configure.
3522 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3526 # Make sure we can run config.sub.
3527 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3528 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3531 $as_echo_n "checking build system type... " >&6; }
3532 if ${ac_cv_build+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 ac_build_alias=$build_alias
3536 test "x$ac_build_alias" = x &&
3537 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3538 test "x$ac_build_alias" = x &&
3539 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3540 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3545 $as_echo "$ac_cv_build" >&6; }
3546 case $ac_cv_build in
3548 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3551 ac_save_IFS=$IFS; IFS='-'
3557 # Remember, the first character of IFS is used to create $*,
3558 # except with old shells:
3561 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3565 $as_echo_n "checking host system type... " >&6; }
3566 if ${ac_cv_host+:} false; then :
3567 $as_echo_n "(cached) " >&6
3569 if test "x$host_alias" = x; then
3570 ac_cv_host=$ac_cv_build
3572 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3578 $as_echo "$ac_cv_host" >&6; }
3581 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3584 ac_save_IFS=$IFS; IFS='-'
3590 # Remember, the first character of IFS is used to create $*,
3591 # except with old shells:
3594 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3602 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3604 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3606 if test "$hostname"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3608 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3611 date=`date +%Y%m%d-%H%M%S`
3612 if test "$?" != 0; then
3615 if test "$date"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3617 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3621 DEPDIR="${am__leading_dot}deps"
3623 ac_config_commands="$ac_config_commands depfiles"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3626 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3627 cat > confinc.mk << 'END'
3629 @echo this is the am__doit target >confinc.out
3634 # BSD make does it like this.
3635 echo '.include "confinc.mk" # ignored' > confmf.BSD
3636 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3637 echo 'include confinc.mk # ignored' > confmf.GNU
3639 for s in GNU BSD; do
3640 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3641 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }
3645 case $?:`cat confinc.out 2>/dev/null` in #(
3646 '0:this is the am__doit target') :
3649 am__include='.include' am__quote='"' ;; #(
3651 am__include='include' am__quote='' ;;
3656 if test "$am__include" != "#"; then
3657 _am_result="yes ($s style)"
3661 rm -f confinc.* confmf.*
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3663 $as_echo "${_am_result}" >&6; }
3665 # Check whether --enable-dependency-tracking was given.
3666 if test "${enable_dependency_tracking+set}" = set; then :
3667 enableval=$enable_dependency_tracking;
3670 if test "x$enable_dependency_tracking" != xno; then
3671 am_depcomp="$ac_aux_dir/depcomp"
3675 if test "x$enable_dependency_tracking" != xno; then
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if ${ac_cv_prog_CC+:} false; then :
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$ac_cv_prog_CC"; then
3730 # Extract the first word of "gcc", so it can be a program name with args.
3731 set dummy gcc; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3735 $as_echo_n "(cached) " >&6
3737 if test -n "$ac_ct_CC"; then
3738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_ac_ct_CC="gcc"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3766 if test "x$ac_ct_CC" = x; then
3769 case $cross_compiling:$ac_tool_warned in
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3781 if test -z "$CC"; then
3782 if test -n "$ac_tool_prefix"; then
3783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}cc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$CC"; then
3791 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_CC="${ac_tool_prefix}cc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 if test -n "$CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 $as_echo "$CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3822 if test -z "$CC"; then
3823 # Extract the first word of "cc", so it can be a program name with args.
3824 set dummy cc; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if ${ac_cv_prog_CC+:} false; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -n "$CC"; then
3831 ac_cv_prog_CC="$CC" # Let the user override the test.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3842 ac_prog_rejected=yes
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 if test $ac_prog_rejected = yes; then
3854 # We found a bogon in the path, so make sure we never use it.
3855 set dummy $ac_cv_prog_CC
3857 if test $# != 0; then
3858 # We chose a different compiler from the bogus one.
3859 # However, it has the same basename, so the bogon will be chosen
3860 # first if we set CC to just the basename; use the full file name.
3862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3868 if test -n "$CC"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3870 $as_echo "$CC" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3878 if test -z "$CC"; then
3879 if test -n "$ac_tool_prefix"; then
3880 for ac_prog in cl.exe
3882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 if test -n "$CC"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 $as_echo "$CC" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3919 test -n "$CC" && break
3922 if test -z "$CC"; then
3924 for ac_prog in cl.exe
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3931 $as_echo_n "(cached) " >&6
3933 if test -n "$ac_ct_CC"; then
3934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_CC="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 $as_echo "$ac_ct_CC" >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 test -n "$ac_ct_CC" && break
3966 if test "x$ac_ct_CC" = x; then
3969 case $cross_compiling:$ac_tool_warned in
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3982 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error $? "no acceptable C compiler found in \$PATH
3985 See \`config.log' for more details" "$LINENO" 5; }
3987 # Provide some information about the compiler.
3988 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3991 for ac_option in --version -v -V -qversion; do
3992 { { ac_try="$ac_compiler $ac_option >&5"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4001 if test -s conftest.err; then
4003 ... rest of stderr output deleted ...
4004 10q' conftest.err >conftest.er1
4005 cat conftest.er1 >&5
4007 rm -f conftest.er1 conftest.err
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 ac_clean_files_save=$ac_clean_files
4024 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4025 # Try to create an executable without -o first, disregard a.out.
4026 # It will help us diagnose broken compilers, and finding out an intuition
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4029 $as_echo_n "checking whether the C compiler works... " >&6; }
4030 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4032 # The possible output files:
4033 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4036 for ac_file in $ac_files
4039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4045 if { { ac_try="$ac_link_default"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_link_default") 2>&5
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4057 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4058 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4059 # so that the user can short-circuit this test for compilers unknown to
4061 for ac_file in $ac_files ''
4063 test -f "$ac_file" || continue
4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4068 # We found the default executable, but exeext='' is most
4072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4076 # We set ac_cv_exeext here because the later test for it is not
4077 # safe: cross compilers may not add the suffix if given an `-o'
4078 # argument, so we may need to know it at that point already.
4079 # Even if this section looks crufty: it has the advantage of
4086 test "$ac_cv_exeext" = no && ac_cv_exeext=
4091 if test -z "$ac_file"; then :
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error 77 "C compiler cannot create executables
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 $as_echo "yes" >&6; }
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 $as_echo_n "checking for C compiler default output file name... " >&6; }
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4108 $as_echo "$ac_file" >&6; }
4109 ac_exeext=$ac_cv_exeext
4111 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4112 ac_clean_files=$ac_clean_files_save
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 $as_echo_n "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; then :
4126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4128 # work properly (i.e., refer to `conftest.exe'), while it won't with
4130 for ac_file in conftest.exe conftest conftest.*; do
4131 test -f "$ac_file" || continue
4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4143 See \`config.log' for more details" "$LINENO" 5; }
4145 rm -f conftest conftest$ac_cv_exeext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147 $as_echo "$ac_cv_exeext" >&6; }
4149 rm -f conftest.$ac_ext
4150 EXEEXT=$ac_cv_exeext
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4158 FILE *f = fopen ("conftest.out", "w");
4159 return ferror (f) || fclose (f) != 0;
4165 ac_clean_files="$ac_clean_files conftest.out"
4166 # Check that the compiler produces executables we can run. If not, either
4167 # the compiler is broken, or we cross compile.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4169 $as_echo_n "checking whether we are cross compiling... " >&6; }
4170 if test "$cross_compiling" != yes; then
4171 { { ac_try="$ac_link"
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_link") 2>&5
4180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181 test $ac_status = 0; }
4182 if { ac_try='./conftest$ac_cv_exeext'
4183 { { case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_try") 2>&5
4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }; }; then
4195 if test "$cross_compiling" = maybe; then
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot run C compiled programs.
4201 If you meant to cross compile, use \`--host'.
4202 See \`config.log' for more details" "$LINENO" 5; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4207 $as_echo "$cross_compiling" >&6; }
4209 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4210 ac_clean_files=$ac_clean_files_save
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4212 $as_echo_n "checking for suffix of object files... " >&6; }
4213 if ${ac_cv_objext+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4227 rm -f conftest.o conftest.obj
4228 if { { ac_try="$ac_compile"
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 $as_echo "$ac_try_echo"; } >&5
4235 (eval "$ac_compile") 2>&5
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }; then :
4239 for ac_file in conftest.o conftest.obj conftest.*; do
4240 test -f "$ac_file" || continue;
4242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4248 $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4253 as_fn_error $? "cannot compute suffix of object files: cannot compile
4254 See \`config.log' for more details" "$LINENO" 5; }
4256 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4259 $as_echo "$ac_cv_objext" >&6; }
4260 OBJEXT=$ac_cv_objext
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4263 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4264 if ${ac_cv_c_compiler_gnu+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4281 if ac_fn_c_try_compile "$LINENO"; then :
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4291 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4292 if test $ac_compiler_gnu = yes; then
4297 ac_test_CFLAGS=${CFLAGS+set}
4298 ac_save_CFLAGS=$CFLAGS
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4300 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4301 if ${ac_cv_prog_cc_g+:} false; then :
4302 $as_echo_n "(cached) " >&6
4304 ac_save_c_werror_flag=$ac_c_werror_flag
4305 ac_c_werror_flag=yes
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4319 if ac_fn_c_try_compile "$LINENO"; then :
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4334 if ac_fn_c_try_compile "$LINENO"; then :
4337 ac_c_werror_flag=$ac_save_c_werror_flag
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4350 if ac_fn_c_try_compile "$LINENO"; then :
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 ac_c_werror_flag=$ac_save_c_werror_flag
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4361 $as_echo "$ac_cv_prog_cc_g" >&6; }
4362 if test "$ac_test_CFLAGS" = set; then
4363 CFLAGS=$ac_save_CFLAGS
4364 elif test $ac_cv_prog_cc_g = yes; then
4365 if test "$GCC" = yes; then
4371 if test "$GCC" = yes; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4378 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4379 if ${ac_cv_prog_cc_c89+:} false; then :
4380 $as_echo_n "(cached) " >&6
4382 ac_cv_prog_cc_c89=no
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4389 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4390 struct buf { int x; };
4391 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4392 static char *e (p, i)
4398 static char *f (char * (*g) (char **, int), char **p, ...)
4403 s = g (p, va_arg (v,int));
4408 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4409 function prototypes and stuff, but not '\xHH' hex character constants.
4410 These don't provoke an error unfortunately, instead are silently treated
4411 as 'x'. The following induces an error, until -std is added to get
4412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4413 array size at least. It's necessary to write '\x00'==0 to get something
4414 that's true only with -std. */
4415 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4417 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4418 inside strings and character constants. */
4420 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4422 int test (int i, double x);
4423 struct s1 {int (*f) (int a);};
4424 struct s2 {int (*f) (double a);};
4425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4431 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4436 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4439 CC="$ac_save_CC $ac_arg"
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 ac_cv_prog_cc_c89=$ac_arg
4443 rm -f core conftest.err conftest.$ac_objext
4444 test "x$ac_cv_prog_cc_c89" != "xno" && break
4446 rm -f conftest.$ac_ext
4451 case "x$ac_cv_prog_cc_c89" in
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4454 $as_echo "none needed" >&6; } ;;
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4457 $as_echo "unsupported" >&6; } ;;
4459 CC="$CC $ac_cv_prog_cc_c89"
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4461 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4463 if test "x$ac_cv_prog_cc_c89" != xno; then :
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4479 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4480 if ${am_cv_prog_cc_c_o+:} false; then :
4481 $as_echo_n "(cached) " >&6
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4494 # Make sure it works both with $CC and with simple cc.
4495 # Following AC_PROG_CC_C_O, we do the test twice because some
4496 # compilers refuse to overwrite an existing .o file with -o,
4497 # though they will create one.
4498 am_cv_prog_cc_c_o=yes
4500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } \
4505 && test -f conftest2.$ac_objext; then
4508 am_cv_prog_cc_c_o=no
4512 rm -f core conftest*
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4516 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4517 if test "$am_cv_prog_cc_c_o" != yes; then
4518 # Losing compiler, so override with the script.
4519 # FIXME: It is wrong to rewrite CC.
4520 # But if we don't then we get into trouble of one sort or another.
4521 # A longer-term fix would be to have automake use am__CC in this case,
4522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4523 CC="$am_aux_dir/compile $CC"
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532 depcc="$CC" am_compiler_list=
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4535 $as_echo_n "checking dependency style of $depcc... " >&6; }
4536 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4540 # We make a subdir and do the tests there. Otherwise we can end up
4541 # making bogus files that we don't know about and never remove. For
4542 # instance it was reported that on HP-UX the gcc test will end up
4543 # making a dummy file named 'D' -- because '-MD' means "put the output
4547 # Copy depcomp to subdir because otherwise we won't find it if we're
4548 # using a relative directory.
4549 cp "$am_depcomp" conftest.dir
4551 # We will build objects and dependencies in a subdirectory because
4552 # it helps to detect inapplicable dependency modes. For instance
4553 # both Tru64's cc and ICC support -MD to output dependencies as a
4554 # side effect of compilation, but ICC will put the dependencies in
4555 # the current directory while Tru64 will put them in the object
4559 am_cv_CC_dependencies_compiler_type=none
4560 if test "$am_compiler_list" = ""; then
4561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4564 case " $depcc " in #(
4565 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4568 for depmode in $am_compiler_list; do
4569 # Setup a source with many dependencies, because some compilers
4570 # like to wrap large dependency lists on column 80 (with \), and
4571 # we should not choose a depcomp mode which is confused by this.
4573 # We need to recreate these files for each test, as the compiler may
4574 # overwrite some of them when testing with obscure command lines.
4575 # This happens at least with the AIX C compiler.
4577 for i in 1 2 3 4 5 6; do
4578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4580 # Solaris 10 /bin/sh.
4581 echo '/* dummy */' > sub/conftst$i.h
4583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4585 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4586 # mode. It turns out that the SunPro C++ compiler does not properly
4587 # handle '-M -o', and we need to detect this. Also, some Intel
4588 # versions had trouble with output in subdirs.
4589 am__obj=sub/conftest.${OBJEXT-o}
4590 am__minus_obj="-o $am__obj"
4593 # This depmode causes a compiler race in universal mode.
4594 test "$am__universal" = false || continue
4597 # After this tag, mechanisms are not by side-effect, so they'll
4598 # only be used when explicitly requested.
4599 if test "x$enable_dependency_tracking" = xyes; then
4605 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4606 # This compiler won't grok '-c -o', but also, the minuso test has
4607 # not run yet. These depmodes are late enough in the game, and
4608 # so weak that their functioning should not be impacted.
4609 am__obj=conftest.${OBJEXT-o}
4614 if depmode=$depmode \
4615 source=sub/conftest.c object=$am__obj \
4616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4618 >/dev/null 2>conftest.err &&
4619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4623 # icc doesn't choke on unknown options, it will just issue warnings
4624 # or remarks (even with -Werror). So we grep stderr for any message
4625 # that says an option was ignored or not supported.
4626 # When given -MP, icc 7.0 and 7.1 complain thusly:
4627 # icc: Command line warning: ignoring option '-M'; no argument required
4628 # The diagnosis changed in icc 8.0:
4629 # icc: Command line remark: option '-MP' not supported
4630 if (grep 'ignoring option' conftest.err ||
4631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4632 am_cv_CC_dependencies_compiler_type=$depmode
4641 am_cv_CC_dependencies_compiler_type=none
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4646 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4647 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4650 test "x$enable_dependency_tracking" != xno \
4651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4653 am__fastdepCC_FALSE='#'
4655 am__fastdepCC_TRUE='#'
4656 am__fastdepCC_FALSE=
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4667 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4668 # On Suns, sometimes $CPP names a directory.
4669 if test -n "$CPP" && test -d "$CPP"; then
4672 if test -z "$CPP"; then
4673 if ${ac_cv_prog_CPP+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 # Double quotes because CPP needs to be expanded
4677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4680 for ac_c_preproc_warn_flag in '' yes
4682 # Use a header file that comes with gcc, so configuring glibc
4683 # with a fresh cross-compiler works.
4684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4685 # <limits.h> exists even on freestanding compilers.
4686 # On the NeXT, cc -E runs the code through the compiler's parser,
4687 # not just through cpp. "Syntax error" is here to catch this case.
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4691 # include <limits.h>
4693 # include <assert.h>
4697 if ac_fn_c_try_cpp "$LINENO"; then :
4700 # Broken: fails on valid input.
4703 rm -f conftest.err conftest.i conftest.$ac_ext
4705 # OK, works on sane cases. Now check whether nonexistent headers
4706 # can be detected and how.
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <ac_nonexistent.h>
4711 if ac_fn_c_try_cpp "$LINENO"; then :
4712 # Broken: success on invalid input.
4715 # Passes both tests.
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4722 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4723 rm -f conftest.i conftest.err conftest.$ac_ext
4724 if $ac_preproc_ok; then :
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4737 $as_echo "$CPP" >&6; }
4739 for ac_c_preproc_warn_flag in '' yes
4741 # Use a header file that comes with gcc, so configuring glibc
4742 # with a fresh cross-compiler works.
4743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 # <limits.h> exists even on freestanding compilers.
4745 # On the NeXT, cc -E runs the code through the compiler's parser,
4746 # not just through cpp. "Syntax error" is here to catch this case.
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4750 # include <limits.h>
4752 # include <assert.h>
4756 if ac_fn_c_try_cpp "$LINENO"; then :
4759 # Broken: fails on valid input.
4762 rm -f conftest.err conftest.i conftest.$ac_ext
4764 # OK, works on sane cases. Now check whether nonexistent headers
4765 # can be detected and how.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4768 #include <ac_nonexistent.h>
4770 if ac_fn_c_try_cpp "$LINENO"; then :
4771 # Broken: success on invalid input.
4774 # Passes both tests.
4778 rm -f conftest.err conftest.i conftest.$ac_ext
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.i conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then :
4786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4788 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4789 See \`config.log' for more details" "$LINENO" 5; }
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4800 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4801 if ${ac_cv_path_GREP+:} false; then :
4802 $as_echo_n "(cached) " >&6
4804 if test -z "$GREP"; then
4805 ac_path_GREP_found=false
4806 # Loop through the user's path and test for each of PROGNAME-LIST
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4811 test -z "$as_dir" && as_dir=.
4812 for ac_prog in grep ggrep; do
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4815 as_fn_executable_p "$ac_path_GREP" || continue
4816 # Check for GNU ac_path_GREP and select it if it is found.
4817 # Check for GNU $ac_path_GREP
4818 case `"$ac_path_GREP" --version 2>&1` in
4820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4823 $as_echo_n 0123456789 >"conftest.in"
4826 cat "conftest.in" "conftest.in" >"conftest.tmp"
4827 mv "conftest.tmp" "conftest.in"
4828 cp "conftest.in" "conftest.nl"
4829 $as_echo 'GREP' >> "conftest.nl"
4830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4832 as_fn_arith $ac_count + 1 && ac_count=$as_val
4833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4834 # Best one so far, save it but keep looking for a better one
4835 ac_cv_path_GREP="$ac_path_GREP"
4836 ac_path_GREP_max=$ac_count
4838 # 10*(2^10) chars as input seems more than enough
4839 test $ac_count -gt 10 && break
4841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 $ac_path_GREP_found && break 3
4849 if test -z "$ac_cv_path_GREP"; then
4850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4853 ac_cv_path_GREP=$GREP
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4858 $as_echo "$ac_cv_path_GREP" >&6; }
4859 GREP="$ac_cv_path_GREP"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4863 $as_echo_n "checking for egrep... " >&6; }
4864 if ${ac_cv_path_EGREP+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4868 then ac_cv_path_EGREP="$GREP -E"
4870 if test -z "$EGREP"; then
4871 ac_path_EGREP_found=false
4872 # Loop through the user's path and test for each of PROGNAME-LIST
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4877 test -z "$as_dir" && as_dir=.
4878 for ac_prog in egrep; do
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4881 as_fn_executable_p "$ac_path_EGREP" || continue
4882 # Check for GNU ac_path_EGREP and select it if it is found.
4883 # Check for GNU $ac_path_EGREP
4884 case `"$ac_path_EGREP" --version 2>&1` in
4886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4889 $as_echo_n 0123456789 >"conftest.in"
4892 cat "conftest.in" "conftest.in" >"conftest.tmp"
4893 mv "conftest.tmp" "conftest.in"
4894 cp "conftest.in" "conftest.nl"
4895 $as_echo 'EGREP' >> "conftest.nl"
4896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4898 as_fn_arith $ac_count + 1 && ac_count=$as_val
4899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4900 # Best one so far, save it but keep looking for a better one
4901 ac_cv_path_EGREP="$ac_path_EGREP"
4902 ac_path_EGREP_max=$ac_count
4904 # 10*(2^10) chars as input seems more than enough
4905 test $ac_count -gt 10 && break
4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 $ac_path_EGREP_found && break 3
4915 if test -z "$ac_cv_path_EGREP"; then
4916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4919 ac_cv_path_EGREP=$EGREP
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4925 $as_echo "$ac_cv_path_EGREP" >&6; }
4926 EGREP="$ac_cv_path_EGREP"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4930 $as_echo_n "checking for ANSI C header files... " >&6; }
4931 if ${ac_cv_header_stdc+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 ac_cv_header_stdc=yes
4952 ac_cv_header_stdc=no
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 if test $ac_cv_header_stdc = yes; then
4957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959 /* end confdefs.h. */
4963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 $EGREP "memchr" >/dev/null 2>&1; then :
4967 ac_cv_header_stdc=no
4973 if test $ac_cv_header_stdc = yes; then
4974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h. */
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "free" >/dev/null 2>&1; then :
4984 ac_cv_header_stdc=no
4990 if test $ac_cv_header_stdc = yes; then
4991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4992 if test "$cross_compiling" = yes; then :
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4999 #if ((' ' & 0x0FF) == 0x020)
5000 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5001 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5003 # define ISLOWER(c) \
5004 (('a' <= (c) && (c) <= 'i') \
5005 || ('j' <= (c) && (c) <= 'r') \
5006 || ('s' <= (c) && (c) <= 'z'))
5007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5015 for (i = 0; i < 256; i++)
5016 if (XOR (islower (i), ISLOWER (i))
5017 || toupper (i) != TOUPPER (i))
5022 if ac_fn_c_try_run "$LINENO"; then :
5025 ac_cv_header_stdc=no
5027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5028 conftest.$ac_objext conftest.beam conftest.$ac_ext
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5034 $as_echo "$ac_cv_header_stdc" >&6; }
5035 if test $ac_cv_header_stdc = yes; then
5037 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5041 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5042 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5043 inttypes.h stdint.h unistd.h
5045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5046 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5049 cat >>confdefs.h <<_ACEOF
5050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5060 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5067 if test "$MINIX" = yes; then
5069 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5072 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5075 $as_echo "#define _MINIX 1" >>confdefs.h
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5081 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5082 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5083 $as_echo_n "(cached) " >&6
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5088 # define __EXTENSIONS__ 1
5089 $ac_includes_default
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_safe_to_define___extensions__=yes
5101 ac_cv_safe_to_define___extensions__=no
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5106 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5107 test $ac_cv_safe_to_define___extensions__ = yes &&
5108 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5110 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5112 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5114 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5116 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5122 # Some status variables.
5132 have_system_resolver=no
5133 gnupg_have_ldap="n/a"
5138 use_trust_models=yes
5142 use_ccid_driver=auto
5143 dirmngr_auto_start=yes
5151 # Check whether --enable-gpg was given.
5152 if test "${enable_gpg+set}" = set; then :
5153 enableval=$enable_gpg; build_gpg=$enableval
5159 case "$build_gpg" in
5163 as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5171 # Check whether --enable-gpgsm was given.
5172 if test "${enable_gpgsm+set}" = set; then :
5173 enableval=$enable_gpgsm; build_gpgsm=$enableval
5179 case "$build_gpgsm" in
5183 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5188 # The agent is a required part and can't be disabled anymore.
5193 # Check whether --enable-scdaemon was given.
5194 if test "${enable_scdaemon+set}" = set; then :
5195 enableval=$enable_scdaemon; build_scdaemon=$enableval
5201 case "$build_scdaemon" in
5205 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5213 # Check whether --enable-g13 was given.
5214 if test "${enable_g13+set}" = set; then :
5215 enableval=$enable_g13; build_g13=$enableval
5221 case "$build_g13" in
5225 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5233 # Check whether --enable-dirmngr was given.
5234 if test "${enable_dirmngr+set}" = set; then :
5235 enableval=$enable_dirmngr; build_dirmngr=$enableval
5241 case "$build_dirmngr" in
5245 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5253 # Check whether --enable-doc was given.
5254 if test "${enable_doc+set}" = set; then :
5255 enableval=$enable_doc; build_doc=$enableval
5261 case "$build_doc" in
5265 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5270 # We use gpgtar to unpack test data, hence we always build it. If the
5271 # user opts out, we simply don't install it.
5275 # Check whether --enable-gpgtar was given.
5276 if test "${enable_gpgtar+set}" = set; then :
5277 enableval=$enable_gpgtar; build_gpgtar=$enableval
5283 case "$build_gpgtar" in
5287 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5292 # We also install the gpg-wks-server tool by default but disable it
5293 # later for platforms where it can't be build.
5297 # Check whether --enable-wks-tools was given.
5298 if test "${enable_wks_tools+set}" = set; then :
5299 enableval=$enable_wks_tools; build_wks_tools=$enableval
5305 case "$build_wks_tools" in
5309 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5320 cat >>confdefs.h <<_ACEOF
5321 #define PACKAGE "$PACKAGE"
5325 cat >>confdefs.h <<_ACEOF
5326 #define PACKAGE_GT "$PACKAGE_GT"
5330 cat >>confdefs.h <<_ACEOF
5331 #define VERSION "$VERSION"
5335 cat >>confdefs.h <<_ACEOF
5336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5340 cat >>confdefs.h <<_ACEOF
5341 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5345 cat >>confdefs.h <<_ACEOF
5346 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5350 cat >>confdefs.h <<_ACEOF
5351 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5357 # The default is to use the modules from this package and the few
5358 # other packages in a standard place; i.e where this package gets
5359 # installed. With these options it is possible to override these
5360 # ${prefix} depended values with fixed paths, which can't be replaced
5361 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5363 # Check whether --with-agent-pgm was given.
5364 if test "${with_agent_pgm+set}" = set; then :
5365 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5371 if test -n "$GNUPG_AGENT_PGM"; then
5372 GNUPG_AGENT_PGM_TRUE=
5373 GNUPG_AGENT_PGM_FALSE='#'
5375 GNUPG_AGENT_PGM_TRUE='#'
5376 GNUPG_AGENT_PGM_FALSE=
5379 show_gnupg_agent_pgm="(default)"
5380 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5383 # Check whether --with-pinentry-pgm was given.
5384 if test "${with_pinentry_pgm+set}" = set; then :
5385 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5387 GNUPG_PINENTRY_PGM=""
5391 if test -n "$GNUPG_PINENTRY_PGM"; then
5392 GNUPG_PINENTRY_PGM_TRUE=
5393 GNUPG_PINENTRY_PGM_FALSE='#'
5395 GNUPG_PINENTRY_PGM_TRUE='#'
5396 GNUPG_PINENTRY_PGM_FALSE=
5399 show_gnupg_pinentry_pgm="(default)"
5400 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5404 # Check whether --with-scdaemon-pgm was given.
5405 if test "${with_scdaemon_pgm+set}" = set; then :
5406 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5408 GNUPG_SCDAEMON_PGM=""
5412 if test -n "$GNUPG_SCDAEMON_PGM"; then
5413 GNUPG_SCDAEMON_PGM_TRUE=
5414 GNUPG_SCDAEMON_PGM_FALSE='#'
5416 GNUPG_SCDAEMON_PGM_TRUE='#'
5417 GNUPG_SCDAEMON_PGM_FALSE=
5420 show_gnupg_scdaemon_pgm="(default)"
5421 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5425 # Check whether --with-dirmngr-pgm was given.
5426 if test "${with_dirmngr_pgm+set}" = set; then :
5427 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5429 GNUPG_DIRMNGR_PGM=""
5433 if test -n "$GNUPG_DIRMNGR_PGM"; then
5434 GNUPG_DIRMNGR_PGM_TRUE=
5435 GNUPG_DIRMNGR_PGM_FALSE='#'
5437 GNUPG_DIRMNGR_PGM_TRUE='#'
5438 GNUPG_DIRMNGR_PGM_FALSE=
5441 show_gnupg_dirmngr_pgm="(default)"
5442 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5445 # Check whether --with-protect-tool-pgm was given.
5446 if test "${with_protect_tool_pgm+set}" = set; then :
5447 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5449 GNUPG_PROTECT_TOOL_PGM=""
5453 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5454 GNUPG_PROTECT_TOOL_PGM_TRUE=
5455 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5457 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5458 GNUPG_PROTECT_TOOL_PGM_FALSE=
5461 show_gnupg_protect_tool_pgm="(default)"
5462 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5463 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5466 # Check whether --with-dirmngr-ldap-pgm was given.
5467 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5468 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5470 GNUPG_DIRMNGR_LDAP_PGM=""
5474 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5475 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5476 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5478 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5479 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5482 show_gnupg_dirmngr_ldap_pgm="(default)"
5483 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5484 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5488 # For a long time gpg 2.x was installed as gpg2. This changed with
5489 # 2.2. This option can be used to install gpg under the name gpg2.
5491 # Check whether --enable-gpg-is-gpg2 was given.
5492 if test "${enable_gpg_is_gpg2+set}" = set; then :
5493 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5496 if test "$gpg_is_gpg2" = "yes"; then
5498 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5501 if test "$gpg_is_gpg2" = "yes"; then
5503 USE_GPG2_HACK_FALSE='#'
5505 USE_GPG2_HACK_TRUE='#'
5506 USE_GPG2_HACK_FALSE=
5511 # SELinux support includes tracking of sensitive files to avoid
5512 # leaking their contents through processing these files by gpg itself
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5514 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5515 # Check whether --enable-selinux-support was given.
5516 if test "${enable_selinux_support+set}" = set; then :
5517 enableval=$enable_selinux_support; selinux_support=$enableval
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5523 $as_echo "$selinux_support" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5527 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5528 # Check whether --enable-large-secmem was given.
5529 if test "${enable_large_secmem+set}" = set; then :
5530 enableval=$enable_large_secmem; large_secmem=$enableval
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5536 $as_echo "$large_secmem" >&6; }
5537 if test "$large_secmem" = yes ; then
5538 SECMEM_BUFFER_SIZE=65536
5540 SECMEM_BUFFER_SIZE=32768
5543 cat >>confdefs.h <<_ACEOF
5544 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5549 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5551 # Check whether --with-agent-s2k-calibration was given.
5552 if test "${with_agent_s2k_calibration+set}" = set; then :
5553 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5555 agent_s2k_calibration=100
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5559 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5561 cat >>confdefs.h <<_ACEOF
5562 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5567 $as_echo_n "checking whether to enable trust models... " >&6; }
5568 # Check whether --enable-trust-models was given.
5569 if test "${enable_trust_models+set}" = set; then :
5570 enableval=$enable_trust_models; use_trust_models=$enableval
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5574 $as_echo "$use_trust_models" >&6; }
5575 if test "$use_trust_models" = no ; then
5577 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5582 $as_echo_n "checking whether to enable TOFU... " >&6; }
5583 # Check whether --enable-tofu was given.
5584 if test "${enable_tofu+set}" = set; then :
5585 enableval=$enable_tofu; use_tofu=$enableval
5587 use_tofu=$use_trust_models
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5591 $as_echo "$use_tofu" >&6; }
5592 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5593 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5597 $as_echo_n "checking whether to enable libdns... " >&6; }
5598 # Check whether --enable-libdns was given.
5599 if test "${enable_libdns+set}" = set; then :
5600 enableval=$enable_libdns; use_libdns=$enableval
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5606 $as_echo "$use_libdns" >&6; }
5607 if test x"$use_libdns" = xyes ; then
5609 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5612 if test "$use_libdns" = yes; then
5614 USE_LIBDNS_FALSE='#'
5623 # Options to disable algorithm
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5627 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5628 # Check whether --enable-gpg-rsa was given.
5629 if test "${enable_gpg_rsa+set}" = set; then :
5630 enableval=$enable_gpg_rsa;
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5636 $as_echo "$enableval" >&6; }
5637 if test x"$enableval" = xyes ; then
5639 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5643 # Elgamal is a MUST algorithm
5644 # DSA is a MUST algorithm
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5646 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5647 # Check whether --enable-gpg-ecdh was given.
5648 if test "${enable_gpg_ecdh+set}" = set; then :
5649 enableval=$enable_gpg_ecdh;
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5655 $as_echo "$enableval" >&6; }
5656 if test x"$enableval" = xyes ; then
5658 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5663 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5664 # Check whether --enable-gpg-ecdsa was given.
5665 if test "${enable_gpg_ecdsa+set}" = set; then :
5666 enableval=$enable_gpg_ecdsa;
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5672 $as_echo "$enableval" >&6; }
5673 if test x"$enableval" = xyes ; then
5675 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5680 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5681 # Check whether --enable-gpg-eddsa was given.
5682 if test "${enable_gpg_eddsa+set}" = set; then :
5683 enableval=$enable_gpg_eddsa;
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5689 $as_echo "$enableval" >&6; }
5690 if test x"$enableval" = xyes ; then
5692 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5698 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5699 # Check whether --enable-gpg-idea was given.
5700 if test "${enable_gpg_idea+set}" = set; then :
5701 enableval=$enable_gpg_idea;
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5707 $as_echo "$enableval" >&6; }
5708 if test x"$enableval" = xyes ; then
5710 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5714 # 3DES is a MUST algorithm
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5716 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5717 # Check whether --enable-gpg-cast5 was given.
5718 if test "${enable_gpg_cast5+set}" = set; then :
5719 enableval=$enable_gpg_cast5;
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_CAST5 1" >>confdefs.h
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5733 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5734 # Check whether --enable-gpg-blowfish was given.
5735 if test "${enable_gpg_blowfish+set}" = set; then :
5736 enableval=$enable_gpg_blowfish;
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5742 $as_echo "$enableval" >&6; }
5743 if test x"$enableval" = xyes ; then
5745 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5750 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5751 # Check whether --enable-gpg-aes128 was given.
5752 if test "${enable_gpg_aes128+set}" = set; then :
5753 enableval=$enable_gpg_aes128;
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5759 $as_echo "$enableval" >&6; }
5760 if test x"$enableval" = xyes ; then
5762 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5767 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5768 # Check whether --enable-gpg-aes192 was given.
5769 if test "${enable_gpg_aes192+set}" = set; then :
5770 enableval=$enable_gpg_aes192;
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5776 $as_echo "$enableval" >&6; }
5777 if test x"$enableval" = xyes ; then
5779 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5784 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5785 # Check whether --enable-gpg-aes256 was given.
5786 if test "${enable_gpg_aes256+set}" = set; then :
5787 enableval=$enable_gpg_aes256;
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5793 $as_echo "$enableval" >&6; }
5794 if test x"$enableval" = xyes ; then
5796 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5801 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5802 # Check whether --enable-gpg-twofish was given.
5803 if test "${enable_gpg_twofish+set}" = set; then :
5804 enableval=$enable_gpg_twofish;
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5810 $as_echo "$enableval" >&6; }
5811 if test x"$enableval" = xyes ; then
5813 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5818 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5819 # Check whether --enable-gpg-camellia128 was given.
5820 if test "${enable_gpg_camellia128+set}" = set; then :
5821 enableval=$enable_gpg_camellia128;
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5827 $as_echo "$enableval" >&6; }
5828 if test x"$enableval" = xyes ; then
5830 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5835 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5836 # Check whether --enable-gpg-camellia192 was given.
5837 if test "${enable_gpg_camellia192+set}" = set; then :
5838 enableval=$enable_gpg_camellia192;
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5844 $as_echo "$enableval" >&6; }
5845 if test x"$enableval" = xyes ; then
5847 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5852 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5853 # Check whether --enable-gpg-camellia256 was given.
5854 if test "${enable_gpg_camellia256+set}" = set; then :
5855 enableval=$enable_gpg_camellia256;
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5861 $as_echo "$enableval" >&6; }
5862 if test x"$enableval" = xyes ; then
5864 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5870 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5871 # Check whether --enable-gpg-md5 was given.
5872 if test "${enable_gpg_md5+set}" = set; then :
5873 enableval=$enable_gpg_md5;
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5879 $as_echo "$enableval" >&6; }
5880 if test x"$enableval" = xyes ; then
5882 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5886 # SHA1 is a MUST algorithm
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5888 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5889 # Check whether --enable-gpg-rmd160 was given.
5890 if test "${enable_gpg_rmd160+set}" = set; then :
5891 enableval=$enable_gpg_rmd160;
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5897 $as_echo "$enableval" >&6; }
5898 if test x"$enableval" = xyes ; then
5900 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5905 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5906 # Check whether --enable-gpg-sha224 was given.
5907 if test "${enable_gpg_sha224+set}" = set; then :
5908 enableval=$enable_gpg_sha224;
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5914 $as_echo "$enableval" >&6; }
5915 if test x"$enableval" = xyes ; then
5917 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5921 # SHA256 is a MUST algorithm for GnuPG.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5923 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5924 # Check whether --enable-gpg-sha384 was given.
5925 if test "${enable_gpg_sha384+set}" = set; then :
5926 enableval=$enable_gpg_sha384;
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5932 $as_echo "$enableval" >&6; }
5933 if test x"$enableval" = xyes ; then
5935 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5940 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5941 # Check whether --enable-gpg-sha512 was given.
5942 if test "${enable_gpg_sha512+set}" = set; then :
5943 enableval=$enable_gpg_sha512;
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5949 $as_echo "$enableval" >&6; }
5950 if test x"$enableval" = xyes ; then
5952 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5958 # Allow disabling of zip support.
5959 # This is in general not a good idea because according to rfc4880 OpenPGP
5960 # implementations SHOULD support ZLIB.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5962 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5963 # Check whether --enable-zip was given.
5964 if test "${enable_zip+set}" = set; then :
5965 enableval=$enable_zip; use_zip=$enableval
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5969 $as_echo "$use_zip" >&6; }
5971 # Allow disabling of bzib2 support.
5972 # It is defined only after we confirm the library is available later
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5974 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5975 # Check whether --enable-bzip2 was given.
5976 if test "${enable_bzip2+set}" = set; then :
5977 enableval=$enable_bzip2; use_bzip2=$enableval
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5981 $as_echo "$use_bzip2" >&6; }
5983 # Configure option to allow or disallow execution of external
5984 # programs, like a photo viewer.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5986 $as_echo_n "checking whether to enable external program execution... " >&6; }
5987 # Check whether --enable-exec was given.
5988 if test "${enable_exec+set}" = set; then :
5989 enableval=$enable_exec; use_exec=$enableval
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
5993 $as_echo "$use_exec" >&6; }
5994 if test "$use_exec" = no ; then
5996 $as_echo "#define NO_EXEC 1" >>confdefs.h
6000 if test "$use_exec" = yes ; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6002 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6003 # Check whether --enable-photo-viewers was given.
6004 if test "${enable_photo_viewers+set}" = set; then :
6005 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6007 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6014 gnupg_cv_enable_photo_viewers=$enableval
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6016 $as_echo "$enableval" >&6; }
6018 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6020 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6022 # Check whether --with-photo-viewer was given.
6023 if test "${with_photo_viewer+set}" = set; then :
6024 withval=$with_photo_viewer; if test "$withval" = yes ; then
6026 elif test "$withval" != no ; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define FIXED_PHOTO_VIEWER "$withval"
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6038 $as_echo "$withval" >&6; }
6044 # Check for the key/uid cache size. This can't be zero, but can be
6045 # pretty small on embedded systems. This is used for the gpg part.
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6048 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6049 # Check whether --enable-key-cache was given.
6050 if test "${enable_key_cache+set}" = set; then :
6051 enableval=$enable_key_cache;
6056 if test "$enableval" = "no"; then
6058 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6061 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6062 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6063 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6066 $as_echo "$key_cache_size" >&6; }
6068 cat >>confdefs.h <<_ACEOF
6069 #define PK_UID_CACHE_SIZE $key_cache_size
6076 # Check whether we want to use Linux capabilities
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6079 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6081 # Check whether --with-capabilities was given.
6082 if test "${with_capabilities+set}" = set; then :
6083 withval=$with_capabilities; use_capabilities="$withval"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6089 $as_echo "$use_capabilities" >&6; }
6092 # Check whether to disable the card support
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6094 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6095 # Check whether --enable-card-support was given.
6096 if test "${enable_card_support+set}" = set; then :
6097 enableval=$enable_card_support; card_support=$enableval
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6101 $as_echo "$card_support" >&6; }
6102 if test "$card_support" = yes ; then
6104 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6111 # Allow disabling of internal CCID support.
6112 # It is defined only after we confirm the library is available later
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6115 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6116 # Check whether --enable-ccid-driver was given.
6117 if test "${enable_ccid_driver+set}" = set; then :
6118 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6122 $as_echo "$use_ccid_driver" >&6; }
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6125 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6126 # Check whether --enable-dirmngr-auto-start was given.
6127 if test "${enable_dirmngr_auto_start+set}" = set; then :
6128 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6132 $as_echo "$dirmngr_auto_start" >&6; }
6133 if test "$dirmngr_auto_start" = yes ; then
6135 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6141 # To avoid double inclusion of config.h which might happen at some
6142 # places, we add the usual double inclusion protection at the top of
6148 # Stuff which goes at the bottom of config.h.
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6155 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6156 # Check whether --enable-maintainer-mode was given.
6157 if test "${enable_maintainer_mode+set}" = set; then :
6158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6160 USE_MAINTAINER_MODE=no
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6164 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6165 if test $USE_MAINTAINER_MODE = yes; then
6166 MAINTAINER_MODE_TRUE=
6167 MAINTAINER_MODE_FALSE='#'
6169 MAINTAINER_MODE_TRUE='#'
6170 MAINTAINER_MODE_FALSE=
6173 MAINT=$MAINTAINER_MODE_TRUE
6178 # Checks for programs.
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6180 $as_echo "$as_me: checking for programs" >&6;}
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6182 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6184 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6185 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 cat >conftest.make <<\_ACEOF
6191 @echo '@@@%%%=$(MAKE)=@@@%%%'
6193 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6196 eval ac_cv_prog_make_${ac_make}_set=yes;;
6198 eval ac_cv_prog_make_${ac_make}_set=no;;
6202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6204 $as_echo "yes" >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6209 SET_MAKE="MAKE=${MAKE-make}"
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6213 $as_echo_n "checking whether build environment is sane... " >&6; }
6214 # Reject unsafe characters in $srcdir or the absolute working directory
6215 # name. Accept space and tab only in the latter.
6219 *[\\\"\#\$\&\'\`$am_lf]*)
6220 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6224 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6227 # Do 'set' in a subshell so we don't clobber the current shell's
6228 # arguments. Must try -L first in case configure is actually a
6229 # symlink; some systems play weird games with the mod time of symlinks
6230 # (eg FreeBSD returns the mod time of the symlink's containing
6234 for am_try in 1 2; do
6235 echo "timestamp, slept: $am_has_slept" > conftest.file
6236 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6237 if test "$*" = "X"; then
6239 set X `ls -t "$srcdir/configure" conftest.file`
6241 if test "$*" != "X $srcdir/configure conftest.file" \
6242 && test "$*" != "X conftest.file $srcdir/configure"; then
6244 # If neither matched, then we have a broken ls. This can happen
6245 # if, for instance, CONFIG_SHELL is bash and it inherits a
6246 # broken ls alias from the environment. This has actually
6247 # happened. Such a system could not be considered "sane".
6248 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6249 alias in your environment" "$LINENO" 5
6251 if test "$2" = conftest.file || test $am_try -eq 2; then
6258 test "$2" = conftest.file
6264 as_fn_error $? "newly created file is older than distributed files!
6265 Check your system clock" "$LINENO" 5
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268 $as_echo "yes" >&6; }
6269 # If we didn't sleep, we still need to ensure time stamps of config.status and
6270 # generated files are strictly newer.
6272 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6279 missing_dir=`cd $ac_aux_dir && pwd`
6281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6295 # Check whether --enable-silent-rules was given.
6296 if test "${enable_silent_rules+set}" = set; then :
6297 enableval=$enable_silent_rules;
6300 case $enable_silent_rules in # (((
6301 yes) AM_DEFAULT_VERBOSITY=0;;
6302 no) AM_DEFAULT_VERBOSITY=1;;
6303 *) AM_DEFAULT_VERBOSITY=1;;
6305 am_make=${MAKE-make}
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6307 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6308 if ${am_cv_make_support_nested_variables+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if $as_echo 'TRUE=$(BAR$(V))
6317 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6318 am_cv_make_support_nested_variables=yes
6320 am_cv_make_support_nested_variables=no
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6324 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6325 if test $am_cv_make_support_nested_variables = yes; then
6327 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6329 AM_V=$AM_DEFAULT_VERBOSITY
6330 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6334 for ac_prog in gawk mawk nawk awk
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337 set dummy $ac_prog; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if ${ac_cv_prog_AWK+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$AWK"; then
6344 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6353 ac_cv_prog_AWK="$ac_prog"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 if test -n "$AWK"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6366 $as_echo "$AWK" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 test -n "$AWK" && break
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 if test -n "$ac_tool_prefix"; then
6382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_CC+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 if test -n "$CC"; then
6390 ac_cv_prog_CC="$CC" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 if test -n "$CC"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6412 $as_echo "$CC" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6420 if test -z "$ac_cv_prog_CC"; then
6422 # Extract the first word of "gcc", so it can be a program name with args.
6423 set dummy gcc; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6427 $as_echo_n "(cached) " >&6
6429 if test -n "$ac_ct_CC"; then
6430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_ac_ct_CC="gcc"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6450 if test -n "$ac_ct_CC"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6452 $as_echo "$ac_ct_CC" >&6; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6458 if test "x$ac_ct_CC" = x; then
6461 case $cross_compiling:$ac_tool_warned in
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465 ac_tool_warned=yes ;;
6473 if test -z "$CC"; then
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}cc; ac_word=$2
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if ${ac_cv_prog_CC+:} false; then :
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$CC"; then
6483 ac_cv_prog_CC="$CC" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_CC="${ac_tool_prefix}cc"
6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 if test -n "$CC"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6505 $as_echo "$CC" >&6; }
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6508 $as_echo "no" >&6; }
6514 if test -z "$CC"; then
6515 # Extract the first word of "cc", so it can be a program name with args.
6516 set dummy cc; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_CC+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$CC"; then
6523 ac_cv_prog_CC="$CC" # Let the user override the test.
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
6532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6533 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6534 ac_prog_rejected=yes
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 if test $ac_prog_rejected = yes; then
6546 # We found a bogon in the path, so make sure we never use it.
6547 set dummy $ac_cv_prog_CC
6549 if test $# != 0; then
6550 # We chose a different compiler from the bogus one.
6551 # However, it has the same basename, so the bogon will be chosen
6552 # first if we set CC to just the basename; use the full file name.
6554 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6560 if test -n "$CC"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6562 $as_echo "$CC" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6570 if test -z "$CC"; then
6571 if test -n "$ac_tool_prefix"; then
6572 for ac_prog in cl.exe
6574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_CC+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$CC"; then
6582 ac_cv_prog_CC="$CC" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 if test -n "$CC"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6604 $as_echo "$CC" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6611 test -n "$CC" && break
6614 if test -z "$CC"; then
6616 for ac_prog in cl.exe
6618 # Extract the first word of "$ac_prog", so it can be a program name with args.
6619 set dummy $ac_prog; ac_word=$2
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621 $as_echo_n "checking for $ac_word... " >&6; }
6622 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6623 $as_echo_n "(cached) " >&6
6625 if test -n "$ac_ct_CC"; then
6626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_ac_ct_CC="$ac_prog"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6646 if test -n "$ac_ct_CC"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6648 $as_echo "$ac_ct_CC" >&6; }
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 $as_echo "no" >&6; }
6655 test -n "$ac_ct_CC" && break
6658 if test "x$ac_ct_CC" = x; then
6661 case $cross_compiling:$ac_tool_warned in
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6674 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6676 as_fn_error $? "no acceptable C compiler found in \$PATH
6677 See \`config.log' for more details" "$LINENO" 5; }
6679 # Provide some information about the compiler.
6680 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6683 for ac_option in --version -v -V -qversion; do
6684 { { ac_try="$ac_compiler $ac_option >&5"
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6690 $as_echo "$ac_try_echo"; } >&5
6691 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6693 if test -s conftest.err; then
6695 ... rest of stderr output deleted ...
6696 10q' conftest.err >conftest.er1
6697 cat conftest.er1 >&5
6699 rm -f conftest.er1 conftest.err
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6705 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6706 if ${ac_cv_c_compiler_gnu+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6723 if ac_fn_c_try_compile "$LINENO"; then :
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6733 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6734 if test $ac_compiler_gnu = yes; then
6739 ac_test_CFLAGS=${CFLAGS+set}
6740 ac_save_CFLAGS=$CFLAGS
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6742 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6743 if ${ac_cv_prog_cc_g+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 ac_save_c_werror_flag=$ac_c_werror_flag
6747 ac_c_werror_flag=yes
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6761 if ac_fn_c_try_compile "$LINENO"; then :
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6776 if ac_fn_c_try_compile "$LINENO"; then :
6779 ac_c_werror_flag=$ac_save_c_werror_flag
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6792 if ac_fn_c_try_compile "$LINENO"; then :
6795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 ac_c_werror_flag=$ac_save_c_werror_flag
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6803 $as_echo "$ac_cv_prog_cc_g" >&6; }
6804 if test "$ac_test_CFLAGS" = set; then
6805 CFLAGS=$ac_save_CFLAGS
6806 elif test $ac_cv_prog_cc_g = yes; then
6807 if test "$GCC" = yes; then
6813 if test "$GCC" = yes; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6820 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6821 if ${ac_cv_prog_cc_c89+:} false; then :
6822 $as_echo_n "(cached) " >&6
6824 ac_cv_prog_cc_c89=no
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6831 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6832 struct buf { int x; };
6833 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6834 static char *e (p, i)
6840 static char *f (char * (*g) (char **, int), char **p, ...)
6845 s = g (p, va_arg (v,int));
6850 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6851 function prototypes and stuff, but not '\xHH' hex character constants.
6852 These don't provoke an error unfortunately, instead are silently treated
6853 as 'x'. The following induces an error, until -std is added to get
6854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6855 array size at least. It's necessary to write '\x00'==0 to get something
6856 that's true only with -std. */
6857 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6859 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6860 inside strings and character constants. */
6862 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6864 int test (int i, double x);
6865 struct s1 {int (*f) (int a);};
6866 struct s2 {int (*f) (double a);};
6867 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6873 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6878 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6881 CC="$ac_save_CC $ac_arg"
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 ac_cv_prog_cc_c89=$ac_arg
6885 rm -f core conftest.err conftest.$ac_objext
6886 test "x$ac_cv_prog_cc_c89" != "xno" && break
6888 rm -f conftest.$ac_ext
6893 case "x$ac_cv_prog_cc_c89" in
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6896 $as_echo "none needed" >&6; } ;;
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6899 $as_echo "unsupported" >&6; } ;;
6901 CC="$CC $ac_cv_prog_cc_c89"
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6903 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6905 if test "x$ac_cv_prog_cc_c89" != xno; then :
6910 ac_cpp='$CPP $CPPFLAGS'
6911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6921 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6922 if ${am_cv_prog_cc_c_o+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6936 # Make sure it works both with $CC and with simple cc.
6937 # Following AC_PROG_CC_C_O, we do the test twice because some
6938 # compilers refuse to overwrite an existing .o file with -o,
6939 # though they will create one.
6940 am_cv_prog_cc_c_o=yes
6942 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6943 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } \
6947 && test -f conftest2.$ac_objext; then
6950 am_cv_prog_cc_c_o=no
6954 rm -f core conftest*
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6958 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6959 if test "$am_cv_prog_cc_c_o" != yes; then
6960 # Losing compiler, so override with the script.
6961 # FIXME: It is wrong to rewrite CC.
6962 # But if we don't then we get into trouble of one sort or another.
6963 # A longer-term fix would be to have automake use am__CC in this case,
6964 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6965 CC="$am_aux_dir/compile $CC"
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 depcc="$CC" am_compiler_list=
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6977 $as_echo_n "checking dependency style of $depcc... " >&6; }
6978 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6979 $as_echo_n "(cached) " >&6
6981 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6982 # We make a subdir and do the tests there. Otherwise we can end up
6983 # making bogus files that we don't know about and never remove. For
6984 # instance it was reported that on HP-UX the gcc test will end up
6985 # making a dummy file named 'D' -- because '-MD' means "put the output
6989 # Copy depcomp to subdir because otherwise we won't find it if we're
6990 # using a relative directory.
6991 cp "$am_depcomp" conftest.dir
6993 # We will build objects and dependencies in a subdirectory because
6994 # it helps to detect inapplicable dependency modes. For instance
6995 # both Tru64's cc and ICC support -MD to output dependencies as a
6996 # side effect of compilation, but ICC will put the dependencies in
6997 # the current directory while Tru64 will put them in the object
7001 am_cv_CC_dependencies_compiler_type=none
7002 if test "$am_compiler_list" = ""; then
7003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7006 case " $depcc " in #(
7007 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7010 for depmode in $am_compiler_list; do
7011 # Setup a source with many dependencies, because some compilers
7012 # like to wrap large dependency lists on column 80 (with \), and
7013 # we should not choose a depcomp mode which is confused by this.
7015 # We need to recreate these files for each test, as the compiler may
7016 # overwrite some of them when testing with obscure command lines.
7017 # This happens at least with the AIX C compiler.
7019 for i in 1 2 3 4 5 6; do
7020 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7021 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7022 # Solaris 10 /bin/sh.
7023 echo '/* dummy */' > sub/conftst$i.h
7025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7027 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7028 # mode. It turns out that the SunPro C++ compiler does not properly
7029 # handle '-M -o', and we need to detect this. Also, some Intel
7030 # versions had trouble with output in subdirs.
7031 am__obj=sub/conftest.${OBJEXT-o}
7032 am__minus_obj="-o $am__obj"
7035 # This depmode causes a compiler race in universal mode.
7036 test "$am__universal" = false || continue
7039 # After this tag, mechanisms are not by side-effect, so they'll
7040 # only be used when explicitly requested.
7041 if test "x$enable_dependency_tracking" = xyes; then
7047 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7048 # This compiler won't grok '-c -o', but also, the minuso test has
7049 # not run yet. These depmodes are late enough in the game, and
7050 # so weak that their functioning should not be impacted.
7051 am__obj=conftest.${OBJEXT-o}
7056 if depmode=$depmode \
7057 source=sub/conftest.c object=$am__obj \
7058 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7060 >/dev/null 2>conftest.err &&
7061 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7063 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7065 # icc doesn't choke on unknown options, it will just issue warnings
7066 # or remarks (even with -Werror). So we grep stderr for any message
7067 # that says an option was ignored or not supported.
7068 # When given -MP, icc 7.0 and 7.1 complain thusly:
7069 # icc: Command line warning: ignoring option '-M'; no argument required
7070 # The diagnosis changed in icc 8.0:
7071 # icc: Command line remark: option '-MP' not supported
7072 if (grep 'ignoring option' conftest.err ||
7073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7074 am_cv_CC_dependencies_compiler_type=$depmode
7083 am_cv_CC_dependencies_compiler_type=none
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7088 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7089 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7092 test "x$enable_dependency_tracking" != xno \
7093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7095 am__fastdepCC_FALSE='#'
7097 am__fastdepCC_TRUE='#'
7098 am__fastdepCC_FALSE=
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7108 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7109 # On Suns, sometimes $CPP names a directory.
7110 if test -n "$CPP" && test -d "$CPP"; then
7113 if test -z "$CPP"; then
7114 if ${ac_cv_prog_CPP+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 # Double quotes because CPP needs to be expanded
7118 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7121 for ac_c_preproc_warn_flag in '' yes
7123 # Use a header file that comes with gcc, so configuring glibc
7124 # with a fresh cross-compiler works.
7125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7126 # <limits.h> exists even on freestanding compilers.
7127 # On the NeXT, cc -E runs the code through the compiler's parser,
7128 # not just through cpp. "Syntax error" is here to catch this case.
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7132 # include <limits.h>
7134 # include <assert.h>
7138 if ac_fn_c_try_cpp "$LINENO"; then :
7141 # Broken: fails on valid input.
7144 rm -f conftest.err conftest.i conftest.$ac_ext
7146 # OK, works on sane cases. Now check whether nonexistent headers
7147 # can be detected and how.
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <ac_nonexistent.h>
7152 if ac_fn_c_try_cpp "$LINENO"; then :
7153 # Broken: success on invalid input.
7156 # Passes both tests.
7160 rm -f conftest.err conftest.i conftest.$ac_ext
7163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7164 rm -f conftest.i conftest.err conftest.$ac_ext
7165 if $ac_preproc_ok; then :
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7178 $as_echo "$CPP" >&6; }
7180 for ac_c_preproc_warn_flag in '' yes
7182 # Use a header file that comes with gcc, so configuring glibc
7183 # with a fresh cross-compiler works.
7184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7185 # <limits.h> exists even on freestanding compilers.
7186 # On the NeXT, cc -E runs the code through the compiler's parser,
7187 # not just through cpp. "Syntax error" is here to catch this case.
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7191 # include <limits.h>
7193 # include <assert.h>
7197 if ac_fn_c_try_cpp "$LINENO"; then :
7200 # Broken: fails on valid input.
7203 rm -f conftest.err conftest.i conftest.$ac_ext
7205 # OK, works on sane cases. Now check whether nonexistent headers
7206 # can be detected and how.
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <ac_nonexistent.h>
7211 if ac_fn_c_try_cpp "$LINENO"; then :
7212 # Broken: success on invalid input.
7215 # Passes both tests.
7219 rm -f conftest.err conftest.i conftest.$ac_ext
7222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7223 rm -f conftest.i conftest.err conftest.$ac_ext
7224 if $ac_preproc_ok; then :
7227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7229 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7230 See \`config.log' for more details" "$LINENO" 5; }
7234 ac_cpp='$CPP $CPPFLAGS'
7235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7240 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7241 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7245 $as_echo_n "checking whether ln -s works... " >&6; }
7247 if test "$LN_S" = "ln -s"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7249 $as_echo "yes" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7252 $as_echo "no, using $LN_S" >&6; }
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259 $as_echo_n "checking for $ac_word... " >&6; }
7260 if ${ac_cv_prog_RANLIB+:} false; then :
7261 $as_echo_n "(cached) " >&6
7263 if test -n "$RANLIB"; then
7264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 test -z "$as_dir" && as_dir=.
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 RANLIB=$ac_cv_prog_RANLIB
7284 if test -n "$RANLIB"; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7286 $as_echo "$RANLIB" >&6; }
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289 $as_echo "no" >&6; }
7294 if test -z "$ac_cv_prog_RANLIB"; then
7295 ac_ct_RANLIB=$RANLIB
7296 # Extract the first word of "ranlib", so it can be a program name with args.
7297 set dummy ranlib; ac_word=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7301 $as_echo_n "(cached) " >&6
7303 if test -n "$ac_ct_RANLIB"; then
7304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir=.
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_ac_ct_RANLIB="ranlib"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7324 if test -n "$ac_ct_RANLIB"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7326 $as_echo "$ac_ct_RANLIB" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7332 if test "x$ac_ct_RANLIB" = x; then
7335 case $cross_compiling:$ac_tool_warned in
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339 ac_tool_warned=yes ;;
7341 RANLIB=$ac_ct_RANLIB
7344 RANLIB="$ac_cv_prog_RANLIB"
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ar; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_AR+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 if test -n "$AR"; then
7356 ac_cv_prog_AR="$AR" # Let the user override the test.
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 test -z "$as_dir" && as_dir=.
7363 for ac_exec_ext in '' $ac_executable_extensions; do
7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365 ac_cv_prog_AR="${ac_tool_prefix}ar"
7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376 if test -n "$AR"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7378 $as_echo "$AR" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7386 if test -z "$ac_cv_prog_AR"; then
7388 # Extract the first word of "ar", so it can be a program name with args.
7389 set dummy ar; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7393 $as_echo_n "(cached) " >&6
7395 if test -n "$ac_ct_AR"; then
7396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 test -z "$as_dir" && as_dir=.
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_AR="ar"
7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7416 if test -n "$ac_ct_AR"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7418 $as_echo "$ac_ct_AR" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7424 if test "x$ac_ct_AR" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7439 # Extract the first word of ""perl"", so it can be a program name with args.
7440 set dummy "perl"; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_path_PERL+:} false; then :
7444 $as_echo_n "(cached) " >&6
7448 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 PERL=$ac_cv_path_PERL
7470 if test -n "$PERL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7472 $as_echo "$PERL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7479 if test -n "$ac_tool_prefix"; then
7480 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7481 set dummy ${ac_tool_prefix}windres; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_WINDRES+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 if test -n "$WINDRES"; then
7488 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 WINDRES=$ac_cv_prog_WINDRES
7508 if test -n "$WINDRES"; then
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7510 $as_echo "$WINDRES" >&6; }
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7518 if test -z "$ac_cv_prog_WINDRES"; then
7519 ac_ct_WINDRES=$WINDRES
7520 # Extract the first word of "windres", so it can be a program name with args.
7521 set dummy windres; ac_word=$2
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523 $as_echo_n "checking for $ac_word... " >&6; }
7524 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7525 $as_echo_n "(cached) " >&6
7527 if test -n "$ac_ct_WINDRES"; then
7528 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537 ac_cv_prog_ac_ct_WINDRES="windres"
7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7548 if test -n "$ac_ct_WINDRES"; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7550 $as_echo "$ac_ct_WINDRES" >&6; }
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553 $as_echo "no" >&6; }
7556 if test "x$ac_ct_WINDRES" = x; then
7559 case $cross_compiling:$ac_tool_warned in
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563 ac_tool_warned=yes ;;
7565 WINDRES=$ac_ct_WINDRES
7568 WINDRES="$ac_cv_prog_WINDRES"
7571 # Extract the first word of ""yat2m"", so it can be a program name with args.
7572 set dummy "yat2m"; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_path_YAT2M+:} false; then :
7576 $as_echo_n "(cached) " >&6
7580 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 YAT2M=$ac_cv_path_YAT2M
7602 if test -n "$YAT2M"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7604 $as_echo "$YAT2M" >&6; }
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7612 if test -n "$ac_cv_path_YAT2M"; then
7614 HAVE_YAT2M_FALSE='#'
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7622 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7623 if ${ac_cv_lib_cposix_strerror+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 ac_check_lib_save_LIBS=$LIBS
7627 LIBS="-lcposix $LIBS"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7631 /* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7646 if ac_fn_c_try_link "$LINENO"; then :
7647 ac_cv_lib_cposix_strerror=yes
7649 ac_cv_lib_cposix_strerror=no
7651 rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7656 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7657 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7658 LIBS="$LIBS -lcposix"
7663 # Check whether --enable-largefile was given.
7664 if test "${enable_largefile+set}" = set; then :
7665 enableval=$enable_largefile;
7668 if test "$enable_largefile" != no; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7671 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7672 if ${ac_cv_sys_largefile_CC+:} false; then :
7673 $as_echo_n "(cached) " >&6
7675 ac_cv_sys_largefile_CC=no
7676 if test "$GCC" != yes; then
7679 # IRIX 6.2 and later do not support large files by default,
7680 # so use the C compiler's -n32 option if that helps.
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #include <sys/types.h>
7684 /* Check that off_t can represent 2**63 - 1 correctly.
7685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7686 since some C++ compilers masquerading as C compilers
7687 incorrectly reject 9223372036854775807. */
7688 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7690 && LARGE_OFF_T % 2147483647 == 1)
7700 if ac_fn_c_try_compile "$LINENO"; then :
7703 rm -f core conftest.err conftest.$ac_objext
7705 if ac_fn_c_try_compile "$LINENO"; then :
7706 ac_cv_sys_largefile_CC=' -n32'; break
7708 rm -f core conftest.err conftest.$ac_objext
7712 rm -f conftest.$ac_ext
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7716 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7717 if test "$ac_cv_sys_largefile_CC" != no; then
7718 CC=$CC$ac_cv_sys_largefile_CC
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7722 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7723 if ${ac_cv_sys_file_offset_bits+:} false; then :
7724 $as_echo_n "(cached) " >&6
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #include <sys/types.h>
7730 /* Check that off_t can represent 2**63 - 1 correctly.
7731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7732 since some C++ compilers masquerading as C compilers
7733 incorrectly reject 9223372036854775807. */
7734 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7736 && LARGE_OFF_T % 2147483647 == 1)
7746 if ac_fn_c_try_compile "$LINENO"; then :
7747 ac_cv_sys_file_offset_bits=no; break
7749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7752 #define _FILE_OFFSET_BITS 64
7753 #include <sys/types.h>
7754 /* Check that off_t can represent 2**63 - 1 correctly.
7755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7756 since some C++ compilers masquerading as C compilers
7757 incorrectly reject 9223372036854775807. */
7758 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7760 && LARGE_OFF_T % 2147483647 == 1)
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771 ac_cv_sys_file_offset_bits=64; break
7773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 ac_cv_sys_file_offset_bits=unknown
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7779 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7780 case $ac_cv_sys_file_offset_bits in #(
7783 cat >>confdefs.h <<_ACEOF
7784 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7789 if test $ac_cv_sys_file_offset_bits = unknown; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7791 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7792 if ${ac_cv_sys_large_files+:} false; then :
7793 $as_echo_n "(cached) " >&6
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 #include <sys/types.h>
7799 /* Check that off_t can represent 2**63 - 1 correctly.
7800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7801 since some C++ compilers masquerading as C compilers
7802 incorrectly reject 9223372036854775807. */
7803 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7805 && LARGE_OFF_T % 2147483647 == 1)
7815 if ac_fn_c_try_compile "$LINENO"; then :
7816 ac_cv_sys_large_files=no; break
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 #define _LARGE_FILES 1
7822 #include <sys/types.h>
7823 /* Check that off_t can represent 2**63 - 1 correctly.
7824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7825 since some C++ compilers masquerading as C compilers
7826 incorrectly reject 9223372036854775807. */
7827 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7829 && LARGE_OFF_T % 2147483647 == 1)
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 ac_cv_sys_large_files=1; break
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843 ac_cv_sys_large_files=unknown
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7848 $as_echo "$ac_cv_sys_large_files" >&6; }
7849 case $ac_cv_sys_large_files in #(
7852 cat >>confdefs.h <<_ACEOF
7853 #define _LARGE_FILES $ac_cv_sys_large_files
7865 # Check whether --with-tar was given.
7866 if test "${with_tar+set}" = set; then :
7867 withval=$with_tar; _do_tar=$withval
7871 if test x$_do_tar != xno ; then
7873 if test x$_do_tar = x ; then
7874 # Extract the first word of ""tar"", so it can be a program name with args.
7875 set dummy "tar"; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_path_TAR+:} false; then :
7879 $as_echo_n "(cached) " >&6
7883 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 if test -n "$TAR"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7907 $as_echo "$TAR" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7914 _mytar=$ac_cv_path_TAR
7917 # Check if our tar is ustar format. If so, it's good. TODO: Add some
7918 # code to check various options, etc, to try and create ustar
7921 if test x$_mytar != x ; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7923 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7924 echo hithere > conftest.txt
7925 $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7929 if test x$_tar_bad = x0 ; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931 $as_echo "yes" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7939 if test x$_tar_bad = x0; then
7941 HAVE_USTAR_FALSE='#'
7950 # GNU AWK requires -n option to interpret "0xHH" as a number
7951 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7952 AWK_HEX_NUMBER_OPTION=''
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7954 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7956 AWK_HEX_NUMBER_OPTION='-n'
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7958 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7962 # We need to compile and run a program on the build machine. A
7963 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7964 # the AC archive is broken for autoconf 2.57. Given that there is no
7965 # newer version of that macro, we assume that it is also broken for
7966 # autoconf 2.61 and thus we use a simple but usually sufficient
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7969 $as_echo_n "checking for cc for build... " >&6; }
7970 if test "$cross_compiling" = "yes"; then
7971 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7973 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7976 $as_echo "$CC_FOR_BUILD" >&6; }
7979 # We need to call this macro because other pkg-config macros are
7988 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7989 if test -n "$ac_tool_prefix"; then
7990 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7995 $as_echo_n "(cached) " >&6
7999 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8021 if test -n "$PKG_CONFIG"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8023 $as_echo "$PKG_CONFIG" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 if test -z "$ac_cv_path_PKG_CONFIG"; then
8032 ac_pt_PKG_CONFIG=$PKG_CONFIG
8033 # Extract the first word of "pkg-config", so it can be a program name with args.
8034 set dummy pkg-config; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 case $ac_pt_PKG_CONFIG in
8042 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8063 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8064 if test -n "$ac_pt_PKG_CONFIG"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8066 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8072 if test "x$ac_pt_PKG_CONFIG" = x; then
8075 case $cross_compiling:$ac_tool_warned in
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8079 ac_tool_warned=yes ;;
8081 PKG_CONFIG=$ac_pt_PKG_CONFIG
8084 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8088 if test -n "$PKG_CONFIG"; then
8089 _pkg_min_version=0.9.0
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8091 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8092 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8094 $as_echo "yes" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8105 have_dosish_system=no
8107 have_w32ce_system=no
8108 have_android_system=no
8109 use_simple_gettext=no
8111 require_pipe_to_unblock_pselect=yes
8114 # special stuff for Windoze NT
8115 ac_cv_have_dev_random=no
8117 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8120 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8122 have_dosish_system=yes
8125 require_pipe_to_unblock_pselect=no
8128 have_w32ce_system=yes
8132 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8137 use_simple_gettext=yes
8141 i?86-emx-os2 | i?86-*-os2*emx )
8142 # OS/2 with the EMX environment
8143 ac_cv_have_dev_random=no
8144 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8146 have_dosish_system=yes
8152 # DOS with the DJGPP environment
8153 ac_cv_have_dev_random=no
8154 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8156 have_dosish_system=yes
8162 if test -z "$GCC" ; then
8163 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8167 if test -z "$GCC" ; then
8168 # Suppress all warnings
8169 # to get rid of the unsigned/signed char mismatch warnings.
8174 if test -z "$GCC" ; then
8175 # Use the newer compiler `-msg_disable ptrmismatch1' to
8176 # get rid of the unsigned/signed char mismatch warnings.
8177 # Using this may hide other pointer mismatch warnings, but
8178 # it at least lets other warning classes through
8179 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8185 have_android_system=yes
8186 # Android is fully utf-8 and we do not want to use iconv to
8187 # keeps things simple
8193 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8197 require_pipe_to_unblock_pselect=yes
8203 if test "$require_pipe_to_unblock_pselect" = yes; then
8205 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8209 if test "$have_dosish_system" = yes; then
8211 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8214 if test "$have_dosish_system" = yes; then
8215 HAVE_DOSISH_SYSTEM_TRUE=
8216 HAVE_DOSISH_SYSTEM_FALSE='#'
8218 HAVE_DOSISH_SYSTEM_TRUE='#'
8219 HAVE_DOSISH_SYSTEM_FALSE=
8223 if test x"$use_simple_gettext" = xyes; then
8224 USE_SIMPLE_GETTEXT_TRUE=
8225 USE_SIMPLE_GETTEXT_FALSE='#'
8227 USE_SIMPLE_GETTEXT_TRUE='#'
8228 USE_SIMPLE_GETTEXT_FALSE=
8232 if test "$have_w32_system" = yes; then
8234 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8236 if test "$have_w32ce_system" = yes; then
8238 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8242 if test "$have_w32_system" = yes; then
8243 HAVE_W32_SYSTEM_TRUE=
8244 HAVE_W32_SYSTEM_FALSE='#'
8246 HAVE_W32_SYSTEM_TRUE='#'
8247 HAVE_W32_SYSTEM_FALSE=
8250 if test "$have_w32ce_system" = yes; then
8251 HAVE_W32CE_SYSTEM_TRUE=
8252 HAVE_W32CE_SYSTEM_FALSE='#'
8254 HAVE_W32CE_SYSTEM_TRUE='#'
8255 HAVE_W32CE_SYSTEM_FALSE=
8259 if test "$have_android_system" = yes; then
8261 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8264 if test "$have_android_system" = yes; then
8265 HAVE_ANDROID_SYSTEM_TRUE=
8266 HAVE_ANDROID_SYSTEM_FALSE='#'
8268 HAVE_ANDROID_SYSTEM_TRUE='#'
8269 HAVE_ANDROID_SYSTEM_FALSE=
8274 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8276 cat >>confdefs.h <<_ACEOF
8277 #define EXEEXT "$EXEEXT"
8283 # Checks for libraries.
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8286 $as_echo "$as_me: checking for libraries" >&6;}
8290 # libgpg-error is a library with error codes shared between GnuPG
8294 gpg_error_config_prefix=""
8296 # Check whether --with-libgpg-error-prefix was given.
8297 if test "${with_libgpg_error_prefix+set}" = set; then :
8298 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8303 # Check whether --with-gpg-error-prefix was given.
8304 if test "${with_gpg_error_prefix+set}" = set; then :
8305 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8309 if test x"${GPG_ERROR_CONFIG}" = x ; then
8310 if test x"${gpg_error_config_prefix}" != x ; then
8311 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8313 case "${SYSROOT}" in
8315 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8316 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8323 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8329 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8330 set dummy gpg-error-config; ac_word=$2
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8332 $as_echo_n "checking for $ac_word... " >&6; }
8333 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8334 $as_echo_n "(cached) " >&6
8336 case $GPG_ERROR_CONFIG in
8338 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8360 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8361 if test -n "$GPG_ERROR_CONFIG"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8363 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8370 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8372 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8374 if test "$GPG_ERROR_CONFIG" != "no" \
8375 && test -f "$GPG_ERROR_CONFIG" ; then
8376 req_major=`echo $min_gpg_error_version | \
8377 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8378 req_minor=`echo $min_gpg_error_version | \
8379 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8380 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8381 major=`echo $gpg_error_config_version | \
8382 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8383 minor=`echo $gpg_error_config_version | \
8384 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8385 if test "$major" -gt "$req_major"; then
8388 if test "$major" -eq "$req_major"; then
8389 if test "$minor" -ge "$req_minor"; then
8395 if test $ok = yes; then
8396 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8397 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8398 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8399 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8401 $as_echo "yes ($gpg_error_config_version)" >&6; }
8403 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8404 if test x"$gpg_error_config_host" != xnone ; then
8405 if test x"$gpg_error_config_host" != x"$host" ; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8408 *** The config script $GPG_ERROR_CONFIG was
8409 *** built for $gpg_error_config_host and thus may not match the
8410 *** used host $host.
8411 *** You may want to use the configure option --with-gpg-error-prefix
8412 *** to specify a matching config script or use \$SYSROOT.
8414 $as_echo "$as_me: WARNING:
8416 *** The config script $GPG_ERROR_CONFIG was
8417 *** built for $gpg_error_config_host and thus may not match the
8418 *** used host $host.
8419 *** You may want to use the configure option --with-gpg-error-prefix
8420 *** to specify a matching config script or use \$SYSROOT.
8422 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8428 GPG_ERROR_MT_CFLAGS=""
8429 GPG_ERROR_MT_LIBS=""
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8442 # Libgcrypt is our generic crypto library
8446 # Check whether --with-libgcrypt-prefix was given.
8447 if test "${with_libgcrypt_prefix+set}" = set; then :
8448 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8450 libgcrypt_config_prefix=""
8453 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8454 if test x"${libgcrypt_config_prefix}" != x ; then
8455 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8457 case "${SYSROOT}" in
8459 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8460 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8467 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8473 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8474 set dummy libgcrypt-config; ac_word=$2
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476 $as_echo_n "checking for $ac_word... " >&6; }
8477 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8478 $as_echo_n "(cached) " >&6
8480 case $LIBGCRYPT_CONFIG in
8482 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 test -z "$as_dir" && as_dir=.
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8504 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8505 if test -n "$LIBGCRYPT_CONFIG"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8507 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8514 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8515 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8516 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8517 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8520 min_libgcrypt_version="$tmp"
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8524 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8526 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8527 req_major=`echo $min_libgcrypt_version | \
8528 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8529 req_minor=`echo $min_libgcrypt_version | \
8530 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8531 req_micro=`echo $min_libgcrypt_version | \
8532 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8533 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8534 major=`echo $libgcrypt_config_version | \
8535 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8536 minor=`echo $libgcrypt_config_version | \
8537 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8538 micro=`echo $libgcrypt_config_version | \
8539 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8540 if test "$major" -gt "$req_major"; then
8543 if test "$major" -eq "$req_major"; then
8544 if test "$minor" -gt "$req_minor"; then
8547 if test "$minor" -eq "$req_minor"; then
8548 if test "$micro" -ge "$req_micro"; then
8556 if test $ok = yes; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8558 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8563 if test $ok = yes; then
8564 # If we have a recent libgcrypt, we should also check that the
8566 if test "$req_libgcrypt_api" -gt 0 ; then
8567 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8568 if test "$tmp" -gt 0 ; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8570 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8571 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8573 $as_echo "okay" >&6; }
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8577 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8582 if test $ok = yes; then
8583 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8584 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8586 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8587 if test x"$libgcrypt_config_host" != xnone ; then
8588 if test x"$libgcrypt_config_host" != x"$host" ; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8591 *** The config script $LIBGCRYPT_CONFIG was
8592 *** built for $libgcrypt_config_host and thus may not match the
8593 *** used host $host.
8594 *** You may want to use the configure option --with-libgcrypt-prefix
8595 *** to specify a matching config script or use \$SYSROOT.
8597 $as_echo "$as_me: WARNING:
8599 *** The config script $LIBGCRYPT_CONFIG was
8600 *** built for $libgcrypt_config_host and thus may not match the
8601 *** used host $host.
8602 *** You may want to use the configure option --with-libgcrypt-prefix
8603 *** to specify a matching config script or use \$SYSROOT.
8605 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8619 # libassuan is used for IPC
8622 # Check whether --with-libassuan-prefix was given.
8623 if test "${with_libassuan_prefix+set}" = set; then :
8624 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8626 libassuan_config_prefix=""
8629 if test x$libassuan_config_prefix != x ; then
8630 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8631 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8632 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8635 # Extract the first word of "libassuan-config", so it can be a program name with args.
8636 set dummy libassuan-config; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8640 $as_echo_n "(cached) " >&6
8642 case $LIBASSUAN_CONFIG in
8644 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8654 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8662 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8666 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8667 if test -n "$LIBASSUAN_CONFIG"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8669 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672 $as_echo "no" >&6; }
8677 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8678 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8679 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8680 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8683 min_libassuan_version="$tmp"
8686 if test "$LIBASSUAN_CONFIG" != "no" ; then
8687 libassuan_version=`$LIBASSUAN_CONFIG --version`
8689 libassuan_version_major=`echo $libassuan_version | \
8690 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8691 libassuan_version_minor=`echo $libassuan_version | \
8692 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8693 libassuan_version_micro=`echo $libassuan_version | \
8694 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8697 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8699 if test "$LIBASSUAN_CONFIG" != "no" ; then
8701 req_major=`echo $min_libassuan_version | \
8702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8703 req_minor=`echo $min_libassuan_version | \
8704 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8705 req_micro=`echo $min_libassuan_version | \
8706 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8707 if test "$libassuan_version_major" -gt "$req_major"; then
8710 if test "$libassuan_version_major" -eq "$req_major"; then
8711 if test "$libassuan_version_minor" -gt "$req_minor"; then
8714 if test "$libassuan_version_minor" -eq "$req_minor"; then
8715 if test "$libassuan_version_micro" -ge "$req_micro"; then
8725 if test $ok = yes; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8727 $as_echo "yes ($libassuan_version)" >&6; }
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8733 if test $ok = yes; then
8734 if test "$req_libassuan_api" -gt 0 ; then
8735 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8736 if test "$tmp" -gt 0 ; then
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8738 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8739 if test "$req_libassuan_api" -eq "$tmp" ; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8741 $as_echo "okay" >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8745 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8752 if test $ok = yes; then
8753 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8754 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8764 if test "$have_libassuan" = "yes"; then
8766 cat >>confdefs.h <<_ACEOF
8767 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8770 show_tor_support="only .onion"
8775 # libksba is our X.509 support library
8779 # Check whether --with-ksba-prefix was given.
8780 if test "${with_ksba_prefix+set}" = set; then :
8781 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8783 ksba_config_prefix=""
8786 if test x$ksba_config_prefix != x ; then
8787 ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8788 if test x${KSBA_CONFIG+set} != xset ; then
8789 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8793 # Extract the first word of "ksba-config", so it can be a program name with args.
8794 set dummy ksba-config; ac_word=$2
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8796 $as_echo_n "checking for $ac_word... " >&6; }
8797 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8798 $as_echo_n "(cached) " >&6
8800 case $KSBA_CONFIG in
8802 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 test -z "$as_dir" && as_dir=.
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8812 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8824 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8825 if test -n "$KSBA_CONFIG"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8827 $as_echo "$KSBA_CONFIG" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8834 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8835 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8836 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8837 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8840 min_ksba_version="$tmp"
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8844 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8846 if test "$KSBA_CONFIG" != "no" ; then
8847 req_major=`echo $min_ksba_version | \
8848 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8849 req_minor=`echo $min_ksba_version | \
8850 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8851 req_micro=`echo $min_ksba_version | \
8852 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8853 ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8854 major=`echo $ksba_config_version | \
8855 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8856 minor=`echo $ksba_config_version | \
8857 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8858 micro=`echo $ksba_config_version | \
8859 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8860 if test "$major" -gt "$req_major"; then
8863 if test "$major" -eq "$req_major"; then
8864 if test "$minor" -gt "$req_minor"; then
8867 if test "$minor" -eq "$req_minor"; then
8868 if test "$micro" -ge "$req_micro"; then
8876 if test $ok = yes; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8878 $as_echo "yes ($ksba_config_version)" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8883 if test $ok = yes; then
8884 # Even if we have a recent libksba, we should check that the
8885 # API is compatible.
8886 if test "$req_ksba_api" -gt 0 ; then
8887 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8888 if test "$tmp" -gt 0 ; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8890 $as_echo_n "checking KSBA API version... " >&6; }
8891 if test "$req_ksba_api" -eq "$tmp" ; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8893 $as_echo "okay" >&6; }
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
8897 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
8902 if test $ok = yes; then
8903 KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8904 KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8906 libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8907 if test x"$libksba_config_host" != xnone ; then
8908 if test x"$libksba_config_host" != x"$host" ; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8911 *** The config script $LIBKSBA_CONFIG was
8912 *** built for $libksba_config_host and thus may not match the
8913 *** used host $host.
8914 *** You may want to use the configure option --with-libksba-prefix
8915 *** to specify a matching config script.
8917 $as_echo "$as_me: WARNING:
8919 *** The config script $LIBKSBA_CONFIG was
8920 *** built for $libksba_config_host and thus may not match the
8921 *** used host $host.
8922 *** You may want to use the configure option --with-libksba-prefix
8923 *** to specify a matching config script.
8938 # libusb allows us to use the integrated CCID smartcard reader driver.
8940 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8941 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8950 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8953 # FreeBSD has a native 1.0 compatible library by -lusb.
8963 if test x"$LIBUSB_NAME" != x ; then
8964 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8966 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8967 if eval \${$as_ac_Lib+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-l$LIBUSB_NAME $LIBS"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8975 /* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
8981 char libusb_init ();
8985 return libusb_init ();
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 eval "$as_ac_Lib=yes"
8993 eval "$as_ac_Lib=no"
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8999 eval ac_res=\$$as_ac_Lib
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9001 $as_echo "$ac_res" >&6; }
9002 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9003 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9008 $as_echo_n "checking libusb include dir... " >&6; }
9009 usb_incdir_found="no"
9010 for _incdir in "" "/usr/include/libusb-1.0" \
9011 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9012 _libusb_save_cppflags=$CPPFLAGS
9013 if test -n "${_incdir}"; then
9014 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9020 if ac_fn_c_try_cpp "$LINENO"; then :
9021 usb_incdir=${_incdir}; usb_incdir_found="yes"
9023 rm -f conftest.err conftest.i conftest.$ac_ext
9024 CPPFLAGS=${_libusb_save_cppflags}
9025 if test "$usb_incdir_found" = "yes"; then
9029 if test "$usb_incdir_found" = "yes"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9031 $as_echo "${usb_incdir}" >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9034 $as_echo "not found" >&6; }
9037 if test "$use_ccid_driver" != yes; then
9043 if test "$have_libusb" = yes; then
9045 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9048 if test x"$usb_incdir" = x; then
9051 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9058 # Check whether it is necessary to link against libdl.
9059 # (For example to load libpcsclite)
9061 gnupg_dlopen_save_libs="$LIBS"
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9064 $as_echo_n "checking for library containing dlopen... " >&6; }
9065 if ${ac_cv_search_dlopen+:} false; then :
9066 $as_echo_n "(cached) " >&6
9068 ac_func_search_save_LIBS=$LIBS
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9087 for ac_lib in '' c dl; do
9088 if test -z "$ac_lib"; then
9089 ac_res="none required"
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ac_cv_search_dlopen=$ac_res
9097 rm -f core conftest.err conftest.$ac_objext \
9099 if ${ac_cv_search_dlopen+:} false; then :
9103 if ${ac_cv_search_dlopen+:} false; then :
9106 ac_cv_search_dlopen=no
9109 LIBS=$ac_func_search_save_LIBS
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9112 $as_echo "$ac_cv_search_dlopen" >&6; }
9113 ac_res=$ac_cv_search_dlopen
9114 if test "$ac_res" != no; then :
9115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9121 LIBS="$gnupg_dlopen_save_libs"
9126 # Check whether --enable-sqlite was given.
9127 if test "${enable_sqlite+set}" = set; then :
9128 enableval=$enable_sqlite; try_sqlite=$enableval
9134 if test x"$use_tofu" = xyes ; then
9135 if test x"$try_sqlite" = xyes ; then
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9139 $as_echo_n "checking for SQLITE3... " >&6; }
9141 if test -n "$SQLITE3_CFLAGS"; then
9142 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9143 elif test -n "$PKG_CONFIG"; then
9144 if test -n "$PKG_CONFIG" && \
9145 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9146 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149 test $ac_status = 0; }; then
9150 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9151 test "x$?" != "x0" && pkg_failed=yes
9158 if test -n "$SQLITE3_LIBS"; then
9159 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9160 elif test -n "$PKG_CONFIG"; then
9161 if test -n "$PKG_CONFIG" && \
9162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9163 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166 test $ac_status = 0; }; then
9167 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9168 test "x$?" != "x0" && pkg_failed=yes
9178 if test $pkg_failed = yes; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9183 _pkg_short_errors_supported=yes
9185 _pkg_short_errors_supported=no
9187 if test $_pkg_short_errors_supported = yes; then
9188 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9190 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9192 # Put the nasty error message in config.log where it belongs
9193 echo "$SQLITE3_PKG_ERRORS" >&5
9196 elif test $pkg_failed = untried; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9198 $as_echo "no" >&6; }
9201 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9202 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9204 $as_echo "yes" >&6; }
9208 if test "$have_sqlite" = "yes"; then
9214 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9217 *** Building without SQLite support - TOFU disabled
9220 $as_echo "$as_me: WARNING:
9222 *** Building without SQLite support - TOFU disabled
9228 if test "$have_sqlite" = "yes"; then
9237 if test x"$use_tofu" = xyes ; then
9239 $as_echo "#define USE_TOFU 1" >>confdefs.h
9246 # Extract the first word of "encfs", so it can be a program name with args.
9247 set dummy encfs; ac_word=$2
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 $as_echo_n "checking for $ac_word... " >&6; }
9250 if ${ac_cv_path_ENCFS+:} false; then :
9251 $as_echo_n "(cached) " >&6
9255 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 test -z "$as_dir" && as_dir=.
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9265 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9273 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9277 ENCFS=$ac_cv_path_ENCFS
9278 if test -n "$ENCFS"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9280 $as_echo "$ENCFS" >&6; }
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9288 cat >>confdefs.h <<_ACEOF
9289 #define ENCFS "${ENCFS}"
9293 # Extract the first word of "fusermount", so it can be a program name with args.
9294 set dummy fusermount; ac_word=$2
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 $as_echo_n "checking for $ac_word... " >&6; }
9297 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9298 $as_echo_n "(cached) " >&6
9302 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 test -z "$as_dir" && as_dir=.
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9312 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9324 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9325 if test -n "$FUSERMOUNT"; then
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9327 $as_echo "$FUSERMOUNT" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 $as_echo "no" >&6; }
9335 cat >>confdefs.h <<_ACEOF
9336 #define FUSERMOUNT "${FUSERMOUNT}"
9341 # Checks for dirmngr
9345 # Checks formerly used for symcryptrun.
9348 # libutil has openpty() and login_tty().
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9350 $as_echo_n "checking for openpty in -lutil... " >&6; }
9351 if ${ac_cv_lib_util_openpty+:} false; then :
9352 $as_echo_n "(cached) " >&6
9354 ac_check_lib_save_LIBS=$LIBS
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 ac_cv_lib_util_openpty=yes
9377 ac_cv_lib_util_openpty=no
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 LIBS=$ac_check_lib_save_LIBS
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9384 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9385 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9386 LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9388 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9395 # shred is used to clean temporary plain text files.
9396 # Extract the first word of "shred", so it can be a program name with args.
9397 set dummy shred; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_SHRED+:} false; then :
9401 $as_echo_n "(cached) " >&6
9405 ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9423 test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9427 SHRED=$ac_cv_path_SHRED
9428 if test -n "$SHRED"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9430 $as_echo "$SHRED" >&6; }
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9438 cat >>confdefs.h <<_ACEOF
9439 #define SHRED "${SHRED}"
9445 # Check whether the nPth library is available
9448 # Check whether --with-npth-prefix was given.
9449 if test "${with_npth_prefix+set}" = set; then :
9450 withval=$with_npth_prefix; npth_config_prefix="$withval"
9452 npth_config_prefix=""
9455 if test "x$npth_config_prefix" != x ; then
9456 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9458 # Extract the first word of "npth-config", so it can be a program name with args.
9459 set dummy npth-config; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9463 $as_echo_n "(cached) " >&6
9465 case $NPTH_CONFIG in
9467 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474 test -z "$as_dir" && as_dir=.
9475 for ac_exec_ext in '' $ac_executable_extensions; do
9476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9485 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9489 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9490 if test -n "$NPTH_CONFIG"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9492 $as_echo "$NPTH_CONFIG" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 if test "$NPTH_CONFIG" != "no" ; then
9501 npth_version=`$NPTH_CONFIG --version`
9503 npth_version_major=`echo $npth_version | \
9504 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9505 npth_version_minor=`echo $npth_version | \
9506 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9508 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9509 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9510 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9511 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9514 min_npth_version="$tmp"
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9518 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9520 if test "$NPTH_CONFIG" != "no" ; then
9521 req_major=`echo $min_npth_version | \
9522 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9523 req_minor=`echo $min_npth_version | \
9524 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9525 if test "$npth_version_major" -gt "$req_major"; then
9528 if test "$npth_version_major" -eq "$req_major"; then
9529 if test "$npth_version_minor" -gt "$req_minor"; then
9532 if test "$npth_version_minor" -eq "$req_minor"; then
9539 if test $ok = yes; then
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9541 $as_echo "yes ($npth_version)" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9546 if test $ok = yes; then
9547 # If we have a recent NPTH, we should also check that the
9548 # API is compatible.
9549 if test "$req_npth_api" -gt 0 ; then
9550 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9551 if test "$tmp" -gt 0 ; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9553 $as_echo_n "checking NPTH API version... " >&6; }
9554 if test "$req_npth_api" -eq "$tmp" ; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9556 $as_echo "okay" >&6; }
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9560 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9565 if test $ok = yes; then
9566 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9567 NPTH_LIBS=`$NPTH_CONFIG --libs`
9569 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9570 if test x"$npth_config_host" != xnone ; then
9571 if test x"$npth_config_host" != x"$host" ; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9574 *** The config script $NPTH_CONFIG was
9575 *** built for $npth_config_host and thus may not match the
9576 *** used host $host.
9577 *** You may want to use the configure option --with-npth-prefix
9578 *** to specify a matching config script.
9580 $as_echo "$as_me: WARNING:
9582 *** The config script $NPTH_CONFIG was
9583 *** built for $npth_config_host and thus may not match the
9584 *** used host $host.
9585 *** You may want to use the configure option --with-npth-prefix
9586 *** to specify a matching config script.
9598 if test "$have_npth" = "yes"; then
9600 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9603 $as_echo "#define USE_NPTH 1" >>confdefs.h
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9608 *** To support concurrent access for example in gpg-agent and the SCdaemon
9609 *** we need the support of the New Portable Threads Library.
9611 $as_echo "$as_me: WARNING:
9613 *** To support concurrent access for example in gpg-agent and the SCdaemon
9614 *** we need the support of the New Portable Threads Library.
9618 # Enable debugging of nPth
9620 # Check whether --enable-npth-debug was given.
9621 if test "${enable_npth_debug+set}" = set; then :
9622 enableval=$enable_npth_debug; if test $enableval = yes ; then
9624 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9633 # NTBTLS is our TLS library. If it is not available fallback to
9636 # Check whether --enable-ntbtls was given.
9637 if test "${enable_ntbtls+set}" = set; then :
9638 enableval=$enable_ntbtls; try_ntbtls=$enableval
9643 if test x"$try_ntbtls" = xyes ; then
9646 # Check whether --with-ntbtls-prefix was given.
9647 if test "${with_ntbtls_prefix+set}" = set; then :
9648 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9650 ntbtls_config_prefix=""
9653 if test x"${NTBTLS_CONFIG}" = x ; then
9654 if test x"${ntbtls_config_prefix}" != x ; then
9655 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9657 case "${SYSROOT}" in
9659 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9660 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9667 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9673 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9674 set dummy ntbtls-config; ac_word=$2
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9676 $as_echo_n "checking for $ac_word... " >&6; }
9677 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9678 $as_echo_n "(cached) " >&6
9680 case $NTBTLS_CONFIG in
9682 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9689 test -z "$as_dir" && as_dir=.
9690 for ac_exec_ext in '' $ac_executable_extensions; do
9691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9692 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9704 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9705 if test -n "$NTBTLS_CONFIG"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9707 $as_echo "$NTBTLS_CONFIG" >&6; }
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9715 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9716 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9717 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9720 min_ntbtls_version="$tmp"
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9724 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9726 if test "$NTBTLS_CONFIG" != "no" ; then
9727 req_major=`echo $min_ntbtls_version | \
9728 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9729 req_minor=`echo $min_ntbtls_version | \
9730 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9731 req_micro=`echo $min_ntbtls_version | \
9732 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9733 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9734 major=`echo $ntbtls_config_version | \
9735 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9736 minor=`echo $ntbtls_config_version | \
9737 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9738 micro=`echo $ntbtls_config_version | \
9739 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9740 if test "$major" -gt "$req_major"; then
9743 if test "$major" -eq "$req_major"; then
9744 if test "$minor" -gt "$req_minor"; then
9747 if test "$minor" -eq "$req_minor"; then
9748 if test "$micro" -ge "$req_micro"; then
9756 if test $ok = yes; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9758 $as_echo "yes ($ntbtls_config_version)" >&6; }
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761 $as_echo "no" >&6; }
9763 if test $ok = yes; then
9764 # If we have a recent ntbtls, we should also check that the
9766 if test "$req_ntbtls_api" -gt 0 ; then
9767 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9768 if test "$tmp" -gt 0 ; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9770 $as_echo_n "checking NTBTLS API version... " >&6; }
9771 if test "$req_ntbtls_api" -eq "$tmp" ; then
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9773 $as_echo "okay" >&6; }
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9777 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9782 if test $ok = yes; then
9783 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9784 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9786 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9787 if test x"$ntbtls_config_host" != xnone ; then
9788 if test x"$ntbtls_config_host" != x"$host" ; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9791 *** The config script $NTBTLS_CONFIG was
9792 *** built for $ntbtls_config_host and thus may not match the
9793 *** used host $host.
9794 *** You may want to use the configure option --with-ntbtls-prefix
9795 *** to specify a matching config script or use \$SYSROOT.
9797 $as_echo "$as_me: WARNING:
9799 *** The config script $NTBTLS_CONFIG was
9800 *** built for $ntbtls_config_host and thus may not match the
9801 *** used host $host.
9802 *** You may want to use the configure option --with-ntbtls-prefix
9803 *** to specify a matching config script or use \$SYSROOT.
9805 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9817 if test "$have_ntbtls" = yes ; then
9818 use_tls_library=ntbtls
9820 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9823 # Check whether --enable-gnutls was given.
9824 if test "${enable_gnutls+set}" = set; then :
9825 enableval=$enable_gnutls; try_gnutls=$enableval
9830 if test x"$try_gnutls" = xyes ; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9834 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9836 if test -n "$LIBGNUTLS_CFLAGS"; then
9837 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9838 elif test -n "$PKG_CONFIG"; then
9839 if test -n "$PKG_CONFIG" && \
9840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9841 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; }; then
9845 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9846 test "x$?" != "x0" && pkg_failed=yes
9853 if test -n "$LIBGNUTLS_LIBS"; then
9854 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9855 elif test -n "$PKG_CONFIG"; then
9856 if test -n "$PKG_CONFIG" && \
9857 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9858 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9861 test $ac_status = 0; }; then
9862 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9863 test "x$?" != "x0" && pkg_failed=yes
9873 if test $pkg_failed = yes; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9877 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9878 _pkg_short_errors_supported=yes
9880 _pkg_short_errors_supported=no
9882 if test $_pkg_short_errors_supported = yes; then
9883 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9885 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9887 # Put the nasty error message in config.log where it belongs
9888 echo "$LIBGNUTLS_PKG_ERRORS" >&5
9891 elif test $pkg_failed = untried; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9896 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9897 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9899 $as_echo "yes" >&6; }
9903 if test "$have_gnutls" = "yes"; then
9906 use_tls_library=gnutls
9908 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9911 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9914 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9917 $as_echo "$as_me: WARNING:
9919 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9926 # Allow to set a fixed trust store file for system provided certificates.
9929 # Check whether --with-default-trust-store-file was given.
9930 if test "${with_default_trust_store_file+set}" = set; then :
9931 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
9933 default_trust_store_file=""
9936 if test x"$default_trust_store_file" = xno;then
9937 default_trust_store_file=""
9939 if test x"$default_trust_store_file" != x ; then
9941 cat >>confdefs.h <<_ACEOF
9942 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9949 $as_echo "$as_me: checking for networking options" >&6;}
9952 # Must check for network library requirements before doing link tests
9953 # for ldap, for example. If ldap libs are static (or dynamic and without
9954 # ELF runtime link paths), then link will fail and LDAP support won't
9957 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9958 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9962 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9963 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9964 $as_echo_n "(cached) " >&6
9966 ac_check_lib_save_LIBS=$LIBS
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9977 char gethostbyname ();
9981 return gethostbyname ();
9986 if ac_fn_c_try_link "$LINENO"; then :
9987 ac_cv_lib_nsl_gethostbyname=yes
9989 ac_cv_lib_nsl_gethostbyname=no
9991 rm -f core conftest.err conftest.$ac_objext \
9992 conftest$ac_exeext conftest.$ac_ext
9993 LIBS=$ac_check_lib_save_LIBS
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9996 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9997 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9998 NETLIBS="-lnsl $NETLIBS"
10003 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10004 if test "x$ac_cv_func_setsockopt" = xyes; then :
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10008 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10009 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10010 $as_echo_n "(cached) " >&6
10012 ac_check_lib_save_LIBS=$LIBS
10013 LIBS="-lsocket $LIBS"
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10023 char setsockopt ();
10027 return setsockopt ();
10032 if ac_fn_c_try_link "$LINENO"; then :
10033 ac_cv_lib_socket_setsockopt=yes
10035 ac_cv_lib_socket_setsockopt=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10042 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10043 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10044 NETLIBS="-lsocket $NETLIBS"
10052 # Check standard resolver functions.
10054 if test "$build_dirmngr" = "yes"; then
10055 _dns_save_libs=$LIBS
10058 # Find the system resolver which can always be enabled with
10059 # the dirmngr option --standard-resolver.
10061 # the double underscore thing is a glibc-ism?
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10063 $as_echo_n "checking for library containing res_query... " >&6; }
10064 if ${ac_cv_search_res_query+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 ac_func_search_save_LIBS=$LIBS
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10081 return res_query ();
10086 for ac_lib in '' resolv bind; do
10087 if test -z "$ac_lib"; then
10088 ac_res="none required"
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 ac_cv_search_res_query=$ac_res
10096 rm -f core conftest.err conftest.$ac_objext \
10098 if ${ac_cv_search_res_query+:} false; then :
10102 if ${ac_cv_search_res_query+:} false; then :
10105 ac_cv_search_res_query=no
10107 rm conftest.$ac_ext
10108 LIBS=$ac_func_search_save_LIBS
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10111 $as_echo "$ac_cv_search_res_query" >&6; }
10112 ac_res=$ac_cv_search_res_query
10113 if test "$ac_res" != no; then :
10114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10118 $as_echo_n "checking for library containing __res_query... " >&6; }
10119 if ${ac_cv_search___res_query+:} false; then :
10120 $as_echo_n "(cached) " >&6
10122 ac_func_search_save_LIBS=$LIBS
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10132 char __res_query ();
10136 return __res_query ();
10141 for ac_lib in '' resolv bind; do
10142 if test -z "$ac_lib"; then
10143 ac_res="none required"
10146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10148 if ac_fn_c_try_link "$LINENO"; then :
10149 ac_cv_search___res_query=$ac_res
10151 rm -f core conftest.err conftest.$ac_objext \
10153 if ${ac_cv_search___res_query+:} false; then :
10157 if ${ac_cv_search___res_query+:} false; then :
10160 ac_cv_search___res_query=no
10162 rm conftest.$ac_ext
10163 LIBS=$ac_func_search_save_LIBS
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10166 $as_echo "$ac_cv_search___res_query" >&6; }
10167 ac_res=$ac_cv_search___res_query
10168 if test "$ac_res" != no; then :
10169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10178 $as_echo_n "checking for library containing dn_expand... " >&6; }
10179 if ${ac_cv_search_dn_expand+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 ac_func_search_save_LIBS=$LIBS
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10186 /* Override any GCC internal prototype to avoid an error.
10187 Use char because int might match the return type of a GCC
10188 builtin and then its argument prototype would still apply. */
10196 return dn_expand ();
10201 for ac_lib in '' resolv bind; do
10202 if test -z "$ac_lib"; then
10203 ac_res="none required"
10206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 ac_cv_search_dn_expand=$ac_res
10211 rm -f core conftest.err conftest.$ac_objext \
10213 if ${ac_cv_search_dn_expand+:} false; then :
10217 if ${ac_cv_search_dn_expand+:} false; then :
10220 ac_cv_search_dn_expand=no
10222 rm conftest.$ac_ext
10223 LIBS=$ac_func_search_save_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10226 $as_echo "$ac_cv_search_dn_expand" >&6; }
10227 ac_res=$ac_cv_search_dn_expand
10228 if test "$ac_res" != no; then :
10229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10233 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10234 if ${ac_cv_search___dn_expand+:} false; then :
10235 $as_echo_n "(cached) " >&6
10237 ac_func_search_save_LIBS=$LIBS
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10241 /* Override any GCC internal prototype to avoid an error.
10242 Use char because int might match the return type of a GCC
10243 builtin and then its argument prototype would still apply. */
10247 char __dn_expand ();
10251 return __dn_expand ();
10256 for ac_lib in '' resolv bind; do
10257 if test -z "$ac_lib"; then
10258 ac_res="none required"
10261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 ac_cv_search___dn_expand=$ac_res
10266 rm -f core conftest.err conftest.$ac_objext \
10268 if ${ac_cv_search___dn_expand+:} false; then :
10272 if ${ac_cv_search___dn_expand+:} false; then :
10275 ac_cv_search___dn_expand=no
10277 rm conftest.$ac_ext
10278 LIBS=$ac_func_search_save_LIBS
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10281 $as_echo "$ac_cv_search___dn_expand" >&6; }
10282 ac_res=$ac_cv_search___dn_expand
10283 if test "$ac_res" != no; then :
10284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10293 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10294 # and for some reason fools us into believing we don't need
10295 # -lresolv even if we do. Since the test program checking for the
10296 # symbol does not include <resolv.h>, we need to check for the
10297 # renamed symbol explicitly.
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10299 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10300 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10301 $as_echo_n "(cached) " >&6
10303 ac_func_search_save_LIBS=$LIBS
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10313 char res_9_dn_skipname ();
10317 return res_9_dn_skipname ();
10322 for ac_lib in '' resolv bind; do
10323 if test -z "$ac_lib"; then
10324 ac_res="none required"
10327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10329 if ac_fn_c_try_link "$LINENO"; then :
10330 ac_cv_search_res_9_dn_skipname=$ac_res
10332 rm -f core conftest.err conftest.$ac_objext \
10334 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10338 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10341 ac_cv_search_res_9_dn_skipname=no
10343 rm conftest.$ac_ext
10344 LIBS=$ac_func_search_save_LIBS
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10347 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10348 ac_res=$ac_cv_search_res_9_dn_skipname
10349 if test "$ac_res" != no; then :
10350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10354 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10355 if ${ac_cv_search_dn_skipname+:} false; then :
10356 $as_echo_n "(cached) " >&6
10358 ac_func_search_save_LIBS=$LIBS
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10362 /* Override any GCC internal prototype to avoid an error.
10363 Use char because int might match the return type of a GCC
10364 builtin and then its argument prototype would still apply. */
10368 char dn_skipname ();
10372 return dn_skipname ();
10377 for ac_lib in '' resolv bind; do
10378 if test -z "$ac_lib"; then
10379 ac_res="none required"
10382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10384 if ac_fn_c_try_link "$LINENO"; then :
10385 ac_cv_search_dn_skipname=$ac_res
10387 rm -f core conftest.err conftest.$ac_objext \
10389 if ${ac_cv_search_dn_skipname+:} false; then :
10393 if ${ac_cv_search_dn_skipname+:} false; then :
10396 ac_cv_search_dn_skipname=no
10398 rm conftest.$ac_ext
10399 LIBS=$ac_func_search_save_LIBS
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10402 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10403 ac_res=$ac_cv_search_dn_skipname
10404 if test "$ac_res" != no; then :
10405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10409 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10410 if ${ac_cv_search___dn_skipname+:} false; then :
10411 $as_echo_n "(cached) " >&6
10413 ac_func_search_save_LIBS=$LIBS
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10423 char __dn_skipname ();
10427 return __dn_skipname ();
10432 for ac_lib in '' resolv bind; do
10433 if test -z "$ac_lib"; then
10434 ac_res="none required"
10437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 ac_cv_search___dn_skipname=$ac_res
10442 rm -f core conftest.err conftest.$ac_objext \
10444 if ${ac_cv_search___dn_skipname+:} false; then :
10448 if ${ac_cv_search___dn_skipname+:} false; then :
10451 ac_cv_search___dn_skipname=no
10453 rm conftest.$ac_ext
10454 LIBS=$ac_func_search_save_LIBS
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10457 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10458 ac_res=$ac_cv_search___dn_skipname
10459 if test "$ac_res" != no; then :
10460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10471 if test x"$have_resolver" != xno ; then
10473 # Make sure that the BIND 4 resolver interface is workable before
10474 # enabling any code that calls it. At some point I'll rewrite the
10475 # code to use the BIND 8 resolver API.
10476 # We might also want to use libdns instead.
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10479 $as_echo_n "checking whether the resolver is usable... " >&6; }
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 #include <sys/types.h>
10483 #include <netinet/in.h>
10484 #include <arpa/nameser.h>
10485 #include <resolv.h>
10489 unsigned char answer[PACKETSZ];
10490 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10492 dn_expand(0,0,0,0,0);
10498 if ac_fn_c_try_link "$LINENO"; then :
10503 rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10506 $as_echo "$have_resolver" >&6; }
10508 # This is Apple-specific and somewhat bizarre as they changed the
10509 # define in bind 8 for some reason.
10511 if test x"$have_resolver" != xyes ; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10513 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10516 #define BIND_8_COMPAT
10517 #include <sys/types.h>
10518 #include <netinet/in.h>
10519 #include <arpa/nameser.h>
10520 #include <resolv.h>
10524 unsigned char answer[PACKETSZ];
10525 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10526 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10532 if ac_fn_c_try_link "$LINENO"; then :
10533 have_resolver=yes ; need_compat=yes
10535 rm -f core conftest.err conftest.$ac_objext \
10536 conftest$ac_exeext conftest.$ac_ext
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10538 $as_echo "$have_resolver" >&6; }
10542 if test x"$have_resolver" = xyes ; then
10544 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10546 DNSLIBS="$DNSLIBS $LIBS"
10547 if test x"$need_compat" = xyes ; then
10549 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10552 if test "$use_libdns" = yes; then
10553 show_tor_support=yes
10555 elif test "$use_libdns" = yes; then
10556 show_tor_support=yes
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10560 *** The system's DNS resolver is not usable.
10561 *** Dirmngr functionality is limited.
10563 $as_echo "$as_me: WARNING:
10565 *** The system's DNS resolver is not usable.
10566 *** Dirmngr functionality is limited.
10568 show_tor_support="${show_tor_support} (no system resolver)"
10571 if test "$have_w32_system" = yes; then
10572 if test "$use_libdns" = yes; then
10573 DNSLIBS="$DNSLIBS -liphlpapi"
10577 LIBS=$_dns_save_libs
10586 # Note that running the check changes the variable
10587 # gnupg_have_ldap from "n/a" to "no" or "yes".
10589 # Check whether --enable-ldap was given.
10590 if test "${enable_ldap+set}" = set; then :
10591 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10595 if test "$gnupg_have_ldap" != "no" ; then
10596 if test "$build_dirmngr" = "yes" ; then
10598 # Try and link a LDAP test program to weed out unusable LDAP
10599 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10600 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10601 # If all else fails, the user can play guess-the-dependency by using
10602 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10605 # Check whether --with-ldap was given.
10606 if test "${with_ldap+set}" = set; then :
10607 withval=$with_ldap; _ldap_with=$withval
10611 if test x$_ldap_with != xno ; then
10613 if test -d "$withval" ; then
10614 LDAP_CPPFLAGS="-I$withval/include"
10615 LDAP_LDFLAGS="-L$withval/lib"
10618 _ldap_save_cppflags=$CPPFLAGS
10619 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10620 _ldap_save_ldflags=$LDFLAGS
10621 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10623 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10624 _ldap_save_libs=$LIBS
10625 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10628 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10633 #include <winsock2.h>
10634 #include <winldap.h>
10642 ldap_open("foobar",1234);
10647 if ac_fn_c_try_link "$LINENO"; then :
10648 gnupg_cv_func_ldap_init=yes
10650 gnupg_cv_func_ldap_init=no
10652 rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10655 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10657 if test $gnupg_cv_func_ldap_init = no; then
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10659 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10667 ldap_open("foobar",1234);
10672 if ac_fn_c_try_link "$LINENO"; then :
10673 gnupg_cv_func_ldaplber_init=yes
10675 gnupg_cv_func_ldaplber_init=no
10677 rm -f core conftest.err conftest.$ac_objext \
10678 conftest$ac_exeext conftest.$ac_ext
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10680 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10683 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10685 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10689 if test "$gnupg_cv_func_ldap_init" = yes || \
10690 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10691 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10692 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10693 gnupg_have_ldap=yes
10695 for ac_func in ldap_get_option ldap_set_option
10697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10700 cat >>confdefs.h <<_ACEOF
10701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10707 # The extra test for ldap_start_tls_sA is for W32 because
10708 # that is the actual function in the library.
10709 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10712 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10713 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10714 cat >>confdefs.h <<_ACEOF
10715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10722 if test "$ac_cv_func_ldap_get_option" != yes ; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10724 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10731 LDAP *ldap; ldap->ld_errno;
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 gnupg_cv_func_ldap_ld_errno=yes
10739 gnupg_cv_func_ldap_ld_errno=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10744 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10746 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10748 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10754 LIBS=$_ldap_save_libs
10756 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10763 CPPFLAGS=$_ldap_save_cppflags
10764 LDFLAGS=$_ldap_save_ldflags
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10768 $as_echo_n "checking for ber_free in -llber... " >&6; }
10769 if ${ac_cv_lib_lber_ber_free+:} false; then :
10770 $as_echo_n "(cached) " >&6
10772 ac_check_lib_save_LIBS=$LIBS
10773 LIBS="-llber $LIBS"
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10787 return ber_free ();
10792 if ac_fn_c_try_link "$LINENO"; then :
10793 ac_cv_lib_lber_ber_free=yes
10795 ac_cv_lib_lber_ber_free=no
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10802 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10803 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10804 LBER_LIBS="$LBER_LIBS -llber"
10806 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10815 if test "$gnupg_have_ldap" = "no"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10818 *** Building without LDAP support.
10819 *** No CRL access or X.509 certificate search available.
10821 $as_echo "$as_me: WARNING:
10823 *** Building without LDAP support.
10824 *** No CRL access or X.509 certificate search available.
10828 if test "$gnupg_have_ldap" = yes; then
10836 if test "$gnupg_have_ldap" = yes ; then
10838 $as_echo "#define USE_LDAP 1" >>confdefs.h
10844 # Check for sendmail
10846 # This isn't necessarily sendmail itself, but anything that gives a
10847 # sendmail-ish interface to the outside world. That includes Exim,
10848 # Postfix, etc. Basically, anything that can handle "sendmail -t".
10850 # Check whether --with-mailprog was given.
10851 if test "${with_mailprog+set}" = set; then :
10852 withval=$with_mailprog;
10857 if test x"$with_mailprog" = xyes ; then
10858 # Extract the first word of "sendmail", so it can be a program name with args.
10859 set dummy sendmail; ac_word=$2
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861 $as_echo_n "checking for $ac_word... " >&6; }
10862 if ${ac_cv_path_SENDMAIL+:} false; then :
10863 $as_echo_n "(cached) " >&6
10867 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
10872 for as_dir in $as_dummy
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10878 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 SENDMAIL=$ac_cv_path_SENDMAIL
10890 if test -n "$SENDMAIL"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10892 $as_echo "$SENDMAIL" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10899 elif test x"$with_mailprog" != xno ; then
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10901 $as_echo_n "checking for a mail transport program... " >&6; }
10902 SENDMAIL=$with_mailprog
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10905 $as_echo "$with_mailprog" >&6; }
10908 cat >>confdefs.h <<_ACEOF
10909 #define NAME_OF_SENDMAIL "$SENDMAIL"
10915 # Construct a printable name of the OS
10919 PRINTABLE_OS_NAME="W32CE"
10922 PRINTABLE_OS_NAME="MingW32"
10925 PRINTABLE_OS_NAME="Cygwin"
10927 i?86-emx-os2 | i?86-*-os2*emx )
10928 PRINTABLE_OS_NAME="OS/2"
10930 i?86-*-msdosdjgpp*)
10931 PRINTABLE_OS_NAME="MSDOS/DJGPP"
10935 PRINTABLE_OS_NAME="GNU/Linux"
10938 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10942 cat >>confdefs.h <<_ACEOF
10943 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10949 # Checking for iconv
10951 if test "$require_iconv" = yes; then
10953 if test "X$prefix" = "XNONE"; then
10954 acl_final_prefix="$ac_default_prefix"
10956 acl_final_prefix="$prefix"
10958 if test "X$exec_prefix" = "XNONE"; then
10959 acl_final_exec_prefix='${prefix}'
10961 acl_final_exec_prefix="$exec_prefix"
10963 acl_save_prefix="$prefix"
10964 prefix="$acl_final_prefix"
10965 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10966 prefix="$acl_save_prefix"
10969 # Check whether --with-gnu-ld was given.
10970 if test "${with_gnu_ld+set}" = set; then :
10971 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10976 # Prepare PATH_SEPARATOR.
10977 # The user is always right.
10978 if test "${PATH_SEPARATOR+set}" != set; then
10979 echo "#! /bin/sh" >conf$$.sh
10980 echo "exit 0" >>conf$$.sh
10982 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10990 if test "$GCC" = yes; then
10991 # Check if gcc -print-prog-name=ld gives a path.
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10993 $as_echo_n "checking for ld used by GCC... " >&6; }
10996 # gcc leaves a trailing carriage return which upsets mingw
10997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11002 # Accept absolute paths.
11003 [\\/]* | [A-Za-z]:[\\/]*)
11004 re_direlt='/[^/][^/]*/\.\./'
11005 # Canonicalize the path of ld
11006 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11007 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11008 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11010 test -z "$LD" && LD="$ac_prog"
11013 # If it fails, then pretend we aren't using GCC.
11017 # If it is relative, then search for the first ld in PATH.
11018 with_gnu_ld=unknown
11021 elif test "$with_gnu_ld" = yes; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11023 $as_echo_n "checking for GNU ld... " >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11026 $as_echo_n "checking for non-GNU ld... " >&6; }
11028 if ${acl_cv_path_LD+:} false; then :
11029 $as_echo_n "(cached) " >&6
11031 if test -z "$LD"; then
11032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11033 for ac_dir in $PATH; do
11034 test -z "$ac_dir" && ac_dir=.
11035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11036 acl_cv_path_LD="$ac_dir/$ac_prog"
11037 # Check to see if the program is GNU ld. I'd rather use --version,
11038 # but apparently some GNU ld's only accept -v.
11039 # Break only if it was the GNU/non-GNU ld that we prefer.
11040 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11041 *GNU* | *'with BFD'*)
11042 test "$with_gnu_ld" != no && break ;;
11044 test "$with_gnu_ld" != yes && break ;;
11050 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11054 LD="$acl_cv_path_LD"
11055 if test -n "$LD"; then
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11057 $as_echo "$LD" >&6; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060 $as_echo "no" >&6; }
11062 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11064 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11065 if ${acl_cv_prog_gnu_ld+:} false; then :
11066 $as_echo_n "(cached) " >&6
11068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11069 case `$LD -v 2>&1 </dev/null` in
11070 *GNU* | *'with BFD'*)
11071 acl_cv_prog_gnu_ld=yes ;;
11073 acl_cv_prog_gnu_ld=no ;;
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11077 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11078 with_gnu_ld=$acl_cv_prog_gnu_ld
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11084 $as_echo_n "checking for shared library run path origin... " >&6; }
11085 if ${acl_cv_rpath+:} false; then :
11086 $as_echo_n "(cached) " >&6
11089 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11090 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11092 rm -f ./conftest.sh
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11097 $as_echo "$acl_cv_rpath" >&6; }
11099 acl_libext="$acl_cv_libext"
11100 acl_shlibext="$acl_cv_shlibext"
11101 acl_libname_spec="$acl_cv_libname_spec"
11102 acl_library_names_spec="$acl_cv_library_names_spec"
11103 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11104 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11105 acl_hardcode_direct="$acl_cv_hardcode_direct"
11106 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11107 # Check whether --enable-rpath was given.
11108 if test "${enable_rpath+set}" = set; then :
11109 enableval=$enable_rpath; :
11117 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11118 if test -n "$searchpath"; then
11119 acl_save_IFS="${IFS= }"; IFS=":"
11120 for searchdir in $searchpath; do
11121 if test -d "$searchdir"; then
11122 case "$searchdir" in
11123 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11124 *) searchdir=`cd "$searchdir" && pwd`
11125 case "$searchdir" in
11126 */lib64 ) acl_libdirstem=lib64 ;;
11131 IFS="$acl_save_IFS"
11144 acl_save_prefix="$prefix"
11145 prefix="$acl_final_prefix"
11146 acl_save_exec_prefix="$exec_prefix"
11147 exec_prefix="$acl_final_exec_prefix"
11149 eval additional_includedir=\"$includedir\"
11150 eval additional_libdir=\"$libdir\"
11152 exec_prefix="$acl_save_exec_prefix"
11153 prefix="$acl_save_prefix"
11156 # Check whether --with-libiconv-prefix was given.
11157 if test "${with_libiconv_prefix+set}" = set; then :
11158 withval=$with_libiconv_prefix;
11159 if test "X$withval" = "Xno"; then
11162 if test "X$withval" = "X"; then
11164 acl_save_prefix="$prefix"
11165 prefix="$acl_final_prefix"
11166 acl_save_exec_prefix="$exec_prefix"
11167 exec_prefix="$acl_final_exec_prefix"
11169 eval additional_includedir=\"$includedir\"
11170 eval additional_libdir=\"$libdir\"
11172 exec_prefix="$acl_save_exec_prefix"
11173 prefix="$acl_save_prefix"
11176 additional_includedir="$withval/include"
11177 additional_libdir="$withval/$acl_libdirstem"
11189 names_already_handled=
11190 names_next_round='iconv '
11191 while test -n "$names_next_round"; do
11192 names_this_round="$names_next_round"
11194 for name in $names_this_round; do
11196 for n in $names_already_handled; do
11197 if test "$n" = "$name"; then
11198 already_handled=yes
11202 if test -z "$already_handled"; then
11203 names_already_handled="$names_already_handled $name"
11204 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11205 eval value=\"\$HAVE_LIB$uppername\"
11206 if test -n "$value"; then
11207 if test "$value" = yes; then
11208 eval value=\"\$LIB$uppername\"
11209 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11210 eval value=\"\$LTLIB$uppername\"
11211 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11220 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11221 if test -n "$acl_shlibext"; then
11222 shrext=".$acl_shlibext" # typically: shrext=.so
11226 if test $use_additional = yes; then
11227 dir="$additional_libdir"
11228 if test -n "$acl_shlibext"; then
11229 if test -f "$dir/$libname$shrext"; then
11231 found_so="$dir/$libname$shrext"
11233 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11234 ver=`(cd "$dir" && \
11235 for f in "$libname$shrext".*; do echo "$f"; done \
11236 | sed -e "s,^$libname$shrext\\\\.,," \
11237 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11238 | sed 1q ) 2>/dev/null`
11239 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11241 found_so="$dir/$libname$shrext.$ver"
11244 eval library_names=\"$acl_library_names_spec\"
11245 for f in $library_names; do
11246 if test -f "$dir/$f"; then
11255 if test "X$found_dir" = "X"; then
11256 if test -f "$dir/$libname.$acl_libext"; then
11258 found_a="$dir/$libname.$acl_libext"
11261 if test "X$found_dir" != "X"; then
11262 if test -f "$dir/$libname.la"; then
11263 found_la="$dir/$libname.la"
11267 if test "X$found_dir" = "X"; then
11268 for x in $LDFLAGS $LTLIBICONV; do
11270 acl_save_prefix="$prefix"
11271 prefix="$acl_final_prefix"
11272 acl_save_exec_prefix="$exec_prefix"
11273 exec_prefix="$acl_final_exec_prefix"
11275 exec_prefix="$acl_save_exec_prefix"
11276 prefix="$acl_save_prefix"
11280 dir=`echo "X$x" | sed -e 's/^X-L//'`
11281 if test -n "$acl_shlibext"; then
11282 if test -f "$dir/$libname$shrext"; then
11284 found_so="$dir/$libname$shrext"
11286 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11287 ver=`(cd "$dir" && \
11288 for f in "$libname$shrext".*; do echo "$f"; done \
11289 | sed -e "s,^$libname$shrext\\\\.,," \
11290 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11291 | sed 1q ) 2>/dev/null`
11292 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11294 found_so="$dir/$libname$shrext.$ver"
11297 eval library_names=\"$acl_library_names_spec\"
11298 for f in $library_names; do
11299 if test -f "$dir/$f"; then
11308 if test "X$found_dir" = "X"; then
11309 if test -f "$dir/$libname.$acl_libext"; then
11311 found_a="$dir/$libname.$acl_libext"
11314 if test "X$found_dir" != "X"; then
11315 if test -f "$dir/$libname.la"; then
11316 found_la="$dir/$libname.la"
11321 if test "X$found_dir" != "X"; then
11326 if test "X$found_dir" != "X"; then
11327 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11328 if test "X$found_so" != "X"; then
11329 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11333 for x in $ltrpathdirs; do
11334 if test "X$x" = "X$found_dir"; then
11339 if test -z "$haveit"; then
11340 ltrpathdirs="$ltrpathdirs $found_dir"
11342 if test "$acl_hardcode_direct" = yes; then
11343 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11345 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11346 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11348 for x in $rpathdirs; do
11349 if test "X$x" = "X$found_dir"; then
11354 if test -z "$haveit"; then
11355 rpathdirs="$rpathdirs $found_dir"
11359 for x in $LDFLAGS $LIBICONV; do
11361 acl_save_prefix="$prefix"
11362 prefix="$acl_final_prefix"
11363 acl_save_exec_prefix="$exec_prefix"
11364 exec_prefix="$acl_final_exec_prefix"
11366 exec_prefix="$acl_save_exec_prefix"
11367 prefix="$acl_save_prefix"
11369 if test "X$x" = "X-L$found_dir"; then
11374 if test -z "$haveit"; then
11375 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11377 if test "$acl_hardcode_minus_L" != no; then
11378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11380 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11386 if test "X$found_a" != "X"; then
11387 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11392 additional_includedir=
11393 case "$found_dir" in
11394 */$acl_libdirstem | */$acl_libdirstem/)
11395 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11396 LIBICONV_PREFIX="$basedir"
11397 additional_includedir="$basedir/include"
11400 if test "X$additional_includedir" != "X"; then
11401 if test "X$additional_includedir" != "X/usr/include"; then
11403 if test "X$additional_includedir" = "X/usr/local/include"; then
11404 if test -n "$GCC"; then
11406 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11410 if test -z "$haveit"; then
11411 for x in $CPPFLAGS $INCICONV; do
11413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
11421 if test "X$x" = "X-I$additional_includedir"; then
11426 if test -z "$haveit"; then
11427 if test -d "$additional_includedir"; then
11428 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11434 if test -n "$found_la"; then
11435 save_libdir="$libdir"
11436 case "$found_la" in
11437 */* | *\\*) . "$found_la" ;;
11438 *) . "./$found_la" ;;
11440 libdir="$save_libdir"
11441 for dep in $dependency_libs; do
11444 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11445 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11447 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11448 if test -n "$GCC"; then
11450 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11454 if test -z "$haveit"; then
11456 for x in $LDFLAGS $LIBICONV; do
11458 acl_save_prefix="$prefix"
11459 prefix="$acl_final_prefix"
11460 acl_save_exec_prefix="$exec_prefix"
11461 exec_prefix="$acl_final_exec_prefix"
11463 exec_prefix="$acl_save_exec_prefix"
11464 prefix="$acl_save_prefix"
11466 if test "X$x" = "X-L$additional_libdir"; then
11471 if test -z "$haveit"; then
11472 if test -d "$additional_libdir"; then
11473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11477 for x in $LDFLAGS $LTLIBICONV; do
11479 acl_save_prefix="$prefix"
11480 prefix="$acl_final_prefix"
11481 acl_save_exec_prefix="$exec_prefix"
11482 exec_prefix="$acl_final_exec_prefix"
11484 exec_prefix="$acl_save_exec_prefix"
11485 prefix="$acl_save_prefix"
11487 if test "X$x" = "X-L$additional_libdir"; then
11492 if test -z "$haveit"; then
11493 if test -d "$additional_libdir"; then
11494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11501 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11502 if test "$enable_rpath" != no; then
11504 for x in $rpathdirs; do
11505 if test "X$x" = "X$dir"; then
11510 if test -z "$haveit"; then
11511 rpathdirs="$rpathdirs $dir"
11514 for x in $ltrpathdirs; do
11515 if test "X$x" = "X$dir"; then
11520 if test -z "$haveit"; then
11521 ltrpathdirs="$ltrpathdirs $dir"
11526 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11529 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11532 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11533 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11539 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11540 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11546 if test "X$rpathdirs" != "X"; then
11547 if test -n "$acl_hardcode_libdir_separator"; then
11549 for found_dir in $rpathdirs; do
11550 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11552 acl_save_libdir="$libdir"
11554 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11555 libdir="$acl_save_libdir"
11556 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11558 for found_dir in $rpathdirs; do
11559 acl_save_libdir="$libdir"
11560 libdir="$found_dir"
11561 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11562 libdir="$acl_save_libdir"
11563 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11567 if test "X$ltrpathdirs" != "X"; then
11568 for found_dir in $ltrpathdirs; do
11569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11579 am_save_CPPFLAGS="$CPPFLAGS"
11581 for element in $INCICONV; do
11583 for x in $CPPFLAGS; do
11585 acl_save_prefix="$prefix"
11586 prefix="$acl_final_prefix"
11587 acl_save_exec_prefix="$exec_prefix"
11588 exec_prefix="$acl_final_exec_prefix"
11590 exec_prefix="$acl_save_exec_prefix"
11591 prefix="$acl_save_prefix"
11593 if test "X$x" = "X$element"; then
11598 if test -z "$haveit"; then
11599 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11605 $as_echo_n "checking for iconv... " >&6; }
11606 if ${am_cv_func_iconv+:} false; then :
11607 $as_echo_n "(cached) " >&6
11610 am_cv_func_iconv="no, consider installing GNU libiconv"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 #include <stdlib.h>
11621 iconv_t cd = iconv_open("","");
11622 iconv(cd,NULL,NULL,NULL,NULL);
11628 if ac_fn_c_try_link "$LINENO"; then :
11629 am_cv_func_iconv=yes
11631 rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
11633 if test "$am_cv_func_iconv" != yes; then
11634 am_save_LIBS="$LIBS"
11635 LIBS="$LIBS $LIBICONV"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 #include <stdlib.h>
11645 iconv_t cd = iconv_open("","");
11646 iconv(cd,NULL,NULL,NULL,NULL);
11652 if ac_fn_c_try_link "$LINENO"; then :
11653 am_cv_lib_iconv=yes
11654 am_cv_func_iconv=yes
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS="$am_save_LIBS"
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11663 $as_echo "$am_cv_func_iconv" >&6; }
11664 if test "$am_cv_func_iconv" = yes; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11666 $as_echo_n "checking for working iconv... " >&6; }
11667 if ${am_cv_func_iconv_works+:} false; then :
11668 $as_echo_n "(cached) " >&6
11671 am_save_LIBS="$LIBS"
11672 if test $am_cv_lib_iconv = yes; then
11673 LIBS="$LIBS $LIBICONV"
11675 am_cv_func_iconv_works=no
11676 for ac_iconv_const in '' 'const'; do
11677 if test "$cross_compiling" = yes; then :
11679 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11680 *) am_cv_func_iconv_works="guessing yes" ;;
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11687 #include <string.h>
11689 #ifndef ICONV_CONST
11690 # define ICONV_CONST $ac_iconv_const
11697 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11700 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11701 if (cd_utf8_to_88591 != (iconv_t)(-1))
11703 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11705 ICONV_CONST char *inptr = input;
11706 size_t inbytesleft = strlen (input);
11707 char *outptr = buf;
11708 size_t outbytesleft = sizeof (buf);
11709 size_t res = iconv (cd_utf8_to_88591,
11710 &inptr, &inbytesleft,
11711 &outptr, &outbytesleft);
11714 iconv_close (cd_utf8_to_88591);
11717 /* Test against Solaris 10 bug: Failures are not distinguishable from
11718 successful returns. */
11720 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11721 if (cd_ascii_to_88591 != (iconv_t)(-1))
11723 static ICONV_CONST char input[] = "\263";
11725 ICONV_CONST char *inptr = input;
11726 size_t inbytesleft = strlen (input);
11727 char *outptr = buf;
11728 size_t outbytesleft = sizeof (buf);
11729 size_t res = iconv (cd_ascii_to_88591,
11730 &inptr, &inbytesleft,
11731 &outptr, &outbytesleft);
11734 iconv_close (cd_ascii_to_88591);
11737 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11739 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11740 if (cd_88591_to_utf8 != (iconv_t)(-1))
11742 static ICONV_CONST char input[] = "\304";
11743 static char buf[2] = { (char)0xDE, (char)0xAD };
11744 ICONV_CONST char *inptr = input;
11745 size_t inbytesleft = 1;
11746 char *outptr = buf;
11747 size_t outbytesleft = 1;
11748 size_t res = iconv (cd_88591_to_utf8,
11749 &inptr, &inbytesleft,
11750 &outptr, &outbytesleft);
11751 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11753 iconv_close (cd_88591_to_utf8);
11756 #if 0 /* This bug could be worked around by the caller. */
11757 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11759 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11760 if (cd_88591_to_utf8 != (iconv_t)(-1))
11762 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11764 ICONV_CONST char *inptr = input;
11765 size_t inbytesleft = strlen (input);
11766 char *outptr = buf;
11767 size_t outbytesleft = sizeof (buf);
11768 size_t res = iconv (cd_88591_to_utf8,
11769 &inptr, &inbytesleft,
11770 &outptr, &outbytesleft);
11773 iconv_close (cd_88591_to_utf8);
11777 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11780 /* Try standardized names. */
11781 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11782 /* Try IRIX, OSF/1 names. */
11783 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11784 /* Try AIX names. */
11785 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11786 /* Try HP-UX names. */
11787 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11788 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11789 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11791 if (cd1 != (iconv_t)(-1))
11793 if (cd2 != (iconv_t)(-1))
11795 if (cd3 != (iconv_t)(-1))
11797 if (cd4 != (iconv_t)(-1))
11806 if ac_fn_c_try_run "$LINENO"; then :
11807 am_cv_func_iconv_works=yes
11809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11810 conftest.$ac_objext conftest.beam conftest.$ac_ext
11813 test "$am_cv_func_iconv_works" = no || break
11815 LIBS="$am_save_LIBS"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11819 $as_echo "$am_cv_func_iconv_works" >&6; }
11820 case "$am_cv_func_iconv_works" in
11821 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11822 *) am_func_iconv=yes ;;
11825 am_func_iconv=no am_cv_lib_iconv=no
11827 if test "$am_func_iconv" = yes; then
11829 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11832 if test "$am_cv_lib_iconv" = yes; then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11834 $as_echo_n "checking how to link with libiconv... " >&6; }
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11836 $as_echo "$LIBICONV" >&6; }
11838 CPPFLAGS="$am_save_CPPFLAGS"
11845 if test "$am_cv_func_iconv" = yes; then
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11847 $as_echo_n "checking for iconv declaration... " >&6; }
11848 if ${am_cv_proto_iconv+:} false; then :
11849 $as_echo_n "(cached) " >&6
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11855 #include <stdlib.h>
11861 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11862 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876 am_cv_proto_iconv_arg1=""
11878 am_cv_proto_iconv_arg1="const"
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 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);"
11884 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
11886 $am_cv_proto_iconv" >&5
11888 $am_cv_proto_iconv" >&6; }
11890 am_cv_proto_iconv_arg1=""
11893 cat >>confdefs.h <<_ACEOF
11894 #define ICONV_CONST $am_cv_proto_iconv_arg1
11908 # Check for gettext
11910 # This is "GNU gnupg" - The project-id script from gettext
11911 # needs this string
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11914 $as_echo "$as_me: checking for gettext" >&6;}
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11917 $as_echo_n "checking whether NLS is requested... " >&6; }
11918 # Check whether --enable-nls was given.
11919 if test "${enable_nls+set}" = set; then :
11920 enableval=$enable_nls; USE_NLS=$enableval
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11926 $as_echo "$USE_NLS" >&6; }
11931 GETTEXT_MACRO_VERSION=0.17
11936 # Prepare PATH_SEPARATOR.
11937 # The user is always right.
11938 if test "${PATH_SEPARATOR+set}" != set; then
11939 echo "#! /bin/sh" >conf$$.sh
11940 echo "exit 0" >>conf$$.sh
11942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11950 # Find out how to test for executable files. Don't use a zero-byte file,
11951 # as systems may use methods other than mode bits to determine executability.
11952 cat >conf$$.file <<_ASEOF
11956 chmod +x conf$$.file
11957 if test -x conf$$.file >/dev/null 2>&1; then
11958 ac_executable_p="test -x"
11960 ac_executable_p="test -f"
11964 # Extract the first word of "msgfmt", so it can be a program name with args.
11965 set dummy msgfmt; ac_word=$2
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 $as_echo_n "checking for $ac_word... " >&6; }
11968 if ${ac_cv_path_MSGFMT+:} false; then :
11969 $as_echo_n "(cached) " >&6
11973 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11976 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11977 for ac_dir in $PATH; do
11979 test -z "$ac_dir" && ac_dir=.
11980 for ac_exec_ext in '' $ac_executable_extensions; do
11981 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11982 echo "$as_me: trying $ac_dir/$ac_word..." >&5
11983 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
11984 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11985 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11992 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11996 MSGFMT="$ac_cv_path_MSGFMT"
11997 if test "$MSGFMT" != ":"; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11999 $as_echo "$MSGFMT" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12005 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12006 set dummy gmsgfmt; ac_word=$2
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008 $as_echo_n "checking for $ac_word... " >&6; }
12009 if ${ac_cv_path_GMSGFMT+:} false; then :
12010 $as_echo_n "(cached) " >&6
12014 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12018 for as_dir in $PATH
12021 test -z "$as_dir" && as_dir=.
12022 for ac_exec_ext in '' $ac_executable_extensions; do
12023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12024 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12036 GMSGFMT=$ac_cv_path_GMSGFMT
12037 if test -n "$GMSGFMT"; then
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12039 $as_echo "$GMSGFMT" >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12047 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12048 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12049 *) MSGFMT_015=$MSGFMT ;;
12052 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12053 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12054 *) GMSGFMT_015=$GMSGFMT ;;
12059 # Prepare PATH_SEPARATOR.
12060 # The user is always right.
12061 if test "${PATH_SEPARATOR+set}" != set; then
12062 echo "#! /bin/sh" >conf$$.sh
12063 echo "exit 0" >>conf$$.sh
12065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12073 # Find out how to test for executable files. Don't use a zero-byte file,
12074 # as systems may use methods other than mode bits to determine executability.
12075 cat >conf$$.file <<_ASEOF
12079 chmod +x conf$$.file
12080 if test -x conf$$.file >/dev/null 2>&1; then
12081 ac_executable_p="test -x"
12083 ac_executable_p="test -f"
12087 # Extract the first word of "xgettext", so it can be a program name with args.
12088 set dummy xgettext; ac_word=$2
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if ${ac_cv_path_XGETTEXT+:} false; then :
12092 $as_echo_n "(cached) " >&6
12094 case "$XGETTEXT" in
12096 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12099 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12100 for ac_dir in $PATH; do
12102 test -z "$ac_dir" && ac_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12105 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12106 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12107 (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
12108 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12115 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12119 XGETTEXT="$ac_cv_path_XGETTEXT"
12120 if test "$XGETTEXT" != ":"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12122 $as_echo "$XGETTEXT" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12125 $as_echo "no" >&6; }
12130 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12131 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12132 *) XGETTEXT_015=$XGETTEXT ;;
12137 # Prepare PATH_SEPARATOR.
12138 # The user is always right.
12139 if test "${PATH_SEPARATOR+set}" != set; then
12140 echo "#! /bin/sh" >conf$$.sh
12141 echo "exit 0" >>conf$$.sh
12143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12151 # Find out how to test for executable files. Don't use a zero-byte file,
12152 # as systems may use methods other than mode bits to determine executability.
12153 cat >conf$$.file <<_ASEOF
12157 chmod +x conf$$.file
12158 if test -x conf$$.file >/dev/null 2>&1; then
12159 ac_executable_p="test -x"
12161 ac_executable_p="test -f"
12165 # Extract the first word of "msgmerge", so it can be a program name with args.
12166 set dummy msgmerge; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if ${ac_cv_path_MSGMERGE+:} false; then :
12170 $as_echo_n "(cached) " >&6
12172 case "$MSGMERGE" in
12174 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12177 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12178 for ac_dir in $PATH; do
12180 test -z "$ac_dir" && ac_dir=.
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12183 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12184 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12185 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12192 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12196 MSGMERGE="$ac_cv_path_MSGMERGE"
12197 if test "$MSGMERGE" != ":"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12199 $as_echo "$MSGMERGE" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12206 test -n "$localedir" || localedir='${datadir}/locale'
12209 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12212 ac_config_commands="$ac_config_commands po-directories"
12216 if test "$try_gettext" = yes; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12241 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12242 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12243 $as_echo_n "(cached) " >&6
12245 gt_save_LIBS="$LIBS"
12246 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249 #include <CoreFoundation/CFPreferences.h>
12253 CFPreferencesCopyAppValue(NULL, NULL)
12258 if ac_fn_c_try_link "$LINENO"; then :
12259 gt_cv_func_CFPreferencesCopyAppValue=yes
12261 gt_cv_func_CFPreferencesCopyAppValue=no
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 LIBS="$gt_save_LIBS"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12268 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12269 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12271 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12275 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12276 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 gt_save_LIBS="$LIBS"
12280 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 #include <CoreFoundation/CFLocale.h>
12287 CFLocaleCopyCurrent();
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 gt_cv_func_CFLocaleCopyCurrent=yes
12295 gt_cv_func_CFLocaleCopyCurrent=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS="$gt_save_LIBS"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12302 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12303 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12305 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12309 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12310 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12322 case " $gt_needs " in
12323 *" need-formatstring-macros "*) gt_api_version=3 ;;
12324 *" need-ngettext "*) gt_api_version=2 ;;
12325 *) gt_api_version=1 ;;
12327 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12328 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12330 if test "$USE_NLS" = "yes"; then
12331 gt_use_preinstalled_gnugettext=no
12334 if test $gt_api_version -ge 3; then
12335 gt_revision_test_code='
12336 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12337 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12339 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12342 gt_revision_test_code=
12344 if test $gt_api_version -ge 2; then
12345 gt_expression_test_code=' + * ngettext ("", "", 0)'
12347 gt_expression_test_code=
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12351 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12352 if eval \${$gt_func_gnugettext_libc+:} false; then :
12353 $as_echo_n "(cached) " >&6
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357 #include <libintl.h>
12358 $gt_revision_test_code
12359 extern int _nl_msg_cat_cntr;
12360 extern int *_nl_domain_bindings;
12364 bindtextdomain ("", "");
12365 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12370 if ac_fn_c_try_link "$LINENO"; then :
12371 eval "$gt_func_gnugettext_libc=yes"
12373 eval "$gt_func_gnugettext_libc=no"
12375 rm -f core conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12378 eval ac_res=\$$gt_func_gnugettext_libc
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12380 $as_echo "$ac_res" >&6; }
12382 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12388 am_save_CPPFLAGS="$CPPFLAGS"
12390 for element in $INCICONV; do
12392 for x in $CPPFLAGS; do
12394 acl_save_prefix="$prefix"
12395 prefix="$acl_final_prefix"
12396 acl_save_exec_prefix="$exec_prefix"
12397 exec_prefix="$acl_final_exec_prefix"
12399 exec_prefix="$acl_save_exec_prefix"
12400 prefix="$acl_save_prefix"
12402 if test "X$x" = "X$element"; then
12407 if test -z "$haveit"; then
12408 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12414 $as_echo_n "checking for iconv... " >&6; }
12415 if ${am_cv_func_iconv+:} false; then :
12416 $as_echo_n "(cached) " >&6
12419 am_cv_func_iconv="no, consider installing GNU libiconv"
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 #include <stdlib.h>
12430 iconv_t cd = iconv_open("","");
12431 iconv(cd,NULL,NULL,NULL,NULL);
12437 if ac_fn_c_try_link "$LINENO"; then :
12438 am_cv_func_iconv=yes
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 if test "$am_cv_func_iconv" != yes; then
12443 am_save_LIBS="$LIBS"
12444 LIBS="$LIBS $LIBICONV"
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 #include <stdlib.h>
12454 iconv_t cd = iconv_open("","");
12455 iconv(cd,NULL,NULL,NULL,NULL);
12461 if ac_fn_c_try_link "$LINENO"; then :
12462 am_cv_lib_iconv=yes
12463 am_cv_func_iconv=yes
12465 rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS="$am_save_LIBS"
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12472 $as_echo "$am_cv_func_iconv" >&6; }
12473 if test "$am_cv_func_iconv" = yes; then
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12475 $as_echo_n "checking for working iconv... " >&6; }
12476 if ${am_cv_func_iconv_works+:} false; then :
12477 $as_echo_n "(cached) " >&6
12480 am_save_LIBS="$LIBS"
12481 if test $am_cv_lib_iconv = yes; then
12482 LIBS="$LIBS $LIBICONV"
12484 am_cv_func_iconv_works=no
12485 for ac_iconv_const in '' 'const'; do
12486 if test "$cross_compiling" = yes; then :
12488 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12489 *) am_cv_func_iconv_works="guessing yes" ;;
12492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12493 /* end confdefs.h. */
12496 #include <string.h>
12498 #ifndef ICONV_CONST
12499 # define ICONV_CONST $ac_iconv_const
12506 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12509 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12510 if (cd_utf8_to_88591 != (iconv_t)(-1))
12512 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12514 ICONV_CONST char *inptr = input;
12515 size_t inbytesleft = strlen (input);
12516 char *outptr = buf;
12517 size_t outbytesleft = sizeof (buf);
12518 size_t res = iconv (cd_utf8_to_88591,
12519 &inptr, &inbytesleft,
12520 &outptr, &outbytesleft);
12523 iconv_close (cd_utf8_to_88591);
12526 /* Test against Solaris 10 bug: Failures are not distinguishable from
12527 successful returns. */
12529 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12530 if (cd_ascii_to_88591 != (iconv_t)(-1))
12532 static ICONV_CONST char input[] = "\263";
12534 ICONV_CONST char *inptr = input;
12535 size_t inbytesleft = strlen (input);
12536 char *outptr = buf;
12537 size_t outbytesleft = sizeof (buf);
12538 size_t res = iconv (cd_ascii_to_88591,
12539 &inptr, &inbytesleft,
12540 &outptr, &outbytesleft);
12543 iconv_close (cd_ascii_to_88591);
12546 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12548 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12549 if (cd_88591_to_utf8 != (iconv_t)(-1))
12551 static ICONV_CONST char input[] = "\304";
12552 static char buf[2] = { (char)0xDE, (char)0xAD };
12553 ICONV_CONST char *inptr = input;
12554 size_t inbytesleft = 1;
12555 char *outptr = buf;
12556 size_t outbytesleft = 1;
12557 size_t res = iconv (cd_88591_to_utf8,
12558 &inptr, &inbytesleft,
12559 &outptr, &outbytesleft);
12560 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12562 iconv_close (cd_88591_to_utf8);
12565 #if 0 /* This bug could be worked around by the caller. */
12566 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12568 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12569 if (cd_88591_to_utf8 != (iconv_t)(-1))
12571 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12573 ICONV_CONST char *inptr = input;
12574 size_t inbytesleft = strlen (input);
12575 char *outptr = buf;
12576 size_t outbytesleft = sizeof (buf);
12577 size_t res = iconv (cd_88591_to_utf8,
12578 &inptr, &inbytesleft,
12579 &outptr, &outbytesleft);
12582 iconv_close (cd_88591_to_utf8);
12586 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12589 /* Try standardized names. */
12590 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12591 /* Try IRIX, OSF/1 names. */
12592 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12593 /* Try AIX names. */
12594 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12595 /* Try HP-UX names. */
12596 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12597 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12598 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12600 if (cd1 != (iconv_t)(-1))
12602 if (cd2 != (iconv_t)(-1))
12604 if (cd3 != (iconv_t)(-1))
12606 if (cd4 != (iconv_t)(-1))
12615 if ac_fn_c_try_run "$LINENO"; then :
12616 am_cv_func_iconv_works=yes
12618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12619 conftest.$ac_objext conftest.beam conftest.$ac_ext
12622 test "$am_cv_func_iconv_works" = no || break
12624 LIBS="$am_save_LIBS"
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12628 $as_echo "$am_cv_func_iconv_works" >&6; }
12629 case "$am_cv_func_iconv_works" in
12630 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12631 *) am_func_iconv=yes ;;
12634 am_func_iconv=no am_cv_lib_iconv=no
12636 if test "$am_func_iconv" = yes; then
12638 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12641 if test "$am_cv_lib_iconv" = yes; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12643 $as_echo_n "checking how to link with libiconv... " >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12645 $as_echo "$LIBICONV" >&6; }
12647 CPPFLAGS="$am_save_CPPFLAGS"
12661 acl_save_prefix="$prefix"
12662 prefix="$acl_final_prefix"
12663 acl_save_exec_prefix="$exec_prefix"
12664 exec_prefix="$acl_final_exec_prefix"
12666 eval additional_includedir=\"$includedir\"
12667 eval additional_libdir=\"$libdir\"
12669 exec_prefix="$acl_save_exec_prefix"
12670 prefix="$acl_save_prefix"
12673 # Check whether --with-libintl-prefix was given.
12674 if test "${with_libintl_prefix+set}" = set; then :
12675 withval=$with_libintl_prefix;
12676 if test "X$withval" = "Xno"; then
12679 if test "X$withval" = "X"; then
12681 acl_save_prefix="$prefix"
12682 prefix="$acl_final_prefix"
12683 acl_save_exec_prefix="$exec_prefix"
12684 exec_prefix="$acl_final_exec_prefix"
12686 eval additional_includedir=\"$includedir\"
12687 eval additional_libdir=\"$libdir\"
12689 exec_prefix="$acl_save_exec_prefix"
12690 prefix="$acl_save_prefix"
12693 additional_includedir="$withval/include"
12694 additional_libdir="$withval/$acl_libdirstem"
12706 names_already_handled=
12707 names_next_round='intl '
12708 while test -n "$names_next_round"; do
12709 names_this_round="$names_next_round"
12711 for name in $names_this_round; do
12713 for n in $names_already_handled; do
12714 if test "$n" = "$name"; then
12715 already_handled=yes
12719 if test -z "$already_handled"; then
12720 names_already_handled="$names_already_handled $name"
12721 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12722 eval value=\"\$HAVE_LIB$uppername\"
12723 if test -n "$value"; then
12724 if test "$value" = yes; then
12725 eval value=\"\$LIB$uppername\"
12726 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12727 eval value=\"\$LTLIB$uppername\"
12728 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12737 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12738 if test -n "$acl_shlibext"; then
12739 shrext=".$acl_shlibext" # typically: shrext=.so
12743 if test $use_additional = yes; then
12744 dir="$additional_libdir"
12745 if test -n "$acl_shlibext"; then
12746 if test -f "$dir/$libname$shrext"; then
12748 found_so="$dir/$libname$shrext"
12750 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12751 ver=`(cd "$dir" && \
12752 for f in "$libname$shrext".*; do echo "$f"; done \
12753 | sed -e "s,^$libname$shrext\\\\.,," \
12754 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12755 | sed 1q ) 2>/dev/null`
12756 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12758 found_so="$dir/$libname$shrext.$ver"
12761 eval library_names=\"$acl_library_names_spec\"
12762 for f in $library_names; do
12763 if test -f "$dir/$f"; then
12772 if test "X$found_dir" = "X"; then
12773 if test -f "$dir/$libname.$acl_libext"; then
12775 found_a="$dir/$libname.$acl_libext"
12778 if test "X$found_dir" != "X"; then
12779 if test -f "$dir/$libname.la"; then
12780 found_la="$dir/$libname.la"
12784 if test "X$found_dir" = "X"; then
12785 for x in $LDFLAGS $LTLIBINTL; do
12787 acl_save_prefix="$prefix"
12788 prefix="$acl_final_prefix"
12789 acl_save_exec_prefix="$exec_prefix"
12790 exec_prefix="$acl_final_exec_prefix"
12792 exec_prefix="$acl_save_exec_prefix"
12793 prefix="$acl_save_prefix"
12797 dir=`echo "X$x" | sed -e 's/^X-L//'`
12798 if test -n "$acl_shlibext"; then
12799 if test -f "$dir/$libname$shrext"; then
12801 found_so="$dir/$libname$shrext"
12803 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12804 ver=`(cd "$dir" && \
12805 for f in "$libname$shrext".*; do echo "$f"; done \
12806 | sed -e "s,^$libname$shrext\\\\.,," \
12807 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12808 | sed 1q ) 2>/dev/null`
12809 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12811 found_so="$dir/$libname$shrext.$ver"
12814 eval library_names=\"$acl_library_names_spec\"
12815 for f in $library_names; do
12816 if test -f "$dir/$f"; then
12825 if test "X$found_dir" = "X"; then
12826 if test -f "$dir/$libname.$acl_libext"; then
12828 found_a="$dir/$libname.$acl_libext"
12831 if test "X$found_dir" != "X"; then
12832 if test -f "$dir/$libname.la"; then
12833 found_la="$dir/$libname.la"
12838 if test "X$found_dir" != "X"; then
12843 if test "X$found_dir" != "X"; then
12844 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12845 if test "X$found_so" != "X"; then
12846 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12850 for x in $ltrpathdirs; do
12851 if test "X$x" = "X$found_dir"; then
12856 if test -z "$haveit"; then
12857 ltrpathdirs="$ltrpathdirs $found_dir"
12859 if test "$acl_hardcode_direct" = yes; then
12860 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12862 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12865 for x in $rpathdirs; do
12866 if test "X$x" = "X$found_dir"; then
12871 if test -z "$haveit"; then
12872 rpathdirs="$rpathdirs $found_dir"
12876 for x in $LDFLAGS $LIBINTL; do
12878 acl_save_prefix="$prefix"
12879 prefix="$acl_final_prefix"
12880 acl_save_exec_prefix="$exec_prefix"
12881 exec_prefix="$acl_final_exec_prefix"
12883 exec_prefix="$acl_save_exec_prefix"
12884 prefix="$acl_save_prefix"
12886 if test "X$x" = "X-L$found_dir"; then
12891 if test -z "$haveit"; then
12892 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12894 if test "$acl_hardcode_minus_L" != no; then
12895 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12897 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12903 if test "X$found_a" != "X"; then
12904 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12906 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12909 additional_includedir=
12910 case "$found_dir" in
12911 */$acl_libdirstem | */$acl_libdirstem/)
12912 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12913 LIBINTL_PREFIX="$basedir"
12914 additional_includedir="$basedir/include"
12917 if test "X$additional_includedir" != "X"; then
12918 if test "X$additional_includedir" != "X/usr/include"; then
12920 if test "X$additional_includedir" = "X/usr/local/include"; then
12921 if test -n "$GCC"; then
12923 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12927 if test -z "$haveit"; then
12928 for x in $CPPFLAGS $INCINTL; do
12930 acl_save_prefix="$prefix"
12931 prefix="$acl_final_prefix"
12932 acl_save_exec_prefix="$exec_prefix"
12933 exec_prefix="$acl_final_exec_prefix"
12935 exec_prefix="$acl_save_exec_prefix"
12936 prefix="$acl_save_prefix"
12938 if test "X$x" = "X-I$additional_includedir"; then
12943 if test -z "$haveit"; then
12944 if test -d "$additional_includedir"; then
12945 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12951 if test -n "$found_la"; then
12952 save_libdir="$libdir"
12953 case "$found_la" in
12954 */* | *\\*) . "$found_la" ;;
12955 *) . "./$found_la" ;;
12957 libdir="$save_libdir"
12958 for dep in $dependency_libs; do
12961 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12962 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12964 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12965 if test -n "$GCC"; then
12967 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12971 if test -z "$haveit"; then
12973 for x in $LDFLAGS $LIBINTL; do
12975 acl_save_prefix="$prefix"
12976 prefix="$acl_final_prefix"
12977 acl_save_exec_prefix="$exec_prefix"
12978 exec_prefix="$acl_final_exec_prefix"
12980 exec_prefix="$acl_save_exec_prefix"
12981 prefix="$acl_save_prefix"
12983 if test "X$x" = "X-L$additional_libdir"; then
12988 if test -z "$haveit"; then
12989 if test -d "$additional_libdir"; then
12990 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12994 for x in $LDFLAGS $LTLIBINTL; do
12996 acl_save_prefix="$prefix"
12997 prefix="$acl_final_prefix"
12998 acl_save_exec_prefix="$exec_prefix"
12999 exec_prefix="$acl_final_exec_prefix"
13001 exec_prefix="$acl_save_exec_prefix"
13002 prefix="$acl_save_prefix"
13004 if test "X$x" = "X-L$additional_libdir"; then
13009 if test -z "$haveit"; then
13010 if test -d "$additional_libdir"; then
13011 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13018 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13019 if test "$enable_rpath" != no; then
13021 for x in $rpathdirs; do
13022 if test "X$x" = "X$dir"; then
13027 if test -z "$haveit"; then
13028 rpathdirs="$rpathdirs $dir"
13031 for x in $ltrpathdirs; do
13032 if test "X$x" = "X$dir"; then
13037 if test -z "$haveit"; then
13038 ltrpathdirs="$ltrpathdirs $dir"
13043 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13049 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13050 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13056 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13063 if test "X$rpathdirs" != "X"; then
13064 if test -n "$acl_hardcode_libdir_separator"; then
13066 for found_dir in $rpathdirs; do
13067 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13069 acl_save_libdir="$libdir"
13071 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13072 libdir="$acl_save_libdir"
13073 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13075 for found_dir in $rpathdirs; do
13076 acl_save_libdir="$libdir"
13077 libdir="$found_dir"
13078 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13079 libdir="$acl_save_libdir"
13080 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13084 if test "X$ltrpathdirs" != "X"; then
13085 for found_dir in $ltrpathdirs; do
13086 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13091 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13092 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13093 $as_echo_n "(cached) " >&6
13095 gt_save_CPPFLAGS="$CPPFLAGS"
13096 CPPFLAGS="$CPPFLAGS $INCINTL"
13097 gt_save_LIBS="$LIBS"
13098 LIBS="$LIBS $LIBINTL"
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13101 #include <libintl.h>
13102 $gt_revision_test_code
13103 extern int _nl_msg_cat_cntr;
13108 const char *_nl_expand_alias (const char *);
13112 bindtextdomain ("", "");
13113 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13118 if ac_fn_c_try_link "$LINENO"; then :
13119 eval "$gt_func_gnugettext_libintl=yes"
13121 eval "$gt_func_gnugettext_libintl=no"
13123 rm -f core conftest.err conftest.$ac_objext \
13124 conftest$ac_exeext conftest.$ac_ext
13125 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13126 LIBS="$LIBS $LIBICONV"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129 #include <libintl.h>
13130 $gt_revision_test_code
13131 extern int _nl_msg_cat_cntr;
13136 const char *_nl_expand_alias (const char *);
13140 bindtextdomain ("", "");
13141 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 LIBINTL="$LIBINTL $LIBICONV"
13148 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13149 eval "$gt_func_gnugettext_libintl=yes"
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13155 CPPFLAGS="$gt_save_CPPFLAGS"
13156 LIBS="$gt_save_LIBS"
13158 eval ac_res=\$$gt_func_gnugettext_libintl
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13160 $as_echo "$ac_res" >&6; }
13163 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13164 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13165 && test "$PACKAGE" != gettext-runtime \
13166 && test "$PACKAGE" != gettext-tools; }; then
13167 gt_use_preinstalled_gnugettext=yes
13176 if test -n "$INTL_MACOSX_LIBS"; then
13177 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13178 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13179 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13180 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13184 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13185 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13187 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13195 $as_echo_n "checking whether to use NLS... " >&6; }
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13197 $as_echo "$USE_NLS" >&6; }
13198 if test "$USE_NLS" = "yes"; then
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13200 $as_echo_n "checking where the gettext function comes from... " >&6; }
13201 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13202 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13203 gt_source="external libintl"
13208 gt_source="included intl directory"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13211 $as_echo "$gt_source" >&6; }
13214 if test "$USE_NLS" = "yes"; then
13216 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13219 $as_echo_n "checking how to link with libintl... " >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13221 $as_echo "$LIBINTL" >&6; }
13223 for element in $INCINTL; do
13225 for x in $CPPFLAGS; do
13227 acl_save_prefix="$prefix"
13228 prefix="$acl_final_prefix"
13229 acl_save_exec_prefix="$exec_prefix"
13230 exec_prefix="$acl_final_exec_prefix"
13232 exec_prefix="$acl_save_exec_prefix"
13233 prefix="$acl_save_prefix"
13235 if test "X$x" = "X$element"; then
13240 if test -z "$haveit"; then
13241 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13248 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13251 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13260 INTLLIBS="$LIBINTL"
13268 # gettext requires some extra checks. These really should be part of
13269 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13270 # function checks to here.
13272 for ac_func in strchr
13274 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13275 if test "x$ac_cv_func_strchr" = xyes; then :
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_STRCHR 1
13285 USE_INCLUDED_LIBINTL=no
13286 BUILD_INCLUDED_LIBINTL=no
13294 # We use HAVE_LANGINFO_CODESET in a couple of places.
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13297 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13298 if ${am_cv_langinfo_codeset+:} false; then :
13299 $as_echo_n "(cached) " >&6
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #include <langinfo.h>
13307 char* cs = nl_langinfo(CODESET); return !cs;
13312 if ac_fn_c_try_link "$LINENO"; then :
13313 am_cv_langinfo_codeset=yes
13315 am_cv_langinfo_codeset=no
13317 rm -f core conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13322 $as_echo "$am_cv_langinfo_codeset" >&6; }
13323 if test $am_cv_langinfo_codeset = yes; then
13325 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13330 # Checks required for our use of locales
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13333 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13334 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13335 $as_echo_n "(cached) " >&6
13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13339 #include <locale.h>
13348 if ac_fn_c_try_link "$LINENO"; then :
13349 gt_cv_val_LC_MESSAGES=yes
13351 gt_cv_val_LC_MESSAGES=no
13353 rm -f core conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13357 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13358 if test $gt_cv_val_LC_MESSAGES = yes; then
13360 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13369 if test "$selinux_support" = yes ; then
13371 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13377 # Checks for header files.
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13380 $as_echo "$as_me: checking for header files" >&6;}
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13382 $as_echo_n "checking for ANSI C header files... " >&6; }
13383 if ${ac_cv_header_stdc+:} false; then :
13384 $as_echo_n "(cached) " >&6
13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13387 /* end confdefs.h. */
13388 #include <stdlib.h>
13389 #include <stdarg.h>
13390 #include <string.h>
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 ac_cv_header_stdc=yes
13404 ac_cv_header_stdc=no
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 if test $ac_cv_header_stdc = yes; then
13409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <string.h>
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416 $EGREP "memchr" >/dev/null 2>&1; then :
13419 ac_cv_header_stdc=no
13425 if test $ac_cv_header_stdc = yes; then
13426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13429 #include <stdlib.h>
13432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13433 $EGREP "free" >/dev/null 2>&1; then :
13436 ac_cv_header_stdc=no
13442 if test $ac_cv_header_stdc = yes; then
13443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13444 if test "$cross_compiling" = yes; then :
13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13448 /* end confdefs.h. */
13450 #include <stdlib.h>
13451 #if ((' ' & 0x0FF) == 0x020)
13452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13455 # define ISLOWER(c) \
13456 (('a' <= (c) && (c) <= 'i') \
13457 || ('j' <= (c) && (c) <= 'r') \
13458 || ('s' <= (c) && (c) <= 'z'))
13459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13467 for (i = 0; i < 256; i++)
13468 if (XOR (islower (i), ISLOWER (i))
13469 || toupper (i) != TOUPPER (i))
13474 if ac_fn_c_try_run "$LINENO"; then :
13477 ac_cv_header_stdc=no
13479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13480 conftest.$ac_objext conftest.beam conftest.$ac_ext
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13486 $as_echo "$ac_cv_header_stdc" >&6; }
13487 if test $ac_cv_header_stdc = yes; then
13489 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13493 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13494 pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \
13495 stdint.h signal.h util.h libutil.h termios.h \
13496 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13501 cat >>confdefs.h <<_ACEOF
13502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13511 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13512 if ${ac_cv_header_time+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517 #include <sys/types.h>
13518 #include <sys/time.h>
13524 if ((struct tm *) 0)
13530 if ac_fn_c_try_compile "$LINENO"; then :
13531 ac_cv_header_time=yes
13533 ac_cv_header_time=no
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13538 $as_echo "$ac_cv_header_time" >&6; }
13539 if test $ac_cv_header_time = yes; then
13541 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13548 # Checks for typedefs, structures, and compiler characteristics.
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13551 $as_echo "$as_me: checking for system characteristics" >&6;}
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13553 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13554 if ${ac_cv_c_const+:} false; then :
13555 $as_echo_n "(cached) " >&6
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13564 #ifndef __cplusplus
13565 /* Ultrix mips cc rejects this sort of thing. */
13566 typedef int charset[2];
13567 const charset cs = { 0, 0 };
13568 /* SunOS 4.1.1 cc rejects this. */
13569 char const *const *pcpcc;
13571 /* NEC SVR4.0.2 mips cc rejects this. */
13572 struct point {int x, y;};
13573 static struct point const zero = {0,0};
13574 /* AIX XL C 1.02.0.0 rejects this.
13575 It does not let you subtract one const X* pointer from another in
13576 an arm of an if-expression whose if-part is not a constant
13578 const char *g = "string";
13579 pcpcc = &g + (g ? g-g : 0);
13580 /* HPUX 7.0 cc rejects these. */
13582 ppc = (char**) pcpcc;
13583 pcpcc = (char const *const *) ppc;
13584 { /* SCO 3.2v4 cc rejects this sort of thing. */
13587 char const *s = 0 ? (char *) 0 : (char const *) 0;
13592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13593 int x[] = {25, 17};
13594 const int *foo = &x[0];
13597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13598 typedef const int *iptr;
13602 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13604 struct s { int j; const int *ap[3]; } bx;
13605 struct s *b = &bx; b->j = 5;
13607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13608 const int foo = 10;
13609 if (!foo) return 0;
13611 return !cs[0] && !zero.x;
13618 if ac_fn_c_try_compile "$LINENO"; then :
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13626 $as_echo "$ac_cv_c_const" >&6; }
13627 if test $ac_cv_c_const = no; then
13629 $as_echo "#define const /**/" >>confdefs.h
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13634 $as_echo_n "checking for inline... " >&6; }
13635 if ${ac_cv_c_inline+:} false; then :
13636 $as_echo_n "(cached) " >&6
13639 for ac_kw in inline __inline__ __inline; do
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h. */
13642 #ifndef __cplusplus
13644 static $ac_kw foo_t static_foo () {return 0; }
13645 $ac_kw foo_t foo () {return 0; }
13649 if ac_fn_c_try_compile "$LINENO"; then :
13650 ac_cv_c_inline=$ac_kw
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 test "$ac_cv_c_inline" != no && break
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13658 $as_echo "$ac_cv_c_inline" >&6; }
13660 case $ac_cv_c_inline in
13663 case $ac_cv_c_inline in
13665 *) ac_val=$ac_cv_c_inline;;
13667 cat >>confdefs.h <<_ACEOF
13668 #ifndef __cplusplus
13669 #define inline $ac_val
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13676 $as_echo_n "checking for working volatile... " >&6; }
13677 if ${ac_cv_c_volatile+:} false; then :
13678 $as_echo_n "(cached) " >&6
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13688 int * volatile y = (int *) 0;
13694 if ac_fn_c_try_compile "$LINENO"; then :
13695 ac_cv_c_volatile=yes
13697 ac_cv_c_volatile=no
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13702 $as_echo "$ac_cv_c_volatile" >&6; }
13703 if test $ac_cv_c_volatile = no; then
13705 $as_echo "#define volatile /**/" >>confdefs.h
13709 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13710 if test "x$ac_cv_type_size_t" = xyes; then :
13714 cat >>confdefs.h <<_ACEOF
13715 #define size_t unsigned int
13720 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_mode_t" = xyes; then :
13725 cat >>confdefs.h <<_ACEOF
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13732 $as_echo_n "checking return type of signal handlers... " >&6; }
13733 if ${ac_cv_type_signal+:} false; then :
13734 $as_echo_n "(cached) " >&6
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 #include <sys/types.h>
13739 #include <signal.h>
13744 return *(signal (0, 0)) (0) == 1;
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750 ac_cv_type_signal=int
13752 ac_cv_type_signal=void
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13757 $as_echo "$ac_cv_type_signal" >&6; }
13759 cat >>confdefs.h <<_ACEOF
13760 #define RETSIGTYPE $ac_cv_type_signal
13764 for ac_func in sigdescr_np
13766 ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13767 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_SIGDESCR_NP 1
13775 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13776 /* NetBSD declares sys_siglist in unistd.h. */
13777 #ifdef HAVE_UNISTD_H
13778 # include <unistd.h>
13782 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13788 cat >>confdefs.h <<_ACEOF
13789 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13797 for ac_header in $ac_header_list
13799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13815 if test $ac_cv_header_sys_socket_h = yes; then
13818 for ac_header in winsock2.h ws2tcpip.h
13820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13823 cat >>confdefs.h <<_ACEOF
13824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831 SYS_SOCKET_H='sys/socket.h'
13835 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13836 #if HAVE_SYS_SOCKET_H
13837 # include <sys/socket.h>
13838 #elif HAVE_WS2TCPIP_H
13839 # include <ws2tcpip.h>
13842 if test "x$ac_cv_type_socklen_t" = xyes; then :
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13846 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13847 if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13848 $as_echo_n "(cached) " >&6
13850 # Systems have either "struct sockaddr *" or
13851 # "void *" as the second argument to getpeername
13852 gl_cv_socklen_t_equiv=
13853 for arg2 in "struct sockaddr" void; do
13854 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13856 /* end confdefs.h. */
13857 #include <sys/types.h>
13858 #include <sys/socket.h>
13860 int getpeername (int, $arg2 *, $t *);
13865 getpeername (0, 0, &len);
13870 if ac_fn_c_try_compile "$LINENO"; then :
13871 gl_cv_socklen_t_equiv="$t"
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874 test "$gl_cv_socklen_t_equiv" != "" && break
13876 test "$gl_cv_socklen_t_equiv" != "" && break
13881 if test "$gl_cv_socklen_t_equiv" = ""; then
13882 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13885 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13887 cat >>confdefs.h <<_ACEOF
13888 #define socklen_t $gl_cv_socklen_t_equiv
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13895 $as_echo_n "checking for library containing inet_addr... " >&6; }
13896 if ${ac_cv_search_inet_addr+:} false; then :
13897 $as_echo_n "(cached) " >&6
13899 ac_func_search_save_LIBS=$LIBS
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13903 /* Override any GCC internal prototype to avoid an error.
13904 Use char because int might match the return type of a GCC
13905 builtin and then its argument prototype would still apply. */
13913 return inet_addr ();
13918 for ac_lib in '' nsl; do
13919 if test -z "$ac_lib"; then
13920 ac_res="none required"
13923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13925 if ac_fn_c_try_link "$LINENO"; then :
13926 ac_cv_search_inet_addr=$ac_res
13928 rm -f core conftest.err conftest.$ac_objext \
13930 if ${ac_cv_search_inet_addr+:} false; then :
13934 if ${ac_cv_search_inet_addr+:} false; then :
13937 ac_cv_search_inet_addr=no
13939 rm conftest.$ac_ext
13940 LIBS=$ac_func_search_save_LIBS
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13943 $as_echo "$ac_cv_search_inet_addr" >&6; }
13944 ac_res=$ac_cv_search_inet_addr
13945 if test "$ac_res" != no; then :
13946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13951 # Check whether --enable-endian-check was given.
13952 if test "${enable_endian_check+set}" = set; then :
13953 enableval=$enable_endian_check; endiancheck=$enableval
13959 if test x"$endiancheck" = xyes ; then
13961 tmp_assumed_endian=big
13963 if test "$cross_compiling" = yes; then
13964 case "$host_cpu" in
13966 tmp_assumed_endian=little
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13973 $as_echo_n "checking endianness... " >&6; }
13974 if ${gnupg_cv_c_endian+:} false; then :
13975 $as_echo_n "(cached) " >&6
13977 gnupg_cv_c_endian=unknown
13978 # See if sys/param.h defines the BYTE_ORDER macro.
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 #include <sys/types.h>
13982 #include <sys/param.h>
13987 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13988 bogus endian macros
13994 if ac_fn_c_try_compile "$LINENO"; then :
13995 # It does; now see whether it defined to BIG_ENDIAN or not.
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998 #include <sys/types.h>
13999 #include <sys/param.h>
14004 #if BYTE_ORDER != BIG_ENDIAN
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 gnupg_cv_c_endian=big
14014 gnupg_cv_c_endian=little
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 if test "$gnupg_cv_c_endian" = unknown; then
14020 if test "$cross_compiling" = yes; then :
14021 gnupg_cv_c_endian=$tmp_assumed_endian
14022 tmp_assumed_warn=" (assumed)"
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14028 /* Are we little or big endian? From Harbison&Steele. */
14032 char c[sizeof (long)];
14035 exit (u.c[sizeof (long) - 1] == 1);
14038 if ac_fn_c_try_run "$LINENO"; then :
14039 gnupg_cv_c_endian=little
14041 gnupg_cv_c_endian=big
14043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14044 conftest.$ac_objext conftest.beam conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14052 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14053 if test "$gnupg_cv_c_endian" = little; then
14055 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14059 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14065 # fixme: we should get rid of the byte type
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
14067 $as_echo_n "checking for byte typedef... " >&6; }
14068 if ${gnupg_cv_typedef_byte+:} false; then :
14069 $as_echo_n "(cached) " >&6
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 #define _GNU_SOURCE 1
14074 #include <stdlib.h>
14075 #include <sys/types.h>
14081 int a = sizeof(byte);
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 gnupg_cv_typedef_byte=yes
14090 gnupg_cv_typedef_byte=no
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
14096 $as_echo "$gnupg_cv_typedef_byte" >&6; }
14097 if test "$gnupg_cv_typedef_byte" = yes; then
14099 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
14104 $as_echo_n "checking for ushort typedef... " >&6; }
14105 if ${gnupg_cv_typedef_ushort+:} false; then :
14106 $as_echo_n "(cached) " >&6
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14110 #define _GNU_SOURCE 1
14111 #include <stdlib.h>
14112 #include <sys/types.h>
14118 int a = sizeof(ushort);
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 gnupg_cv_typedef_ushort=yes
14127 gnupg_cv_typedef_ushort=no
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
14133 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
14134 if test "$gnupg_cv_typedef_ushort" = yes; then
14136 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
14141 $as_echo_n "checking for ulong typedef... " >&6; }
14142 if ${gnupg_cv_typedef_ulong+:} false; then :
14143 $as_echo_n "(cached) " >&6
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 #define _GNU_SOURCE 1
14148 #include <stdlib.h>
14149 #include <sys/types.h>
14155 int a = sizeof(ulong);
14161 if ac_fn_c_try_compile "$LINENO"; then :
14162 gnupg_cv_typedef_ulong=yes
14164 gnupg_cv_typedef_ulong=no
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
14170 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
14171 if test "$gnupg_cv_typedef_ulong" = yes; then
14173 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
14178 $as_echo_n "checking for u16 typedef... " >&6; }
14179 if ${gnupg_cv_typedef_u16+:} false; then :
14180 $as_echo_n "(cached) " >&6
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 #define _GNU_SOURCE 1
14185 #include <stdlib.h>
14186 #include <sys/types.h>
14192 int a = sizeof(u16);
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 gnupg_cv_typedef_u16=yes
14201 gnupg_cv_typedef_u16=no
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
14207 $as_echo "$gnupg_cv_typedef_u16" >&6; }
14208 if test "$gnupg_cv_typedef_u16" = yes; then
14210 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14215 $as_echo_n "checking for u32 typedef... " >&6; }
14216 if ${gnupg_cv_typedef_u32+:} false; then :
14217 $as_echo_n "(cached) " >&6
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h. */
14221 #define _GNU_SOURCE 1
14222 #include <stdlib.h>
14223 #include <sys/types.h>
14229 int a = sizeof(u32);
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 gnupg_cv_typedef_u32=yes
14238 gnupg_cv_typedef_u32=no
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14244 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14245 if test "$gnupg_cv_typedef_u32" = yes; then
14247 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14252 # The cast to long int works around a bug in the HP C Compiler
14253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14255 # This bug is HP SR number 8606223364.
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14257 $as_echo_n "checking size of unsigned short... " >&6; }
14258 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14259 $as_echo_n "(cached) " >&6
14261 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14264 if test "$ac_cv_type_unsigned_short" = yes; then
14265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14267 as_fn_error 77 "cannot compute sizeof (unsigned short)
14268 See \`config.log' for more details" "$LINENO" 5; }
14270 ac_cv_sizeof_unsigned_short=0
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14276 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14280 cat >>confdefs.h <<_ACEOF
14281 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14285 # The cast to long int works around a bug in the HP C Compiler
14286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14288 # This bug is HP SR number 8606223364.
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14290 $as_echo_n "checking size of unsigned int... " >&6; }
14291 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14292 $as_echo_n "(cached) " >&6
14294 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14297 if test "$ac_cv_type_unsigned_int" = yes; then
14298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14300 as_fn_error 77 "cannot compute sizeof (unsigned int)
14301 See \`config.log' for more details" "$LINENO" 5; }
14303 ac_cv_sizeof_unsigned_int=0
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14309 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14313 cat >>confdefs.h <<_ACEOF
14314 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14318 # The cast to long int works around a bug in the HP C Compiler
14319 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14320 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14321 # This bug is HP SR number 8606223364.
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14323 $as_echo_n "checking size of unsigned long... " >&6; }
14324 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14330 if test "$ac_cv_type_unsigned_long" = yes; then
14331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14333 as_fn_error 77 "cannot compute sizeof (unsigned long)
14334 See \`config.log' for more details" "$LINENO" 5; }
14336 ac_cv_sizeof_unsigned_long=0
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14342 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14346 cat >>confdefs.h <<_ACEOF
14347 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14351 # The cast to long int works around a bug in the HP C Compiler
14352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14354 # This bug is HP SR number 8606223364.
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14356 $as_echo_n "checking size of unsigned long long... " >&6; }
14357 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14358 $as_echo_n "(cached) " >&6
14360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14363 if test "$ac_cv_type_unsigned_long_long" = yes; then
14364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14366 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14367 See \`config.log' for more details" "$LINENO" 5; }
14369 ac_cv_sizeof_unsigned_long_long=0
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14375 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14379 cat >>confdefs.h <<_ACEOF
14380 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14386 if ${ac_cv_header_time+:} false; then :
14387 $as_echo_n "(cached) " >&6
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390 /* end confdefs.h. */
14391 #include <sys/types.h>
14392 #include <sys/time.h>
14398 if ((struct tm *) 0)
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405 ac_cv_header_time=yes
14407 ac_cv_header_time=no
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14412 $as_echo "$ac_cv_header_time" >&6; }
14413 if test $ac_cv_header_time = yes; then
14415 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14419 # The cast to long int works around a bug in the HP C Compiler
14420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14422 # This bug is HP SR number 8606223364.
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14424 $as_echo_n "checking size of time_t... " >&6; }
14425 if ${ac_cv_sizeof_time_t+:} false; then :
14426 $as_echo_n "(cached) " >&6
14428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14430 #if TIME_WITH_SYS_TIME
14431 # include <sys/time.h>
14434 # if HAVE_SYS_TIME_H
14435 # include <sys/time.h>
14444 if test "$ac_cv_type_time_t" = yes; then
14445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14447 as_fn_error 77 "cannot compute sizeof (time_t)
14448 See \`config.log' for more details" "$LINENO" 5; }
14450 ac_cv_sizeof_time_t=0
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14456 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14460 cat >>confdefs.h <<_ACEOF
14461 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14466 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14467 if ${gnupg_cv_time_t_unsigned+:} false; then :
14468 $as_echo_n "(cached) " >&6
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472 $ac_includes_default
14473 #if TIME_WITH_SYS_TIME
14474 # include <sys/time.h>
14477 # if HAVE_SYS_TIME_H
14478 # include <sys/time.h>
14487 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14488 test_array [0] = 0;
14489 return test_array [0];
14495 if ac_fn_c_try_compile "$LINENO"; then :
14496 gnupg_cv_time_t_unsigned=no
14498 gnupg_cv_time_t_unsigned=yes
14500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14503 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14504 if test $gnupg_cv_time_t_unsigned = yes; then
14506 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14512 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14513 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14514 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14516 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14521 # Checks for library functions.
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14524 $as_echo "$as_me: checking for library functions" >&6;}
14525 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14526 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14537 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14538 if ${ac_cv_sys_largefile_source+:} false; then :
14539 $as_echo_n "(cached) " >&6
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14544 #include <sys/types.h> /* for off_t */
14549 int (*fp) (FILE *, off_t, int) = fseeko;
14550 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14555 if ac_fn_c_try_link "$LINENO"; then :
14556 ac_cv_sys_largefile_source=no; break
14558 rm -f core conftest.err conftest.$ac_objext \
14559 conftest$ac_exeext conftest.$ac_ext
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 #define _LARGEFILE_SOURCE 1
14563 #include <sys/types.h> /* for off_t */
14568 int (*fp) (FILE *, off_t, int) = fseeko;
14569 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14574 if ac_fn_c_try_link "$LINENO"; then :
14575 ac_cv_sys_largefile_source=1; break
14577 rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14579 ac_cv_sys_largefile_source=unknown
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14584 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14585 case $ac_cv_sys_largefile_source in #(
14588 cat >>confdefs.h <<_ACEOF
14589 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14595 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14596 # in glibc 2.1.3, but that breaks too many other things.
14597 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14598 if test $ac_cv_sys_largefile_source != unknown; then
14600 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14604 for ac_func in vprintf
14606 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14607 if test "x$ac_cv_func_vprintf" = xyes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_VPRINTF 1
14612 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14613 if test "x$ac_cv_func__doprnt" = xyes; then :
14615 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14623 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14624 if test "x$ac_cv_type_pid_t" = xyes; then :
14628 cat >>confdefs.h <<_ACEOF
14634 for ac_header in vfork.h
14636 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14637 if test "x$ac_cv_header_vfork_h" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_VFORK_H 1
14646 for ac_func in fork vfork
14648 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14651 cat >>confdefs.h <<_ACEOF
14652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14658 if test "x$ac_cv_func_fork" = xyes; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14660 $as_echo_n "checking for working fork... " >&6; }
14661 if ${ac_cv_func_fork_works+:} false; then :
14662 $as_echo_n "(cached) " >&6
14664 if test "$cross_compiling" = yes; then :
14665 ac_cv_func_fork_works=cross
14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14669 $ac_includes_default
14674 /* By Ruediger Kuhlmann. */
14675 return fork () < 0;
14681 if ac_fn_c_try_run "$LINENO"; then :
14682 ac_cv_func_fork_works=yes
14684 ac_cv_func_fork_works=no
14686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14687 conftest.$ac_objext conftest.beam conftest.$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14692 $as_echo "$ac_cv_func_fork_works" >&6; }
14695 ac_cv_func_fork_works=$ac_cv_func_fork
14697 if test "x$ac_cv_func_fork_works" = xcross; then
14699 *-*-amigaos* | *-*-msdosdjgpp*)
14700 # Override, as these systems have only a dummy fork() stub
14701 ac_cv_func_fork_works=no
14704 ac_cv_func_fork_works=yes
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14708 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14710 ac_cv_func_vfork_works=$ac_cv_func_vfork
14711 if test "x$ac_cv_func_vfork" = xyes; then
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14713 $as_echo_n "checking for working vfork... " >&6; }
14714 if ${ac_cv_func_vfork_works+:} false; then :
14715 $as_echo_n "(cached) " >&6
14717 if test "$cross_compiling" = yes; then :
14718 ac_cv_func_vfork_works=cross
14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721 /* end confdefs.h. */
14722 /* Thanks to Paul Eggert for this test. */
14723 $ac_includes_default
14724 #include <sys/wait.h>
14725 #ifdef HAVE_VFORK_H
14726 # include <vfork.h>
14728 /* On some sparc systems, changes by the child to local and incoming
14729 argument registers are propagated back to the parent. The compiler
14730 is told about this with #include <vfork.h>, but some compilers
14731 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14732 static variable whose address is put into a register that is
14733 clobbered by the vfork. */
14736 sparc_address_test (int arg)
14738 sparc_address_test (arg) int arg;
14741 static pid_t child;
14759 pid_t parent = getpid ();
14762 sparc_address_test (0);
14767 /* Here is another test for sparc vfork register problems. This
14768 test uses lots of local variables, at least as many local
14769 variables as main has allocated so far including compiler
14770 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14771 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14772 reuse the register of parent for one of the local variables,
14773 since it will think that parent can't possibly be used any more
14774 in this routine. Assigning to the local variable will thus
14775 munge parent in the parent process. */
14777 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14778 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14779 /* Convince the compiler that p..p7 are live; otherwise, it might
14780 use the same hardware register for all 8 local variables. */
14781 if (p != p1 || p != p2 || p != p3 || p != p4
14782 || p != p5 || p != p6 || p != p7)
14785 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14786 from child file descriptors. If the child closes a descriptor
14787 before it execs or exits, this munges the parent's descriptor
14788 as well. Test for this by closing stdout in the child. */
14789 _exit(close(fileno(stdout)) != 0);
14794 while (wait(&status) != child)
14797 /* Was there some problem with vforking? */
14800 /* Did the child fail? (This shouldn't happen.) */
14803 /* Did the vfork/compiler bug occur? */
14804 || parent != getpid()
14806 /* Did the file descriptor bug occur? */
14807 || fstat(fileno(stdout), &st) != 0
14812 if ac_fn_c_try_run "$LINENO"; then :
14813 ac_cv_func_vfork_works=yes
14815 ac_cv_func_vfork_works=no
14817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14818 conftest.$ac_objext conftest.beam conftest.$ac_ext
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14823 $as_echo "$ac_cv_func_vfork_works" >&6; }
14826 if test "x$ac_cv_func_fork_works" = xcross; then
14827 ac_cv_func_vfork_works=$ac_cv_func_vfork
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14829 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14832 if test "x$ac_cv_func_vfork_works" = xyes; then
14834 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14838 $as_echo "#define vfork fork" >>confdefs.h
14841 if test "x$ac_cv_func_fork_works" = xyes; then
14843 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14847 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14848 explicit_bzero fcntl flockfile fsync ftello \
14849 ftruncate funlockfile getaddrinfo getenv getpagesize \
14850 getpwnam getpwuid getrlimit getrusage gettimeofday \
14851 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14852 memmove memrchr mmap nl_langinfo pipe raise rand \
14853 setenv setlocale setrlimit sigaction sigprocmask \
14854 stat stpcpy strcasecmp strerror strftime stricmp \
14855 strlwr strncasecmp strpbrk strsep strtol strtoul \
14856 strtoull tcgetattr timegm times ttyname unsetenv \
14859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14870 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14871 # Given that we use nanosleep only as an optimization over a select
14872 # based wait function we want it only if it is available in libc.
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14875 $as_echo_n "checking for library containing nanosleep... " >&6; }
14876 if ${ac_cv_search_nanosleep+:} false; then :
14877 $as_echo_n "(cached) " >&6
14879 ac_func_search_save_LIBS=$LIBS
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14893 return nanosleep ();
14898 for ac_lib in '' ; do
14899 if test -z "$ac_lib"; then
14900 ac_res="none required"
14903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14905 if ac_fn_c_try_link "$LINENO"; then :
14906 ac_cv_search_nanosleep=$ac_res
14908 rm -f core conftest.err conftest.$ac_objext \
14910 if ${ac_cv_search_nanosleep+:} false; then :
14914 if ${ac_cv_search_nanosleep+:} false; then :
14917 ac_cv_search_nanosleep=no
14919 rm conftest.$ac_ext
14920 LIBS=$ac_func_search_save_LIBS
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14923 $as_echo "$ac_cv_search_nanosleep" >&6; }
14924 ac_res=$ac_cv_search_nanosleep
14925 if test "$ac_res" != no; then :
14926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14928 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14935 # See whether libc supports the Linux inotify interface
14938 for ac_func in inotify_init
14940 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14941 if test "x$ac_cv_func_inotify_init" = xyes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_INOTIFY_INIT 1
14953 if test "$have_android_system" = yes; then
14954 # On Android ttyname is a stub but prints an error message.
14956 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14960 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14962 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14964 cat >>confdefs.h <<_ACEOF
14965 #define HAVE_STRUCT_SIGACTION 1
14970 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14972 if test "x$ac_cv_type_sigset_t" = xyes; then :
14974 cat >>confdefs.h <<_ACEOF
14975 #define HAVE_SIGSET_T 1
14982 # Dirmngr requires mmap on Unix systems.
14983 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14984 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
14989 # Check for the getsockopt SO_PEERCRED, etc.
14991 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
14992 #include <sys/socket.h>
14994 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
14996 cat >>confdefs.h <<_ACEOF
14997 #define HAVE_STRUCT_UCRED_PID 1
15002 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15003 #include <sys/socket.h>
15005 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15007 cat >>confdefs.h <<_ACEOF
15008 #define HAVE_STRUCT_UCRED_CR_PID 1
15013 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15014 #include <sys/socket.h>
15016 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15027 for ac_func in getpeerucred
15029 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15030 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15031 cat >>confdefs.h <<_ACEOF
15032 #define HAVE_GETPEERUCRED 1
15041 # W32 specific test
15043 for ac_header in sys/stat.h unistd.h direct.h
15045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15048 cat >>confdefs.h <<_ACEOF
15049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
15057 $as_echo_n "checking if mkdir takes one argument... " >&6; }
15058 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
15059 $as_echo_n "(cached) " >&6
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15064 #include <sys/types.h>
15065 #ifdef HAVE_SYS_STAT_H
15066 # include <sys/stat.h>
15068 #ifdef HAVE_UNISTD_H
15069 # include <unistd.h>
15071 #ifdef HAVE_DIRECT_H
15072 # include <direct.h>
15082 if ac_fn_c_try_compile "$LINENO"; then :
15083 gnupg_cv_mkdir_takes_one_arg=no
15085 gnupg_cv_mkdir_takes_one_arg=yes
15087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
15090 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
15091 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
15093 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
15100 # Do we have zlib? Must do it here because Solaris failed
15101 # when compiling a conftest (due to the "-lz" from LIBS).
15102 # Note that we combine zlib and bzlib2 in ZLIBS.
15104 if test "$use_zip" = yes ; then
15105 _cppflags="${CPPFLAGS}"
15106 _ldflags="${LDFLAGS}"
15108 # Check whether --with-zlib was given.
15109 if test "${with_zlib+set}" = set; then :
15110 withval=$with_zlib;
15111 if test -d "$withval"; then
15112 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15113 LDFLAGS="${LDFLAGS} -L$withval/lib"
15119 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15120 if test "x$ac_cv_header_zlib_h" = xyes; then :
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15122 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15123 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15124 $as_echo_n "(cached) " >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15137 char deflateInit2_ ();
15141 return deflateInit2_ ();
15146 if ac_fn_c_try_link "$LINENO"; then :
15147 ac_cv_lib_z_deflateInit2_=yes
15149 ac_cv_lib_z_deflateInit2_=no
15151 rm -f core conftest.err conftest.$ac_objext \
15152 conftest$ac_exeext conftest.$ac_ext
15153 LIBS=$ac_check_lib_save_LIBS
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15156 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15157 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15161 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15165 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15169 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15177 # Check whether we can support bzip2
15179 if test "$use_bzip2" = yes ; then
15180 _cppflags="${CPPFLAGS}"
15181 _ldflags="${LDFLAGS}"
15183 # Check whether --with-bzip2 was given.
15184 if test "${with_bzip2+set}" = set; then :
15185 withval=$with_bzip2;
15186 if test -d "$withval" ; then
15187 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15188 LDFLAGS="${LDFLAGS} -L$withval/lib"
15196 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15197 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15198 # woefully out of date.
15199 if test "$withval" != no ; then
15200 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15202 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15204 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15205 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15206 $as_echo_n "(cached) " >&6
15208 ac_check_lib_save_LIBS=$LIBS
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h. */
15213 /* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
15219 char BZ2_bzCompressInit ();
15223 return BZ2_bzCompressInit ();
15228 if ac_fn_c_try_link "$LINENO"; then :
15229 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15231 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15238 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15239 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15242 ZLIBS="$ZLIBS -lbz2"
15244 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15248 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15252 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15258 if test x"$have_bz2" = "xyes"; then
15259 ENABLE_BZIP2_SUPPORT_TRUE=
15260 ENABLE_BZIP2_SUPPORT_FALSE='#'
15262 ENABLE_BZIP2_SUPPORT_TRUE='#'
15263 ENABLE_BZIP2_SUPPORT_FALSE=
15269 # Check for readline support
15272 # Check whether --with-readline was given.
15273 if test "${with_readline+set}" = set; then :
15274 withval=$with_readline; _do_readline=$withval
15280 gnupg_cv_have_readline=no
15281 if test "$_do_readline" != "no" ; then
15282 if test -d "$withval" ; then
15283 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15284 LDFLAGS="${LDFLAGS} -L$withval/lib"
15287 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15288 _readline_save_libs=$LIBS
15289 _combo="-lreadline${_termcap:+ $_termcap}"
15290 LIBS="$LIBS $_combo"
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15293 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15299 #include <readline/readline.h>
15300 #include <readline/history.h>
15306 rl_completion_func_t *completer;
15307 add_history("foobar");
15308 rl_catch_signals=0;
15309 rl_inhibit_completion=0;
15310 rl_attempted_completion_function=NULL;
15311 rl_completion_matches(NULL,NULL);
15317 if ac_fn_c_try_link "$LINENO"; then :
15318 _found_readline=yes
15322 rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15326 $as_echo "$_found_readline" >&6; }
15328 LIBS=$_readline_save_libs
15330 if test $_found_readline = yes ; then
15332 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15334 LIBREADLINE=$_combo
15336 gnupg_cv_have_readline=yes
15342 unset _readline_save_libs
15344 unset _found_readline
15349 if test "$development_version" = yes; then
15351 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15355 if test "$USE_MAINTAINER_MODE" = "yes"; then
15357 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15361 if test x$cross_compiling = xyes; then
15362 CROSS_COMPILING_TRUE=
15363 CROSS_COMPILING_FALSE='#'
15365 CROSS_COMPILING_TRUE='#'
15366 CROSS_COMPILING_FALSE=
15371 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15376 *** It seems that you are not using GNU make. Some make tools have serious
15377 *** flaws and you may not be able to build this software at all. Before you
15378 *** complain, please try GNU make: GNU make is easy to build and available
15379 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15381 $as_echo "$as_me: WARNING:
15383 *** It seems that you are not using GNU make. Some make tools have serious
15384 *** flaws and you may not be able to build this software at all. Before you
15385 *** complain, please try GNU make: GNU make is easy to build and available
15386 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15391 # Add some extra libs here so that previous tests don't fail for
15392 # mysterious reasons - the final link step should bail out.
15393 # W32SOCKLIBS is also defined so that if can be used for tools not
15394 # requiring any network stuff but linking to code in libcommon which
15395 # tracks in winsock stuff (e.g. init_common_subsystems).
15396 if test "$have_w32_system" = yes; then
15397 if test "$have_w32ce_system" = yes; then
15398 W32SOCKLIBS="-lws2"
15400 W32SOCKLIBS="-lws2_32"
15402 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15409 # Setup gcc specific options
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15413 $as_echo "$as_me: checking for cc features" >&6;}
15414 if test "$GCC" = yes; then
15416 mycflags_save=$CFLAGS
15418 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15419 # options. This is the case for gcc >= 4.6
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15421 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15425 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15436 if ac_fn_c_try_compile "$LINENO"; then :
15437 _gcc_silent_wno=yes
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15443 $as_echo "$_gcc_silent_wno" >&6; }
15445 # Note that it is okay to use CFLAGS here because these are just
15446 # warning options and the user should have a chance of overriding
15448 if test "$USE_MAINTAINER_MODE" = "yes"; then
15449 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15450 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15451 if test x"$_gcc_silent_wno" = xyes ; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15455 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15456 CFLAGS="-Wno-missing-field-initializers"
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15468 if ac_fn_c_try_compile "$LINENO"; then :
15473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15475 $as_echo "$_gcc_wopt" >&6; }
15477 if test x"$_gcc_wopt" = xyes ; then
15478 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15479 mycflags="$mycflags -Wno-missing-field-initializers"
15480 mycflags="$mycflags -Wno-format-zero-length"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15484 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15485 CFLAGS="-Wdeclaration-after-statement"
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15497 if ac_fn_c_try_compile "$LINENO"; then :
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15504 $as_echo "$_gcc_wopt" >&6; }
15505 if test x"$_gcc_wopt" = xyes ; then
15506 mycflags="$mycflags -Wdeclaration-after-statement"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15510 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15511 CFLAGS="-Wlogical-op -Werror"
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15523 if ac_fn_c_try_compile "$LINENO"; then :
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15530 $as_echo "$_gcc_wopt" >&6; }
15531 if test x"$_gcc_wopt" = xyes ; then
15532 mycflags="$mycflags -Wlogical-op"
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15536 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15539 /* end confdefs.h. */
15549 if ac_fn_c_try_compile "$LINENO"; then :
15554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15556 $as_echo "$_gcc_wopt" >&6; }
15557 if test x"$_gcc_wopt" = xyes ; then
15558 mycflags="$mycflags -Wvla"
15562 mycflags="$mycflags -Wall"
15563 if test x"$_gcc_silent_wno" = xyes ; then
15564 mycflags="$mycflags -Wno-format-zero-length"
15568 if test x"$_gcc_silent_wno" = xyes ; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15572 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15573 CFLAGS="-Wno-pointer-sign"
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15585 if ac_fn_c_try_compile "$LINENO"; then :
15590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15592 $as_echo "$_gcc_psign" >&6; }
15594 if test x"$_gcc_psign" = xyes ; then
15595 mycflags="$mycflags -Wno-pointer-sign"
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15599 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15600 CFLAGS="-Wpointer-arith"
15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15612 if ac_fn_c_try_compile "$LINENO"; then :
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15619 $as_echo "$_gcc_psign" >&6; }
15620 if test x"$_gcc_psign" = xyes ; then
15621 mycflags="$mycflags -Wpointer-arith"
15624 CFLAGS="$mycflags $mycflags_save"
15625 if test "$use_libdns" = yes; then
15626 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
15627 USE_C99_CFLAGS="-std=gnu99"
15635 # This is handy for debugging so the compiler doesn't rearrange
15636 # things and eliminate variables.
15638 # Check whether --enable-optimization was given.
15639 if test "${enable_optimization+set}" = set; then :
15640 enableval=$enable_optimization; if test $enableval = no ; then
15641 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15647 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
15648 # misbehaving autoconf tests in case the user supplied -Werror.
15650 # Check whether --enable-werror was given.
15651 if test "${enable_werror+set}" = set; then :
15652 enableval=$enable_werror; if test $enableval = yes ; then
15653 CFLAGS="$CFLAGS -Werror"
15659 # Configure option --enable-all-tests
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
15662 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
15663 # Check whether --enable-all-tests was given.
15664 if test "${enable_all_tests+set}" = set; then :
15665 enableval=$enable_all_tests; run_all_tests=$enableval
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
15671 $as_echo "$run_all_tests" >&6; }
15672 if test "$run_all_tests" = "yes"; then
15674 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
15679 # Configure option --disable-tests
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
15682 $as_echo_n "checking whether tests should be run... " >&6; }
15683 # Check whether --enable-tests was given.
15684 if test "${enable_tests+set}" = set; then :
15685 enableval=$enable_tests; run_tests=$enableval
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
15691 $as_echo "$run_tests" >&6; }
15694 # We do not want support for the GNUPG_BUILDDIR environment variable
15695 # in a released version. However, our regression tests suite requires
15696 # this and thus we build with support for it during "make distcheck".
15697 # This configure option implements this along with the top Makefile's
15698 # AM_DISTCHECK_CONFIGURE_FLAGS.
15700 gnupg_builddir_envvar=no
15701 # Check whether --enable-gnupg-builddir-envvar was given.
15702 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
15703 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
15706 if test x"$gnupg_builddir_envvar" = x"yes"; then
15708 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
15714 # To avoid problems with systemd cleaning up the /run/user directory,
15715 # this option will make GnuPG try to use /run/gnupg/user as socket dir
15718 # Check whether --enable-run-gnupg-user-socket was given.
15719 if test "${enable_run_gnupg_user_socket+set}" = set; then :
15720 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
15723 if test x"$use_run_gnupg_user_socket" = x"yes"; then
15725 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
15731 # Decide what to build
15734 build_scdaemon_extra=""
15735 if test "$build_scdaemon" = "yes"; then
15736 if test $have_libusb = no; then
15737 build_scdaemon_extra="without internal CCID driver"
15739 if test -n "$build_scdaemon_extra"; then
15740 build_scdaemon_extra="(${build_scdaemon_extra})"
15746 # Set variables for use by automake makefiles.
15748 if test "$build_gpg" = "yes"; then
15750 BUILD_GPG_FALSE='#'
15756 if test "$build_gpgsm" = "yes"; then
15758 BUILD_GPGSM_FALSE='#'
15760 BUILD_GPGSM_TRUE='#'
15764 if test "$build_agent" = "yes"; then
15766 BUILD_AGENT_FALSE='#'
15768 BUILD_AGENT_TRUE='#'
15772 if test "$build_scdaemon" = "yes"; then
15773 BUILD_SCDAEMON_TRUE=
15774 BUILD_SCDAEMON_FALSE='#'
15776 BUILD_SCDAEMON_TRUE='#'
15777 BUILD_SCDAEMON_FALSE=
15780 if test "$build_g13" = "yes"; then
15782 BUILD_G13_FALSE='#'
15788 if test "$build_dirmngr" = "yes"; then
15789 BUILD_DIRMNGR_TRUE=
15790 BUILD_DIRMNGR_FALSE='#'
15792 BUILD_DIRMNGR_TRUE='#'
15793 BUILD_DIRMNGR_FALSE=
15796 if test "$build_doc" = "yes"; then
15798 BUILD_DOC_FALSE='#'
15804 if test "$build_gpgtar" = "yes"; then
15806 BUILD_GPGTAR_FALSE='#'
15808 BUILD_GPGTAR_TRUE='#'
15809 BUILD_GPGTAR_FALSE=
15812 if test "$build_wks_tools" = "yes"; then
15813 BUILD_WKS_TOOLS_TRUE=
15814 BUILD_WKS_TOOLS_FALSE='#'
15816 BUILD_WKS_TOOLS_TRUE='#'
15817 BUILD_WKS_TOOLS_FALSE=
15821 if test "$run_tests" != yes; then
15822 DISABLE_TESTS_TRUE=
15823 DISABLE_TESTS_FALSE='#'
15825 DISABLE_TESTS_TRUE='#'
15826 DISABLE_TESTS_FALSE=
15829 if test "$card_support" = yes; then
15830 ENABLE_CARD_SUPPORT_TRUE=
15831 ENABLE_CARD_SUPPORT_FALSE='#'
15833 ENABLE_CARD_SUPPORT_TRUE='#'
15834 ENABLE_CARD_SUPPORT_FALSE=
15837 if test "$use_trust_models" = no; then
15838 NO_TRUST_MODELS_TRUE=
15839 NO_TRUST_MODELS_FALSE='#'
15841 NO_TRUST_MODELS_TRUE='#'
15842 NO_TRUST_MODELS_FALSE=
15845 if test "$use_tofu" = yes; then
15855 # Set some defines for use gpgconf.
15857 if test "$build_gpg" = yes ; then
15859 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15862 if test "$build_gpgsm" = yes ; then
15864 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15867 if test "$build_agent" = yes ; then
15869 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15872 if test "$build_scdaemon" = yes ; then
15874 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15877 if test "$build_dirmngr" = yes ; then
15879 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15882 if test "$build_g13" = yes ; then
15884 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15890 # Define Name strings
15893 cat >>confdefs.h <<_ACEOF
15894 #define GNUPG_NAME "GnuPG"
15899 cat >>confdefs.h <<_ACEOF
15900 #define GPG_NAME "gpg"
15904 cat >>confdefs.h <<_ACEOF
15905 #define GPG_DISP_NAME "GnuPG"
15910 cat >>confdefs.h <<_ACEOF
15911 #define GPGSM_NAME "gpgsm"
15915 cat >>confdefs.h <<_ACEOF
15916 #define GPGSM_DISP_NAME "GPGSM"
15921 cat >>confdefs.h <<_ACEOF
15922 #define GPG_AGENT_NAME "gpg-agent"
15926 cat >>confdefs.h <<_ACEOF
15927 #define GPG_AGENT_DISP_NAME "GPG Agent"
15932 cat >>confdefs.h <<_ACEOF
15933 #define SCDAEMON_NAME "scdaemon"
15937 cat >>confdefs.h <<_ACEOF
15938 #define SCDAEMON_DISP_NAME "SCDaemon"
15943 cat >>confdefs.h <<_ACEOF
15944 #define DIRMNGR_NAME "dirmngr"
15948 cat >>confdefs.h <<_ACEOF
15949 #define DIRMNGR_DISP_NAME "DirMngr"
15954 cat >>confdefs.h <<_ACEOF
15955 #define G13_NAME "g13"
15959 cat >>confdefs.h <<_ACEOF
15960 #define G13_DISP_NAME "G13"
15965 cat >>confdefs.h <<_ACEOF
15966 #define GPGCONF_NAME "gpgconf"
15970 cat >>confdefs.h <<_ACEOF
15971 #define GPGCONF_DISP_NAME "GPGConf"
15976 cat >>confdefs.h <<_ACEOF
15977 #define GPGTAR_NAME "gpgtar"
15982 cat >>confdefs.h <<_ACEOF
15983 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15987 cat >>confdefs.h <<_ACEOF
15988 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
15992 cat >>confdefs.h <<_ACEOF
15993 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
15997 cat >>confdefs.h <<_ACEOF
15998 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16002 cat >>confdefs.h <<_ACEOF
16003 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16007 cat >>confdefs.h <<_ACEOF
16008 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16012 cat >>confdefs.h <<_ACEOF
16013 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16017 cat >>confdefs.h <<_ACEOF
16018 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16023 cat >>confdefs.h <<_ACEOF
16024 #define GPGEXT_GPG "gpg"
16028 if test "$have_w32_system" = yes; then
16030 cat >>confdefs.h <<_ACEOF
16031 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16038 # Provide information about the build.
16040 BUILD_REVISION="ecf4c2f61"
16043 cat >>confdefs.h <<_ACEOF
16044 #define BUILD_REVISION "$BUILD_REVISION"
16048 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16049 BUILD_VERSION="${BUILD_VERSION}60660"
16050 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16054 # Check whether --enable-build-timestamp was given.
16055 if test "${enable_build_timestamp+set}" = set; then :
16056 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16057 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16059 BUILD_TIMESTAMP="$enableval"
16061 BUILD_HOSTNAME="$ac_hostname"
16063 BUILD_TIMESTAMP="<none>"
16064 BUILD_HOSTNAME="<anon>"
16069 cat >>confdefs.h <<_ACEOF
16070 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16077 # Print errors here so that they are visible all
16078 # together and the user can acquire them all together.
16081 if test "$have_gpg_error" = "no"; then
16083 { $as_echo "$as_me:${as_lineno-$LINENO}:
16085 *** You need libgpg-error to build this program.
16086 ** This library is for example available at
16087 *** https://gnupg.org/ftp/gcrypt/libgpg-error
16088 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16092 *** You need libgpg-error to build this program.
16093 ** This library is for example available at
16094 *** https://gnupg.org/ftp/gcrypt/libgpg-error
16095 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16098 if test "$have_libgcrypt" = "no"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}:
16102 *** You need libgcrypt to build this program.
16103 ** This library is for example available at
16104 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16105 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16109 *** You need libgcrypt to build this program.
16110 ** This library is for example available at
16111 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16112 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16115 if test "$have_libassuan" = "no"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}:
16119 *** You need libassuan to build this program.
16120 *** This library is for example available at
16121 *** https://gnupg.org/ftp/gcrypt/libassuan/
16122 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16126 *** You need libassuan to build this program.
16127 *** This library is for example available at
16128 *** https://gnupg.org/ftp/gcrypt/libassuan/
16129 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16132 if test "$have_ksba" = "no"; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}:
16136 *** You need libksba to build this program.
16137 *** This library is for example available at
16138 *** https://gnupg.org/ftp/gcrypt/libksba/
16139 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16143 *** You need libksba to build this program.
16144 *** This library is for example available at
16145 *** https://gnupg.org/ftp/gcrypt/libksba/
16146 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16149 if test "$gnupg_have_ldap" = yes; then
16150 if test "$have_w32ce_system" = yes; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}:
16152 *** Note that CeGCC might be broken, a package fixing this is:
16153 *** http://files.kolab.org/local/windows-ce/
16154 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16155 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16158 *** Note that CeGCC might be broken, a package fixing this is:
16159 *** http://files.kolab.org/local/windows-ce/
16160 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16161 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16165 if test "$have_npth" = "no"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}:
16169 *** It is now required to build with support for the
16170 *** New Portable Threads Library (nPth). Please install this
16171 *** library first. The library is for example available at
16172 *** https://gnupg.org/ftp/gcrypt/npth/
16173 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16177 *** It is now required to build with support for the
16178 *** New Portable Threads Library (nPth). Please install this
16179 *** library first. The library is for example available at
16180 *** https://gnupg.org/ftp/gcrypt/npth/
16181 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16185 if test "$require_iconv" = yes; then
16186 if test "$am_func_iconv" != yes; then
16188 { $as_echo "$as_me:${as_lineno-$LINENO}:
16190 *** The system does not provide a working iconv function. Please
16191 *** install a suitable library; for example GNU Libiconv which is
16193 *** https://ftp.gnu.org/gnu/libiconv/
16197 *** The system does not provide a working iconv function. Please
16198 *** install a suitable library; for example GNU Libiconv which is
16200 *** https://ftp.gnu.org/gnu/libiconv/
16205 if test "$use_ccid_driver" = yes; then
16206 if test "$have_libusb" != yes; then
16208 { $as_echo "$as_me:${as_lineno-$LINENO}:
16210 *** You need libusb to build the internal ccid driver. Please
16211 *** install a libusb suitable for your system.
16215 *** You need libusb to build the internal ccid driver. Please
16216 *** install a libusb suitable for your system.
16221 if test "$die" = "yes"; then
16224 *** Required libraries not found. Please consult the above messages
16225 *** and install them before running configure again.
16231 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 g13/Makefile dirmngr/Makefile tools/gpg-zip tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile agent/gpg-agent.w32-manifest g10/gpg.w32-manifest g10/gpgv.w32-manifest sm/gpgsm.w32-manifest scd/scdaemon.w32-manifest dirmngr/dirmngr.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest"
16235 cat >confcache <<\_ACEOF
16236 # This file is a shell script that caches the results of configure
16237 # tests run on this system so they can be shared between configure
16238 # scripts and configure runs, see configure's option --config-cache.
16239 # It is not useful on other systems. If it contains results you don't
16240 # want to keep, you may remove or edit it.
16242 # config.status only pays attention to the cache file if you give it
16243 # the --recheck option to rerun configure.
16245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16247 # following values.
16251 # The following way of writing the cache mishandles newlines in values,
16252 # but we know of no workaround that is simple, portable, and efficient.
16253 # So, we kill variables containing newlines.
16254 # Ultrix sh set writes to stderr and can't be redirected directly,
16255 # and sets the high bit in the cache file unless we assign to the vars.
16257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16258 eval ac_val=\$$ac_var
16262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16266 _ | IFS | as_nl) ;; #(
16267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16268 *) { eval $ac_var=; unset $ac_var;} ;;
16274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16275 *${as_nl}ac_space=\ *)
16276 # `set' does not quote correctly, so add quotes: double-quote
16277 # substitution turns \\\\ into \\, and sed turns \\ into \.
16280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16283 # `set' quotes correctly as required by POSIX, so do not add quotes.
16284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16298 if test -w "$cache_file"; then
16299 if test "x$cache_file" != "x/dev/null"; then
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16301 $as_echo "$as_me: updating cache $cache_file" >&6;}
16302 if test ! -f "$cache_file" || test -h "$cache_file"; then
16303 cat confcache >"$cache_file"
16305 case $cache_file in #(
16307 mv -f confcache "$cache_file"$$ &&
16308 mv -f "$cache_file"$$ "$cache_file" ;; #(
16310 mv -f confcache "$cache_file" ;;
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16322 # Let make expand exec_prefix.
16323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16325 DEFS=-DHAVE_CONFIG_H
16330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16331 # 1. Remove the extension, and $U if already installed.
16332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16335 # will be set to the directory where LIBOBJS objects are built.
16336 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16337 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16339 LIBOBJS=$ac_libobjs
16341 LTLIBOBJS=$ac_ltlibobjs
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16345 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16346 if test -n "$am_sleep_pid"; then
16347 # Hide warnings about reused PIDs.
16348 wait $am_sleep_pid 2>/dev/null
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16351 $as_echo "done" >&6; }
16352 if test -n "$EXEEXT"; then
16354 am__EXEEXT_FALSE='#'
16356 am__EXEEXT_TRUE='#'
16360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16361 as_fn_error $? "conditional \"AMDEP\" was never defined.
16362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16364 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16365 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16368 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16369 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16372 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16373 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16376 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16377 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16381 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16384 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16385 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16389 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16393 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16397 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16401 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16405 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16406 if test -n "$am_sleep_pid"; then
16407 # Hide warnings about reused PIDs.
16408 wait $am_sleep_pid 2>/dev/null
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16411 $as_echo "done" >&6; }
16412 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16413 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16417 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16420 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16421 as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16424 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16425 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16428 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16429 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16432 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16433 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16437 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16441 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16445 as_fn_error $? "conditional \"SQLITE3\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16449 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16453 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16456 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16457 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16460 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16461 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16465 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16469 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16473 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16477 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16481 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16485 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16489 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16492 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16493 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16497 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16501 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16505 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16509 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16513 : "${CONFIG_STATUS=./config.status}"
16515 ac_clean_files_save=$ac_clean_files
16516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16518 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16520 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16522 # Generated by $as_me.
16523 # Run this file to recreate the current configuration.
16524 # Compiler output produced by configure, useful for debugging
16525 # configure, is in config.log if it exists.
16528 ac_cs_recheck=false
16531 SHELL=\${CONFIG_SHELL-$SHELL}
16534 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16535 ## -------------------- ##
16536 ## M4sh Initialization. ##
16537 ## -------------------- ##
16539 # Be more Bourne compatible
16540 DUALCASE=1; export DUALCASE # for MKS sh
16541 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16544 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16545 # is contrary to our usage. Disable this feature.
16546 alias -g '${1+"$@"}'='"$@"'
16547 setopt NO_GLOB_SUBST
16549 case `(set -o) 2>/dev/null` in #(
16561 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16562 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16563 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16564 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16565 # Prefer a ksh shell builtin over an external printf program on Solaris,
16566 # but without wasting forks for bash or zsh.
16567 if test -z "$BASH_VERSION$ZSH_VERSION" \
16568 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16569 as_echo='print -r --'
16570 as_echo_n='print -rn --'
16571 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16572 as_echo='printf %s\n'
16573 as_echo_n='printf %s'
16575 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16576 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16577 as_echo_n='/usr/ucb/echo -n'
16579 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16580 as_echo_n_body='eval
16584 expr "X$arg" : "X\\(.*\\)$as_nl";
16585 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16587 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16589 export as_echo_n_body
16590 as_echo_n='sh -c $as_echo_n_body as_echo'
16592 export as_echo_body
16593 as_echo='sh -c $as_echo_body as_echo'
16596 # The user is always right.
16597 if test "${PATH_SEPARATOR+set}" != set; then
16599 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16600 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16607 # We need space, tab and new line, in precisely that order. Quoting is
16608 # there to prevent editors from complaining about space-tab.
16609 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16610 # splitting by setting IFS to empty value.)
16613 # Find who we are. Look in the path if we contain no directory separator.
16616 *[\\/]* ) as_myself=$0 ;;
16617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16618 for as_dir in $PATH
16621 test -z "$as_dir" && as_dir=.
16622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16628 # We did not find ourselves, most probably we were run as `sh COMMAND'
16629 # in which case we are not to be found in the path.
16630 if test "x$as_myself" = x; then
16633 if test ! -f "$as_myself"; then
16634 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16638 # Unset variables that we do not need and which cause bugs (e.g. in
16639 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16640 # suppresses any "Segmentation fault" message there. '((' could
16641 # trigger a bug in pdksh 5.2.14.
16642 for as_var in BASH_ENV ENV MAIL MAILPATH
16643 do eval test x\${$as_var+set} = xset \
16644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16657 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16660 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16661 # ----------------------------------------
16662 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16663 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16664 # script with STATUS, using 1 if that was 0.
16667 as_status=$1; test $as_status -eq 0 && as_status=1
16669 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16670 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16672 $as_echo "$as_me: error: $2" >&2
16673 as_fn_exit $as_status
16677 # as_fn_set_status STATUS
16678 # -----------------------
16679 # Set $? to STATUS, without forking.
16680 as_fn_set_status ()
16683 } # as_fn_set_status
16685 # as_fn_exit STATUS
16686 # -----------------
16687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16691 as_fn_set_status $1
16697 # Portably unset VAR.
16700 { eval $1=; unset $1;}
16702 as_unset=as_fn_unset
16703 # as_fn_append VAR VALUE
16704 # ----------------------
16705 # Append the text in VALUE to the end of the definition contained in VAR. Take
16706 # advantage of any shell optimizations that allow amortized linear growth over
16707 # repeated appends, instead of the typical quadratic growth present in naive
16709 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16710 eval 'as_fn_append ()
16721 # as_fn_arith ARG...
16722 # ------------------
16723 # Perform arithmetic evaluation on the ARGs, and store the result in the
16724 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16725 # must be portable across $(()) and expr.
16726 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16727 eval 'as_fn_arith ()
16734 as_val=`expr "$@" || test $? -eq 1`
16739 if expr a : '\(a\)' >/dev/null 2>&1 &&
16740 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16746 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16747 as_basename=basename
16752 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16758 as_me=`$as_basename -- "$0" ||
16759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16760 X"$0" : 'X\(//\)$' \| \
16761 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16763 sed '/^.*\/\([^/][^/]*\)\/*$/{
16777 # Avoid depending upon Character Ranges.
16778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16781 as_cr_digits='0123456789'
16782 as_cr_alnum=$as_cr_Letters$as_cr_digits
16784 ECHO_C= ECHO_N= ECHO_T=
16785 case `echo -n x` in #(((((
16787 case `echo 'xy\c'` in
16788 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16790 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16797 rm -f conf$$ conf$$.exe conf$$.file
16798 if test -d conf$$.dir; then
16799 rm -f conf$$.dir/conf$$.file
16802 mkdir conf$$.dir 2>/dev/null
16804 if (echo >conf$$.file) 2>/dev/null; then
16805 if ln -s conf$$.file conf$$ 2>/dev/null; then
16807 # ... but there are two gotchas:
16808 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16809 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16810 # In both cases, we have to default to `cp -pR'.
16811 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16813 elif ln conf$$.file conf$$ 2>/dev/null; then
16821 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16822 rmdir conf$$.dir 2>/dev/null
16827 # Create "$as_dir" as a directory, including parents if necessary.
16832 -*) as_dir=./$as_dir;;
16834 test -d "$as_dir" || eval $as_mkdir_p || {
16838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16839 *) as_qdir=$as_dir;;
16841 as_dirs="'$as_qdir' $as_dirs"
16842 as_dir=`$as_dirname -- "$as_dir" ||
16843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844 X"$as_dir" : 'X\(//\)[^/]' \| \
16845 X"$as_dir" : 'X\(//\)$' \| \
16846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16847 $as_echo X"$as_dir" |
16848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16852 /^X\(\/\/\)[^/].*/{
16865 test -d "$as_dir" && break
16867 test -z "$as_dirs" || eval "mkdir $as_dirs"
16868 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16872 if mkdir -p . 2>/dev/null; then
16873 as_mkdir_p='mkdir -p "$as_dir"'
16875 test -d ./-p && rmdir ./-p
16880 # as_fn_executable_p FILE
16881 # -----------------------
16882 # Test if FILE is an executable regular file.
16883 as_fn_executable_p ()
16885 test -f "$1" && test -x "$1"
16886 } # as_fn_executable_p
16887 as_test_x='test -x'
16888 as_executable_p=as_fn_executable_p
16890 # Sed expression to map a string onto a valid CPP name.
16891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16893 # Sed expression to map a string onto a valid variable name.
16894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16898 ## ----------------------------------- ##
16899 ## Main body of $CONFIG_STATUS script. ##
16900 ## ----------------------------------- ##
16902 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16905 # Save the log message, to keep $0 and so on meaningful, and to
16906 # report actual input values of CONFIG_FILES etc. instead of their
16907 # values after options handling.
16909 This file was extended by gnupg $as_me 2.2.31, which was
16910 generated by GNU Autoconf 2.69. Invocation command line was
16912 CONFIG_FILES = $CONFIG_FILES
16913 CONFIG_HEADERS = $CONFIG_HEADERS
16914 CONFIG_LINKS = $CONFIG_LINKS
16915 CONFIG_COMMANDS = $CONFIG_COMMANDS
16918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16923 case $ac_config_files in *"
16924 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16927 case $ac_config_headers in *"
16928 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16933 # Files that config.status was made for.
16934 config_files="$ac_config_files"
16935 config_headers="$ac_config_headers"
16936 config_commands="$ac_config_commands"
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942 \`$as_me' instantiates files and other configuration actions
16943 from templates according to the current configuration. Unless the files
16944 and actions are specified as TAGs, all are instantiated by default.
16946 Usage: $0 [OPTION]... [TAG]...
16948 -h, --help print this help, then exit
16949 -V, --version print version number and configuration settings, then exit
16950 --config print configuration, then exit
16951 -q, --quiet, --silent
16952 do not print progress messages
16953 -d, --debug don't remove temporary files
16954 --recheck update $as_me by reconfiguring in the same conditions
16955 --file=FILE[:TEMPLATE]
16956 instantiate the configuration file FILE
16957 --header=FILE[:TEMPLATE]
16958 instantiate the configuration header FILE
16960 Configuration files:
16963 Configuration headers:
16966 Configuration commands:
16969 Report bugs to <https://bugs.gnupg.org>."
16972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16975 gnupg config.status 2.2.31
16976 configured by $0, generated by GNU Autoconf 2.69,
16977 with options \\"\$ac_cs_config\\"
16979 Copyright (C) 2012 Free Software Foundation, Inc.
16980 This config.status script is free software; the Free Software Foundation
16981 gives unlimited permission to copy, distribute and modify it."
16988 test -n "\$AWK" || AWK=awk
16991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16992 # The default lists apply if the user does not specify any file.
16998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17015 # Handling of the options.
17016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17019 $as_echo "$ac_cs_version"; exit ;;
17020 --config | --confi | --conf | --con | --co | --c )
17021 $as_echo "$ac_cs_config"; exit ;;
17022 --debug | --debu | --deb | --de | --d | -d )
17024 --file | --fil | --fi | --f )
17027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17028 '') as_fn_error $? "missing file argument" ;;
17030 as_fn_append CONFIG_FILES " '$ac_optarg'"
17031 ac_need_defaults=false;;
17032 --header | --heade | --head | --hea )
17035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17038 ac_need_defaults=false;;
17040 # Conflict between --help and --header
17041 as_fn_error $? "ambiguous option: \`$1'
17042 Try \`$0 --help' for more information.";;
17043 --help | --hel | -h )
17044 $as_echo "$ac_cs_usage"; exit ;;
17045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17049 # This is an error.
17050 -*) as_fn_error $? "unrecognized option: \`$1'
17051 Try \`$0 --help' for more information." ;;
17053 *) as_fn_append ac_config_targets " $1"
17054 ac_need_defaults=false ;;
17060 ac_configure_extra_args=
17062 if $ac_cs_silent; then
17064 ac_configure_extra_args="$ac_configure_extra_args --silent"
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 if \$ac_cs_recheck; then
17070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17073 CONFIG_SHELL='$SHELL'
17074 export CONFIG_SHELL
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17084 ## Running $as_me. ##
17090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17095 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17096 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17097 # from automake < 1.5.
17098 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17099 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17100 LINGUAS="${LINGUAS-%UNSET%}"
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17107 # Handling of arguments.
17108 for ac_config_target in $ac_config_targets
17110 case $ac_config_target in
17111 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17112 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17113 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17114 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17115 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17116 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17117 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17118 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17119 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17120 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17121 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17122 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17123 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17124 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17125 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17126 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17127 "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
17128 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17129 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17130 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17131 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17132 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17133 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17134 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17135 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17136 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17137 "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17138 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17139 "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17140 "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17141 "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17142 "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17143 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17144 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17145 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17146 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17147 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17154 # If the user did not use the arguments to specify the items to instantiate,
17155 # then the envvar interface is used. Set only those that are not.
17156 # We use the long form for the default assignment because of an extremely
17157 # bizarre bug on SunOS 4.1.3.
17158 if $ac_need_defaults; then
17159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17161 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17164 # Have a temporary directory for convenience. Make it in the build tree
17165 # simply because there is no reason against having it here, and in addition,
17166 # creating and moving files from /tmp can sometimes cause problems.
17167 # Hook for its removal unless debugging.
17168 # Note that there is a small window in which the directory will not be cleaned:
17169 # after its creation but before its name has been assigned to `$tmp'.
17173 trap 'exit_status=$?
17174 : "${ac_tmp:=$tmp}"
17175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17177 trap 'as_fn_exit 1' 1 2 13 15
17179 # Create a (secure) tmp directory for tmp files.
17182 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17186 tmp=./conf$$-$RANDOM
17187 (umask 077 && mkdir "$tmp")
17188 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17191 # Set up the scripts for CONFIG_FILES section.
17192 # No need to generate them if there are no CONFIG_FILES.
17193 # This happens for instance with `./config.status config.h'.
17194 if test -n "$CONFIG_FILES"; then
17197 ac_cr=`echo X | tr X '\015'`
17198 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17199 # But we know of no other shell where ac_cr would be empty at this
17200 # point, so we can use a bashism as a fallback.
17201 if test "x$ac_cr" = x; then
17202 eval ac_cr=\$\'\\r\'
17204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17208 ac_cs_awk_cr=$ac_cr
17211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17216 echo "cat >conf$$subs.awk <<_ACEOF" &&
17217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17219 } >conf$$subs.sh ||
17220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17223 for ac_last_try in false false false false false :; do
17224 . ./conf$$subs.sh ||
17225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17228 if test $ac_delim_n = $ac_delim_num; then
17230 elif $ac_last_try; then
17231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17236 rm -f conf$$subs.sh
17238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17243 s/^/S["/; s/!.*/"]=/
17253 s/\(.\{148\}\)..*/\1/
17255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17267 s/\(.\{148\}\)..*/\1/
17269 s/["\\]/\\&/g; s/^/"/; s/$/"/
17273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17278 ' <conf$$subs.awk | sed '
17283 ' >>$CONFIG_STATUS || ac_write_fail=1
17284 rm -f conf$$subs.awk
17285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17288 for (key in S) S_is_set[key] = 1
17294 nfields = split(line, field, "@")
17296 len = length(field[1])
17297 for (i = 2; i < nfields; i++) {
17299 keylen = length(key)
17300 if (S_is_set[key]) {
17302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17303 len += length(value) + length(field[++i])
17314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17315 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17316 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17319 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17320 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17323 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17324 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17325 # trailing colons and then remove the whole line if VPATH becomes empty
17326 # (actually we leave an empty line to preserve line numbers).
17327 if test "x$srcdir" = x.; then
17328 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17347 fi # test -n "$CONFIG_FILES"
17349 # Set up the scripts for CONFIG_HEADERS section.
17350 # No need to generate them if there are no CONFIG_HEADERS.
17351 # This happens for instance with `./config.status Makefile'.
17352 if test -n "$CONFIG_HEADERS"; then
17353 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17357 # Transform confdefs.h into an awk script `defines.awk', embedded as
17358 # here-document in config.status, that substitutes the proper values into
17359 # config.h.in to produce config.h.
17361 # Create a delimiter string that does not exist in confdefs.h, to ease
17362 # handling of long lines.
17364 for ac_last_try in false false :; do
17365 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17366 if test -z "$ac_tt"; then
17368 elif $ac_last_try; then
17369 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17375 # For the awk script, D is an array of macro values keyed by name,
17376 # likewise P contains macro parameters if any. Preserve backslash
17377 # newline sequences.
17379 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17381 s/.\{148\}/&'"$ac_delim"'/g
17384 s/^[ ]*#[ ]*define[ ][ ]*/ /
17391 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17393 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17398 D["\1"]=" \3\\\\\\n"\\/p
17400 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17405 s/.\{148\}/&'"$ac_delim"'/g
17410 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17413 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17415 ' <confdefs.h | sed '
17416 s/'"$ac_delim"'/"\\\
17417 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420 for (key in D) D_is_set[key] = 1
17423 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17425 split(line, arg, " ")
17426 if (arg[1] == "#") {
17430 defundef = substr(arg[1], 2)
17433 split(mac1, mac2, "(") #)
17435 prefix = substr(line, 1, index(line, defundef) - 1)
17436 if (D_is_set[macro]) {
17437 # Preserve the white space surrounding the "#".
17438 print prefix "define", macro P[macro] D[macro]
17441 # Replace #undef with comments. This is necessary, for example,
17442 # in the case of _POSIX_SOURCE, which is predefined and required
17443 # on some systems where configure will not decide to define it.
17444 if (defundef == "undef") {
17445 print "/*", prefix defundef, macro, "*/"
17453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17454 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17455 fi # test -n "$CONFIG_HEADERS"
17458 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17463 :[FHLC]) ac_mode=$ac_tag; continue;;
17465 case $ac_mode$ac_tag in
17467 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17468 :[FH]-) ac_tag=-:-;;
17469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17486 -) ac_f="$ac_tmp/stdin";;
17487 *) # Look for the file first in the build tree, then in the source tree
17488 # (if the path is not absolute). The absolute path cannot be DOS-style,
17489 # because $ac_f cannot contain `:'.
17493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17495 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17497 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17498 as_fn_append ac_file_inputs " '$ac_f'"
17501 # Let's still pretend it is `configure' which instantiates (i.e., don't
17502 # use $as_me), people would be surprised to read:
17503 # /* config.h. Generated by config.status. */
17504 configure_input='Generated from '`
17505 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17507 if test x"$ac_file" != x-; then
17508 configure_input="$ac_file. $configure_input"
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17510 $as_echo "$as_me: creating $ac_file" >&6;}
17512 # Neutralize special characters interpreted by sed in replacement strings.
17513 case $configure_input in #(
17514 *\&* | *\|* | *\\* )
17515 ac_sed_conf_input=`$as_echo "$configure_input" |
17516 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17517 *) ac_sed_conf_input=$configure_input;;
17521 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17527 ac_dir=`$as_dirname -- "$ac_file" ||
17528 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17529 X"$ac_file" : 'X\(//\)[^/]' \| \
17530 X"$ac_file" : 'X\(//\)$' \| \
17531 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17532 $as_echo X"$ac_file" |
17533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17537 /^X\(\/\/\)[^/].*/{
17550 as_dir="$ac_dir"; as_fn_mkdir_p
17554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17557 # A ".." for each directory in $ac_dir_suffix.
17558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17559 case $ac_top_builddir_sub in
17560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17564 ac_abs_top_builddir=$ac_pwd
17565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17566 # for backward compatibility:
17567 ac_top_builddir=$ac_top_build_prefix
17570 .) # We are building in place.
17572 ac_top_srcdir=$ac_top_builddir_sub
17573 ac_abs_top_srcdir=$ac_pwd ;;
17574 [\\/]* | ?:[\\/]* ) # Absolute name.
17575 ac_srcdir=$srcdir$ac_dir_suffix;
17576 ac_top_srcdir=$srcdir
17577 ac_abs_top_srcdir=$srcdir ;;
17578 *) # Relative name.
17579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17580 ac_top_srcdir=$ac_top_build_prefix$srcdir
17581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17594 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17596 ac_MKDIR_P=$MKDIR_P
17598 [\\/$]* | ?:[\\/]* ) ;;
17599 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17604 # If the template does not know about datarootdir, expand it.
17605 # FIXME: This hack should be removed a few years after 2.60.
17606 ac_datarootdir_hack=; ac_datarootdir_seen=
17617 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17618 *datarootdir*) ac_datarootdir_seen=yes;;
17619 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17621 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17624 ac_datarootdir_hack='
17625 s&@datadir@&$datadir&g
17626 s&@docdir@&$docdir&g
17627 s&@infodir@&$infodir&g
17628 s&@localedir@&$localedir&g
17629 s&@mandir@&$mandir&g
17630 s&\\\${datarootdir}&$datarootdir&g' ;;
17634 # Neutralize VPATH when `$srcdir' = `.'.
17635 # Shell code in configure.ac might set extrasub.
17636 # FIXME: do we really want to maintain this feature?
17637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17638 ac_sed_extra="$ac_vpsub
17641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17644 s|@configure_input@|$ac_sed_conf_input|;t t
17645 s&@top_builddir@&$ac_top_builddir_sub&;t t
17646 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17647 s&@srcdir@&$ac_srcdir&;t t
17648 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17649 s&@top_srcdir@&$ac_top_srcdir&;t t
17650 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17651 s&@builddir@&$ac_builddir&;t t
17652 s&@abs_builddir@&$ac_abs_builddir&;t t
17653 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17654 s&@INSTALL@&$ac_INSTALL&;t t
17655 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17656 $ac_datarootdir_hack
17658 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17659 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17661 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17662 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17663 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17664 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17666 which seems to be undefined. Please make sure it is defined" >&5
17667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17668 which seems to be undefined. Please make sure it is defined" >&2;}
17670 rm -f "$ac_tmp/stdin"
17672 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17673 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17681 if test x"$ac_file" != x-; then
17683 $as_echo "/* $configure_input */" \
17684 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17685 } >"$ac_tmp/config.h" \
17686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17687 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17692 mv "$ac_tmp/config.h" "$ac_file" \
17693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17696 $as_echo "/* $configure_input */" \
17697 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17698 || as_fn_error $? "could not create -" "$LINENO" 5
17700 # Compute "$ac_file"'s index in $config_headers.
17703 for _am_header in $config_headers :; do
17704 case $_am_header in
17705 $_am_arg | $_am_arg:* )
17708 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17711 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17712 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17713 X"$_am_arg" : 'X\(//\)[^/]' \| \
17714 X"$_am_arg" : 'X\(//\)$' \| \
17715 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17716 $as_echo X"$_am_arg" |
17717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17721 /^X\(\/\/\)[^/].*/{
17733 s/.*/./; q'`/stamp-h$_am_stamp_count
17736 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17737 $as_echo "$as_me: executing $ac_file commands" >&6;}
17742 case $ac_file$ac_mode in
17743 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17744 # Older Autoconf quotes --file arguments for eval, but not when files
17745 # are listed without --file. Let's play safe and only enable the eval
17746 # if we detect the quoting.
17747 # TODO: see whether this extra hack can be removed once we start
17748 # requiring Autoconf 2.70 or later.
17749 case $CONFIG_FILES in #(
17751 eval set x "$CONFIG_FILES" ;; #(
17753 set x $CONFIG_FILES ;; #(
17758 # Used to flag and report bootstrapping failures.
17762 # Strip MF so we end up with the name of the file.
17763 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17764 # Check whether this is an Automake generated Makefile which includes
17765 # dependency-tracking related rules and includes.
17766 # Grep'ing the whole file directly is not great: AIX grep has a line
17767 # limit of 2048, but all sed's we know have understand at least 4000.
17768 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17770 am_dirpart=`$as_dirname -- "$am_mf" ||
17771 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$am_mf" : 'X\(//\)[^/]' \| \
17773 X"$am_mf" : 'X\(//\)$' \| \
17774 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17775 $as_echo X"$am_mf" |
17776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17780 /^X\(\/\/\)[^/].*/{
17793 am_filepart=`$as_basename -- "$am_mf" ||
17794 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17795 X"$am_mf" : 'X\(//\)$' \| \
17796 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17797 $as_echo X/"$am_mf" |
17798 sed '/^.*\/\([^/][^/]*\)\/*$/{
17811 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17812 && sed -e '/# am--include-marker/d' "$am_filepart" \
17813 | $MAKE -f - am--depfiles" >&5
17814 (cd "$am_dirpart" \
17815 && sed -e '/# am--include-marker/d' "$am_filepart" \
17816 | $MAKE -f - am--depfiles) >&5 2>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } || am_rc=$?
17821 if test $am_rc -ne 0; then
17822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17824 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17825 for automatic dependency tracking. If GNU make was not used, consider
17826 re-running the configure script with MAKE=\"gmake\" (or whatever is
17827 necessary). You can also try re-running configure with the
17828 '--disable-dependency-tracking' option to at least be able to build
17829 the package (albeit without support for automatic dependency tracking).
17830 See \`config.log' for more details" "$LINENO" 5; }
17832 { am_dirpart=; unset am_dirpart;}
17833 { am_filepart=; unset am_filepart;}
17834 { am_mf=; unset am_mf;}
17835 { am_rc=; unset am_rc;}
17836 rm -f conftest-deps.mk
17839 "po-directories":C)
17840 for ac_file in $CONFIG_FILES; do
17841 # Support "outfile[:infile[:infile...]]"
17843 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17845 # PO directories have a Makefile.in generated from Makefile.in.in.
17846 case "$ac_file" in */Makefile.in)
17847 # Adjust a relative srcdir.
17848 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17849 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17850 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17851 # In autoconf-2.13 it is called $ac_given_srcdir.
17852 # In autoconf-2.50 it is called $srcdir.
17853 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17854 case "$ac_given_srcdir" in
17855 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17856 /*) top_srcdir="$ac_given_srcdir" ;;
17857 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17859 # Treat a directory as a PO directory if and only if it has a
17860 # POTFILES.in file. This allows packages to have multiple PO
17861 # directories under different names or in different locations.
17862 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17863 rm -f "$ac_dir/POTFILES"
17864 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17865 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17866 POMAKEFILEDEPS="POTFILES.in"
17867 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17868 # on $ac_dir but don't depend on user-specified configuration
17870 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17871 # The LINGUAS file contains the set of available languages.
17872 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17873 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17875 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17876 # Hide the ALL_LINGUAS assignment from automake < 1.5.
17877 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17878 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17880 # The set of available languages was given in configure.in.
17881 # Hide the ALL_LINGUAS assignment from automake < 1.5.
17882 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17885 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17886 # Compute UPDATEPOFILES
17887 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17888 # Compute DUMMYPOFILES
17889 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17891 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17892 case "$ac_given_srcdir" in
17894 *) srcdirpre='$(srcdir)/' ;;
17900 for lang in $ALL_LINGUAS; do
17901 POFILES="$POFILES $srcdirpre$lang.po"
17902 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17903 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17904 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17906 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17907 # environment variable.
17909 if test -n "$ALL_LINGUAS"; then
17910 for presentlang in $ALL_LINGUAS; do
17912 if test "%UNSET%" != "$LINGUAS"; then
17913 desiredlanguages="$LINGUAS"
17915 desiredlanguages="$ALL_LINGUAS"
17917 for desiredlang in $desiredlanguages; do
17918 # Use the presentlang catalog if desiredlang is
17919 # a. equal to presentlang, or
17920 # b. a variant of presentlang (because in this case,
17921 # presentlang can be used as a fallback for messages
17922 # which are not translated in the desiredlang catalog).
17923 case "$desiredlang" in
17924 "$presentlang"*) useit=yes;;
17927 if test $useit = yes; then
17928 INST_LINGUAS="$INST_LINGUAS $presentlang"
17933 if test -n "$INST_LINGUAS"; then
17934 for lang in $INST_LINGUAS; do
17935 CATALOGS="$CATALOGS $lang.gmo"
17938 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17939 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"
17940 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17941 if test -f "$f"; then
17943 *.orig | *.bak | *~) ;;
17944 *) cat "$f" >> "$ac_dir/Makefile" ;;
17959 ac_clean_files=$ac_clean_files_save
17961 test $ac_write_fail = 0 ||
17962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17965 # configure is writing to config.log, and then calls config.status.
17966 # config.status does its own redirection, appending to config.log.
17967 # Unfortunately, on DOS this fails, as config.log is still kept open
17968 # by configure, so config.status won't be able to write to it; its
17969 # output is simply discarded. So we exec the FD to /dev/null,
17970 # effectively closing config.log, so it can be properly (re)opened and
17971 # appended to by config.status. When coming back to configure, we
17972 # need to make the FD available again.
17973 if test "$no_create" != yes; then
17975 ac_config_status_args=
17976 test "$silent" = yes &&
17977 ac_config_status_args="$ac_config_status_args --quiet"
17979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17982 # would make configure fail if this is the last instruction.
17983 $ac_cs_success || as_fn_exit 1
17985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17993 GnuPG v${VERSION} has been configured as follows:
17995 Revision: ecf4c2f61 (60660)
17996 Platform: $PRINTABLE_OS_NAME ($host)
17998 OpenPGP: $build_gpg
17999 S/MIME: $build_gpgsm
18000 Agent: $build_agent
18001 Smartcard: $build_scdaemon $build_scdaemon_extra
18003 Dirmngr: $build_dirmngr
18004 Gpgtar: $build_gpgtar
18005 WKS tools: $build_wks_tools
18007 Protect tool: $show_gnupg_protect_tool_pgm
18008 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18009 Default agent: $show_gnupg_agent_pgm
18010 Default pinentry: $show_gnupg_pinentry_pgm
18011 Default scdaemon: $show_gnupg_scdaemon_pgm
18012 Default dirmngr: $show_gnupg_dirmngr_pgm
18014 Dirmngr auto start: $dirmngr_auto_start
18015 Readline support: $gnupg_cv_have_readline
18016 LDAP support: $gnupg_have_ldap
18017 TLS support: $use_tls_library
18018 TOFU support: $use_tofu
18019 Tor support: $show_tor_support
18021 if test "x${gpg_config_script_warn}" != x; then
18023 Warning: Mismatches between the target platform and the
18024 to be used libraries have been detected for:
18025 ${gpg_config_script_warn}
18026 Please check above for more warning messages.
18030 if test "${build_gpg}" != "yes"; then
18032 Warning: The component "gpg" is used by other components as
18033 well as for the test suite. You have disabled
18034 this component and thus other things won't work.
18038 if test "${run_tests}" != "yes"; then
18040 Warning: The use of the test suite has been disabled!
18041 This is in almost all cases a bad idea. Take care.