2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.2.26.
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.26'
584 PACKAGE_STRING='gnupg 2.2.26'
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
692 USE_LDAPWRAPPER_FALSE
734 HAVE_ANDROID_SYSTEM_FALSE
735 HAVE_ANDROID_SYSTEM_TRUE
736 HAVE_W32CE_SYSTEM_FALSE
737 HAVE_W32CE_SYSTEM_TRUE
738 HAVE_W32_SYSTEM_FALSE
740 USE_SIMPLE_GETTEXT_FALSE
741 USE_SIMPLE_GETTEXT_TRUE
742 HAVE_DOSISH_SYSTEM_FALSE
743 HAVE_DOSISH_SYSTEM_TRUE
748 AWK_HEX_NUMBER_OPTION
762 MAINTAINER_MODE_FALSE
768 GNUPG_DIRMNGR_LDAP_PGM_FALSE
769 GNUPG_DIRMNGR_LDAP_PGM_TRUE
770 GNUPG_DIRMNGR_LDAP_PGM
771 GNUPG_PROTECT_TOOL_PGM_FALSE
772 GNUPG_PROTECT_TOOL_PGM_TRUE
773 GNUPG_PROTECT_TOOL_PGM
774 GNUPG_DIRMNGR_PGM_FALSE
775 GNUPG_DIRMNGR_PGM_TRUE
777 GNUPG_SCDAEMON_PGM_FALSE
778 GNUPG_SCDAEMON_PGM_TRUE
780 GNUPG_PINENTRY_PGM_FALSE
781 GNUPG_PINENTRY_PGM_TRUE
783 GNUPG_AGENT_PGM_FALSE
826 INSTALL_STRIP_PROGRAM
869 program_transform_name
883 enable_option_checking
885 enable_dependency_tracking
898 with_protect_tool_pgm
899 with_dirmngr_ldap_pgm
901 enable_selinux_support
903 with_agent_s2k_calibration
918 enable_gpg_camellia128
919 enable_gpg_camellia192
920 enable_gpg_camellia256
935 enable_dirmngr_auto_start
936 enable_maintainer_mode
939 with_libgpg_error_prefix
940 with_gpg_error_prefix
941 with_libgcrypt_prefix
942 with_libassuan_prefix
950 with_default_trust_store_file
967 enable_gnupg_builddir_envvar
968 enable_run_gnupg_user_socket
969 enable_build_timestamp
971 ac_precious_vars='build_alias
992 # Initialize some variables set by options.
994 ac_init_version=false
995 ac_unrecognized_opts=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
1006 program_transform_name=s,x,x,
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 runstatedir='${localstatedir}/run'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1032 infodir='${datarootdir}/info'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1053 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058 # Accept the important Cygnus configure options, so we can diagnose typos.
1060 case $ac_dashdash$ac_option in
1064 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067 bindir=$ac_optarg ;;
1069 -build | --build | --buil | --bui | --bu)
1070 ac_prev=build_alias ;;
1071 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072 build_alias=$ac_optarg ;;
1074 -cache-file | --cache-file | --cache-fil | --cache-fi \
1075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076 ac_prev=cache_file ;;
1077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079 cache_file=$ac_optarg ;;
1081 --config-cache | -C)
1082 cache_file=config.cache ;;
1084 -datadir | --datadir | --datadi | --datad)
1086 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087 datadir=$ac_optarg ;;
1089 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090 | --dataroo | --dataro | --datar)
1091 ac_prev=datarootdir ;;
1092 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094 datarootdir=$ac_optarg ;;
1096 -disable-* | --disable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: $ac_useropt"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1110 eval enable_$ac_useropt=no ;;
1112 -docdir | --docdir | --docdi | --doc | --do)
1114 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115 docdir=$ac_optarg ;;
1117 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120 dvidir=$ac_optarg ;;
1122 -enable-* | --enable-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid feature name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "enable_$ac_useropt"
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 htmldir=$ac_optarg ;;
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1181 -libdir | --libdir | --libdi | --libd)
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1272 -psdir | --psdir | --psdi | --psd | --ps)
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1281 -runstatedir | --runstatedir | --runstatedi | --runstated \
1282 | --runstate | --runstat | --runsta | --runst | --runs \
1283 | --run | --ru | --r)
1284 ac_prev=runstatedir ;;
1285 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1286 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1287 | --run=* | --ru=* | --r=*)
1288 runstatedir=$ac_optarg ;;
1290 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 sbindir=$ac_optarg ;;
1296 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1297 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1298 | --sharedst | --shareds | --shared | --share | --shar \
1300 ac_prev=sharedstatedir ;;
1301 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1302 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1303 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 sharedstatedir=$ac_optarg ;;
1307 -site | --site | --sit)
1309 -site=* | --site=* | --sit=*)
1312 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1315 srcdir=$ac_optarg ;;
1317 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1318 | --syscon | --sysco | --sysc | --sys | --sy)
1319 ac_prev=sysconfdir ;;
1320 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1321 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1322 sysconfdir=$ac_optarg ;;
1324 -target | --target | --targe | --targ | --tar | --ta | --t)
1325 ac_prev=target_alias ;;
1326 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1327 target_alias=$ac_optarg ;;
1329 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1332 -version | --version | --versio | --versi | --vers | -V)
1333 ac_init_version=: ;;
1336 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error $? "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1349 eval with_$ac_useropt=\$ac_optarg ;;
1351 -without-* | --without-*)
1352 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1353 # Reject names that are not valid shell variable names.
1354 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355 as_fn_error $? "invalid package name: $ac_useropt"
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1365 eval with_$ac_useropt=no ;;
1368 # Obsolete; use --with-x.
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1385 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1386 Try \`$0 --help' for more information"
1390 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1391 # Reject names that are not valid shell variable names.
1392 case $ac_envvar in #(
1393 '' | [0-9]* | *[!_$as_cr_alnum]* )
1394 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 as_fn_error $? "missing argument to $ac_option"
1415 if test -n "$ac_unrecognized_opts"; then
1416 case $enable_option_checking in
1418 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1419 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1423 # Check all directory arguments for consistency.
1424 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1425 datadir sysconfdir sharedstatedir localstatedir includedir \
1426 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1427 libdir localedir mandir runstatedir
1429 eval ac_val=\$$ac_var
1430 # Remove trailing slashes.
1433 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1434 eval $ac_var=\$ac_val;;
1436 # Be sure to have absolute directory names.
1438 [\\/$]* | ?:[\\/]* ) continue;;
1439 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1444 # There might be people who depend on the old broken behavior: `$host'
1445 # used to hold the argument of --host etc.
1446 # FIXME: To remove some day.
1449 target=$target_alias
1451 # FIXME: To remove some day.
1452 if test "x$host_alias" != x; then
1453 if test "x$build_alias" = x; then
1454 cross_compiling=maybe
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 as_fn_error $? "working directory cannot be determined"
1470 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1471 as_fn_error $? "pwd does not report name of working directory"
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1506 ac_srcdir_defaulted=no
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1512 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1516 # When building in place, set srcdir=.
1517 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 # Remove unnecessary trailing slashes from srcdir.
1521 # Double slashes in file names in object file debugging info
1522 # mess up M-x gdb in Emacs.
1524 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 for ac_var in $ac_precious_vars; do
1527 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_env_${ac_var}_value=\$${ac_var}
1529 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 # Report the --help message.
1536 if test "$ac_init_help" = "long"; then
1537 # Omit some internal or obsolete options to make the list less imposing.
1538 # This message is too long to be a string in the A/UX 3.1 sh.
1540 \`configure' configures gnupg 2.2.26 to adapt to many kinds of systems.
1542 Usage: $0 [OPTION]... [VAR=VALUE]...
1544 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1545 VAR=VALUE. See below for descriptions of some of the useful variables.
1547 Defaults for the options are specified in brackets.
1550 -h, --help display this help and exit
1551 --help=short display options specific to this package
1552 --help=recursive display the short help of all the included packages
1553 -V, --version display version information and exit
1554 -q, --quiet, --silent do not print \`checking ...' messages
1555 --cache-file=FILE cache test results in FILE [disabled]
1556 -C, --config-cache alias for \`--cache-file=config.cache'
1557 -n, --no-create do not create output files
1558 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1560 Installation directories:
1561 --prefix=PREFIX install architecture-independent files in PREFIX
1562 [$ac_default_prefix]
1563 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 By default, \`make install' will install all the files in
1567 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1568 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1569 for instance \`--prefix=\$HOME'.
1571 For better control, use the options below.
1573 Fine tuning of the installation directories:
1574 --bindir=DIR user executables [EPREFIX/bin]
1575 --sbindir=DIR system admin executables [EPREFIX/sbin]
1576 --libexecdir=DIR program executables [EPREFIX/libexec]
1577 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1578 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1579 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1580 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1581 --libdir=DIR object code libraries [EPREFIX/lib]
1582 --includedir=DIR C header files [PREFIX/include]
1583 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1584 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1585 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1586 --infodir=DIR info documentation [DATAROOTDIR/info]
1587 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1588 --mandir=DIR man documentation [DATAROOTDIR/man]
1589 --docdir=DIR documentation root [DATAROOTDIR/doc/gnupg]
1590 --htmldir=DIR html documentation [DOCDIR]
1591 --dvidir=DIR dvi documentation [DOCDIR]
1592 --pdfdir=DIR pdf documentation [DOCDIR]
1593 --psdir=DIR ps documentation [DOCDIR]
1599 --program-prefix=PREFIX prepend PREFIX to installed program names
1600 --program-suffix=SUFFIX append SUFFIX to installed program names
1601 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1604 --build=BUILD configure for building on BUILD [guessed]
1605 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1609 if test -n "$ac_init_help"; then
1610 case $ac_init_help in
1611 short | recursive ) echo "Configuration of gnupg 2.2.26:";;
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --enable-silent-rules less verbose build output (undo: "make V=1")
1620 --disable-silent-rules verbose build output (undo: "make V=0")
1621 --enable-dependency-tracking
1622 do not reject slow dependency extractors
1623 --disable-dependency-tracking
1624 speeds up one-time build
1625 --disable-gpg do not build the gpg program
1626 --disable-gpgsm do not build the gpgsm program
1627 --disable-scdaemon do not build the scdaemon program
1628 --enable-g13 build the g13 program
1629 --disable-dirmngr do not build the dirmngr program
1630 --disable-doc do not build the doc program
1631 --disable-gpgtar do not build the gpgtar program
1632 --disable-wks-tools do not build the wks-tools program
1633 --enable-gpg-is-gpg2 Set installed name of gpg to gpg2
1634 --enable-selinux-support
1635 enable SELinux support
1636 --enable-large-secmem allocate extra secure memory
1637 --disable-trust-models disable all trust models except "always"
1638 --disable-tofu disable the TOFU trust model
1639 --disable-libdns do not build with libdns support
1640 --disable-gpg-rsa disable the RSA public key algorithm in gpg
1641 --disable-gpg-ecdh disable the ECDH public key algorithm in gpg
1642 --disable-gpg-ecdsa disable the ECDSA public key algorithm in gpg
1643 --disable-gpg-eddsa disable the EdDSA public key algorithm in gpg
1644 --disable-gpg-idea disable the IDEA cipher algorithm in gpg
1645 --disable-gpg-cast5 disable the CAST5 cipher algorithm in gpg
1646 --disable-gpg-blowfish disable the BLOWFISH cipher algorithm in gpg
1647 --disable-gpg-aes128 disable the AES128 cipher algorithm in gpg
1648 --disable-gpg-aes192 disable the AES192 cipher algorithm in gpg
1649 --disable-gpg-aes256 disable the AES256 cipher algorithm in gpg
1650 --disable-gpg-twofish disable the TWOFISH cipher algorithm in gpg
1651 --disable-gpg-camellia128
1652 disable the CAMELLIA128 cipher algorithm in gpg
1653 --disable-gpg-camellia192
1654 disable the CAMELLIA192 cipher algorithm in gpg
1655 --disable-gpg-camellia256
1656 disable the CAMELLIA256 cipher algorithm in gpg
1657 --disable-gpg-md5 disable the MD5 hash algorithm in gpg
1658 --disable-gpg-rmd160 disable the RIPE-MD160 hash algorithm in gpg
1659 --disable-gpg-sha224 disable the SHA-224 hash algorithm in gpg
1660 --disable-gpg-sha384 disable the SHA-384 hash algorithm in gpg
1661 --disable-gpg-sha512 disable the SHA-512 hash algorithm in gpg
1662 --disable-zip disable the ZIP and ZLIB compression algorithm
1663 --disable-bzip2 disable the BZIP2 compression algorithm
1664 --disable-exec disable all external program execution
1665 --disable-photo-viewers disable photo ID viewers
1666 --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1667 --disable-card-support disable smartcard support
1668 --disable-ccid-driver disable the internal CCID driver
1669 --disable-dirmngr-auto-start
1670 disable auto starting of the dirmngr
1671 --enable-maintainer-mode
1672 enable make rules and dependencies not useful (and
1673 sometimes confusing) to the casual installer
1674 --disable-largefile omit support for large files
1675 --disable-sqlite disable the use of SQLITE
1676 --enable-npth-debug build with debug version of npth
1677 --disable-ntbtls disable the use of NTBTLS as TLS library
1678 --disable-gnutls disable GNUTLS as fallback TLS library
1679 --disable-ldap disable LDAP support
1680 --disable-rpath do not hardcode runtime library paths
1681 --disable-nls do not use Native Language Support
1682 --disable-endian-check disable the endian check and trust the OS provided
1684 --disable-optimization disable compiler optimization
1685 --enable-werror append -Werror to CFLAGS
1686 --enable-all-tests let "make check" run all tests
1687 --disable-tests do not run any tests
1689 --enable-run-gnupg-user-socket
1690 try /run/gnupg/user for sockets prior to /run/user
1691 --enable-build-timestamp
1692 set an explicit build timestamp for reproducibility.
1693 (default is the current time in ISO-8601 format)
1696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1698 --with-agent-pgm=PATH Use PATH as the default for the agent)
1699 --with-pinentry-pgm=PATH Use PATH as the default for the pinentry)
1700 --with-scdaemon-pgm=PATH Use PATH as the default for the scdaemon)
1701 --with-dirmngr-pgm=PATH Use PATH as the default for the dirmngr)
1702 --with-protect-tool-pgm=PATH Use PATH as the default for the protect-tool)
1703 --with-dirmngr-ldap-pgm=PATH Use PATH as the default for the dirmngr ldap wrapper)
1704 --with-agent-s2k-calibration=MSEC
1705 calibrate passphrase stretching (s2k) to MSEC
1707 --with-photo-viewer=FIXED_VIEWER set a fixed photo ID viewer
1708 --with-capabilities use linux capabilities default=no
1709 --with-tar=PATH look for a tar program in PATH
1710 --with-libgpg-error-prefix=PFX
1711 prefix where GPG Error is installed (optional)
1713 --with-libgcrypt-prefix=PFX
1714 prefix where LIBGCRYPT is installed (optional)
1715 --with-libassuan-prefix=PFX
1716 prefix where LIBASSUAN is installed (optional)
1717 --with-ksba-prefix=PFX prefix where KSBA is installed (optional)
1718 --with-npth-prefix=PFX prefix where NPTH is installed (optional)
1719 --with-ntbtls-prefix=PFX
1720 prefix where NTBTLS is installed (optional)
1721 --with-default-trust-store-file=FILE
1722 Use FILE as system trust store
1723 --with-ldap=DIR look for the LDAP library in DIR
1724 --with-mailprog=NAME use "NAME -t" for mail transport
1725 --with-gnu-ld assume the C compiler uses GNU ld default=no
1726 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1727 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1728 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1729 --without-libintl-prefix don't search for libintl in includedir and libdir
1730 --with-zlib=DIR use libz in DIR
1731 --with-bzip2=DIR look for bzip2 in DIR
1732 --with-readline=DIR look for the readline library in DIR
1734 Some influential environment variables:
1735 CC C compiler command
1736 CFLAGS C compiler flags
1737 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1738 nonstandard directory <lib dir>
1739 LIBS libraries to pass to the linker, e.g. -l<library>
1740 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1741 you have headers in a nonstandard directory <include dir>
1743 SYSROOT locate config scripts also below that directory
1744 YAT2M tool to convert texi to man pages
1746 build system C compiler
1747 PKG_CONFIG path to pkg-config utility
1749 directories to add to pkg-config's search path
1751 path overriding pkg-config's built-in search path
1753 C compiler flags for SQLITE3, overriding pkg-config
1755 linker flags for SQLITE3, overriding pkg-config
1757 C compiler flags for LIBGNUTLS, overriding pkg-config
1759 linker flags for LIBGNUTLS, overriding pkg-config
1761 Use these variables to override the choices made by `configure' or to help
1762 it to find libraries and programs with nonstandard names/locations.
1764 Report bugs to <https://bugs.gnupg.org>.
1769 if test "$ac_init_help" = "recursive"; then
1770 # If there are subdirs, report their specific --help.
1771 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1772 test -d "$ac_dir" ||
1773 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1778 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1781 # A ".." for each directory in $ac_dir_suffix.
1782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1783 case $ac_top_builddir_sub in
1784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1788 ac_abs_top_builddir=$ac_pwd
1789 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1790 # for backward compatibility:
1791 ac_top_builddir=$ac_top_build_prefix
1794 .) # We are building in place.
1796 ac_top_srcdir=$ac_top_builddir_sub
1797 ac_abs_top_srcdir=$ac_pwd ;;
1798 [\\/]* | ?:[\\/]* ) # Absolute name.
1799 ac_srcdir=$srcdir$ac_dir_suffix;
1800 ac_top_srcdir=$srcdir
1801 ac_abs_top_srcdir=$srcdir ;;
1803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1804 ac_top_srcdir=$ac_top_build_prefix$srcdir
1805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809 cd "$ac_dir" || { ac_status=$?; continue; }
1810 # Check for guested configure.
1811 if test -f "$ac_srcdir/configure.gnu"; then
1813 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1814 elif test -f "$ac_srcdir/configure"; then
1816 $SHELL "$ac_srcdir/configure" --help=recursive
1818 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820 cd "$ac_pwd" || { ac_status=$?; break; }
1824 test -n "$ac_init_help" && exit $ac_status
1825 if $ac_init_version; then
1827 gnupg configure 2.2.26
1828 generated by GNU Autoconf 2.69
1830 Copyright (C) 2012 Free Software Foundation, Inc.
1831 This configure script is free software; the Free Software Foundation
1832 gives unlimited permission to copy, distribute and modify it.
1837 ## ------------------------ ##
1838 ## Autoconf initialization. ##
1839 ## ------------------------ ##
1841 # ac_fn_c_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_compile
1879 # ac_fn_c_try_cpp LINENO
1880 # ----------------------
1881 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } > conftest.i && {
1901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1916 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1919 # the include files in INCLUDES and setting the cache variable VAR
1921 ac_fn_c_check_header_mongrel ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if eval \${$3+:} false; then :
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 # Is the header compilable?
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1936 $as_echo_n "checking $2 usability... " >&6; }
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_header_compiler=yes
1945 ac_header_compiler=no
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1949 $as_echo "$ac_header_compiler" >&6; }
1951 # Is the header present?
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1953 $as_echo_n "checking $2 presence... " >&6; }
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1958 if ac_fn_c_try_cpp "$LINENO"; then :
1959 ac_header_preproc=yes
1961 ac_header_preproc=no
1963 rm -f conftest.err conftest.i conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1965 $as_echo "$ac_header_preproc" >&6; }
1967 # So? What about this header?
1968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1971 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1977 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1979 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1981 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1983 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 ( $as_echo "## ------------------------------------- ##
1987 ## Report this to https://bugs.gnupg.org ##
1988 ## ------------------------------------- ##"
1989 ) | sed "s/^/$as_me: WARNING: /" >&2
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if eval \${$3+:} false; then :
1995 $as_echo_n "(cached) " >&6
1997 eval "$3=\$ac_header_compiler"
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005 } # ac_fn_c_check_header_mongrel
2007 # ac_fn_c_try_run LINENO
2008 # ----------------------
2009 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2010 # that executables *can* be run.
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { { ac_try="$ac_link"
2016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2017 *) ac_try_echo=$ac_try;;
2019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2020 $as_echo "$ac_try_echo"; } >&5
2021 (eval "$ac_link") 2>&5
2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2024 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2025 { { case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_try") 2>&5
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; }; }; then :
2037 $as_echo "$as_me: program exited with status $ac_status" >&5
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 ac_retval=$ac_status
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
2049 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2050 # -------------------------------------------------------
2051 # Tests whether HEADER exists and can be compiled using the include files in
2052 # INCLUDES, setting the cache variable VAR accordingly.
2053 ac_fn_c_check_header_compile ()
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2066 if ac_fn_c_try_compile "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_header_compile
2080 # ac_fn_c_try_link LINENO
2081 # -----------------------
2082 # Try to link conftest.$ac_ext, and return whether this succeeded.
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 rm -f conftest.$ac_objext conftest$ac_exeext
2087 if { { ac_try="$ac_link"
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_link") 2>conftest.err
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } && {
2103 test -z "$ac_c_werror_flag" ||
2104 test ! -s conftest.err
2105 } && test -s conftest$ac_exeext && {
2106 test "$cross_compiling" = yes ||
2107 test -x conftest$ac_exeext
2111 $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2116 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2117 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2118 # interfere with the next link command; also delete a directory that is
2119 # left behind by Apple's compiler. We do this before executing the actions.
2120 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 as_fn_set_status $ac_retval
2124 } # ac_fn_c_try_link
2126 # ac_fn_c_check_func LINENO FUNC VAR
2127 # ----------------------------------
2128 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2129 ac_fn_c_check_func ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2141 #define $2 innocuous_$2
2143 /* System header to define __stub macros and hopefully few prototypes,
2144 which can conflict with char $2 (); below.
2145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2146 <limits.h> exists even on freestanding compilers. */
2149 # include <limits.h>
2151 # include <assert.h>
2156 /* Override any GCC internal prototype to avoid an error.
2157 Use char because int might match the return type of a GCC
2158 builtin and then its argument prototype would still apply. */
2163 /* The GNU C library defines this for functions which it implements
2164 to always fail with ENOSYS. Some functions are actually named
2165 something starting with __ and the normal name is an alias. */
2166 #if defined __stub_$2 || defined __stub___$2
2178 if ac_fn_c_try_link "$LINENO"; then :
2183 rm -f core conftest.err conftest.$ac_objext \
2184 conftest$ac_exeext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_func
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_type
2247 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2248 # ---------------------------------------------
2249 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2251 ac_fn_c_check_decl ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 as_decl_name=`echo $2|sed 's/ *(.*//'`
2255 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2257 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2258 if eval \${$3+:} false; then :
2259 $as_echo_n "(cached) " >&6
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 #ifndef $as_decl_name
2269 (void) $as_decl_use;
2271 (void) $as_decl_name;
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_decl
2293 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2294 # --------------------------------------------
2295 # Tries to find the compile-time value of EXPR in a program that includes
2296 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2298 ac_fn_c_compute_int ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if test "$cross_compiling" = yes; then
2302 # Depending upon the size, compute the lo and hi bounds.
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) >= 0)];
2311 return test_array [0];
2317 if ac_fn_c_try_compile "$LINENO"; then :
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2328 return test_array [0];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_hi=$ac_mid; break
2337 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2338 if test $ac_lo -le $ac_mid; then
2342 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2353 static int test_array [1 - 2 * !(($2) < 0)];
2355 return test_array [0];
2361 if ac_fn_c_try_compile "$LINENO"; then :
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2370 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2372 return test_array [0];
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379 ac_lo=$ac_mid; break
2381 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2382 if test $ac_mid -le $ac_hi; then
2386 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 # Binary search between lo and hi bounds.
2397 while test "x$ac_lo" != "x$ac_hi"; do
2398 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2405 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2407 return test_array [0];
2413 if ac_fn_c_try_compile "$LINENO"; then :
2416 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2428 static long int longval () { return $2; }
2429 static unsigned long int ulongval () { return $2; }
2436 FILE *f = fopen ("conftest.val", "w");
2441 long int i = longval ();
2444 fprintf (f, "%ld", i);
2448 unsigned long int i = ulongval ();
2451 fprintf (f, "%lu", i);
2453 /* Do not output a trailing newline, as this causes \r\n confusion
2454 on some platforms. */
2455 return ferror (f) || fclose (f) != 0;
2461 if ac_fn_c_try_run "$LINENO"; then :
2462 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2467 conftest.$ac_objext conftest.beam conftest.$ac_ext
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472 as_fn_set_status $ac_retval
2474 } # ac_fn_c_compute_int
2476 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2477 # ----------------------------------------------------
2478 # Tries to find if the field MEMBER exists in type AGGR, after including
2479 # INCLUDES, setting cache variable VAR accordingly.
2480 ac_fn_c_check_member ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2484 $as_echo_n "checking for $2.$3... " >&6; }
2485 if eval \${$4+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2501 if ac_fn_c_try_compile "$LINENO"; then :
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2511 if (sizeof ac_aggr.$3)
2517 if ac_fn_c_try_compile "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531 } # ac_fn_c_check_member
2532 cat >config.log <<_ACEOF
2533 This file contains any messages produced by compilers while
2534 running configure, to aid debugging if configure makes a mistake.
2536 It was created by gnupg $as_me 2.2.26, which was
2537 generated by GNU Autoconf 2.69. Invocation command line was
2549 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2550 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2551 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2552 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2553 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2555 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2556 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2558 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2559 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2560 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2561 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2562 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2563 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2564 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 $as_echo "PATH: $as_dir"
2589 # Keep a trace of the command line.
2590 # Strip out --no-create and --no-recursion so they do not pile up.
2591 # Strip out --silent because we don't want to record it for future runs.
2592 # Also quote any args containing shell meta-characters.
2593 # Make two passes to allow for proper duplicate-argument suppression.
2597 ac_must_keep_next=false
2603 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2605 | -silent | --silent | --silen | --sile | --sil)
2608 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2611 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2613 as_fn_append ac_configure_args1 " '$ac_arg'"
2614 if test $ac_must_keep_next = true; then
2615 ac_must_keep_next=false # Got value, back to normal.
2618 *=* | --config-cache | -C | -disable-* | --disable-* \
2619 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2620 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2621 | -with-* | --with-* | -without-* | --without-* | --x)
2622 case "$ac_configure_args0 " in
2623 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2626 -* ) ac_must_keep_next=true ;;
2629 as_fn_append ac_configure_args " '$ac_arg'"
2634 { ac_configure_args0=; unset ac_configure_args0;}
2635 { ac_configure_args1=; unset ac_configure_args1;}
2637 # When interrupted or exit'd, cleanup temporary files, and complete
2638 # config.log. We remove comments because anyway the quotes in there
2639 # would cause problems or look ugly.
2640 # WARNING: Use '\'' to represent an apostrophe within the trap.
2641 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2642 trap 'exit_status=$?
2643 # Save into config.log some information that might help in debugging.
2647 $as_echo "## ---------------- ##
2648 ## Cache variables. ##
2649 ## ---------------- ##"
2651 # The following way of writing the cache mishandles newlines in values,
2653 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2654 eval ac_val=\$$ac_var
2658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2659 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2662 _ | IFS | as_nl) ;; #(
2663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2664 *) { eval $ac_var=; unset $ac_var;} ;;
2669 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2670 *${as_nl}ac_space=\ *)
2672 "s/'\''/'\''\\\\'\'''\''/g;
2673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2683 $as_echo "## ----------------- ##
2684 ## Output variables. ##
2685 ## ----------------- ##"
2687 for ac_var in $ac_subst_vars
2689 eval ac_val=\$$ac_var
2691 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2693 $as_echo "$ac_var='\''$ac_val'\''"
2697 if test -n "$ac_subst_files"; then
2698 $as_echo "## ------------------- ##
2699 ## File substitutions. ##
2700 ## ------------------- ##"
2702 for ac_var in $ac_subst_files
2704 eval ac_val=\$$ac_var
2706 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2708 $as_echo "$ac_var='\''$ac_val'\''"
2713 if test -s confdefs.h; then
2714 $as_echo "## ----------- ##
2721 test "$ac_signal" != 0 &&
2722 $as_echo "$as_me: caught signal $ac_signal"
2723 $as_echo "$as_me: exit $exit_status"
2725 rm -f core *.core core.conftest.* &&
2726 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2729 for ac_signal in 1 2 13 15; do
2730 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2735 rm -f -r conftest* confdefs.h
2737 $as_echo "/* confdefs.h */" > confdefs.h
2739 # Predefined preprocessor variables.
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE_NAME "$PACKAGE_NAME"
2745 cat >>confdefs.h <<_ACEOF
2746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2753 cat >>confdefs.h <<_ACEOF
2754 #define PACKAGE_STRING "$PACKAGE_STRING"
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_URL "$PACKAGE_URL"
2766 # Let the site file select an alternate cache file if it wants to.
2767 # Prefer an explicitly selected file to automatically selected ones.
2770 if test -n "$CONFIG_SITE"; then
2771 # We do not want a PATH search for config.site.
2772 case $CONFIG_SITE in #((
2773 -*) ac_site_file1=./$CONFIG_SITE;;
2774 */*) ac_site_file1=$CONFIG_SITE;;
2775 *) ac_site_file1=./$CONFIG_SITE;;
2777 elif test "x$prefix" != xNONE; then
2778 ac_site_file1=$prefix/share/config.site
2779 ac_site_file2=$prefix/etc/config.site
2781 ac_site_file1=$ac_default_prefix/share/config.site
2782 ac_site_file2=$ac_default_prefix/etc/config.site
2784 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2786 test "x$ac_site_file" = xNONE && continue
2787 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2789 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2790 sed 's/^/| /' "$ac_site_file" >&5
2792 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 as_fn_error $? "failed to load site script $ac_site_file
2795 See \`config.log' for more details" "$LINENO" 5; }
2799 if test -r "$cache_file"; then
2800 # Some versions of bash will fail to source /dev/null (special files
2801 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2802 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2804 $as_echo "$as_me: loading cache $cache_file" >&6;}
2806 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2807 *) . "./$cache_file";;
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2812 $as_echo "$as_me: creating cache $cache_file" >&6;}
2816 gt_needs="$gt_needs need-ngettext"
2817 as_fn_append ac_header_list " sys/socket.h"
2818 # Check that the precious variables saved in the cache have kept the same
2820 ac_cache_corrupted=false
2821 for ac_var in $ac_precious_vars; do
2822 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2823 eval ac_new_set=\$ac_env_${ac_var}_set
2824 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2825 eval ac_new_val=\$ac_env_${ac_var}_value
2826 case $ac_old_set,$ac_new_set in
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2829 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2830 ac_cache_corrupted=: ;;
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2833 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2834 ac_cache_corrupted=: ;;
2837 if test "x$ac_old_val" != "x$ac_new_val"; then
2838 # differences in whitespace do not lead to failure.
2839 ac_old_val_w=`echo x $ac_old_val`
2840 ac_new_val_w=`echo x $ac_new_val`
2841 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2843 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2844 ac_cache_corrupted=:
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2847 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2848 eval $ac_var=\$ac_old_val
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2851 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2853 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2856 # Pass precious variables to config.status.
2857 if test "$ac_new_set" = set; then
2859 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2860 *) ac_arg=$ac_var=$ac_new_val ;;
2862 case " $ac_configure_args " in
2863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2864 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2868 if $ac_cache_corrupted; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2872 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2873 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2875 ## -------------------- ##
2876 ## Main body of script. ##
2877 ## -------------------- ##
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 # When changing the SWDB tag please also adjust the hard coded tags in
2888 # build-aux/speedo.mk and Makefile.am
2890 cat >>confdefs.h <<_ACEOF
2891 #define GNUPG_SWDB_TAG "gnupg22"
2895 NEED_GPG_ERROR_VERSION=1.27
2897 NEED_LIBGCRYPT_API=1
2898 NEED_LIBGCRYPT_VERSION=1.8.0
2900 NEED_LIBASSUAN_API=2
2901 NEED_LIBASSUAN_VERSION=2.5.0
2904 NEED_KSBA_VERSION=1.3.5
2907 NEED_NTBTLS_VERSION=0.1.0
2910 NEED_NPTH_VERSION=1.2
2913 NEED_GNUTLS_VERSION=3.0
2915 NEED_SQLITE_VERSION=3.7
2917 development_version=no
2918 PACKAGE=$PACKAGE_NAME
2919 PACKAGE_GT=${PACKAGE_NAME}2
2920 VERSION=$PACKAGE_VERSION
2923 for ac_dir in build-aux "$srcdir"/build-aux; do
2924 if test -f "$ac_dir/install-sh"; then
2926 ac_install_sh="$ac_aux_dir/install-sh -c"
2928 elif test -f "$ac_dir/install.sh"; then
2930 ac_install_sh="$ac_aux_dir/install.sh -c"
2932 elif test -f "$ac_dir/shtool"; then
2934 ac_install_sh="$ac_aux_dir/shtool install -c"
2938 if test -z "$ac_aux_dir"; then
2939 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2942 # These three variables are undocumented and unsupported,
2943 # and are intended to be withdrawn in a future Autoconf release.
2944 # They can cause serious problems if a builder's source tree is in a directory
2945 # whose full name contains unusual characters.
2946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2952 ac_config_headers="$ac_config_headers config.h"
2954 am__api_version='1.16'
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 # Reject install programs that cannot install multiple files.
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2971 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2972 if test -z "$INSTALL"; then
2973 if ${ac_cv_path_install+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 # Account for people who put trailing slashes in PATH elements.
2982 case $as_dir/ in #((
2983 ./ | .// | /[cC]/* | \
2984 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2985 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2988 # OSF1 and SCO ODT 3.0 have their own names for install.
2989 # Don't use installbsd from OSF since it installs stuff as root
2991 for ac_prog in ginstall scoinst install; do
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2994 if test $ac_prog = install &&
2995 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # AIX install. It has an incompatible calling convention.
2998 elif test $ac_prog = install &&
2999 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3000 # program-specific install script used by HP pwplus--don't use.
3003 rm -rf conftest.one conftest.two conftest.dir
3004 echo one > conftest.one
3005 echo two > conftest.two
3007 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3008 test -s conftest.one && test -s conftest.two &&
3009 test -s conftest.dir/conftest.one &&
3010 test -s conftest.dir/conftest.two
3012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3025 rm -rf conftest.one conftest.two conftest.dir
3028 if test "${ac_cv_path_install+set}" = set; then
3029 INSTALL=$ac_cv_path_install
3031 # As a last resort, use the slow shell script. Don't cache a
3032 # value for INSTALL within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the value is a relative name.
3035 INSTALL=$ac_install_sh
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3039 $as_echo "$INSTALL" >&6; }
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3050 $as_echo_n "checking whether build environment is sane... " >&6; }
3051 # Reject unsafe characters in $srcdir or the absolute working directory
3052 # name. Accept space and tab only in the latter.
3056 *[\\\"\#\$\&\'\`$am_lf]*)
3057 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3060 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3061 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3064 # Do 'set' in a subshell so we don't clobber the current shell's
3065 # arguments. Must try -L first in case configure is actually a
3066 # symlink; some systems play weird games with the mod time of symlinks
3067 # (eg FreeBSD returns the mod time of the symlink's containing
3071 for am_try in 1 2; do
3072 echo "timestamp, slept: $am_has_slept" > conftest.file
3073 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3074 if test "$*" = "X"; then
3076 set X `ls -t "$srcdir/configure" conftest.file`
3078 if test "$*" != "X $srcdir/configure conftest.file" \
3079 && test "$*" != "X conftest.file $srcdir/configure"; then
3081 # If neither matched, then we have a broken ls. This can happen
3082 # if, for instance, CONFIG_SHELL is bash and it inherits a
3083 # broken ls alias from the environment. This has actually
3084 # happened. Such a system could not be considered "sane".
3085 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3086 alias in your environment" "$LINENO" 5
3088 if test "$2" = conftest.file || test $am_try -eq 2; then
3095 test "$2" = conftest.file
3101 as_fn_error $? "newly created file is older than distributed files!
3102 Check your system clock" "$LINENO" 5
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3105 $as_echo "yes" >&6; }
3106 # If we didn't sleep, we still need to ensure time stamps of config.status and
3107 # generated files are strictly newer.
3109 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3116 test "$program_prefix" != NONE &&
3117 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3118 # Use a double $ so make ignores it.
3119 test "$program_suffix" != NONE &&
3120 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3121 # Double any \ or $.
3122 # By default was `s,x,x', remove it if useless.
3123 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3124 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3126 # Expand $ac_aux_dir to an absolute path.
3127 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3129 if test x"${MISSING+set}" != xset; then
3132 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3134 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3137 # Use eval to expand $SHELL
3138 if eval "$MISSING --is-lightweight"; then
3139 am_missing_run="$MISSING "
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3143 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3146 if test x"${install_sh+set}" != xset; then
3149 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3151 install_sh="\${SHELL} $am_aux_dir/install-sh"
3155 # Installed binaries are usually stripped using 'strip' when the user
3156 # run "make install-strip". However 'strip' might not be the right
3157 # tool to use in cross-compilation environments, therefore Automake
3158 # will honor the 'STRIP' environment variable to overrule this program.
3159 if test "$cross_compiling" != no; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}strip; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_STRIP+:} false; then :
3166 $as_echo_n "(cached) " >&6
3168 if test -n "$STRIP"; then
3169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 STRIP=$ac_cv_prog_STRIP
3189 if test -n "$STRIP"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3191 $as_echo "$STRIP" >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3199 if test -z "$ac_cv_prog_STRIP"; then
3201 # Extract the first word of "strip", so it can be a program name with args.
3202 set dummy strip; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$ac_ct_STRIP"; then
3209 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_STRIP="strip"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3229 if test -n "$ac_ct_STRIP"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3231 $as_echo "$ac_ct_STRIP" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3237 if test "x$ac_ct_STRIP" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3249 STRIP="$ac_cv_prog_STRIP"
3253 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3256 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3257 if test -z "$MKDIR_P"; then
3258 if ${ac_cv_path_mkdir+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3265 test -z "$as_dir" && as_dir=.
3266 for ac_prog in mkdir gmkdir; do
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3269 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3270 'mkdir (GNU coreutils) '* | \
3271 'mkdir (coreutils) '* | \
3272 'mkdir (fileutils) '4.1*)
3273 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3283 test -d ./--version && rmdir ./--version
3284 if test "${ac_cv_path_mkdir+set}" = set; then
3285 MKDIR_P="$ac_cv_path_mkdir -p"
3287 # As a last resort, use the slow shell script. Don't cache a
3288 # value for MKDIR_P within a source directory, because that will
3289 # break other packages using the cache if that directory is
3290 # removed, or if the value is a relative name.
3291 MKDIR_P="$ac_install_sh -d"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3295 $as_echo "$MKDIR_P" >&6; }
3297 for ac_prog in gawk mawk nawk awk
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_AWK+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$AWK"; then
3307 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316 ac_cv_prog_AWK="$ac_prog"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 if test -n "$AWK"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3329 $as_echo "$AWK" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3336 test -n "$AWK" && break
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3343 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 cat >conftest.make <<\_ACEOF
3349 @echo '@@@%%%=$(MAKE)=@@@%%%'
3351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3354 eval ac_cv_prog_make_${ac_make}_set=yes;;
3356 eval ac_cv_prog_make_${ac_make}_set=no;;
3360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 SET_MAKE="MAKE=${MAKE-make}"
3370 rm -rf .tst 2>/dev/null
3371 mkdir .tst 2>/dev/null
3372 if test -d .tst; then
3377 rmdir .tst 2>/dev/null
3379 # Check whether --enable-silent-rules was given.
3380 if test "${enable_silent_rules+set}" = set; then :
3381 enableval=$enable_silent_rules;
3384 case $enable_silent_rules in # (((
3385 yes) AM_DEFAULT_VERBOSITY=0;;
3386 no) AM_DEFAULT_VERBOSITY=1;;
3387 *) AM_DEFAULT_VERBOSITY=1;;
3389 am_make=${MAKE-make}
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3391 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3392 if ${am_cv_make_support_nested_variables+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if $as_echo 'TRUE=$(BAR$(V))
3401 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3402 am_cv_make_support_nested_variables=yes
3404 am_cv_make_support_nested_variables=no
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3408 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3409 if test $am_cv_make_support_nested_variables = yes; then
3411 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3413 AM_V=$AM_DEFAULT_VERBOSITY
3414 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3419 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3420 # is not polluted with repeated "-I."
3421 am__isrc=' -I$(srcdir)'
3422 # test to see if srcdir already configured
3423 if test -f $srcdir/config.status; then
3424 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3428 # test whether we have cygpath
3429 if test -z "$CYGPATH_W"; then
3430 if (cygpath --version) >/dev/null 2>/dev/null; then
3431 CYGPATH_W='cygpath -w'
3438 # Define the identity of the package.
3443 cat >>confdefs.h <<_ACEOF
3444 #define PACKAGE "$PACKAGE"
3448 cat >>confdefs.h <<_ACEOF
3449 #define VERSION "$VERSION"
3452 # Some tools Automake needs.
3454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3468 # For better backward compatibility. To be removed once Automake 1.9.x
3469 # dies out for good. For more background, see:
3470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3471 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3472 mkdir_p='$(MKDIR_P)'
3474 # We need awk for the "check" target (and possibly the TAP driver). The
3475 # system "awk" is bad on some platforms.
3476 # Always define AMTAR for backward compatibility. Yes, it's still used
3477 # in the wild :-( We should find a proper way to deprecate it ...
3481 # We'll loop over all known methods to create a tar archive until one works.
3482 _am_tools='gnutar pax cpio none'
3484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3491 # POSIX will say in a future version that running "rm -f" with no argument
3492 # is OK; and we want to be able to make that assumption in our Makefile
3493 # recipes. So use an aggressive probe to check that the usage we want is
3494 # actually supported "in the wild" to an acceptable degree.
3495 # See automake bug#10828.
3496 # To make any issue more visible, cause the running configure to be aborted
3497 # by default if the 'rm' program in use doesn't match our expectations; the
3498 # user can still override this though.
3499 if rm -f && rm -fr && rm -rf; then : OK; else
3503 Your 'rm' program seems unable to run without file operands specified
3504 on the command line, even when the '-f' option is present. This is contrary
3505 to the behaviour of most rm programs out there, and not conforming with
3506 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3508 Please tell bug-automake@gnu.org about your system, including the value
3509 of your $PATH and any error possibly output before this message. This
3510 can help us improve future automake versions.
3513 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3514 echo 'Configuration will proceed anyway, since you have set the' >&2
3515 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3519 Aborting the configuration process, to ensure you take notice of the issue.
3521 You can download and install GNU coreutils to get an 'rm' implementation
3522 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3524 If you want to complete the configuration process using your problematic
3525 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3526 to "yes", and re-run configure.
3529 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3533 # Make sure we can run config.sub.
3534 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3535 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3538 $as_echo_n "checking build system type... " >&6; }
3539 if ${ac_cv_build+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 ac_build_alias=$build_alias
3543 test "x$ac_build_alias" = x &&
3544 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3545 test "x$ac_build_alias" = x &&
3546 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3547 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3552 $as_echo "$ac_cv_build" >&6; }
3553 case $ac_cv_build in
3555 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3558 ac_save_IFS=$IFS; IFS='-'
3564 # Remember, the first character of IFS is used to create $*,
3565 # except with old shells:
3568 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3572 $as_echo_n "checking host system type... " >&6; }
3573 if ${ac_cv_host+:} false; then :
3574 $as_echo_n "(cached) " >&6
3576 if test "x$host_alias" = x; then
3577 ac_cv_host=$ac_cv_build
3579 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3580 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3585 $as_echo "$ac_cv_host" >&6; }
3588 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3591 ac_save_IFS=$IFS; IFS='-'
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3601 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3609 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3611 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3613 if test "$hostname"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3615 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3618 date=`date +%Y%m%d-%H%M%S`
3619 if test "$?" != 0; then
3622 if test "$date"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3624 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3628 DEPDIR="${am__leading_dot}deps"
3630 ac_config_commands="$ac_config_commands depfiles"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3633 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3634 cat > confinc.mk << 'END'
3636 @echo this is the am__doit target >confinc.out
3641 # BSD make does it like this.
3642 echo '.include "confinc.mk" # ignored' > confmf.BSD
3643 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3644 echo 'include confinc.mk # ignored' > confmf.GNU
3646 for s in GNU BSD; do
3647 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3648 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }
3652 case $?:`cat confinc.out 2>/dev/null` in #(
3653 '0:this is the am__doit target') :
3656 am__include='.include' am__quote='"' ;; #(
3658 am__include='include' am__quote='' ;;
3663 if test "$am__include" != "#"; then
3664 _am_result="yes ($s style)"
3668 rm -f confinc.* confmf.*
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3670 $as_echo "${_am_result}" >&6; }
3672 # Check whether --enable-dependency-tracking was given.
3673 if test "${enable_dependency_tracking+set}" = set; then :
3674 enableval=$enable_dependency_tracking;
3677 if test "x$enable_dependency_tracking" != xno; then
3678 am_depcomp="$ac_aux_dir/depcomp"
3682 if test "x$enable_dependency_tracking" != xno; then
3692 ac_cpp='$CPP $CPPFLAGS'
3693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3696 if test -n "$ac_tool_prefix"; then
3697 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3735 if test -z "$ac_cv_prog_CC"; then
3737 # Extract the first word of "gcc", so it can be a program name with args.
3738 set dummy gcc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$ac_ct_CC"; then
3745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_ac_ct_CC="gcc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3773 if test "x$ac_ct_CC" = x; then
3776 case $cross_compiling:$ac_tool_warned in
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3788 if test -z "$CC"; then
3789 if test -n "$ac_tool_prefix"; then
3790 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3791 set dummy ${ac_tool_prefix}cc; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_CC+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 if test -n "$CC"; then
3798 ac_cv_prog_CC="$CC" # Let the user override the test.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_prog_CC="${ac_tool_prefix}cc"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test -n "$CC"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3820 $as_echo "$CC" >&6; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3829 if test -z "$CC"; then
3830 # Extract the first word of "cc", so it can be a program name with args.
3831 set dummy cc; ac_word=$2
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833 $as_echo_n "checking for $ac_word... " >&6; }
3834 if ${ac_cv_prog_CC+:} false; then :
3835 $as_echo_n "(cached) " >&6
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3849 ac_prog_rejected=yes
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 if test $ac_prog_rejected = yes; then
3861 # We found a bogon in the path, so make sure we never use it.
3862 set dummy $ac_cv_prog_CC
3864 if test $# != 0; then
3865 # We chose a different compiler from the bogus one.
3866 # However, it has the same basename, so the bogon will be chosen
3867 # first if we set CC to just the basename; use the full file name.
3869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3885 if test -z "$CC"; then
3886 if test -n "$ac_tool_prefix"; then
3887 for ac_prog in cl.exe
3889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3926 test -n "$CC" && break
3929 if test -z "$CC"; then
3931 for ac_prog in cl.exe
3933 # Extract the first word of "$ac_prog", so it can be a program name with args.
3934 set dummy $ac_prog; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3938 $as_echo_n "(cached) " >&6
3940 if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_ac_ct_CC="$ac_prog"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961 if test -n "$ac_ct_CC"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963 $as_echo "$ac_ct_CC" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3970 test -n "$ac_ct_CC" && break
3973 if test "x$ac_ct_CC" = x; then
3976 case $cross_compiling:$ac_tool_warned in
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3980 ac_tool_warned=yes ;;
3989 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 as_fn_error $? "no acceptable C compiler found in \$PATH
3992 See \`config.log' for more details" "$LINENO" 5; }
3994 # Provide some information about the compiler.
3995 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3998 for ac_option in --version -v -V -qversion; do
3999 { { ac_try="$ac_compiler $ac_option >&5"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4008 if test -s conftest.err; then
4010 ... rest of stderr output deleted ...
4011 10q' conftest.err >conftest.er1
4012 cat conftest.er1 >&5
4014 rm -f conftest.er1 conftest.err
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4030 ac_clean_files_save=$ac_clean_files
4031 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4032 # Try to create an executable without -o first, disregard a.out.
4033 # It will help us diagnose broken compilers, and finding out an intuition
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4036 $as_echo_n "checking whether the C compiler works... " >&6; }
4037 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4039 # The possible output files:
4040 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4043 for ac_file in $ac_files
4046 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4047 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4052 if { { ac_try="$ac_link_default"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_link_default") 2>&5
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4064 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4065 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4066 # so that the user can short-circuit this test for compilers unknown to
4068 for ac_file in $ac_files ''
4070 test -f "$ac_file" || continue
4072 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4075 # We found the default executable, but exeext='' is most
4079 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4081 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4083 # We set ac_cv_exeext here because the later test for it is not
4084 # safe: cross compilers may not add the suffix if given an `-o'
4085 # argument, so we may need to know it at that point already.
4086 # Even if this section looks crufty: it has the advantage of
4093 test "$ac_cv_exeext" = no && ac_cv_exeext=
4098 if test -z "$ac_file"; then :
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106 as_fn_error 77 "C compiler cannot create executables
4107 See \`config.log' for more details" "$LINENO" 5; }
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 $as_echo "yes" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4113 $as_echo_n "checking for C compiler default output file name... " >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4115 $as_echo "$ac_file" >&6; }
4116 ac_exeext=$ac_cv_exeext
4118 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4119 ac_clean_files=$ac_clean_files_save
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4121 $as_echo_n "checking for suffix of executables... " >&6; }
4122 if { { ac_try="$ac_link"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_link") 2>&5
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; then :
4133 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4134 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4135 # work properly (i.e., refer to `conftest.exe'), while it won't with
4137 for ac_file in conftest.exe conftest conftest.*; do
4138 test -f "$ac_file" || continue
4140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4141 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4150 See \`config.log' for more details" "$LINENO" 5; }
4152 rm -f conftest conftest$ac_cv_exeext
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4154 $as_echo "$ac_cv_exeext" >&6; }
4156 rm -f conftest.$ac_ext
4157 EXEEXT=$ac_cv_exeext
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4165 FILE *f = fopen ("conftest.out", "w");
4166 return ferror (f) || fclose (f) != 0;
4172 ac_clean_files="$ac_clean_files conftest.out"
4173 # Check that the compiler produces executables we can run. If not, either
4174 # the compiler is broken, or we cross compile.
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4176 $as_echo_n "checking whether we are cross compiling... " >&6; }
4177 if test "$cross_compiling" != yes; then
4178 { { ac_try="$ac_link"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4184 $as_echo "$ac_try_echo"; } >&5
4185 (eval "$ac_link") 2>&5
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4189 if { ac_try='./conftest$ac_cv_exeext'
4190 { { case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_try") 2>&5
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; }; then
4202 if test "$cross_compiling" = maybe; then
4205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4207 as_fn_error $? "cannot run C compiled programs.
4208 If you meant to cross compile, use \`--host'.
4209 See \`config.log' for more details" "$LINENO" 5; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4214 $as_echo "$cross_compiling" >&6; }
4216 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4217 ac_clean_files=$ac_clean_files_save
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4219 $as_echo_n "checking for suffix of object files... " >&6; }
4220 if ${ac_cv_objext+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 rm -f conftest.o conftest.obj
4235 if { { ac_try="$ac_compile"
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_compile") 2>&5
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 for ac_file in conftest.o conftest.obj conftest.*; do
4247 test -f "$ac_file" || continue;
4249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4250 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4255 $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4260 as_fn_error $? "cannot compute suffix of object files: cannot compile
4261 See \`config.log' for more details" "$LINENO" 5; }
4263 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4266 $as_echo "$ac_cv_objext" >&6; }
4267 OBJEXT=$ac_cv_objext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4270 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4271 if ${ac_cv_c_compiler_gnu+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4288 if ac_fn_c_try_compile "$LINENO"; then :
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4298 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4299 if test $ac_compiler_gnu = yes; then
4304 ac_test_CFLAGS=${CFLAGS+set}
4305 ac_save_CFLAGS=$CFLAGS
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4308 if ${ac_cv_prog_cc_g+:} false; then :
4309 $as_echo_n "(cached) " >&6
4311 ac_save_c_werror_flag=$ac_c_werror_flag
4312 ac_c_werror_flag=yes
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4326 if ac_fn_c_try_compile "$LINENO"; then :
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 if ac_fn_c_try_compile "$LINENO"; then :
4344 ac_c_werror_flag=$ac_save_c_werror_flag
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4357 if ac_fn_c_try_compile "$LINENO"; then :
4360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4368 $as_echo "$ac_cv_prog_cc_g" >&6; }
4369 if test "$ac_test_CFLAGS" = set; then
4370 CFLAGS=$ac_save_CFLAGS
4371 elif test $ac_cv_prog_cc_g = yes; then
4372 if test "$GCC" = yes; then
4378 if test "$GCC" = yes; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4385 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4386 if ${ac_cv_prog_cc_c89+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 ac_cv_prog_cc_c89=no
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4397 struct buf { int x; };
4398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4399 static char *e (p, i)
4405 static char *f (char * (*g) (char **, int), char **p, ...)
4410 s = g (p, va_arg (v,int));
4415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4416 function prototypes and stuff, but not '\xHH' hex character constants.
4417 These don't provoke an error unfortunately, instead are silently treated
4418 as 'x'. The following induces an error, until -std is added to get
4419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4420 array size at least. It's necessary to write '\x00'==0 to get something
4421 that's true only with -std. */
4422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4425 inside strings and character constants. */
4427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4429 int test (int i, double x);
4430 struct s1 {int (*f) (int a);};
4431 struct s2 {int (*f) (double a);};
4432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4446 CC="$ac_save_CC $ac_arg"
4447 if ac_fn_c_try_compile "$LINENO"; then :
4448 ac_cv_prog_cc_c89=$ac_arg
4450 rm -f core conftest.err conftest.$ac_objext
4451 test "x$ac_cv_prog_cc_c89" != "xno" && break
4453 rm -f conftest.$ac_ext
4458 case "x$ac_cv_prog_cc_c89" in
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4461 $as_echo "none needed" >&6; } ;;
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4464 $as_echo "unsupported" >&6; } ;;
4466 CC="$CC $ac_cv_prog_cc_c89"
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4468 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4470 if test "x$ac_cv_prog_cc_c89" != xno; then :
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4486 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4487 if ${am_cv_prog_cc_c_o+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 # Make sure it works both with $CC and with simple cc.
4502 # Following AC_PROG_CC_C_O, we do the test twice because some
4503 # compilers refuse to overwrite an existing .o file with -o,
4504 # though they will create one.
4505 am_cv_prog_cc_c_o=yes
4507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } \
4512 && test -f conftest2.$ac_objext; then
4515 am_cv_prog_cc_c_o=no
4519 rm -f core conftest*
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4523 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4524 if test "$am_cv_prog_cc_c_o" != yes; then
4525 # Losing compiler, so override with the script.
4526 # FIXME: It is wrong to rewrite CC.
4527 # But if we don't then we get into trouble of one sort or another.
4528 # A longer-term fix would be to have automake use am__CC in this case,
4529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4530 CC="$am_aux_dir/compile $CC"
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539 depcc="$CC" am_compiler_list=
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4542 $as_echo_n "checking dependency style of $depcc... " >&6; }
4543 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547 # We make a subdir and do the tests there. Otherwise we can end up
4548 # making bogus files that we don't know about and never remove. For
4549 # instance it was reported that on HP-UX the gcc test will end up
4550 # making a dummy file named 'D' -- because '-MD' means "put the output
4554 # Copy depcomp to subdir because otherwise we won't find it if we're
4555 # using a relative directory.
4556 cp "$am_depcomp" conftest.dir
4558 # We will build objects and dependencies in a subdirectory because
4559 # it helps to detect inapplicable dependency modes. For instance
4560 # both Tru64's cc and ICC support -MD to output dependencies as a
4561 # side effect of compilation, but ICC will put the dependencies in
4562 # the current directory while Tru64 will put them in the object
4566 am_cv_CC_dependencies_compiler_type=none
4567 if test "$am_compiler_list" = ""; then
4568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4571 case " $depcc " in #(
4572 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4575 for depmode in $am_compiler_list; do
4576 # Setup a source with many dependencies, because some compilers
4577 # like to wrap large dependency lists on column 80 (with \), and
4578 # we should not choose a depcomp mode which is confused by this.
4580 # We need to recreate these files for each test, as the compiler may
4581 # overwrite some of them when testing with obscure command lines.
4582 # This happens at least with the AIX C compiler.
4584 for i in 1 2 3 4 5 6; do
4585 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4586 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4587 # Solaris 10 /bin/sh.
4588 echo '/* dummy */' > sub/conftst$i.h
4590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4592 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4593 # mode. It turns out that the SunPro C++ compiler does not properly
4594 # handle '-M -o', and we need to detect this. Also, some Intel
4595 # versions had trouble with output in subdirs.
4596 am__obj=sub/conftest.${OBJEXT-o}
4597 am__minus_obj="-o $am__obj"
4600 # This depmode causes a compiler race in universal mode.
4601 test "$am__universal" = false || continue
4604 # After this tag, mechanisms are not by side-effect, so they'll
4605 # only be used when explicitly requested.
4606 if test "x$enable_dependency_tracking" = xyes; then
4612 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4613 # This compiler won't grok '-c -o', but also, the minuso test has
4614 # not run yet. These depmodes are late enough in the game, and
4615 # so weak that their functioning should not be impacted.
4616 am__obj=conftest.${OBJEXT-o}
4621 if depmode=$depmode \
4622 source=sub/conftest.c object=$am__obj \
4623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4624 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4625 >/dev/null 2>conftest.err &&
4626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4628 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4630 # icc doesn't choke on unknown options, it will just issue warnings
4631 # or remarks (even with -Werror). So we grep stderr for any message
4632 # that says an option was ignored or not supported.
4633 # When given -MP, icc 7.0 and 7.1 complain thusly:
4634 # icc: Command line warning: ignoring option '-M'; no argument required
4635 # The diagnosis changed in icc 8.0:
4636 # icc: Command line remark: option '-MP' not supported
4637 if (grep 'ignoring option' conftest.err ||
4638 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4639 am_cv_CC_dependencies_compiler_type=$depmode
4648 am_cv_CC_dependencies_compiler_type=none
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4653 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4654 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4657 test "x$enable_dependency_tracking" != xno \
4658 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4660 am__fastdepCC_FALSE='#'
4662 am__fastdepCC_TRUE='#'
4663 am__fastdepCC_FALSE=
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4675 # On Suns, sometimes $CPP names a directory.
4676 if test -n "$CPP" && test -d "$CPP"; then
4679 if test -z "$CPP"; then
4680 if ${ac_cv_prog_CPP+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 # Double quotes because CPP needs to be expanded
4684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4687 for ac_c_preproc_warn_flag in '' yes
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4698 # include <limits.h>
4700 # include <assert.h>
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: fails on valid input.
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719 # Broken: success on invalid input.
4722 # Passes both tests.
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744 $as_echo "$CPP" >&6; }
4746 for ac_c_preproc_warn_flag in '' yes
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4757 # include <limits.h>
4759 # include <assert.h>
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4766 # Broken: fails on valid input.
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4771 # OK, works on sane cases. Now check whether nonexistent headers
4772 # can be detected and how.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4777 if ac_fn_c_try_cpp "$LINENO"; then :
4778 # Broken: success on invalid input.
4781 # Passes both tests.
4785 rm -f conftest.err conftest.i conftest.$ac_ext
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.i conftest.err conftest.$ac_ext
4790 if $ac_preproc_ok; then :
4793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796 See \`config.log' for more details" "$LINENO" 5; }
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808 if ${ac_cv_path_GREP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -z "$GREP"; then
4812 ac_path_GREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in grep ggrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_GREP" || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824 # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4830 $as_echo_n 0123456789 >"conftest.in"
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'GREP' >> "conftest.nl"
4837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_GREP="$ac_path_GREP"
4843 ac_path_GREP_max=$ac_count
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851 $ac_path_GREP_found && break 3
4856 if test -z "$ac_cv_path_GREP"; then
4857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4860 ac_cv_path_GREP=$GREP
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 $as_echo "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 $as_echo_n "checking for egrep... " >&6; }
4871 if ${ac_cv_path_EGREP+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875 then ac_cv_path_EGREP="$GREP -E"
4877 if test -z "$EGREP"; then
4878 ac_path_EGREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in egrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_EGREP" || continue
4889 # Check for GNU ac_path_EGREP and select it if it is found.
4890 # Check for GNU $ac_path_EGREP
4891 case `"$ac_path_EGREP" --version 2>&1` in
4893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4896 $as_echo_n 0123456789 >"conftest.in"
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'EGREP' >> "conftest.nl"
4903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_EGREP="$ac_path_EGREP"
4909 ac_path_EGREP_max=$ac_count
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917 $ac_path_EGREP_found && break 3
4922 if test -z "$ac_cv_path_EGREP"; then
4923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4926 ac_cv_path_EGREP=$EGREP
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932 $as_echo "$ac_cv_path_EGREP" >&6; }
4933 EGREP="$ac_cv_path_EGREP"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937 $as_echo_n "checking for ANSI C header files... " >&6; }
4938 if ${ac_cv_header_stdc+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 ac_cv_header_stdc=yes
4959 ac_cv_header_stdc=no
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 if test $ac_cv_header_stdc = yes; then
4964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "memchr" >/dev/null 2>&1; then :
4974 ac_cv_header_stdc=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "free" >/dev/null 2>&1; then :
4991 ac_cv_header_stdc=no
4997 if test $ac_cv_header_stdc = yes; then
4998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999 if test "$cross_compiling" = yes; then :
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 #if ((' ' & 0x0FF) == 0x020)
5007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010 # define ISLOWER(c) \
5011 (('a' <= (c) && (c) <= 'i') \
5012 || ('j' <= (c) && (c) <= 'r') \
5013 || ('s' <= (c) && (c) <= 'z'))
5014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5022 for (i = 0; i < 256; i++)
5023 if (XOR (islower (i), ISLOWER (i))
5024 || toupper (i) != TOUPPER (i))
5029 if ac_fn_c_try_run "$LINENO"; then :
5032 ac_cv_header_stdc=no
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035 conftest.$ac_objext conftest.beam conftest.$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041 $as_echo "$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050 inttypes.h stdint.h unistd.h
5052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5056 cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5066 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5067 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5074 if test "$MINIX" = yes; then
5076 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5079 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5082 $as_echo "#define _MINIX 1" >>confdefs.h
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5088 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5089 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5095 # define __EXTENSIONS__ 1
5096 $ac_includes_default
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_safe_to_define___extensions__=yes
5108 ac_cv_safe_to_define___extensions__=no
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5113 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5114 test $ac_cv_safe_to_define___extensions__ = yes &&
5115 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5117 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5119 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5121 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5123 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5129 # Some status variables.
5139 have_system_resolver=no
5140 gnupg_have_ldap="n/a"
5145 use_trust_models=yes
5149 use_ccid_driver=auto
5150 dirmngr_auto_start=yes
5158 # Check whether --enable-gpg was given.
5159 if test "${enable_gpg+set}" = set; then :
5160 enableval=$enable_gpg; build_gpg=$enableval
5166 case "$build_gpg" in
5170 as_fn_error $? "only yes or no allowed for feature --enable-gpg" "$LINENO" 5
5178 # Check whether --enable-gpgsm was given.
5179 if test "${enable_gpgsm+set}" = set; then :
5180 enableval=$enable_gpgsm; build_gpgsm=$enableval
5186 case "$build_gpgsm" in
5190 as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5195 # The agent is a required part and can't be disabled anymore.
5200 # Check whether --enable-scdaemon was given.
5201 if test "${enable_scdaemon+set}" = set; then :
5202 enableval=$enable_scdaemon; build_scdaemon=$enableval
5208 case "$build_scdaemon" in
5212 as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5220 # Check whether --enable-g13 was given.
5221 if test "${enable_g13+set}" = set; then :
5222 enableval=$enable_g13; build_g13=$enableval
5228 case "$build_g13" in
5232 as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5240 # Check whether --enable-dirmngr was given.
5241 if test "${enable_dirmngr+set}" = set; then :
5242 enableval=$enable_dirmngr; build_dirmngr=$enableval
5248 case "$build_dirmngr" in
5252 as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5260 # Check whether --enable-doc was given.
5261 if test "${enable_doc+set}" = set; then :
5262 enableval=$enable_doc; build_doc=$enableval
5268 case "$build_doc" in
5272 as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5277 # We use gpgtar to unpack test data, hence we always build it. If the
5278 # user opts out, we simply don't install it.
5282 # Check whether --enable-gpgtar was given.
5283 if test "${enable_gpgtar+set}" = set; then :
5284 enableval=$enable_gpgtar; build_gpgtar=$enableval
5290 case "$build_gpgtar" in
5294 as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5299 # We also install the gpg-wks-server tool by default but disable it
5300 # later for platforms where it can't be build.
5304 # Check whether --enable-wks-tools was given.
5305 if test "${enable_wks_tools+set}" = set; then :
5306 enableval=$enable_wks_tools; build_wks_tools=$enableval
5312 case "$build_wks_tools" in
5316 as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5327 cat >>confdefs.h <<_ACEOF
5328 #define PACKAGE "$PACKAGE"
5332 cat >>confdefs.h <<_ACEOF
5333 #define PACKAGE_GT "$PACKAGE_GT"
5337 cat >>confdefs.h <<_ACEOF
5338 #define VERSION "$VERSION"
5342 cat >>confdefs.h <<_ACEOF
5343 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5347 cat >>confdefs.h <<_ACEOF
5348 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5352 cat >>confdefs.h <<_ACEOF
5353 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5357 cat >>confdefs.h <<_ACEOF
5358 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5364 # The default is to use the modules from this package and the few
5365 # other packages in a standard place; i.e where this package gets
5366 # installed. With these options it is possible to override these
5367 # ${prefix} depended values with fixed paths, which can't be replaced
5368 # at make time. See also am/cmacros.am and the defaults in AH_BOTTOM.
5370 # Check whether --with-agent-pgm was given.
5371 if test "${with_agent_pgm+set}" = set; then :
5372 withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5378 if test -n "$GNUPG_AGENT_PGM"; then
5379 GNUPG_AGENT_PGM_TRUE=
5380 GNUPG_AGENT_PGM_FALSE='#'
5382 GNUPG_AGENT_PGM_TRUE='#'
5383 GNUPG_AGENT_PGM_FALSE=
5386 show_gnupg_agent_pgm="(default)"
5387 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5390 # Check whether --with-pinentry-pgm was given.
5391 if test "${with_pinentry_pgm+set}" = set; then :
5392 withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5394 GNUPG_PINENTRY_PGM=""
5398 if test -n "$GNUPG_PINENTRY_PGM"; then
5399 GNUPG_PINENTRY_PGM_TRUE=
5400 GNUPG_PINENTRY_PGM_FALSE='#'
5402 GNUPG_PINENTRY_PGM_TRUE='#'
5403 GNUPG_PINENTRY_PGM_FALSE=
5406 show_gnupg_pinentry_pgm="(default)"
5407 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5411 # Check whether --with-scdaemon-pgm was given.
5412 if test "${with_scdaemon_pgm+set}" = set; then :
5413 withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5415 GNUPG_SCDAEMON_PGM=""
5419 if test -n "$GNUPG_SCDAEMON_PGM"; then
5420 GNUPG_SCDAEMON_PGM_TRUE=
5421 GNUPG_SCDAEMON_PGM_FALSE='#'
5423 GNUPG_SCDAEMON_PGM_TRUE='#'
5424 GNUPG_SCDAEMON_PGM_FALSE=
5427 show_gnupg_scdaemon_pgm="(default)"
5428 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5432 # Check whether --with-dirmngr-pgm was given.
5433 if test "${with_dirmngr_pgm+set}" = set; then :
5434 withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5436 GNUPG_DIRMNGR_PGM=""
5440 if test -n "$GNUPG_DIRMNGR_PGM"; then
5441 GNUPG_DIRMNGR_PGM_TRUE=
5442 GNUPG_DIRMNGR_PGM_FALSE='#'
5444 GNUPG_DIRMNGR_PGM_TRUE='#'
5445 GNUPG_DIRMNGR_PGM_FALSE=
5448 show_gnupg_dirmngr_pgm="(default)"
5449 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5452 # Check whether --with-protect-tool-pgm was given.
5453 if test "${with_protect_tool_pgm+set}" = set; then :
5454 withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5456 GNUPG_PROTECT_TOOL_PGM=""
5460 if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5461 GNUPG_PROTECT_TOOL_PGM_TRUE=
5462 GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5464 GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5465 GNUPG_PROTECT_TOOL_PGM_FALSE=
5468 show_gnupg_protect_tool_pgm="(default)"
5469 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5470 && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5473 # Check whether --with-dirmngr-ldap-pgm was given.
5474 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5475 withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5477 GNUPG_DIRMNGR_LDAP_PGM=""
5481 if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5482 GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5483 GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5485 GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5486 GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5489 show_gnupg_dirmngr_ldap_pgm="(default)"
5490 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5491 && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5495 # For a long time gpg 2.x was installed as gpg2. This changed with
5496 # 2.2. This option can be used to install gpg under the name gpg2.
5498 # Check whether --enable-gpg-is-gpg2 was given.
5499 if test "${enable_gpg_is_gpg2+set}" = set; then :
5500 enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5503 if test "$gpg_is_gpg2" = "yes"; then
5505 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5508 if test "$gpg_is_gpg2" = "yes"; then
5510 USE_GPG2_HACK_FALSE='#'
5512 USE_GPG2_HACK_TRUE='#'
5513 USE_GPG2_HACK_FALSE=
5518 # SELinux support includes tracking of sensitive files to avoid
5519 # leaking their contents through processing these files by gpg itself
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5521 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5522 # Check whether --enable-selinux-support was given.
5523 if test "${enable_selinux_support+set}" = set; then :
5524 enableval=$enable_selinux_support; selinux_support=$enableval
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5530 $as_echo "$selinux_support" >&6; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5534 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5535 # Check whether --enable-large-secmem was given.
5536 if test "${enable_large_secmem+set}" = set; then :
5537 enableval=$enable_large_secmem; large_secmem=$enableval
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5543 $as_echo "$large_secmem" >&6; }
5544 if test "$large_secmem" = yes ; then
5545 SECMEM_BUFFER_SIZE=65536
5547 SECMEM_BUFFER_SIZE=32768
5550 cat >>confdefs.h <<_ACEOF
5551 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5556 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5558 # Check whether --with-agent-s2k-calibration was given.
5559 if test "${with_agent_s2k_calibration+set}" = set; then :
5560 withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5562 agent_s2k_calibration=100
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5566 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5568 cat >>confdefs.h <<_ACEOF
5569 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5574 $as_echo_n "checking whether to enable trust models... " >&6; }
5575 # Check whether --enable-trust-models was given.
5576 if test "${enable_trust_models+set}" = set; then :
5577 enableval=$enable_trust_models; use_trust_models=$enableval
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5581 $as_echo "$use_trust_models" >&6; }
5582 if test "$use_trust_models" = no ; then
5584 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5589 $as_echo_n "checking whether to enable TOFU... " >&6; }
5590 # Check whether --enable-tofu was given.
5591 if test "${enable_tofu+set}" = set; then :
5592 enableval=$enable_tofu; use_tofu=$enableval
5594 use_tofu=$use_trust_models
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5598 $as_echo "$use_tofu" >&6; }
5599 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5600 as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5604 $as_echo_n "checking whether to enable libdns... " >&6; }
5605 # Check whether --enable-libdns was given.
5606 if test "${enable_libdns+set}" = set; then :
5607 enableval=$enable_libdns; use_libdns=$enableval
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5613 $as_echo "$use_libdns" >&6; }
5614 if test x"$use_libdns" = xyes ; then
5616 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5619 if test "$use_libdns" = yes; then
5621 USE_LIBDNS_FALSE='#'
5630 # Options to disable algorithm
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5634 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5635 # Check whether --enable-gpg-rsa was given.
5636 if test "${enable_gpg_rsa+set}" = set; then :
5637 enableval=$enable_gpg_rsa;
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5643 $as_echo "$enableval" >&6; }
5644 if test x"$enableval" = xyes ; then
5646 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5650 # Elgamal is a MUST algorithm
5651 # DSA is a MUST algorithm
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5653 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5654 # Check whether --enable-gpg-ecdh was given.
5655 if test "${enable_gpg_ecdh+set}" = set; then :
5656 enableval=$enable_gpg_ecdh;
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5662 $as_echo "$enableval" >&6; }
5663 if test x"$enableval" = xyes ; then
5665 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5670 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5671 # Check whether --enable-gpg-ecdsa was given.
5672 if test "${enable_gpg_ecdsa+set}" = set; then :
5673 enableval=$enable_gpg_ecdsa;
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5679 $as_echo "$enableval" >&6; }
5680 if test x"$enableval" = xyes ; then
5682 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5687 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5688 # Check whether --enable-gpg-eddsa was given.
5689 if test "${enable_gpg_eddsa+set}" = set; then :
5690 enableval=$enable_gpg_eddsa;
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5696 $as_echo "$enableval" >&6; }
5697 if test x"$enableval" = xyes ; then
5699 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5705 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5706 # Check whether --enable-gpg-idea was given.
5707 if test "${enable_gpg_idea+set}" = set; then :
5708 enableval=$enable_gpg_idea;
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5714 $as_echo "$enableval" >&6; }
5715 if test x"$enableval" = xyes ; then
5717 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5721 # 3DES is a MUST algorithm
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5723 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5724 # Check whether --enable-gpg-cast5 was given.
5725 if test "${enable_gpg_cast5+set}" = set; then :
5726 enableval=$enable_gpg_cast5;
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5732 $as_echo "$enableval" >&6; }
5733 if test x"$enableval" = xyes ; then
5735 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5740 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5741 # Check whether --enable-gpg-blowfish was given.
5742 if test "${enable_gpg_blowfish+set}" = set; then :
5743 enableval=$enable_gpg_blowfish;
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5749 $as_echo "$enableval" >&6; }
5750 if test x"$enableval" = xyes ; then
5752 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5757 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5758 # Check whether --enable-gpg-aes128 was given.
5759 if test "${enable_gpg_aes128+set}" = set; then :
5760 enableval=$enable_gpg_aes128;
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5766 $as_echo "$enableval" >&6; }
5767 if test x"$enableval" = xyes ; then
5769 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5774 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5775 # Check whether --enable-gpg-aes192 was given.
5776 if test "${enable_gpg_aes192+set}" = set; then :
5777 enableval=$enable_gpg_aes192;
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5783 $as_echo "$enableval" >&6; }
5784 if test x"$enableval" = xyes ; then
5786 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5791 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5792 # Check whether --enable-gpg-aes256 was given.
5793 if test "${enable_gpg_aes256+set}" = set; then :
5794 enableval=$enable_gpg_aes256;
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5800 $as_echo "$enableval" >&6; }
5801 if test x"$enableval" = xyes ; then
5803 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5808 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5809 # Check whether --enable-gpg-twofish was given.
5810 if test "${enable_gpg_twofish+set}" = set; then :
5811 enableval=$enable_gpg_twofish;
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5817 $as_echo "$enableval" >&6; }
5818 if test x"$enableval" = xyes ; then
5820 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5825 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5826 # Check whether --enable-gpg-camellia128 was given.
5827 if test "${enable_gpg_camellia128+set}" = set; then :
5828 enableval=$enable_gpg_camellia128;
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5834 $as_echo "$enableval" >&6; }
5835 if test x"$enableval" = xyes ; then
5837 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5842 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5843 # Check whether --enable-gpg-camellia192 was given.
5844 if test "${enable_gpg_camellia192+set}" = set; then :
5845 enableval=$enable_gpg_camellia192;
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5851 $as_echo "$enableval" >&6; }
5852 if test x"$enableval" = xyes ; then
5854 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5859 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5860 # Check whether --enable-gpg-camellia256 was given.
5861 if test "${enable_gpg_camellia256+set}" = set; then :
5862 enableval=$enable_gpg_camellia256;
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5868 $as_echo "$enableval" >&6; }
5869 if test x"$enableval" = xyes ; then
5871 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5877 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5878 # Check whether --enable-gpg-md5 was given.
5879 if test "${enable_gpg_md5+set}" = set; then :
5880 enableval=$enable_gpg_md5;
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5886 $as_echo "$enableval" >&6; }
5887 if test x"$enableval" = xyes ; then
5889 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5893 # SHA1 is a MUST algorithm
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5895 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5896 # Check whether --enable-gpg-rmd160 was given.
5897 if test "${enable_gpg_rmd160+set}" = set; then :
5898 enableval=$enable_gpg_rmd160;
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5904 $as_echo "$enableval" >&6; }
5905 if test x"$enableval" = xyes ; then
5907 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5912 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5913 # Check whether --enable-gpg-sha224 was given.
5914 if test "${enable_gpg_sha224+set}" = set; then :
5915 enableval=$enable_gpg_sha224;
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5921 $as_echo "$enableval" >&6; }
5922 if test x"$enableval" = xyes ; then
5924 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
5928 # SHA256 is a MUST algorithm for GnuPG.
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
5930 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
5931 # Check whether --enable-gpg-sha384 was given.
5932 if test "${enable_gpg_sha384+set}" = set; then :
5933 enableval=$enable_gpg_sha384;
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5939 $as_echo "$enableval" >&6; }
5940 if test x"$enableval" = xyes ; then
5942 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
5947 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
5948 # Check whether --enable-gpg-sha512 was given.
5949 if test "${enable_gpg_sha512+set}" = set; then :
5950 enableval=$enable_gpg_sha512;
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5956 $as_echo "$enableval" >&6; }
5957 if test x"$enableval" = xyes ; then
5959 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
5965 # Allow disabling of zip support.
5966 # This is in general not a good idea because according to rfc4880 OpenPGP
5967 # implementations SHOULD support ZLIB.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
5969 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
5970 # Check whether --enable-zip was given.
5971 if test "${enable_zip+set}" = set; then :
5972 enableval=$enable_zip; use_zip=$enableval
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
5976 $as_echo "$use_zip" >&6; }
5978 # Allow disabling of bzib2 support.
5979 # It is defined only after we confirm the library is available later
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
5981 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
5982 # Check whether --enable-bzip2 was given.
5983 if test "${enable_bzip2+set}" = set; then :
5984 enableval=$enable_bzip2; use_bzip2=$enableval
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
5988 $as_echo "$use_bzip2" >&6; }
5990 # Configure option to allow or disallow execution of external
5991 # programs, like a photo viewer.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
5993 $as_echo_n "checking whether to enable external program execution... " >&6; }
5994 # Check whether --enable-exec was given.
5995 if test "${enable_exec+set}" = set; then :
5996 enableval=$enable_exec; use_exec=$enableval
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6000 $as_echo "$use_exec" >&6; }
6001 if test "$use_exec" = no ; then
6003 $as_echo "#define NO_EXEC 1" >>confdefs.h
6007 if test "$use_exec" = yes ; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6009 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6010 # Check whether --enable-photo-viewers was given.
6011 if test "${enable_photo_viewers+set}" = set; then :
6012 enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6014 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6021 gnupg_cv_enable_photo_viewers=$enableval
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6023 $as_echo "$enableval" >&6; }
6025 if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6027 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6029 # Check whether --with-photo-viewer was given.
6030 if test "${with_photo_viewer+set}" = set; then :
6031 withval=$with_photo_viewer; if test "$withval" = yes ; then
6033 elif test "$withval" != no ; then
6035 cat >>confdefs.h <<_ACEOF
6036 #define FIXED_PHOTO_VIEWER "$withval"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6045 $as_echo "$withval" >&6; }
6051 # Check for the key/uid cache size. This can't be zero, but can be
6052 # pretty small on embedded systems. This is used for the gpg part.
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6055 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6056 # Check whether --enable-key-cache was given.
6057 if test "${enable_key_cache+set}" = set; then :
6058 enableval=$enable_key_cache;
6063 if test "$enableval" = "no"; then
6065 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6068 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6069 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6070 as_fn_error $? "invalid key-cache size" "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6073 $as_echo "$key_cache_size" >&6; }
6075 cat >>confdefs.h <<_ACEOF
6076 #define PK_UID_CACHE_SIZE $key_cache_size
6083 # Check whether we want to use Linux capabilities
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6086 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6088 # Check whether --with-capabilities was given.
6089 if test "${with_capabilities+set}" = set; then :
6090 withval=$with_capabilities; use_capabilities="$withval"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6096 $as_echo "$use_capabilities" >&6; }
6099 # Check whether to disable the card support
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6101 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6102 # Check whether --enable-card-support was given.
6103 if test "${enable_card_support+set}" = set; then :
6104 enableval=$enable_card_support; card_support=$enableval
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6108 $as_echo "$card_support" >&6; }
6109 if test "$card_support" = yes ; then
6111 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6118 # Allow disabling of internal CCID support.
6119 # It is defined only after we confirm the library is available later
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6122 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6123 # Check whether --enable-ccid-driver was given.
6124 if test "${enable_ccid_driver+set}" = set; then :
6125 enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6129 $as_echo "$use_ccid_driver" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6132 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6133 # Check whether --enable-dirmngr-auto-start was given.
6134 if test "${enable_dirmngr_auto_start+set}" = set; then :
6135 enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6139 $as_echo "$dirmngr_auto_start" >&6; }
6140 if test "$dirmngr_auto_start" = yes ; then
6142 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6148 # To avoid double inclusion of config.h which might happen at some
6149 # places, we add the usual double inclusion protection at the top of
6155 # Stuff which goes at the bottom of config.h.
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6163 # Check whether --enable-maintainer-mode was given.
6164 if test "${enable_maintainer_mode+set}" = set; then :
6165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6167 USE_MAINTAINER_MODE=no
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6172 if test $USE_MAINTAINER_MODE = yes; then
6173 MAINTAINER_MODE_TRUE=
6174 MAINTAINER_MODE_FALSE='#'
6176 MAINTAINER_MODE_TRUE='#'
6177 MAINTAINER_MODE_FALSE=
6180 MAINT=$MAINTAINER_MODE_TRUE
6185 # Checks for programs.
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6187 $as_echo "$as_me: checking for programs" >&6;}
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6192 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6193 $as_echo_n "(cached) " >&6
6195 cat >conftest.make <<\_ACEOF
6198 @echo '@@@%%%=$(MAKE)=@@@%%%'
6200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6203 eval ac_cv_prog_make_${ac_make}_set=yes;;
6205 eval ac_cv_prog_make_${ac_make}_set=no;;
6209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6211 $as_echo "yes" >&6; }
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215 $as_echo "no" >&6; }
6216 SET_MAKE="MAKE=${MAKE-make}"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6220 $as_echo_n "checking whether build environment is sane... " >&6; }
6221 # Reject unsafe characters in $srcdir or the absolute working directory
6222 # name. Accept space and tab only in the latter.
6226 *[\\\"\#\$\&\'\`$am_lf]*)
6227 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6230 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6231 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6234 # Do 'set' in a subshell so we don't clobber the current shell's
6235 # arguments. Must try -L first in case configure is actually a
6236 # symlink; some systems play weird games with the mod time of symlinks
6237 # (eg FreeBSD returns the mod time of the symlink's containing
6241 for am_try in 1 2; do
6242 echo "timestamp, slept: $am_has_slept" > conftest.file
6243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6244 if test "$*" = "X"; then
6246 set X `ls -t "$srcdir/configure" conftest.file`
6248 if test "$*" != "X $srcdir/configure conftest.file" \
6249 && test "$*" != "X conftest.file $srcdir/configure"; then
6251 # If neither matched, then we have a broken ls. This can happen
6252 # if, for instance, CONFIG_SHELL is bash and it inherits a
6253 # broken ls alias from the environment. This has actually
6254 # happened. Such a system could not be considered "sane".
6255 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
6256 alias in your environment" "$LINENO" 5
6258 if test "$2" = conftest.file || test $am_try -eq 2; then
6265 test "$2" = conftest.file
6271 as_fn_error $? "newly created file is older than distributed files!
6272 Check your system clock" "$LINENO" 5
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6275 $as_echo "yes" >&6; }
6276 # If we didn't sleep, we still need to ensure time stamps of config.status and
6277 # generated files are strictly newer.
6279 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6286 missing_dir=`cd $ac_aux_dir && pwd`
6288 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6291 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6294 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6297 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6300 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6302 # Check whether --enable-silent-rules was given.
6303 if test "${enable_silent_rules+set}" = set; then :
6304 enableval=$enable_silent_rules;
6307 case $enable_silent_rules in # (((
6308 yes) AM_DEFAULT_VERBOSITY=0;;
6309 no) AM_DEFAULT_VERBOSITY=1;;
6310 *) AM_DEFAULT_VERBOSITY=1;;
6312 am_make=${MAKE-make}
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6315 if ${am_cv_make_support_nested_variables+:} false; then :
6316 $as_echo_n "(cached) " >&6
6318 if $as_echo 'TRUE=$(BAR$(V))
6324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6325 am_cv_make_support_nested_variables=yes
6327 am_cv_make_support_nested_variables=no
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6332 if test $am_cv_make_support_nested_variables = yes; then
6334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6336 AM_V=$AM_DEFAULT_VERBOSITY
6337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6341 for ac_prog in gawk mawk nawk awk
6343 # Extract the first word of "$ac_prog", so it can be a program name with args.
6344 set dummy $ac_prog; ac_word=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_prog_AWK+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$AWK"; then
6351 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_AWK="$ac_prog"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 if test -n "$AWK"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6373 $as_echo "$AWK" >&6; }
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376 $as_echo "no" >&6; }
6380 test -n "$AWK" && break
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_CC+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 if test -n "$CC"; then
6397 ac_cv_prog_CC="$CC" # Let the user override the test.
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 if test -n "$CC"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6419 $as_echo "$CC" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6427 if test -z "$ac_cv_prog_CC"; then
6429 # Extract the first word of "gcc", so it can be a program name with args.
6430 set dummy gcc; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$ac_ct_CC"; then
6437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_CC="gcc"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6457 if test -n "$ac_ct_CC"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6459 $as_echo "$ac_ct_CC" >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6465 if test "x$ac_ct_CC" = x; then
6468 case $cross_compiling:$ac_tool_warned in
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6480 if test -z "$CC"; then
6481 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}cc; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_CC+:} false; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$CC"; then
6490 ac_cv_prog_CC="$CC" # Let the user override the test.
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_CC="${ac_tool_prefix}cc"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 if test -n "$CC"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6512 $as_echo "$CC" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6521 if test -z "$CC"; then
6522 # Extract the first word of "cc", so it can be a program name with args.
6523 set dummy cc; ac_word=$2
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if ${ac_cv_prog_CC+:} false; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -n "$CC"; then
6530 ac_cv_prog_CC="$CC" # Let the user override the test.
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6541 ac_prog_rejected=yes
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 if test $ac_prog_rejected = yes; then
6553 # We found a bogon in the path, so make sure we never use it.
6554 set dummy $ac_cv_prog_CC
6556 if test $# != 0; then
6557 # We chose a different compiler from the bogus one.
6558 # However, it has the same basename, so the bogon will be chosen
6559 # first if we set CC to just the basename; use the full file name.
6561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6567 if test -n "$CC"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6569 $as_echo "$CC" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6577 if test -z "$CC"; then
6578 if test -n "$ac_tool_prefix"; then
6579 for ac_prog in cl.exe
6581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_CC+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$CC"; then
6589 ac_cv_prog_CC="$CC" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 if test -n "$CC"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6611 $as_echo "$CC" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6618 test -n "$CC" && break
6621 if test -z "$CC"; then
6623 for ac_prog in cl.exe
6625 # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_CC"; then
6633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_CC="$ac_prog"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6653 if test -n "$ac_ct_CC"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6655 $as_echo "$ac_ct_CC" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6662 test -n "$ac_ct_CC" && break
6665 if test "x$ac_ct_CC" = x; then
6668 case $cross_compiling:$ac_tool_warned in
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6683 as_fn_error $? "no acceptable C compiler found in \$PATH
6684 See \`config.log' for more details" "$LINENO" 5; }
6686 # Provide some information about the compiler.
6687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6690 for ac_option in --version -v -V -qversion; do
6691 { { ac_try="$ac_compiler $ac_option >&5"
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6694 *) ac_try_echo=$ac_try;;
6696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6697 $as_echo "$ac_try_echo"; } >&5
6698 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6700 if test -s conftest.err; then
6702 ... rest of stderr output deleted ...
6703 10q' conftest.err >conftest.er1
6704 cat conftest.er1 >&5
6706 rm -f conftest.er1 conftest.err
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6713 if ${ac_cv_c_compiler_gnu+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6730 if ac_fn_c_try_compile "$LINENO"; then :
6735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6741 if test $ac_compiler_gnu = yes; then
6746 ac_test_CFLAGS=${CFLAGS+set}
6747 ac_save_CFLAGS=$CFLAGS
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6750 if ${ac_cv_prog_cc_g+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 ac_save_c_werror_flag=$ac_c_werror_flag
6754 ac_c_werror_flag=yes
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6768 if ac_fn_c_try_compile "$LINENO"; then :
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6783 if ac_fn_c_try_compile "$LINENO"; then :
6786 ac_c_werror_flag=$ac_save_c_werror_flag
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6799 if ac_fn_c_try_compile "$LINENO"; then :
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 ac_c_werror_flag=$ac_save_c_werror_flag
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6810 $as_echo "$ac_cv_prog_cc_g" >&6; }
6811 if test "$ac_test_CFLAGS" = set; then
6812 CFLAGS=$ac_save_CFLAGS
6813 elif test $ac_cv_prog_cc_g = yes; then
6814 if test "$GCC" = yes; then
6820 if test "$GCC" = yes; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6828 if ${ac_cv_prog_cc_c89+:} false; then :
6829 $as_echo_n "(cached) " >&6
6831 ac_cv_prog_cc_c89=no
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6839 struct buf { int x; };
6840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6841 static char *e (p, i)
6847 static char *f (char * (*g) (char **, int), char **p, ...)
6852 s = g (p, va_arg (v,int));
6857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6858 function prototypes and stuff, but not '\xHH' hex character constants.
6859 These don't provoke an error unfortunately, instead are silently treated
6860 as 'x'. The following induces an error, until -std is added to get
6861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6862 array size at least. It's necessary to write '\x00'==0 to get something
6863 that's true only with -std. */
6864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6867 inside strings and character constants. */
6869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6871 int test (int i, double x);
6872 struct s1 {int (*f) (int a);};
6873 struct s2 {int (*f) (double a);};
6874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6888 CC="$ac_save_CC $ac_arg"
6889 if ac_fn_c_try_compile "$LINENO"; then :
6890 ac_cv_prog_cc_c89=$ac_arg
6892 rm -f core conftest.err conftest.$ac_objext
6893 test "x$ac_cv_prog_cc_c89" != "xno" && break
6895 rm -f conftest.$ac_ext
6900 case "x$ac_cv_prog_cc_c89" in
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6903 $as_echo "none needed" >&6; } ;;
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6906 $as_echo "unsupported" >&6; } ;;
6908 CC="$CC $ac_cv_prog_cc_c89"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6912 if test "x$ac_cv_prog_cc_c89" != xno; then :
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6929 if ${am_cv_prog_cc_c_o+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6943 # Make sure it works both with $CC and with simple cc.
6944 # Following AC_PROG_CC_C_O, we do the test twice because some
6945 # compilers refuse to overwrite an existing .o file with -o,
6946 # though they will create one.
6947 am_cv_prog_cc_c_o=yes
6949 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6950 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } \
6954 && test -f conftest2.$ac_objext; then
6957 am_cv_prog_cc_c_o=no
6961 rm -f core conftest*
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6966 if test "$am_cv_prog_cc_c_o" != yes; then
6967 # Losing compiler, so override with the script.
6968 # FIXME: It is wrong to rewrite CC.
6969 # But if we don't then we get into trouble of one sort or another.
6970 # A longer-term fix would be to have automake use am__CC in this case,
6971 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6972 CC="$am_aux_dir/compile $CC"
6975 ac_cpp='$CPP $CPPFLAGS'
6976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 depcc="$CC" am_compiler_list=
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6984 $as_echo_n "checking dependency style of $depcc... " >&6; }
6985 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6989 # We make a subdir and do the tests there. Otherwise we can end up
6990 # making bogus files that we don't know about and never remove. For
6991 # instance it was reported that on HP-UX the gcc test will end up
6992 # making a dummy file named 'D' -- because '-MD' means "put the output
6996 # Copy depcomp to subdir because otherwise we won't find it if we're
6997 # using a relative directory.
6998 cp "$am_depcomp" conftest.dir
7000 # We will build objects and dependencies in a subdirectory because
7001 # it helps to detect inapplicable dependency modes. For instance
7002 # both Tru64's cc and ICC support -MD to output dependencies as a
7003 # side effect of compilation, but ICC will put the dependencies in
7004 # the current directory while Tru64 will put them in the object
7008 am_cv_CC_dependencies_compiler_type=none
7009 if test "$am_compiler_list" = ""; then
7010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7013 case " $depcc " in #(
7014 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7017 for depmode in $am_compiler_list; do
7018 # Setup a source with many dependencies, because some compilers
7019 # like to wrap large dependency lists on column 80 (with \), and
7020 # we should not choose a depcomp mode which is confused by this.
7022 # We need to recreate these files for each test, as the compiler may
7023 # overwrite some of them when testing with obscure command lines.
7024 # This happens at least with the AIX C compiler.
7026 for i in 1 2 3 4 5 6; do
7027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7028 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7029 # Solaris 10 /bin/sh.
7030 echo '/* dummy */' > sub/conftst$i.h
7032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7034 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7035 # mode. It turns out that the SunPro C++ compiler does not properly
7036 # handle '-M -o', and we need to detect this. Also, some Intel
7037 # versions had trouble with output in subdirs.
7038 am__obj=sub/conftest.${OBJEXT-o}
7039 am__minus_obj="-o $am__obj"
7042 # This depmode causes a compiler race in universal mode.
7043 test "$am__universal" = false || continue
7046 # After this tag, mechanisms are not by side-effect, so they'll
7047 # only be used when explicitly requested.
7048 if test "x$enable_dependency_tracking" = xyes; then
7054 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7055 # This compiler won't grok '-c -o', but also, the minuso test has
7056 # not run yet. These depmodes are late enough in the game, and
7057 # so weak that their functioning should not be impacted.
7058 am__obj=conftest.${OBJEXT-o}
7063 if depmode=$depmode \
7064 source=sub/conftest.c object=$am__obj \
7065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7066 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7067 >/dev/null 2>conftest.err &&
7068 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7070 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7072 # icc doesn't choke on unknown options, it will just issue warnings
7073 # or remarks (even with -Werror). So we grep stderr for any message
7074 # that says an option was ignored or not supported.
7075 # When given -MP, icc 7.0 and 7.1 complain thusly:
7076 # icc: Command line warning: ignoring option '-M'; no argument required
7077 # The diagnosis changed in icc 8.0:
7078 # icc: Command line remark: option '-MP' not supported
7079 if (grep 'ignoring option' conftest.err ||
7080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7081 am_cv_CC_dependencies_compiler_type=$depmode
7090 am_cv_CC_dependencies_compiler_type=none
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7099 test "x$enable_dependency_tracking" != xno \
7100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7102 am__fastdepCC_FALSE='#'
7104 am__fastdepCC_TRUE='#'
7105 am__fastdepCC_FALSE=
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7115 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7116 # On Suns, sometimes $CPP names a directory.
7117 if test -n "$CPP" && test -d "$CPP"; then
7120 if test -z "$CPP"; then
7121 if ${ac_cv_prog_CPP+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 # Double quotes because CPP needs to be expanded
7125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7128 for ac_c_preproc_warn_flag in '' yes
7130 # Use a header file that comes with gcc, so configuring glibc
7131 # with a fresh cross-compiler works.
7132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 # <limits.h> exists even on freestanding compilers.
7134 # On the NeXT, cc -E runs the code through the compiler's parser,
7135 # not just through cpp. "Syntax error" is here to catch this case.
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7139 # include <limits.h>
7141 # include <assert.h>
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7148 # Broken: fails on valid input.
7151 rm -f conftest.err conftest.i conftest.$ac_ext
7153 # OK, works on sane cases. Now check whether nonexistent headers
7154 # can be detected and how.
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 #include <ac_nonexistent.h>
7159 if ac_fn_c_try_cpp "$LINENO"; then :
7160 # Broken: success on invalid input.
7163 # Passes both tests.
7167 rm -f conftest.err conftest.i conftest.$ac_ext
7170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7171 rm -f conftest.i conftest.err conftest.$ac_ext
7172 if $ac_preproc_ok; then :
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7185 $as_echo "$CPP" >&6; }
7187 for ac_c_preproc_warn_flag in '' yes
7189 # Use a header file that comes with gcc, so configuring glibc
7190 # with a fresh cross-compiler works.
7191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192 # <limits.h> exists even on freestanding compilers.
7193 # On the NeXT, cc -E runs the code through the compiler's parser,
7194 # not just through cpp. "Syntax error" is here to catch this case.
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7198 # include <limits.h>
7200 # include <assert.h>
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7207 # Broken: fails on valid input.
7210 rm -f conftest.err conftest.i conftest.$ac_ext
7212 # OK, works on sane cases. Now check whether nonexistent headers
7213 # can be detected and how.
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216 #include <ac_nonexistent.h>
7218 if ac_fn_c_try_cpp "$LINENO"; then :
7219 # Broken: success on invalid input.
7222 # Passes both tests.
7226 rm -f conftest.err conftest.i conftest.$ac_ext
7229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7230 rm -f conftest.i conftest.err conftest.$ac_ext
7231 if $ac_preproc_ok; then :
7234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7236 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7237 See \`config.log' for more details" "$LINENO" 5; }
7241 ac_cpp='$CPP $CPPFLAGS'
7242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7248 as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7252 $as_echo_n "checking whether ln -s works... " >&6; }
7254 if test "$LN_S" = "ln -s"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256 $as_echo "yes" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7259 $as_echo "no, using $LN_S" >&6; }
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_RANLIB+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$RANLIB"; then
7271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 RANLIB=$ac_cv_prog_RANLIB
7291 if test -n "$RANLIB"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7293 $as_echo "$RANLIB" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7301 if test -z "$ac_cv_prog_RANLIB"; then
7302 ac_ct_RANLIB=$RANLIB
7303 # Extract the first word of "ranlib", so it can be a program name with args.
7304 set dummy ranlib; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$ac_ct_RANLIB"; then
7311 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_ac_ct_RANLIB="ranlib"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7331 if test -n "$ac_ct_RANLIB"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7333 $as_echo "$ac_ct_RANLIB" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 if test "x$ac_ct_RANLIB" = x; then
7342 case $cross_compiling:$ac_tool_warned in
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7348 RANLIB=$ac_ct_RANLIB
7351 RANLIB="$ac_cv_prog_RANLIB"
7354 if test -n "$ac_tool_prefix"; then
7355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}ar; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if ${ac_cv_prog_AR+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$AR"; then
7363 ac_cv_prog_AR="$AR" # Let the user override the test.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7372 ac_cv_prog_AR="${ac_tool_prefix}ar"
7373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 if test -n "$AR"; then
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7385 $as_echo "$AR" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7393 if test -z "$ac_cv_prog_AR"; then
7395 # Extract the first word of "ar", so it can be a program name with args.
7396 set dummy ar; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7400 $as_echo_n "(cached) " >&6
7402 if test -n "$ac_ct_AR"; then
7403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_ac_ct_AR="ar"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7423 if test -n "$ac_ct_AR"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7425 $as_echo "$ac_ct_AR" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7431 if test "x$ac_ct_AR" = x; then
7434 case $cross_compiling:$ac_tool_warned in
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7446 # Extract the first word of ""perl"", so it can be a program name with args.
7447 set dummy "perl"; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_path_PERL+:} false; then :
7451 $as_echo_n "(cached) " >&6
7455 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 PERL=$ac_cv_path_PERL
7477 if test -n "$PERL"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7479 $as_echo "$PERL" >&6; }
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7486 if test -n "$ac_tool_prefix"; then
7487 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7488 set dummy ${ac_tool_prefix}windres; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if ${ac_cv_prog_WINDRES+:} false; then :
7492 $as_echo_n "(cached) " >&6
7494 if test -n "$WINDRES"; then
7495 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 WINDRES=$ac_cv_prog_WINDRES
7515 if test -n "$WINDRES"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7517 $as_echo "$WINDRES" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7525 if test -z "$ac_cv_prog_WINDRES"; then
7526 ac_ct_WINDRES=$WINDRES
7527 # Extract the first word of "windres", so it can be a program name with args.
7528 set dummy windres; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7532 $as_echo_n "(cached) " >&6
7534 if test -n "$ac_ct_WINDRES"; then
7535 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_ac_ct_WINDRES="windres"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7555 if test -n "$ac_ct_WINDRES"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7557 $as_echo "$ac_ct_WINDRES" >&6; }
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7563 if test "x$ac_ct_WINDRES" = x; then
7566 case $cross_compiling:$ac_tool_warned in
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570 ac_tool_warned=yes ;;
7572 WINDRES=$ac_ct_WINDRES
7575 WINDRES="$ac_cv_prog_WINDRES"
7578 # Extract the first word of ""yat2m"", so it can be a program name with args.
7579 set dummy "yat2m"; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if ${ac_cv_path_YAT2M+:} false; then :
7583 $as_echo_n "(cached) " >&6
7587 ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 YAT2M=$ac_cv_path_YAT2M
7609 if test -n "$YAT2M"; then
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7611 $as_echo "$YAT2M" >&6; }
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614 $as_echo "no" >&6; }
7619 if test -n "$ac_cv_path_YAT2M"; then
7621 HAVE_YAT2M_FALSE='#'
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
7629 $as_echo_n "checking for strerror in -lcposix... " >&6; }
7630 if ${ac_cv_lib_cposix_strerror+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 ac_check_lib_save_LIBS=$LIBS
7634 LIBS="-lcposix $LIBS"
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7638 /* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7653 if ac_fn_c_try_link "$LINENO"; then :
7654 ac_cv_lib_cposix_strerror=yes
7656 ac_cv_lib_cposix_strerror=no
7658 rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
7660 LIBS=$ac_check_lib_save_LIBS
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
7663 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
7664 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
7665 LIBS="$LIBS -lcposix"
7670 # Check whether --enable-largefile was given.
7671 if test "${enable_largefile+set}" = set; then :
7672 enableval=$enable_largefile;
7675 if test "$enable_largefile" != no; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7678 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7679 if ${ac_cv_sys_largefile_CC+:} false; then :
7680 $as_echo_n "(cached) " >&6
7682 ac_cv_sys_largefile_CC=no
7683 if test "$GCC" != yes; then
7686 # IRIX 6.2 and later do not support large files by default,
7687 # so use the C compiler's -n32 option if that helps.
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 #include <sys/types.h>
7691 /* Check that off_t can represent 2**63 - 1 correctly.
7692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7693 since some C++ compilers masquerading as C compilers
7694 incorrectly reject 9223372036854775807. */
7695 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7697 && LARGE_OFF_T % 2147483647 == 1)
7707 if ac_fn_c_try_compile "$LINENO"; then :
7710 rm -f core conftest.err conftest.$ac_objext
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 ac_cv_sys_largefile_CC=' -n32'; break
7715 rm -f core conftest.err conftest.$ac_objext
7719 rm -f conftest.$ac_ext
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7724 if test "$ac_cv_sys_largefile_CC" != no; then
7725 CC=$CC$ac_cv_sys_largefile_CC
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7730 if ${ac_cv_sys_file_offset_bits+:} false; then :
7731 $as_echo_n "(cached) " >&6
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #include <sys/types.h>
7737 /* Check that off_t can represent 2**63 - 1 correctly.
7738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7739 since some C++ compilers masquerading as C compilers
7740 incorrectly reject 9223372036854775807. */
7741 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7743 && LARGE_OFF_T % 2147483647 == 1)
7753 if ac_fn_c_try_compile "$LINENO"; then :
7754 ac_cv_sys_file_offset_bits=no; break
7756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758 /* end confdefs.h. */
7759 #define _FILE_OFFSET_BITS 64
7760 #include <sys/types.h>
7761 /* Check that off_t can represent 2**63 - 1 correctly.
7762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7763 since some C++ compilers masquerading as C compilers
7764 incorrectly reject 9223372036854775807. */
7765 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7767 && LARGE_OFF_T % 2147483647 == 1)
7777 if ac_fn_c_try_compile "$LINENO"; then :
7778 ac_cv_sys_file_offset_bits=64; break
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 ac_cv_sys_file_offset_bits=unknown
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7786 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7787 case $ac_cv_sys_file_offset_bits in #(
7790 cat >>confdefs.h <<_ACEOF
7791 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7796 if test $ac_cv_sys_file_offset_bits = unknown; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7798 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7799 if ${ac_cv_sys_large_files+:} false; then :
7800 $as_echo_n "(cached) " >&6
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <sys/types.h>
7806 /* Check that off_t can represent 2**63 - 1 correctly.
7807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7808 since some C++ compilers masquerading as C compilers
7809 incorrectly reject 9223372036854775807. */
7810 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7812 && LARGE_OFF_T % 2147483647 == 1)
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 ac_cv_sys_large_files=no; break
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #define _LARGE_FILES 1
7829 #include <sys/types.h>
7830 /* Check that off_t can represent 2**63 - 1 correctly.
7831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7832 since some C++ compilers masquerading as C compilers
7833 incorrectly reject 9223372036854775807. */
7834 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7836 && LARGE_OFF_T % 2147483647 == 1)
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 ac_cv_sys_large_files=1; break
7849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7850 ac_cv_sys_large_files=unknown
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7855 $as_echo "$ac_cv_sys_large_files" >&6; }
7856 case $ac_cv_sys_large_files in #(
7859 cat >>confdefs.h <<_ACEOF
7860 #define _LARGE_FILES $ac_cv_sys_large_files
7872 # Check whether --with-tar was given.
7873 if test "${with_tar+set}" = set; then :
7874 withval=$with_tar; _do_tar=$withval
7878 if test x$_do_tar != xno ; then
7880 if test x$_do_tar = x ; then
7881 # Extract the first word of ""tar"", so it can be a program name with args.
7882 set dummy "tar"; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_path_TAR+:} false; then :
7886 $as_echo_n "(cached) " >&6
7890 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 if test -n "$TAR"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7914 $as_echo "$TAR" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7921 _mytar=$ac_cv_path_TAR
7924 # Check if our tar is ustar format. If so, it's good. TODO: Add some
7925 # code to check various options, etc, to try and create ustar
7928 if test x$_mytar != x ; then
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $_mytar speaks USTAR" >&5
7930 $as_echo_n "checking whether $_mytar speaks USTAR... " >&6; }
7931 echo hithere > conftest.txt
7932 $_mytar -cf - conftest.txt | (dd skip=257 bs=1 count=5 2>/dev/null || cat) | grep ustar > /dev/null
7936 if test x$_tar_bad = x0 ; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7938 $as_echo "yes" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7946 if test x$_tar_bad = x0; then
7948 HAVE_USTAR_FALSE='#'
7957 # GNU AWK requires -n option to interpret "0xHH" as a number
7958 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7959 AWK_HEX_NUMBER_OPTION=''
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7961 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7963 AWK_HEX_NUMBER_OPTION='-n'
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7965 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7969 # We need to compile and run a program on the build machine. A
7970 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7971 # the AC archive is broken for autoconf 2.57. Given that there is no
7972 # newer version of that macro, we assume that it is also broken for
7973 # autoconf 2.61 and thus we use a simple but usually sufficient
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7976 $as_echo_n "checking for cc for build... " >&6; }
7977 if test "$cross_compiling" = "yes"; then
7978 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7980 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7983 $as_echo "$CC_FOR_BUILD" >&6; }
7986 # We need to call this macro because other pkg-config macros are
7995 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7996 if test -n "$ac_tool_prefix"; then
7997 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8002 $as_echo_n "(cached) " >&6
8006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8028 if test -n "$PKG_CONFIG"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8030 $as_echo "$PKG_CONFIG" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8038 if test -z "$ac_cv_path_PKG_CONFIG"; then
8039 ac_pt_PKG_CONFIG=$PKG_CONFIG
8040 # Extract the first word of "pkg-config", so it can be a program name with args.
8041 set dummy pkg-config; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 case $ac_pt_PKG_CONFIG in
8049 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8059 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8071 if test -n "$ac_pt_PKG_CONFIG"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8073 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8079 if test "x$ac_pt_PKG_CONFIG" = x; then
8082 case $cross_compiling:$ac_tool_warned in
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8086 ac_tool_warned=yes ;;
8088 PKG_CONFIG=$ac_pt_PKG_CONFIG
8091 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8095 if test -n "$PKG_CONFIG"; then
8096 _pkg_min_version=0.9.0
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8098 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8099 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 $as_echo "yes" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104 $as_echo "no" >&6; }
8112 have_dosish_system=no
8114 have_w32ce_system=no
8115 have_android_system=no
8116 use_simple_gettext=no
8119 require_pipe_to_unblock_pselect=yes
8122 # special stuff for Windoze NT
8123 ac_cv_have_dev_random=no
8125 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8128 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8130 have_dosish_system=yes
8133 require_pipe_to_unblock_pselect=no
8136 have_w32ce_system=yes
8140 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8145 use_simple_gettext=yes
8149 i?86-emx-os2 | i?86-*-os2*emx )
8150 # OS/2 with the EMX environment
8151 ac_cv_have_dev_random=no
8152 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8154 have_dosish_system=yes
8160 # DOS with the DJGPP environment
8161 ac_cv_have_dev_random=no
8162 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8164 have_dosish_system=yes
8170 if test -z "$GCC" ; then
8171 CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8175 if test -z "$GCC" ; then
8176 # Suppress all warnings
8177 # to get rid of the unsigned/signed char mismatch warnings.
8182 if test -z "$GCC" ; then
8183 # Use the newer compiler `-msg_disable ptrmismatch1' to
8184 # get rid of the unsigned/signed char mismatch warnings.
8185 # Using this may hide other pointer mismatch warnings, but
8186 # it at least lets other warning classes through
8187 CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8193 have_android_system=yes
8194 # Android is fully utf-8 and we do not want to use iconv to
8195 # keeps things simple
8201 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
8205 require_pipe_to_unblock_pselect=yes
8211 if test "$require_pipe_to_unblock_pselect" = yes; then
8213 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8217 if test "$have_dosish_system" = yes; then
8219 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8222 if test "$have_dosish_system" = yes; then
8223 HAVE_DOSISH_SYSTEM_TRUE=
8224 HAVE_DOSISH_SYSTEM_FALSE='#'
8226 HAVE_DOSISH_SYSTEM_TRUE='#'
8227 HAVE_DOSISH_SYSTEM_FALSE=
8231 if test x"$use_simple_gettext" = xyes; then
8232 USE_SIMPLE_GETTEXT_TRUE=
8233 USE_SIMPLE_GETTEXT_FALSE='#'
8235 USE_SIMPLE_GETTEXT_TRUE='#'
8236 USE_SIMPLE_GETTEXT_FALSE=
8240 if test "$have_w32_system" = yes; then
8242 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8244 if test "$have_w32ce_system" = yes; then
8246 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8250 if test "$have_w32_system" = yes; then
8251 HAVE_W32_SYSTEM_TRUE=
8252 HAVE_W32_SYSTEM_FALSE='#'
8254 HAVE_W32_SYSTEM_TRUE='#'
8255 HAVE_W32_SYSTEM_FALSE=
8258 if test "$have_w32ce_system" = yes; then
8259 HAVE_W32CE_SYSTEM_TRUE=
8260 HAVE_W32CE_SYSTEM_FALSE='#'
8262 HAVE_W32CE_SYSTEM_TRUE='#'
8263 HAVE_W32CE_SYSTEM_FALSE=
8267 if test "$have_android_system" = yes; then
8269 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8272 if test "$have_android_system" = yes; then
8273 HAVE_ANDROID_SYSTEM_TRUE=
8274 HAVE_ANDROID_SYSTEM_FALSE='#'
8276 HAVE_ANDROID_SYSTEM_TRUE='#'
8277 HAVE_ANDROID_SYSTEM_FALSE=
8282 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8284 cat >>confdefs.h <<_ACEOF
8285 #define EXEEXT "$EXEEXT"
8291 # Checks for libraries.
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8294 $as_echo "$as_me: checking for libraries" >&6;}
8298 # libgpg-error is a library with error codes shared between GnuPG
8302 gpg_error_config_prefix=""
8304 # Check whether --with-libgpg-error-prefix was given.
8305 if test "${with_libgpg_error_prefix+set}" = set; then :
8306 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8311 # Check whether --with-gpg-error-prefix was given.
8312 if test "${with_gpg_error_prefix+set}" = set; then :
8313 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8317 if test x"${GPG_ERROR_CONFIG}" = x ; then
8318 if test x"${gpg_error_config_prefix}" != x ; then
8319 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8321 case "${SYSROOT}" in
8323 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8324 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8331 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8337 # Extract the first word of "gpg-error-config", so it can be a program name with args.
8338 set dummy gpg-error-config; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 case $GPG_ERROR_CONFIG in
8346 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir=.
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8368 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8369 if test -n "$GPG_ERROR_CONFIG"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8371 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8378 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8380 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8382 if test "$GPG_ERROR_CONFIG" != "no" \
8383 && test -f "$GPG_ERROR_CONFIG" ; then
8384 req_major=`echo $min_gpg_error_version | \
8385 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8386 req_minor=`echo $min_gpg_error_version | \
8387 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8388 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
8389 major=`echo $gpg_error_config_version | \
8390 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8391 minor=`echo $gpg_error_config_version | \
8392 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8393 if test "$major" -gt "$req_major"; then
8396 if test "$major" -eq "$req_major"; then
8397 if test "$minor" -ge "$req_minor"; then
8403 if test $ok = yes; then
8404 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
8405 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
8406 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
8407 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8409 $as_echo "yes ($gpg_error_config_version)" >&6; }
8411 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
8412 if test x"$gpg_error_config_host" != xnone ; then
8413 if test x"$gpg_error_config_host" != x"$host" ; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: 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 $as_echo "$as_me: WARNING:
8424 *** The config script $GPG_ERROR_CONFIG was
8425 *** built for $gpg_error_config_host and thus may not match the
8426 *** used host $host.
8427 *** You may want to use the configure option --with-gpg-error-prefix
8428 *** to specify a matching config script or use \$SYSROOT.
8430 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8436 GPG_ERROR_MT_CFLAGS=""
8437 GPG_ERROR_MT_LIBS=""
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8450 # Libgcrypt is our generic crypto library
8454 # Check whether --with-libgcrypt-prefix was given.
8455 if test "${with_libgcrypt_prefix+set}" = set; then :
8456 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8458 libgcrypt_config_prefix=""
8461 if test x"${LIBGCRYPT_CONFIG}" = x ; then
8462 if test x"${libgcrypt_config_prefix}" != x ; then
8463 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8465 case "${SYSROOT}" in
8467 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8468 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8475 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8481 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8482 set dummy libgcrypt-config; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8486 $as_echo_n "(cached) " >&6
8488 case $LIBGCRYPT_CONFIG in
8490 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8512 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8513 if test -n "$LIBGCRYPT_CONFIG"; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8515 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8522 tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8523 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8524 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8525 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8528 min_libgcrypt_version="$tmp"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8532 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8534 if test "$LIBGCRYPT_CONFIG" != "no" ; then
8535 req_major=`echo $min_libgcrypt_version | \
8536 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8537 req_minor=`echo $min_libgcrypt_version | \
8538 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8539 req_micro=`echo $min_libgcrypt_version | \
8540 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8541 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8542 major=`echo $libgcrypt_config_version | \
8543 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8544 minor=`echo $libgcrypt_config_version | \
8545 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8546 micro=`echo $libgcrypt_config_version | \
8547 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8548 if test "$major" -gt "$req_major"; then
8551 if test "$major" -eq "$req_major"; then
8552 if test "$minor" -gt "$req_minor"; then
8555 if test "$minor" -eq "$req_minor"; then
8556 if test "$micro" -ge "$req_micro"; then
8564 if test $ok = yes; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8566 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8571 if test $ok = yes; then
8572 # If we have a recent libgcrypt, we should also check that the
8574 if test "$req_libgcrypt_api" -gt 0 ; then
8575 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8576 if test "$tmp" -gt 0 ; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8578 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8579 if test "$req_libgcrypt_api" -eq "$tmp" ; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8581 $as_echo "okay" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8585 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8590 if test $ok = yes; then
8591 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8592 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8594 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8595 if test x"$libgcrypt_config_host" != xnone ; then
8596 if test x"$libgcrypt_config_host" != x"$host" ; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: 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 $as_echo "$as_me: WARNING:
8607 *** The config script $LIBGCRYPT_CONFIG was
8608 *** built for $libgcrypt_config_host and thus may not match the
8609 *** used host $host.
8610 *** You may want to use the configure option --with-libgcrypt-prefix
8611 *** to specify a matching config script or use \$SYSROOT.
8613 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8627 # libassuan is used for IPC
8630 # Check whether --with-libassuan-prefix was given.
8631 if test "${with_libassuan_prefix+set}" = set; then :
8632 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8634 libassuan_config_prefix=""
8637 if test x$libassuan_config_prefix != x ; then
8638 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
8639 if test x${LIBASSUAN_CONFIG+set} != xset ; then
8640 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8643 # Extract the first word of "libassuan-config", so it can be a program name with args.
8644 set dummy libassuan-config; ac_word=$2
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646 $as_echo_n "checking for $ac_word... " >&6; }
8647 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 case $LIBASSUAN_CONFIG in
8652 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8674 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8675 if test -n "$LIBASSUAN_CONFIG"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8677 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8685 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8686 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8687 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8688 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8691 min_libassuan_version="$tmp"
8694 if test "$LIBASSUAN_CONFIG" != "no" ; then
8695 libassuan_version=`$LIBASSUAN_CONFIG --version`
8697 libassuan_version_major=`echo $libassuan_version | \
8698 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8699 libassuan_version_minor=`echo $libassuan_version | \
8700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8701 libassuan_version_micro=`echo $libassuan_version | \
8702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8705 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8707 if test "$LIBASSUAN_CONFIG" != "no" ; then
8709 req_major=`echo $min_libassuan_version | \
8710 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8711 req_minor=`echo $min_libassuan_version | \
8712 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8713 req_micro=`echo $min_libassuan_version | \
8714 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8715 if test "$libassuan_version_major" -gt "$req_major"; then
8718 if test "$libassuan_version_major" -eq "$req_major"; then
8719 if test "$libassuan_version_minor" -gt "$req_minor"; then
8722 if test "$libassuan_version_minor" -eq "$req_minor"; then
8723 if test "$libassuan_version_micro" -ge "$req_micro"; then
8733 if test $ok = yes; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_version)" >&5
8735 $as_echo "yes ($libassuan_version)" >&6; }
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738 $as_echo "no" >&6; }
8741 if test $ok = yes; then
8742 if test "$req_libassuan_api" -gt 0 ; then
8743 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8744 if test "$tmp" -gt 0 ; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8746 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8747 if test "$req_libassuan_api" -eq "$tmp" ; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8749 $as_echo "okay" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
8753 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
8760 if test $ok = yes; then
8761 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
8762 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
8772 if test "$have_libassuan" = "yes"; then
8774 cat >>confdefs.h <<_ACEOF
8775 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
8778 show_tor_support="only .onion"
8783 # libksba is our X.509 support library
8787 # Check whether --with-ksba-prefix was given.
8788 if test "${with_ksba_prefix+set}" = set; then :
8789 withval=$with_ksba_prefix; ksba_config_prefix="$withval"
8791 ksba_config_prefix=""
8794 if test x$ksba_config_prefix != x ; then
8795 ksba_config_args="$ksba_config_args --prefix=$ksba_config_prefix"
8796 if test x${KSBA_CONFIG+set} != xset ; then
8797 KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
8801 # Extract the first word of "ksba-config", so it can be a program name with args.
8802 set dummy ksba-config; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
8806 $as_echo_n "(cached) " >&6
8808 case $KSBA_CONFIG in
8810 ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 test -z "$as_dir" && as_dir=.
8818 for ac_exec_ext in '' $ac_executable_extensions; do
8819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820 ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
8832 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
8833 if test -n "$KSBA_CONFIG"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
8835 $as_echo "$KSBA_CONFIG" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8842 tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
8843 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8844 req_ksba_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
8845 min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8848 min_ksba_version="$tmp"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
8852 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
8854 if test "$KSBA_CONFIG" != "no" ; then
8855 req_major=`echo $min_ksba_version | \
8856 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8857 req_minor=`echo $min_ksba_version | \
8858 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8859 req_micro=`echo $min_ksba_version | \
8860 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8861 ksba_config_version=`$KSBA_CONFIG $ksba_config_args --version`
8862 major=`echo $ksba_config_version | \
8863 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8864 minor=`echo $ksba_config_version | \
8865 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8866 micro=`echo $ksba_config_version | \
8867 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8868 if test "$major" -gt "$req_major"; then
8871 if test "$major" -eq "$req_major"; then
8872 if test "$minor" -gt "$req_minor"; then
8875 if test "$minor" -eq "$req_minor"; then
8876 if test "$micro" -ge "$req_micro"; then
8884 if test $ok = yes; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
8886 $as_echo "yes ($ksba_config_version)" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8891 if test $ok = yes; then
8892 # Even if we have a recent libksba, we should check that the
8893 # API is compatible.
8894 if test "$req_ksba_api" -gt 0 ; then
8895 tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
8896 if test "$tmp" -gt 0 ; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
8898 $as_echo_n "checking KSBA API version... " >&6; }
8899 if test "$req_ksba_api" -eq "$tmp" ; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8901 $as_echo "okay" >&6; }
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ksba_api got=$tmp." >&5
8905 $as_echo "does not match. want=$req_ksba_api got=$tmp." >&6; }
8910 if test $ok = yes; then
8911 KSBA_CFLAGS=`$KSBA_CONFIG $ksba_config_args --cflags`
8912 KSBA_LIBS=`$KSBA_CONFIG $ksba_config_args --libs`
8914 libksba_config_host=`$LIBKSBA_CONFIG $ksba_config_args --host 2>/dev/null || echo none`
8915 if test x"$libksba_config_host" != xnone ; then
8916 if test x"$libksba_config_host" != x"$host" ; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: 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.
8925 $as_echo "$as_me: WARNING:
8927 *** The config script $LIBKSBA_CONFIG was
8928 *** built for $libksba_config_host and thus may not match the
8929 *** used host $host.
8930 *** You may want to use the configure option --with-libksba-prefix
8931 *** to specify a matching config script.
8946 # libusb allows us to use the integrated CCID smartcard reader driver.
8948 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
8949 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
8958 LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
8961 # FreeBSD has a native 1.0 compatible library by -lusb.
8971 if test x"$LIBUSB_NAME" != x ; then
8972 as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
8974 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
8975 if eval \${$as_ac_Lib+:} false; then :
8976 $as_echo_n "(cached) " >&6
8978 ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-l$LIBUSB_NAME $LIBS"
8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981 /* end confdefs.h. */
8983 /* Override any GCC internal prototype to avoid an error.
8984 Use char because int might match the return type of a GCC
8985 builtin and then its argument prototype would still apply. */
8989 char libusb_init ();
8993 return libusb_init ();
8998 if ac_fn_c_try_link "$LINENO"; then :
8999 eval "$as_ac_Lib=yes"
9001 eval "$as_ac_Lib=no"
9003 rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9007 eval ac_res=\$$as_ac_Lib
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9009 $as_echo "$ac_res" >&6; }
9010 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9011 LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9016 $as_echo_n "checking libusb include dir... " >&6; }
9017 usb_incdir_found="no"
9018 for _incdir in "" "/usr/include/libusb-1.0" \
9019 "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9020 _libusb_save_cppflags=$CPPFLAGS
9021 if test -n "${_incdir}"; then
9022 CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9028 if ac_fn_c_try_cpp "$LINENO"; then :
9029 usb_incdir=${_incdir}; usb_incdir_found="yes"
9031 rm -f conftest.err conftest.i conftest.$ac_ext
9032 CPPFLAGS=${_libusb_save_cppflags}
9033 if test "$usb_incdir_found" = "yes"; then
9037 if test "$usb_incdir_found" = "yes"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9039 $as_echo "${usb_incdir}" >&6; }
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9042 $as_echo "not found" >&6; }
9045 if test "$use_ccid_driver" != yes; then
9051 if test "$have_libusb" = yes; then
9053 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9056 if test x"$usb_incdir" = x; then
9059 LIBUSB_CPPFLAGS="-I${usb_incdir}"
9066 # Check whether it is necessary to link against libdl.
9067 # (For example to load libpcsclite)
9069 gnupg_dlopen_save_libs="$LIBS"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9072 $as_echo_n "checking for library containing dlopen... " >&6; }
9073 if ${ac_cv_search_dlopen+:} false; then :
9074 $as_echo_n "(cached) " >&6
9076 ac_func_search_save_LIBS=$LIBS
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9095 for ac_lib in '' c dl; do
9096 if test -z "$ac_lib"; then
9097 ac_res="none required"
9100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9102 if ac_fn_c_try_link "$LINENO"; then :
9103 ac_cv_search_dlopen=$ac_res
9105 rm -f core conftest.err conftest.$ac_objext \
9107 if ${ac_cv_search_dlopen+:} false; then :
9111 if ${ac_cv_search_dlopen+:} false; then :
9114 ac_cv_search_dlopen=no
9117 LIBS=$ac_func_search_save_LIBS
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9120 $as_echo "$ac_cv_search_dlopen" >&6; }
9121 ac_res=$ac_cv_search_dlopen
9122 if test "$ac_res" != no; then :
9123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9129 LIBS="$gnupg_dlopen_save_libs"
9134 # Check whether --enable-sqlite was given.
9135 if test "${enable_sqlite+set}" = set; then :
9136 enableval=$enable_sqlite; try_sqlite=$enableval
9142 if test x"$use_tofu" = xyes ; then
9143 if test x"$try_sqlite" = xyes ; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9147 $as_echo_n "checking for SQLITE3... " >&6; }
9149 if test -n "$SQLITE3_CFLAGS"; then
9150 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9151 elif test -n "$PKG_CONFIG"; then
9152 if test -n "$PKG_CONFIG" && \
9153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9154 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9157 test $ac_status = 0; }; then
9158 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9159 test "x$?" != "x0" && pkg_failed=yes
9166 if test -n "$SQLITE3_LIBS"; then
9167 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9168 elif test -n "$PKG_CONFIG"; then
9169 if test -n "$PKG_CONFIG" && \
9170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9171 ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174 test $ac_status = 0; }; then
9175 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9176 test "x$?" != "x0" && pkg_failed=yes
9186 if test $pkg_failed = yes; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9191 _pkg_short_errors_supported=yes
9193 _pkg_short_errors_supported=no
9195 if test $_pkg_short_errors_supported = yes; then
9196 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9198 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9200 # Put the nasty error message in config.log where it belongs
9201 echo "$SQLITE3_PKG_ERRORS" >&5
9204 elif test $pkg_failed = untried; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9209 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9210 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9212 $as_echo "yes" >&6; }
9216 if test "$have_sqlite" = "yes"; then
9222 tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9225 *** Building without SQLite support - TOFU disabled
9228 $as_echo "$as_me: WARNING:
9230 *** Building without SQLite support - TOFU disabled
9236 if test "$have_sqlite" = "yes"; then
9245 if test x"$use_tofu" = xyes ; then
9247 $as_echo "#define USE_TOFU 1" >>confdefs.h
9254 # Extract the first word of "encfs", so it can be a program name with args.
9255 set dummy encfs; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if ${ac_cv_path_ENCFS+:} false; then :
9259 $as_echo_n "(cached) " >&6
9263 ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 test -z "$as_dir" && as_dir=.
9271 for ac_exec_ext in '' $ac_executable_extensions; do
9272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9273 ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9285 ENCFS=$ac_cv_path_ENCFS
9286 if test -n "$ENCFS"; then
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9288 $as_echo "$ENCFS" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9296 cat >>confdefs.h <<_ACEOF
9297 #define ENCFS "${ENCFS}"
9301 # Extract the first word of "fusermount", so it can be a program name with args.
9302 set dummy fusermount; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9306 $as_echo_n "(cached) " >&6
9310 ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9320 ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9332 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9333 if test -n "$FUSERMOUNT"; then
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9335 $as_echo "$FUSERMOUNT" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9343 cat >>confdefs.h <<_ACEOF
9344 #define FUSERMOUNT "${FUSERMOUNT}"
9349 # Checks for dirmngr
9353 # Checks formerly used for symcryptrun.
9356 # libutil has openpty() and login_tty().
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
9358 $as_echo_n "checking for openpty in -lutil... " >&6; }
9359 if ${ac_cv_lib_util_openpty+:} false; then :
9360 $as_echo_n "(cached) " >&6
9362 ac_check_lib_save_LIBS=$LIBS
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 ac_cv_lib_util_openpty=yes
9385 ac_cv_lib_util_openpty=no
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
9392 $as_echo "$ac_cv_lib_util_openpty" >&6; }
9393 if test "x$ac_cv_lib_util_openpty" = xyes; then :
9394 LIBUTIL_LIBS="$LIBUTIL_LIBS -lutil"
9396 $as_echo "#define HAVE_LIBUTIL 1" >>confdefs.h
9403 # shred is used to clean temporary plain text files.
9404 # Extract the first word of "shred", so it can be a program name with args.
9405 set dummy shred; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_path_SHRED+:} false; then :
9409 $as_echo_n "(cached) " >&6
9413 ac_cv_path_SHRED="$SHRED" # Let the user override the test with a path.
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9423 ac_cv_path_SHRED="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 test -z "$ac_cv_path_SHRED" && ac_cv_path_SHRED="/usr/bin/shred"
9435 SHRED=$ac_cv_path_SHRED
9436 if test -n "$SHRED"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHRED" >&5
9438 $as_echo "$SHRED" >&6; }
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441 $as_echo "no" >&6; }
9446 cat >>confdefs.h <<_ACEOF
9447 #define SHRED "${SHRED}"
9453 # Check whether the nPth library is available
9456 # Check whether --with-npth-prefix was given.
9457 if test "${with_npth_prefix+set}" = set; then :
9458 withval=$with_npth_prefix; npth_config_prefix="$withval"
9460 npth_config_prefix=""
9463 if test "x$npth_config_prefix" != x ; then
9464 NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9466 # Extract the first word of "npth-config", so it can be a program name with args.
9467 set dummy npth-config; ac_word=$2
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469 $as_echo_n "checking for $ac_word... " >&6; }
9470 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9471 $as_echo_n "(cached) " >&6
9473 case $NPTH_CONFIG in
9475 ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482 test -z "$as_dir" && as_dir=.
9483 for ac_exec_ext in '' $ac_executable_extensions; do
9484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9485 ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9497 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9498 if test -n "$NPTH_CONFIG"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9500 $as_echo "$NPTH_CONFIG" >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9508 if test "$NPTH_CONFIG" != "no" ; then
9509 npth_version=`$NPTH_CONFIG --version`
9511 npth_version_major=`echo $npth_version | \
9512 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9513 npth_version_minor=`echo $npth_version | \
9514 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9516 tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9517 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9518 req_npth_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9519 min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9522 min_npth_version="$tmp"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9526 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9528 if test "$NPTH_CONFIG" != "no" ; then
9529 req_major=`echo $min_npth_version | \
9530 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9531 req_minor=`echo $min_npth_version | \
9532 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9533 if test "$npth_version_major" -gt "$req_major"; then
9536 if test "$npth_version_major" -eq "$req_major"; then
9537 if test "$npth_version_minor" -gt "$req_minor"; then
9540 if test "$npth_version_minor" -eq "$req_minor"; then
9547 if test $ok = yes; then
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9549 $as_echo "yes ($npth_version)" >&6; }
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9554 if test $ok = yes; then
9555 # If we have a recent NPTH, we should also check that the
9556 # API is compatible.
9557 if test "$req_npth_api" -gt 0 ; then
9558 tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9559 if test "$tmp" -gt 0 ; then
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9561 $as_echo_n "checking NPTH API version... " >&6; }
9562 if test "$req_npth_api" -eq "$tmp" ; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9564 $as_echo "okay" >&6; }
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9568 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9573 if test $ok = yes; then
9574 NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9575 NPTH_LIBS=`$NPTH_CONFIG --libs`
9577 npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9578 if test x"$npth_config_host" != xnone ; then
9579 if test x"$npth_config_host" != x"$host" ; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: 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.
9588 $as_echo "$as_me: WARNING:
9590 *** The config script $NPTH_CONFIG was
9591 *** built for $npth_config_host and thus may not match the
9592 *** used host $host.
9593 *** You may want to use the configure option --with-npth-prefix
9594 *** to specify a matching config script.
9606 if test "$have_npth" = "yes"; then
9608 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9611 $as_echo "#define USE_NPTH 1" >>confdefs.h
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9616 *** To support concurrent access for example in gpg-agent and the SCdaemon
9617 *** we need the support of the New Portable Threads Library.
9619 $as_echo "$as_me: WARNING:
9621 *** To support concurrent access for example in gpg-agent and the SCdaemon
9622 *** we need the support of the New Portable Threads Library.
9626 # Enable debugging of nPth
9628 # Check whether --enable-npth-debug was given.
9629 if test "${enable_npth_debug+set}" = set; then :
9630 enableval=$enable_npth_debug; if test $enableval = yes ; then
9632 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9641 # NTBTLS is our TLS library. If it is not available fallback to
9644 # Check whether --enable-ntbtls was given.
9645 if test "${enable_ntbtls+set}" = set; then :
9646 enableval=$enable_ntbtls; try_ntbtls=$enableval
9651 if test x"$try_ntbtls" = xyes ; then
9654 # Check whether --with-ntbtls-prefix was given.
9655 if test "${with_ntbtls_prefix+set}" = set; then :
9656 withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9658 ntbtls_config_prefix=""
9661 if test x"${NTBTLS_CONFIG}" = x ; then
9662 if test x"${ntbtls_config_prefix}" != x ; then
9663 NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9665 case "${SYSROOT}" in
9667 if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9668 NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9675 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9681 # Extract the first word of "ntbtls-config", so it can be a program name with args.
9682 set dummy ntbtls-config; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9686 $as_echo_n "(cached) " >&6
9688 case $NTBTLS_CONFIG in
9690 ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9700 ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9712 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9713 if test -n "$NTBTLS_CONFIG"; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9715 $as_echo "$NTBTLS_CONFIG" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9718 $as_echo "no" >&6; }
9722 tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9723 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9724 req_ntbtls_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
9725 min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9728 min_ntbtls_version="$tmp"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9732 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9734 if test "$NTBTLS_CONFIG" != "no" ; then
9735 req_major=`echo $min_ntbtls_version | \
9736 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9737 req_minor=`echo $min_ntbtls_version | \
9738 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9739 req_micro=`echo $min_ntbtls_version | \
9740 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9741 ntbtls_config_version=`$NTBTLS_CONFIG --version`
9742 major=`echo $ntbtls_config_version | \
9743 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9744 minor=`echo $ntbtls_config_version | \
9745 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9746 micro=`echo $ntbtls_config_version | \
9747 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9748 if test "$major" -gt "$req_major"; then
9751 if test "$major" -eq "$req_major"; then
9752 if test "$minor" -gt "$req_minor"; then
9755 if test "$minor" -eq "$req_minor"; then
9756 if test "$micro" -ge "$req_micro"; then
9764 if test $ok = yes; then
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9766 $as_echo "yes ($ntbtls_config_version)" >&6; }
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769 $as_echo "no" >&6; }
9771 if test $ok = yes; then
9772 # If we have a recent ntbtls, we should also check that the
9774 if test "$req_ntbtls_api" -gt 0 ; then
9775 tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9776 if test "$tmp" -gt 0 ; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9778 $as_echo_n "checking NTBTLS API version... " >&6; }
9779 if test "$req_ntbtls_api" -eq "$tmp" ; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9781 $as_echo "okay" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9785 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9790 if test $ok = yes; then
9791 NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
9792 NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
9794 ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
9795 if test x"$ntbtls_config_host" != xnone ; then
9796 if test x"$ntbtls_config_host" != x"$host" ; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: 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 $as_echo "$as_me: WARNING:
9807 *** The config script $NTBTLS_CONFIG was
9808 *** built for $ntbtls_config_host and thus may not match the
9809 *** used host $host.
9810 *** You may want to use the configure option --with-ntbtls-prefix
9811 *** to specify a matching config script or use \$SYSROOT.
9813 gpg_config_script_warn="$gpg_config_script_warn ntbtls"
9825 if test "$have_ntbtls" = yes ; then
9826 use_tls_library=ntbtls
9828 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
9831 # Check whether --enable-gnutls was given.
9832 if test "${enable_gnutls+set}" = set; then :
9833 enableval=$enable_gnutls; try_gnutls=$enableval
9838 if test x"$try_gnutls" = xyes ; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
9842 $as_echo_n "checking for LIBGNUTLS... " >&6; }
9844 if test -n "$LIBGNUTLS_CFLAGS"; then
9845 pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
9846 elif test -n "$PKG_CONFIG"; then
9847 if test -n "$PKG_CONFIG" && \
9848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9849 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9852 test $ac_status = 0; }; then
9853 pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9854 test "x$?" != "x0" && pkg_failed=yes
9861 if test -n "$LIBGNUTLS_LIBS"; then
9862 pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
9863 elif test -n "$PKG_CONFIG"; then
9864 if test -n "$PKG_CONFIG" && \
9865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
9866 ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
9868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869 test $ac_status = 0; }; then
9870 pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
9871 test "x$?" != "x0" && pkg_failed=yes
9881 if test $pkg_failed = yes; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9886 _pkg_short_errors_supported=yes
9888 _pkg_short_errors_supported=no
9890 if test $_pkg_short_errors_supported = yes; then
9891 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9893 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
9895 # Put the nasty error message in config.log where it belongs
9896 echo "$LIBGNUTLS_PKG_ERRORS" >&5
9899 elif test $pkg_failed = untried; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901 $as_echo "no" >&6; }
9904 LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
9905 LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9907 $as_echo "yes" >&6; }
9911 if test "$have_gnutls" = "yes"; then
9914 use_tls_library=gnutls
9916 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
9919 tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9922 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9925 $as_echo "$as_me: WARNING:
9927 *** Building without NTBTLS and GNUTLS - no TLS access to keyservers.
9934 # Allow to set a fixed trust store file for system provided certificates.
9937 # Check whether --with-default-trust-store-file was given.
9938 if test "${with_default_trust_store_file+set}" = set; then :
9939 withval=$with_default_trust_store_file; default_trust_store_file="$withval"
9941 default_trust_store_file=""
9944 if test x"$default_trust_store_file" = xno;then
9945 default_trust_store_file=""
9947 if test x"$default_trust_store_file" != x ; then
9949 cat >>confdefs.h <<_ACEOF
9950 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
9957 $as_echo "$as_me: checking for networking options" >&6;}
9960 # Must check for network library requirements before doing link tests
9961 # for ldap, for example. If ldap libs are static (or dynamic and without
9962 # ELF runtime link paths), then link will fail and LDAP support won't
9965 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9966 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9970 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9971 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9972 $as_echo_n "(cached) " >&6
9974 ac_check_lib_save_LIBS=$LIBS
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9979 /* Override any GCC internal prototype to avoid an error.
9980 Use char because int might match the return type of a GCC
9981 builtin and then its argument prototype would still apply. */
9985 char gethostbyname ();
9989 return gethostbyname ();
9994 if ac_fn_c_try_link "$LINENO"; then :
9995 ac_cv_lib_nsl_gethostbyname=yes
9997 ac_cv_lib_nsl_gethostbyname=no
9999 rm -f core conftest.err conftest.$ac_objext \
10000 conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10004 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10005 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10006 NETLIBS="-lnsl $NETLIBS"
10011 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10012 if test "x$ac_cv_func_setsockopt" = xyes; then :
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10016 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10017 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10018 $as_echo_n "(cached) " >&6
10020 ac_check_lib_save_LIBS=$LIBS
10021 LIBS="-lsocket $LIBS"
10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10031 char setsockopt ();
10035 return setsockopt ();
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 ac_cv_lib_socket_setsockopt=yes
10043 ac_cv_lib_socket_setsockopt=no
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10050 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10051 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10052 NETLIBS="-lsocket $NETLIBS"
10060 # Check standard resolver functions.
10062 if test "$build_dirmngr" = "yes"; then
10063 _dns_save_libs=$LIBS
10066 # Find the system resolver which can always be enabled with
10067 # the dirmngr option --standard-resolver.
10069 # the double underscore thing is a glibc-ism?
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10071 $as_echo_n "checking for library containing res_query... " >&6; }
10072 if ${ac_cv_search_res_query+:} false; then :
10073 $as_echo_n "(cached) " >&6
10075 ac_func_search_save_LIBS=$LIBS
10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10079 /* Override any GCC internal prototype to avoid an error.
10080 Use char because int might match the return type of a GCC
10081 builtin and then its argument prototype would still apply. */
10089 return res_query ();
10094 for ac_lib in '' resolv bind; do
10095 if test -z "$ac_lib"; then
10096 ac_res="none required"
10099 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10101 if ac_fn_c_try_link "$LINENO"; then :
10102 ac_cv_search_res_query=$ac_res
10104 rm -f core conftest.err conftest.$ac_objext \
10106 if ${ac_cv_search_res_query+:} false; then :
10110 if ${ac_cv_search_res_query+:} false; then :
10113 ac_cv_search_res_query=no
10115 rm conftest.$ac_ext
10116 LIBS=$ac_func_search_save_LIBS
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10119 $as_echo "$ac_cv_search_res_query" >&6; }
10120 ac_res=$ac_cv_search_res_query
10121 if test "$ac_res" != no; then :
10122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10126 $as_echo_n "checking for library containing __res_query... " >&6; }
10127 if ${ac_cv_search___res_query+:} false; then :
10128 $as_echo_n "(cached) " >&6
10130 ac_func_search_save_LIBS=$LIBS
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10140 char __res_query ();
10144 return __res_query ();
10149 for ac_lib in '' resolv bind; do
10150 if test -z "$ac_lib"; then
10151 ac_res="none required"
10154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10156 if ac_fn_c_try_link "$LINENO"; then :
10157 ac_cv_search___res_query=$ac_res
10159 rm -f core conftest.err conftest.$ac_objext \
10161 if ${ac_cv_search___res_query+:} false; then :
10165 if ${ac_cv_search___res_query+:} false; then :
10168 ac_cv_search___res_query=no
10170 rm conftest.$ac_ext
10171 LIBS=$ac_func_search_save_LIBS
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10174 $as_echo "$ac_cv_search___res_query" >&6; }
10175 ac_res=$ac_cv_search___res_query
10176 if test "$ac_res" != no; then :
10177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10186 $as_echo_n "checking for library containing dn_expand... " >&6; }
10187 if ${ac_cv_search_dn_expand+:} false; then :
10188 $as_echo_n "(cached) " >&6
10190 ac_func_search_save_LIBS=$LIBS
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10204 return dn_expand ();
10209 for ac_lib in '' resolv bind; do
10210 if test -z "$ac_lib"; then
10211 ac_res="none required"
10214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10216 if ac_fn_c_try_link "$LINENO"; then :
10217 ac_cv_search_dn_expand=$ac_res
10219 rm -f core conftest.err conftest.$ac_objext \
10221 if ${ac_cv_search_dn_expand+:} false; then :
10225 if ${ac_cv_search_dn_expand+:} false; then :
10228 ac_cv_search_dn_expand=no
10230 rm conftest.$ac_ext
10231 LIBS=$ac_func_search_save_LIBS
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10234 $as_echo "$ac_cv_search_dn_expand" >&6; }
10235 ac_res=$ac_cv_search_dn_expand
10236 if test "$ac_res" != no; then :
10237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10241 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10242 if ${ac_cv_search___dn_expand+:} false; then :
10243 $as_echo_n "(cached) " >&6
10245 ac_func_search_save_LIBS=$LIBS
10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10255 char __dn_expand ();
10259 return __dn_expand ();
10264 for ac_lib in '' resolv bind; do
10265 if test -z "$ac_lib"; then
10266 ac_res="none required"
10269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 ac_cv_search___dn_expand=$ac_res
10274 rm -f core conftest.err conftest.$ac_objext \
10276 if ${ac_cv_search___dn_expand+:} false; then :
10280 if ${ac_cv_search___dn_expand+:} false; then :
10283 ac_cv_search___dn_expand=no
10285 rm conftest.$ac_ext
10286 LIBS=$ac_func_search_save_LIBS
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10289 $as_echo "$ac_cv_search___dn_expand" >&6; }
10290 ac_res=$ac_cv_search___dn_expand
10291 if test "$ac_res" != no; then :
10292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10301 # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10302 # and for some reason fools us into believing we don't need
10303 # -lresolv even if we do. Since the test program checking for the
10304 # symbol does not include <resolv.h>, we need to check for the
10305 # renamed symbol explicitly.
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10307 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10308 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10309 $as_echo_n "(cached) " >&6
10311 ac_func_search_save_LIBS=$LIBS
10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10321 char res_9_dn_skipname ();
10325 return res_9_dn_skipname ();
10330 for ac_lib in '' resolv bind; do
10331 if test -z "$ac_lib"; then
10332 ac_res="none required"
10335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10337 if ac_fn_c_try_link "$LINENO"; then :
10338 ac_cv_search_res_9_dn_skipname=$ac_res
10340 rm -f core conftest.err conftest.$ac_objext \
10342 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10346 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10349 ac_cv_search_res_9_dn_skipname=no
10351 rm conftest.$ac_ext
10352 LIBS=$ac_func_search_save_LIBS
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10355 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10356 ac_res=$ac_cv_search_res_9_dn_skipname
10357 if test "$ac_res" != no; then :
10358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10362 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10363 if ${ac_cv_search_dn_skipname+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 ac_func_search_save_LIBS=$LIBS
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10376 char dn_skipname ();
10380 return dn_skipname ();
10385 for ac_lib in '' resolv bind; do
10386 if test -z "$ac_lib"; then
10387 ac_res="none required"
10390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10392 if ac_fn_c_try_link "$LINENO"; then :
10393 ac_cv_search_dn_skipname=$ac_res
10395 rm -f core conftest.err conftest.$ac_objext \
10397 if ${ac_cv_search_dn_skipname+:} false; then :
10401 if ${ac_cv_search_dn_skipname+:} false; then :
10404 ac_cv_search_dn_skipname=no
10406 rm conftest.$ac_ext
10407 LIBS=$ac_func_search_save_LIBS
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10410 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10411 ac_res=$ac_cv_search_dn_skipname
10412 if test "$ac_res" != no; then :
10413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10417 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10418 if ${ac_cv_search___dn_skipname+:} false; then :
10419 $as_echo_n "(cached) " >&6
10421 ac_func_search_save_LIBS=$LIBS
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10431 char __dn_skipname ();
10435 return __dn_skipname ();
10440 for ac_lib in '' resolv bind; do
10441 if test -z "$ac_lib"; then
10442 ac_res="none required"
10445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10447 if ac_fn_c_try_link "$LINENO"; then :
10448 ac_cv_search___dn_skipname=$ac_res
10450 rm -f core conftest.err conftest.$ac_objext \
10452 if ${ac_cv_search___dn_skipname+:} false; then :
10456 if ${ac_cv_search___dn_skipname+:} false; then :
10459 ac_cv_search___dn_skipname=no
10461 rm conftest.$ac_ext
10462 LIBS=$ac_func_search_save_LIBS
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10465 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10466 ac_res=$ac_cv_search___dn_skipname
10467 if test "$ac_res" != no; then :
10468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10479 if test x"$have_resolver" != xno ; then
10481 # Make sure that the BIND 4 resolver interface is workable before
10482 # enabling any code that calls it. At some point I'll rewrite the
10483 # code to use the BIND 8 resolver API.
10484 # We might also want to use libdns instead.
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10487 $as_echo_n "checking whether the resolver is usable... " >&6; }
10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10489 /* end confdefs.h. */
10490 #include <sys/types.h>
10491 #include <netinet/in.h>
10492 #include <arpa/nameser.h>
10493 #include <resolv.h>
10497 unsigned char answer[PACKETSZ];
10498 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10500 dn_expand(0,0,0,0,0);
10506 if ac_fn_c_try_link "$LINENO"; then :
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10514 $as_echo "$have_resolver" >&6; }
10516 # This is Apple-specific and somewhat bizarre as they changed the
10517 # define in bind 8 for some reason.
10519 if test x"$have_resolver" != xyes ; then
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10521 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #define BIND_8_COMPAT
10525 #include <sys/types.h>
10526 #include <netinet/in.h>
10527 #include <arpa/nameser.h>
10528 #include <resolv.h>
10532 unsigned char answer[PACKETSZ];
10533 res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10534 dn_skipname(0,0); dn_expand(0,0,0,0,0);
10540 if ac_fn_c_try_link "$LINENO"; then :
10541 have_resolver=yes ; need_compat=yes
10543 rm -f core conftest.err conftest.$ac_objext \
10544 conftest$ac_exeext conftest.$ac_ext
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10546 $as_echo "$have_resolver" >&6; }
10550 if test x"$have_resolver" = xyes ; then
10552 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10554 DNSLIBS="$DNSLIBS $LIBS"
10555 if test x"$need_compat" = xyes ; then
10557 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10560 if test "$use_libdns" = yes; then
10561 show_tor_support=yes
10563 elif test "$use_libdns" = yes; then
10564 show_tor_support=yes
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10568 *** The system's DNS resolver is not usable.
10569 *** Dirmngr functionality is limited.
10571 $as_echo "$as_me: WARNING:
10573 *** The system's DNS resolver is not usable.
10574 *** Dirmngr functionality is limited.
10576 show_tor_support="${show_tor_support} (no system resolver)"
10579 if test "$have_w32_system" = yes; then
10580 if test "$use_libdns" = yes; then
10581 DNSLIBS="$DNSLIBS -liphlpapi"
10585 LIBS=$_dns_save_libs
10594 # Note that running the check changes the variable
10595 # gnupg_have_ldap from "n/a" to "no" or "yes".
10597 # Check whether --enable-ldap was given.
10598 if test "${enable_ldap+set}" = set; then :
10599 enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10603 if test "$gnupg_have_ldap" != "no" ; then
10604 if test "$build_dirmngr" = "yes" ; then
10606 # Try and link a LDAP test program to weed out unusable LDAP
10607 # libraries. -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10608 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10609 # If all else fails, the user can play guess-the-dependency by using
10610 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10613 # Check whether --with-ldap was given.
10614 if test "${with_ldap+set}" = set; then :
10615 withval=$with_ldap; _ldap_with=$withval
10619 if test x$_ldap_with != xno ; then
10621 if test -d "$withval" ; then
10622 LDAP_CPPFLAGS="-I$withval/include"
10623 LDAP_LDFLAGS="-L$withval/lib"
10626 _ldap_save_cppflags=$CPPFLAGS
10627 CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10628 _ldap_save_ldflags=$LDFLAGS
10629 LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10631 for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10632 _ldap_save_libs=$LIBS
10633 LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10636 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10641 #include <winsock2.h>
10642 #include <winldap.h>
10650 ldap_open("foobar",1234);
10655 if ac_fn_c_try_link "$LINENO"; then :
10656 gnupg_cv_func_ldap_init=yes
10658 gnupg_cv_func_ldap_init=no
10660 rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10663 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10665 if test $gnupg_cv_func_ldap_init = no; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10667 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10675 ldap_open("foobar",1234);
10680 if ac_fn_c_try_link "$LINENO"; then :
10681 gnupg_cv_func_ldaplber_init=yes
10683 gnupg_cv_func_ldaplber_init=no
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10688 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10691 if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10693 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10697 if test "$gnupg_cv_func_ldap_init" = yes || \
10698 test "$gnupg_cv_func_ldaplber_init" = yes ; then
10699 LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10700 GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10701 gnupg_have_ldap=yes
10703 for ac_func in ldap_get_option ldap_set_option
10705 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10708 cat >>confdefs.h <<_ACEOF
10709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10715 # The extra test for ldap_start_tls_sA is for W32 because
10716 # that is the actual function in the library.
10717 for ac_func in ldap_start_tls_s ldap_start_tls_sA
10719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10721 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10722 cat >>confdefs.h <<_ACEOF
10723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730 if test "$ac_cv_func_ldap_get_option" != yes ; then
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10732 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10739 LDAP *ldap; ldap->ld_errno;
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 gnupg_cv_func_ldap_ld_errno=yes
10747 gnupg_cv_func_ldap_ld_errno=no
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10752 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10754 if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10756 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10762 LIBS=$_ldap_save_libs
10764 if test "$GPGKEYS_LDAP" != "" ; then break; fi
10771 CPPFLAGS=$_ldap_save_cppflags
10772 LDFLAGS=$_ldap_save_ldflags
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10776 $as_echo_n "checking for ber_free in -llber... " >&6; }
10777 if ${ac_cv_lib_lber_ber_free+:} false; then :
10778 $as_echo_n "(cached) " >&6
10780 ac_check_lib_save_LIBS=$LIBS
10781 LIBS="-llber $LIBS"
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10785 /* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10795 return ber_free ();
10800 if ac_fn_c_try_link "$LINENO"; then :
10801 ac_cv_lib_lber_ber_free=yes
10803 ac_cv_lib_lber_ber_free=no
10805 rm -f core conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
10810 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
10811 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
10812 LBER_LIBS="$LBER_LIBS -llber"
10814 $as_echo "#define HAVE_LBER 1" >>confdefs.h
10823 if test "$gnupg_have_ldap" = "no"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10826 *** Building without LDAP support.
10827 *** No CRL access or X.509 certificate search available.
10829 $as_echo "$as_me: WARNING:
10831 *** Building without LDAP support.
10832 *** No CRL access or X.509 certificate search available.
10836 if test "$gnupg_have_ldap" = yes; then
10844 if test "$gnupg_have_ldap" = yes ; then
10846 $as_echo "#define USE_LDAP 1" >>confdefs.h
10852 if test "$use_ldapwrapper" = yes; then
10854 $as_echo "#define USE_LDAPWRAPPER 1" >>confdefs.h
10857 if test "$use_ldapwrapper" = yes; then
10858 USE_LDAPWRAPPER_TRUE=
10859 USE_LDAPWRAPPER_FALSE='#'
10861 USE_LDAPWRAPPER_TRUE='#'
10862 USE_LDAPWRAPPER_FALSE=
10870 # Check for sendmail
10872 # This isn't necessarily sendmail itself, but anything that gives a
10873 # sendmail-ish interface to the outside world. That includes Exim,
10874 # Postfix, etc. Basically, anything that can handle "sendmail -t".
10876 # Check whether --with-mailprog was given.
10877 if test "${with_mailprog+set}" = set; then :
10878 withval=$with_mailprog;
10883 if test x"$with_mailprog" = xyes ; then
10884 # Extract the first word of "sendmail", so it can be a program name with args.
10885 set dummy sendmail; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_path_SENDMAIL+:} false; then :
10889 $as_echo_n "(cached) " >&6
10893 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
10896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
10898 for as_dir in $as_dummy
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
10905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 SENDMAIL=$ac_cv_path_SENDMAIL
10916 if test -n "$SENDMAIL"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
10918 $as_echo "$SENDMAIL" >&6; }
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 $as_echo "no" >&6; }
10925 elif test x"$with_mailprog" != xno ; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
10927 $as_echo_n "checking for a mail transport program... " >&6; }
10928 SENDMAIL=$with_mailprog
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
10931 $as_echo "$with_mailprog" >&6; }
10934 cat >>confdefs.h <<_ACEOF
10935 #define NAME_OF_SENDMAIL "$SENDMAIL"
10941 # Construct a printable name of the OS
10945 PRINTABLE_OS_NAME="W32CE"
10948 PRINTABLE_OS_NAME="MingW32"
10951 PRINTABLE_OS_NAME="Cygwin"
10953 i?86-emx-os2 | i?86-*-os2*emx )
10954 PRINTABLE_OS_NAME="OS/2"
10956 i?86-*-msdosdjgpp*)
10957 PRINTABLE_OS_NAME="MSDOS/DJGPP"
10961 PRINTABLE_OS_NAME="GNU/Linux"
10964 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
10968 cat >>confdefs.h <<_ACEOF
10969 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
10975 # Checking for iconv
10977 if test "$require_iconv" = yes; then
10979 if test "X$prefix" = "XNONE"; then
10980 acl_final_prefix="$ac_default_prefix"
10982 acl_final_prefix="$prefix"
10984 if test "X$exec_prefix" = "XNONE"; then
10985 acl_final_exec_prefix='${prefix}'
10987 acl_final_exec_prefix="$exec_prefix"
10989 acl_save_prefix="$prefix"
10990 prefix="$acl_final_prefix"
10991 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10992 prefix="$acl_save_prefix"
10995 # Check whether --with-gnu-ld was given.
10996 if test "${with_gnu_ld+set}" = set; then :
10997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11002 # Prepare PATH_SEPARATOR.
11003 # The user is always right.
11004 if test "${PATH_SEPARATOR+set}" != set; then
11005 echo "#! /bin/sh" >conf$$.sh
11006 echo "exit 0" >>conf$$.sh
11008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11016 if test "$GCC" = yes; then
11017 # Check if gcc -print-prog-name=ld gives a path.
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11019 $as_echo_n "checking for ld used by GCC... " >&6; }
11022 # gcc leaves a trailing carriage return which upsets mingw
11023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11028 # Accept absolute paths.
11029 [\\/]* | [A-Za-z]:[\\/]*)
11030 re_direlt='/[^/][^/]*/\.\./'
11031 # Canonicalize the path of ld
11032 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11033 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11034 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11036 test -z "$LD" && LD="$ac_prog"
11039 # If it fails, then pretend we aren't using GCC.
11043 # If it is relative, then search for the first ld in PATH.
11044 with_gnu_ld=unknown
11047 elif test "$with_gnu_ld" = yes; then
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11049 $as_echo_n "checking for GNU ld... " >&6; }
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11052 $as_echo_n "checking for non-GNU ld... " >&6; }
11054 if ${acl_cv_path_LD+:} false; then :
11055 $as_echo_n "(cached) " >&6
11057 if test -z "$LD"; then
11058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11059 for ac_dir in $PATH; do
11060 test -z "$ac_dir" && ac_dir=.
11061 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11062 acl_cv_path_LD="$ac_dir/$ac_prog"
11063 # Check to see if the program is GNU ld. I'd rather use --version,
11064 # but apparently some GNU ld's only accept -v.
11065 # Break only if it was the GNU/non-GNU ld that we prefer.
11066 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11067 *GNU* | *'with BFD'*)
11068 test "$with_gnu_ld" != no && break ;;
11070 test "$with_gnu_ld" != yes && break ;;
11076 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11080 LD="$acl_cv_path_LD"
11081 if test -n "$LD"; then
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11083 $as_echo "$LD" >&6; }
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086 $as_echo "no" >&6; }
11088 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11090 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11091 if ${acl_cv_prog_gnu_ld+:} false; then :
11092 $as_echo_n "(cached) " >&6
11094 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11095 case `$LD -v 2>&1 </dev/null` in
11096 *GNU* | *'with BFD'*)
11097 acl_cv_prog_gnu_ld=yes ;;
11099 acl_cv_prog_gnu_ld=no ;;
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11103 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11104 with_gnu_ld=$acl_cv_prog_gnu_ld
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11110 $as_echo_n "checking for shared library run path origin... " >&6; }
11111 if ${acl_cv_rpath+:} false; then :
11112 $as_echo_n "(cached) " >&6
11115 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11116 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11118 rm -f ./conftest.sh
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11123 $as_echo "$acl_cv_rpath" >&6; }
11125 acl_libext="$acl_cv_libext"
11126 acl_shlibext="$acl_cv_shlibext"
11127 acl_libname_spec="$acl_cv_libname_spec"
11128 acl_library_names_spec="$acl_cv_library_names_spec"
11129 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11130 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11131 acl_hardcode_direct="$acl_cv_hardcode_direct"
11132 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11133 # Check whether --enable-rpath was given.
11134 if test "${enable_rpath+set}" = set; then :
11135 enableval=$enable_rpath; :
11143 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11144 if test -n "$searchpath"; then
11145 acl_save_IFS="${IFS= }"; IFS=":"
11146 for searchdir in $searchpath; do
11147 if test -d "$searchdir"; then
11148 case "$searchdir" in
11149 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11150 *) searchdir=`cd "$searchdir" && pwd`
11151 case "$searchdir" in
11152 */lib64 ) acl_libdirstem=lib64 ;;
11157 IFS="$acl_save_IFS"
11170 acl_save_prefix="$prefix"
11171 prefix="$acl_final_prefix"
11172 acl_save_exec_prefix="$exec_prefix"
11173 exec_prefix="$acl_final_exec_prefix"
11175 eval additional_includedir=\"$includedir\"
11176 eval additional_libdir=\"$libdir\"
11178 exec_prefix="$acl_save_exec_prefix"
11179 prefix="$acl_save_prefix"
11182 # Check whether --with-libiconv-prefix was given.
11183 if test "${with_libiconv_prefix+set}" = set; then :
11184 withval=$with_libiconv_prefix;
11185 if test "X$withval" = "Xno"; then
11188 if test "X$withval" = "X"; then
11190 acl_save_prefix="$prefix"
11191 prefix="$acl_final_prefix"
11192 acl_save_exec_prefix="$exec_prefix"
11193 exec_prefix="$acl_final_exec_prefix"
11195 eval additional_includedir=\"$includedir\"
11196 eval additional_libdir=\"$libdir\"
11198 exec_prefix="$acl_save_exec_prefix"
11199 prefix="$acl_save_prefix"
11202 additional_includedir="$withval/include"
11203 additional_libdir="$withval/$acl_libdirstem"
11215 names_already_handled=
11216 names_next_round='iconv '
11217 while test -n "$names_next_round"; do
11218 names_this_round="$names_next_round"
11220 for name in $names_this_round; do
11222 for n in $names_already_handled; do
11223 if test "$n" = "$name"; then
11224 already_handled=yes
11228 if test -z "$already_handled"; then
11229 names_already_handled="$names_already_handled $name"
11230 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11231 eval value=\"\$HAVE_LIB$uppername\"
11232 if test -n "$value"; then
11233 if test "$value" = yes; then
11234 eval value=\"\$LIB$uppername\"
11235 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11236 eval value=\"\$LTLIB$uppername\"
11237 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11246 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11247 if test -n "$acl_shlibext"; then
11248 shrext=".$acl_shlibext" # typically: shrext=.so
11252 if test $use_additional = yes; then
11253 dir="$additional_libdir"
11254 if test -n "$acl_shlibext"; then
11255 if test -f "$dir/$libname$shrext"; then
11257 found_so="$dir/$libname$shrext"
11259 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11260 ver=`(cd "$dir" && \
11261 for f in "$libname$shrext".*; do echo "$f"; done \
11262 | sed -e "s,^$libname$shrext\\\\.,," \
11263 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11264 | sed 1q ) 2>/dev/null`
11265 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11267 found_so="$dir/$libname$shrext.$ver"
11270 eval library_names=\"$acl_library_names_spec\"
11271 for f in $library_names; do
11272 if test -f "$dir/$f"; then
11281 if test "X$found_dir" = "X"; then
11282 if test -f "$dir/$libname.$acl_libext"; then
11284 found_a="$dir/$libname.$acl_libext"
11287 if test "X$found_dir" != "X"; then
11288 if test -f "$dir/$libname.la"; then
11289 found_la="$dir/$libname.la"
11293 if test "X$found_dir" = "X"; then
11294 for x in $LDFLAGS $LTLIBICONV; do
11296 acl_save_prefix="$prefix"
11297 prefix="$acl_final_prefix"
11298 acl_save_exec_prefix="$exec_prefix"
11299 exec_prefix="$acl_final_exec_prefix"
11301 exec_prefix="$acl_save_exec_prefix"
11302 prefix="$acl_save_prefix"
11306 dir=`echo "X$x" | sed -e 's/^X-L//'`
11307 if test -n "$acl_shlibext"; then
11308 if test -f "$dir/$libname$shrext"; then
11310 found_so="$dir/$libname$shrext"
11312 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11313 ver=`(cd "$dir" && \
11314 for f in "$libname$shrext".*; do echo "$f"; done \
11315 | sed -e "s,^$libname$shrext\\\\.,," \
11316 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11317 | sed 1q ) 2>/dev/null`
11318 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11320 found_so="$dir/$libname$shrext.$ver"
11323 eval library_names=\"$acl_library_names_spec\"
11324 for f in $library_names; do
11325 if test -f "$dir/$f"; then
11334 if test "X$found_dir" = "X"; then
11335 if test -f "$dir/$libname.$acl_libext"; then
11337 found_a="$dir/$libname.$acl_libext"
11340 if test "X$found_dir" != "X"; then
11341 if test -f "$dir/$libname.la"; then
11342 found_la="$dir/$libname.la"
11347 if test "X$found_dir" != "X"; then
11352 if test "X$found_dir" != "X"; then
11353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11354 if test "X$found_so" != "X"; then
11355 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11356 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11359 for x in $ltrpathdirs; do
11360 if test "X$x" = "X$found_dir"; then
11365 if test -z "$haveit"; then
11366 ltrpathdirs="$ltrpathdirs $found_dir"
11368 if test "$acl_hardcode_direct" = yes; then
11369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11371 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11372 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11374 for x in $rpathdirs; do
11375 if test "X$x" = "X$found_dir"; then
11380 if test -z "$haveit"; then
11381 rpathdirs="$rpathdirs $found_dir"
11385 for x in $LDFLAGS $LIBICONV; do
11387 acl_save_prefix="$prefix"
11388 prefix="$acl_final_prefix"
11389 acl_save_exec_prefix="$exec_prefix"
11390 exec_prefix="$acl_final_exec_prefix"
11392 exec_prefix="$acl_save_exec_prefix"
11393 prefix="$acl_save_prefix"
11395 if test "X$x" = "X-L$found_dir"; then
11400 if test -z "$haveit"; then
11401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11403 if test "$acl_hardcode_minus_L" != no; then
11404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11406 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11412 if test "X$found_a" != "X"; then
11413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11415 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11418 additional_includedir=
11419 case "$found_dir" in
11420 */$acl_libdirstem | */$acl_libdirstem/)
11421 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11422 LIBICONV_PREFIX="$basedir"
11423 additional_includedir="$basedir/include"
11426 if test "X$additional_includedir" != "X"; then
11427 if test "X$additional_includedir" != "X/usr/include"; then
11429 if test "X$additional_includedir" = "X/usr/local/include"; then
11430 if test -n "$GCC"; then
11432 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11436 if test -z "$haveit"; then
11437 for x in $CPPFLAGS $INCICONV; do
11439 acl_save_prefix="$prefix"
11440 prefix="$acl_final_prefix"
11441 acl_save_exec_prefix="$exec_prefix"
11442 exec_prefix="$acl_final_exec_prefix"
11444 exec_prefix="$acl_save_exec_prefix"
11445 prefix="$acl_save_prefix"
11447 if test "X$x" = "X-I$additional_includedir"; then
11452 if test -z "$haveit"; then
11453 if test -d "$additional_includedir"; then
11454 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11460 if test -n "$found_la"; then
11461 save_libdir="$libdir"
11462 case "$found_la" in
11463 */* | *\\*) . "$found_la" ;;
11464 *) . "./$found_la" ;;
11466 libdir="$save_libdir"
11467 for dep in $dependency_libs; do
11470 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11471 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11473 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11474 if test -n "$GCC"; then
11476 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11480 if test -z "$haveit"; then
11482 for x in $LDFLAGS $LIBICONV; do
11484 acl_save_prefix="$prefix"
11485 prefix="$acl_final_prefix"
11486 acl_save_exec_prefix="$exec_prefix"
11487 exec_prefix="$acl_final_exec_prefix"
11489 exec_prefix="$acl_save_exec_prefix"
11490 prefix="$acl_save_prefix"
11492 if test "X$x" = "X-L$additional_libdir"; then
11497 if test -z "$haveit"; then
11498 if test -d "$additional_libdir"; then
11499 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11503 for x in $LDFLAGS $LTLIBICONV; do
11505 acl_save_prefix="$prefix"
11506 prefix="$acl_final_prefix"
11507 acl_save_exec_prefix="$exec_prefix"
11508 exec_prefix="$acl_final_exec_prefix"
11510 exec_prefix="$acl_save_exec_prefix"
11511 prefix="$acl_save_prefix"
11513 if test "X$x" = "X-L$additional_libdir"; then
11518 if test -z "$haveit"; then
11519 if test -d "$additional_libdir"; then
11520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11527 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11528 if test "$enable_rpath" != no; then
11530 for x in $rpathdirs; do
11531 if test "X$x" = "X$dir"; then
11536 if test -z "$haveit"; then
11537 rpathdirs="$rpathdirs $dir"
11540 for x in $ltrpathdirs; do
11541 if test "X$x" = "X$dir"; then
11546 if test -z "$haveit"; then
11547 ltrpathdirs="$ltrpathdirs $dir"
11552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11555 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11558 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11559 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11565 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11566 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11572 if test "X$rpathdirs" != "X"; then
11573 if test -n "$acl_hardcode_libdir_separator"; then
11575 for found_dir in $rpathdirs; do
11576 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11578 acl_save_libdir="$libdir"
11580 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11581 libdir="$acl_save_libdir"
11582 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11584 for found_dir in $rpathdirs; do
11585 acl_save_libdir="$libdir"
11586 libdir="$found_dir"
11587 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11588 libdir="$acl_save_libdir"
11589 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11593 if test "X$ltrpathdirs" != "X"; then
11594 for found_dir in $ltrpathdirs; do
11595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11605 am_save_CPPFLAGS="$CPPFLAGS"
11607 for element in $INCICONV; do
11609 for x in $CPPFLAGS; do
11611 acl_save_prefix="$prefix"
11612 prefix="$acl_final_prefix"
11613 acl_save_exec_prefix="$exec_prefix"
11614 exec_prefix="$acl_final_exec_prefix"
11616 exec_prefix="$acl_save_exec_prefix"
11617 prefix="$acl_save_prefix"
11619 if test "X$x" = "X$element"; then
11624 if test -z "$haveit"; then
11625 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11631 $as_echo_n "checking for iconv... " >&6; }
11632 if ${am_cv_func_iconv+:} false; then :
11633 $as_echo_n "(cached) " >&6
11636 am_cv_func_iconv="no, consider installing GNU libiconv"
11638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 #include <stdlib.h>
11647 iconv_t cd = iconv_open("","");
11648 iconv(cd,NULL,NULL,NULL,NULL);
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 am_cv_func_iconv=yes
11657 rm -f core conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11659 if test "$am_cv_func_iconv" != yes; then
11660 am_save_LIBS="$LIBS"
11661 LIBS="$LIBS $LIBICONV"
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11663 /* end confdefs.h. */
11665 #include <stdlib.h>
11671 iconv_t cd = iconv_open("","");
11672 iconv(cd,NULL,NULL,NULL,NULL);
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 am_cv_lib_iconv=yes
11680 am_cv_func_iconv=yes
11682 rm -f core conftest.err conftest.$ac_objext \
11683 conftest$ac_exeext conftest.$ac_ext
11684 LIBS="$am_save_LIBS"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11689 $as_echo "$am_cv_func_iconv" >&6; }
11690 if test "$am_cv_func_iconv" = yes; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11692 $as_echo_n "checking for working iconv... " >&6; }
11693 if ${am_cv_func_iconv_works+:} false; then :
11694 $as_echo_n "(cached) " >&6
11697 am_save_LIBS="$LIBS"
11698 if test $am_cv_lib_iconv = yes; then
11699 LIBS="$LIBS $LIBICONV"
11701 am_cv_func_iconv_works=no
11702 for ac_iconv_const in '' 'const'; do
11703 if test "$cross_compiling" = yes; then :
11705 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11706 *) am_cv_func_iconv_works="guessing yes" ;;
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11713 #include <string.h>
11715 #ifndef ICONV_CONST
11716 # define ICONV_CONST $ac_iconv_const
11723 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11726 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11727 if (cd_utf8_to_88591 != (iconv_t)(-1))
11729 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11731 ICONV_CONST char *inptr = input;
11732 size_t inbytesleft = strlen (input);
11733 char *outptr = buf;
11734 size_t outbytesleft = sizeof (buf);
11735 size_t res = iconv (cd_utf8_to_88591,
11736 &inptr, &inbytesleft,
11737 &outptr, &outbytesleft);
11740 iconv_close (cd_utf8_to_88591);
11743 /* Test against Solaris 10 bug: Failures are not distinguishable from
11744 successful returns. */
11746 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11747 if (cd_ascii_to_88591 != (iconv_t)(-1))
11749 static ICONV_CONST char input[] = "\263";
11751 ICONV_CONST char *inptr = input;
11752 size_t inbytesleft = strlen (input);
11753 char *outptr = buf;
11754 size_t outbytesleft = sizeof (buf);
11755 size_t res = iconv (cd_ascii_to_88591,
11756 &inptr, &inbytesleft,
11757 &outptr, &outbytesleft);
11760 iconv_close (cd_ascii_to_88591);
11763 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11765 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11766 if (cd_88591_to_utf8 != (iconv_t)(-1))
11768 static ICONV_CONST char input[] = "\304";
11769 static char buf[2] = { (char)0xDE, (char)0xAD };
11770 ICONV_CONST char *inptr = input;
11771 size_t inbytesleft = 1;
11772 char *outptr = buf;
11773 size_t outbytesleft = 1;
11774 size_t res = iconv (cd_88591_to_utf8,
11775 &inptr, &inbytesleft,
11776 &outptr, &outbytesleft);
11777 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11779 iconv_close (cd_88591_to_utf8);
11782 #if 0 /* This bug could be worked around by the caller. */
11783 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11785 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11786 if (cd_88591_to_utf8 != (iconv_t)(-1))
11788 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11790 ICONV_CONST char *inptr = input;
11791 size_t inbytesleft = strlen (input);
11792 char *outptr = buf;
11793 size_t outbytesleft = sizeof (buf);
11794 size_t res = iconv (cd_88591_to_utf8,
11795 &inptr, &inbytesleft,
11796 &outptr, &outbytesleft);
11799 iconv_close (cd_88591_to_utf8);
11803 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11806 /* Try standardized names. */
11807 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
11808 /* Try IRIX, OSF/1 names. */
11809 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
11810 /* Try AIX names. */
11811 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
11812 /* Try HP-UX names. */
11813 iconv_t cd4 = iconv_open ("utf8", "eucJP");
11814 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
11815 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
11817 if (cd1 != (iconv_t)(-1))
11819 if (cd2 != (iconv_t)(-1))
11821 if (cd3 != (iconv_t)(-1))
11823 if (cd4 != (iconv_t)(-1))
11832 if ac_fn_c_try_run "$LINENO"; then :
11833 am_cv_func_iconv_works=yes
11835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11836 conftest.$ac_objext conftest.beam conftest.$ac_ext
11839 test "$am_cv_func_iconv_works" = no || break
11841 LIBS="$am_save_LIBS"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11845 $as_echo "$am_cv_func_iconv_works" >&6; }
11846 case "$am_cv_func_iconv_works" in
11847 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11848 *) am_func_iconv=yes ;;
11851 am_func_iconv=no am_cv_lib_iconv=no
11853 if test "$am_func_iconv" = yes; then
11855 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11858 if test "$am_cv_lib_iconv" = yes; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11860 $as_echo_n "checking how to link with libiconv... " >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11862 $as_echo "$LIBICONV" >&6; }
11864 CPPFLAGS="$am_save_CPPFLAGS"
11871 if test "$am_cv_func_iconv" = yes; then
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11873 $as_echo_n "checking for iconv declaration... " >&6; }
11874 if ${am_cv_proto_iconv+:} false; then :
11875 $as_echo_n "(cached) " >&6
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11881 #include <stdlib.h>
11887 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
11888 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11901 if ac_fn_c_try_compile "$LINENO"; then :
11902 am_cv_proto_iconv_arg1=""
11904 am_cv_proto_iconv_arg1="const"
11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11907 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);"
11910 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
11912 $am_cv_proto_iconv" >&5
11914 $am_cv_proto_iconv" >&6; }
11916 am_cv_proto_iconv_arg1=""
11919 cat >>confdefs.h <<_ACEOF
11920 #define ICONV_CONST $am_cv_proto_iconv_arg1
11934 # Check for gettext
11936 # This is "GNU gnupg" - The project-id script from gettext
11937 # needs this string
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
11940 $as_echo "$as_me: checking for gettext" >&6;}
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11943 $as_echo_n "checking whether NLS is requested... " >&6; }
11944 # Check whether --enable-nls was given.
11945 if test "${enable_nls+set}" = set; then :
11946 enableval=$enable_nls; USE_NLS=$enableval
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11952 $as_echo "$USE_NLS" >&6; }
11957 GETTEXT_MACRO_VERSION=0.17
11962 # Prepare PATH_SEPARATOR.
11963 # The user is always right.
11964 if test "${PATH_SEPARATOR+set}" != set; then
11965 echo "#! /bin/sh" >conf$$.sh
11966 echo "exit 0" >>conf$$.sh
11968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11976 # Find out how to test for executable files. Don't use a zero-byte file,
11977 # as systems may use methods other than mode bits to determine executability.
11978 cat >conf$$.file <<_ASEOF
11982 chmod +x conf$$.file
11983 if test -x conf$$.file >/dev/null 2>&1; then
11984 ac_executable_p="test -x"
11986 ac_executable_p="test -f"
11990 # Extract the first word of "msgfmt", so it can be a program name with args.
11991 set dummy msgfmt; ac_word=$2
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11993 $as_echo_n "checking for $ac_word... " >&6; }
11994 if ${ac_cv_path_MSGFMT+:} false; then :
11995 $as_echo_n "(cached) " >&6
11999 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12002 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12003 for ac_dir in $PATH; do
12005 test -z "$ac_dir" && ac_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12008 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12009 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12010 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12011 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12018 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12022 MSGFMT="$ac_cv_path_MSGFMT"
12023 if test "$MSGFMT" != ":"; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12025 $as_echo "$MSGFMT" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028 $as_echo "no" >&6; }
12031 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12032 set dummy gmsgfmt; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_path_GMSGFMT+:} false; then :
12036 $as_echo_n "(cached) " >&6
12040 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12044 for as_dir in $PATH
12047 test -z "$as_dir" && as_dir=.
12048 for ac_exec_ext in '' $ac_executable_extensions; do
12049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12050 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12058 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12062 GMSGFMT=$ac_cv_path_GMSGFMT
12063 if test -n "$GMSGFMT"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12065 $as_echo "$GMSGFMT" >&6; }
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12073 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12074 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12075 *) MSGFMT_015=$MSGFMT ;;
12078 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12079 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12080 *) GMSGFMT_015=$GMSGFMT ;;
12085 # Prepare PATH_SEPARATOR.
12086 # The user is always right.
12087 if test "${PATH_SEPARATOR+set}" != set; then
12088 echo "#! /bin/sh" >conf$$.sh
12089 echo "exit 0" >>conf$$.sh
12091 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12099 # Find out how to test for executable files. Don't use a zero-byte file,
12100 # as systems may use methods other than mode bits to determine executability.
12101 cat >conf$$.file <<_ASEOF
12105 chmod +x conf$$.file
12106 if test -x conf$$.file >/dev/null 2>&1; then
12107 ac_executable_p="test -x"
12109 ac_executable_p="test -f"
12113 # Extract the first word of "xgettext", so it can be a program name with args.
12114 set dummy xgettext; ac_word=$2
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12116 $as_echo_n "checking for $ac_word... " >&6; }
12117 if ${ac_cv_path_XGETTEXT+:} false; then :
12118 $as_echo_n "(cached) " >&6
12120 case "$XGETTEXT" in
12122 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12125 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12126 for ac_dir in $PATH; do
12128 test -z "$ac_dir" && ac_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12131 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12132 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12133 (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
12134 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12141 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12145 XGETTEXT="$ac_cv_path_XGETTEXT"
12146 if test "$XGETTEXT" != ":"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12148 $as_echo "$XGETTEXT" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151 $as_echo "no" >&6; }
12156 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12157 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12158 *) XGETTEXT_015=$XGETTEXT ;;
12163 # Prepare PATH_SEPARATOR.
12164 # The user is always right.
12165 if test "${PATH_SEPARATOR+set}" != set; then
12166 echo "#! /bin/sh" >conf$$.sh
12167 echo "exit 0" >>conf$$.sh
12169 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12177 # Find out how to test for executable files. Don't use a zero-byte file,
12178 # as systems may use methods other than mode bits to determine executability.
12179 cat >conf$$.file <<_ASEOF
12183 chmod +x conf$$.file
12184 if test -x conf$$.file >/dev/null 2>&1; then
12185 ac_executable_p="test -x"
12187 ac_executable_p="test -f"
12191 # Extract the first word of "msgmerge", so it can be a program name with args.
12192 set dummy msgmerge; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_path_MSGMERGE+:} false; then :
12196 $as_echo_n "(cached) " >&6
12198 case "$MSGMERGE" in
12200 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12203 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12204 for ac_dir in $PATH; do
12206 test -z "$ac_dir" && ac_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12209 echo "$as_me: trying $ac_dir/$ac_word..." >&5
12210 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12211 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12218 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12222 MSGMERGE="$ac_cv_path_MSGMERGE"
12223 if test "$MSGMERGE" != ":"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12225 $as_echo "$MSGMERGE" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12232 test -n "$localedir" || localedir='${datadir}/locale'
12235 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12238 ac_config_commands="$ac_config_commands po-directories"
12242 if test "$try_gettext" = yes; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12267 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12268 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12269 $as_echo_n "(cached) " >&6
12271 gt_save_LIBS="$LIBS"
12272 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 #include <CoreFoundation/CFPreferences.h>
12279 CFPreferencesCopyAppValue(NULL, NULL)
12284 if ac_fn_c_try_link "$LINENO"; then :
12285 gt_cv_func_CFPreferencesCopyAppValue=yes
12287 gt_cv_func_CFPreferencesCopyAppValue=no
12289 rm -f core conftest.err conftest.$ac_objext \
12290 conftest$ac_exeext conftest.$ac_ext
12291 LIBS="$gt_save_LIBS"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12294 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12295 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12297 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12301 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12302 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 gt_save_LIBS="$LIBS"
12306 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 #include <CoreFoundation/CFLocale.h>
12313 CFLocaleCopyCurrent();
12318 if ac_fn_c_try_link "$LINENO"; then :
12319 gt_cv_func_CFLocaleCopyCurrent=yes
12321 gt_cv_func_CFLocaleCopyCurrent=no
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS="$gt_save_LIBS"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12328 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12329 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12331 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12335 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12336 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12348 case " $gt_needs " in
12349 *" need-formatstring-macros "*) gt_api_version=3 ;;
12350 *" need-ngettext "*) gt_api_version=2 ;;
12351 *) gt_api_version=1 ;;
12353 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12354 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12356 if test "$USE_NLS" = "yes"; then
12357 gt_use_preinstalled_gnugettext=no
12360 if test $gt_api_version -ge 3; then
12361 gt_revision_test_code='
12362 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12363 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12365 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12368 gt_revision_test_code=
12370 if test $gt_api_version -ge 2; then
12371 gt_expression_test_code=' + * ngettext ("", "", 0)'
12373 gt_expression_test_code=
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12377 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12378 if eval \${$gt_func_gnugettext_libc+:} false; then :
12379 $as_echo_n "(cached) " >&6
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 #include <libintl.h>
12384 $gt_revision_test_code
12385 extern int _nl_msg_cat_cntr;
12386 extern int *_nl_domain_bindings;
12390 bindtextdomain ("", "");
12391 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
12396 if ac_fn_c_try_link "$LINENO"; then :
12397 eval "$gt_func_gnugettext_libc=yes"
12399 eval "$gt_func_gnugettext_libc=no"
12401 rm -f core conftest.err conftest.$ac_objext \
12402 conftest$ac_exeext conftest.$ac_ext
12404 eval ac_res=\$$gt_func_gnugettext_libc
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12406 $as_echo "$ac_res" >&6; }
12408 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12414 am_save_CPPFLAGS="$CPPFLAGS"
12416 for element in $INCICONV; do
12418 for x in $CPPFLAGS; do
12420 acl_save_prefix="$prefix"
12421 prefix="$acl_final_prefix"
12422 acl_save_exec_prefix="$exec_prefix"
12423 exec_prefix="$acl_final_exec_prefix"
12425 exec_prefix="$acl_save_exec_prefix"
12426 prefix="$acl_save_prefix"
12428 if test "X$x" = "X$element"; then
12433 if test -z "$haveit"; then
12434 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12440 $as_echo_n "checking for iconv... " >&6; }
12441 if ${am_cv_func_iconv+:} false; then :
12442 $as_echo_n "(cached) " >&6
12445 am_cv_func_iconv="no, consider installing GNU libiconv"
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12450 #include <stdlib.h>
12456 iconv_t cd = iconv_open("","");
12457 iconv(cd,NULL,NULL,NULL,NULL);
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 am_cv_func_iconv=yes
12466 rm -f core conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext conftest.$ac_ext
12468 if test "$am_cv_func_iconv" != yes; then
12469 am_save_LIBS="$LIBS"
12470 LIBS="$LIBS $LIBICONV"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 #include <stdlib.h>
12480 iconv_t cd = iconv_open("","");
12481 iconv(cd,NULL,NULL,NULL,NULL);
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 am_cv_lib_iconv=yes
12489 am_cv_func_iconv=yes
12491 rm -f core conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12493 LIBS="$am_save_LIBS"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12498 $as_echo "$am_cv_func_iconv" >&6; }
12499 if test "$am_cv_func_iconv" = yes; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12501 $as_echo_n "checking for working iconv... " >&6; }
12502 if ${am_cv_func_iconv_works+:} false; then :
12503 $as_echo_n "(cached) " >&6
12506 am_save_LIBS="$LIBS"
12507 if test $am_cv_lib_iconv = yes; then
12508 LIBS="$LIBS $LIBICONV"
12510 am_cv_func_iconv_works=no
12511 for ac_iconv_const in '' 'const'; do
12512 if test "$cross_compiling" = yes; then :
12514 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12515 *) am_cv_func_iconv_works="guessing yes" ;;
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12522 #include <string.h>
12524 #ifndef ICONV_CONST
12525 # define ICONV_CONST $ac_iconv_const
12532 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12535 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12536 if (cd_utf8_to_88591 != (iconv_t)(-1))
12538 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12540 ICONV_CONST char *inptr = input;
12541 size_t inbytesleft = strlen (input);
12542 char *outptr = buf;
12543 size_t outbytesleft = sizeof (buf);
12544 size_t res = iconv (cd_utf8_to_88591,
12545 &inptr, &inbytesleft,
12546 &outptr, &outbytesleft);
12549 iconv_close (cd_utf8_to_88591);
12552 /* Test against Solaris 10 bug: Failures are not distinguishable from
12553 successful returns. */
12555 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12556 if (cd_ascii_to_88591 != (iconv_t)(-1))
12558 static ICONV_CONST char input[] = "\263";
12560 ICONV_CONST char *inptr = input;
12561 size_t inbytesleft = strlen (input);
12562 char *outptr = buf;
12563 size_t outbytesleft = sizeof (buf);
12564 size_t res = iconv (cd_ascii_to_88591,
12565 &inptr, &inbytesleft,
12566 &outptr, &outbytesleft);
12569 iconv_close (cd_ascii_to_88591);
12572 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
12574 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12575 if (cd_88591_to_utf8 != (iconv_t)(-1))
12577 static ICONV_CONST char input[] = "\304";
12578 static char buf[2] = { (char)0xDE, (char)0xAD };
12579 ICONV_CONST char *inptr = input;
12580 size_t inbytesleft = 1;
12581 char *outptr = buf;
12582 size_t outbytesleft = 1;
12583 size_t res = iconv (cd_88591_to_utf8,
12584 &inptr, &inbytesleft,
12585 &outptr, &outbytesleft);
12586 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12588 iconv_close (cd_88591_to_utf8);
12591 #if 0 /* This bug could be worked around by the caller. */
12592 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12594 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12595 if (cd_88591_to_utf8 != (iconv_t)(-1))
12597 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12599 ICONV_CONST char *inptr = input;
12600 size_t inbytesleft = strlen (input);
12601 char *outptr = buf;
12602 size_t outbytesleft = sizeof (buf);
12603 size_t res = iconv (cd_88591_to_utf8,
12604 &inptr, &inbytesleft,
12605 &outptr, &outbytesleft);
12608 iconv_close (cd_88591_to_utf8);
12612 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12615 /* Try standardized names. */
12616 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12617 /* Try IRIX, OSF/1 names. */
12618 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12619 /* Try AIX names. */
12620 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12621 /* Try HP-UX names. */
12622 iconv_t cd4 = iconv_open ("utf8", "eucJP");
12623 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12624 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12626 if (cd1 != (iconv_t)(-1))
12628 if (cd2 != (iconv_t)(-1))
12630 if (cd3 != (iconv_t)(-1))
12632 if (cd4 != (iconv_t)(-1))
12641 if ac_fn_c_try_run "$LINENO"; then :
12642 am_cv_func_iconv_works=yes
12644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12645 conftest.$ac_objext conftest.beam conftest.$ac_ext
12648 test "$am_cv_func_iconv_works" = no || break
12650 LIBS="$am_save_LIBS"
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12654 $as_echo "$am_cv_func_iconv_works" >&6; }
12655 case "$am_cv_func_iconv_works" in
12656 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12657 *) am_func_iconv=yes ;;
12660 am_func_iconv=no am_cv_lib_iconv=no
12662 if test "$am_func_iconv" = yes; then
12664 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12667 if test "$am_cv_lib_iconv" = yes; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12669 $as_echo_n "checking how to link with libiconv... " >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12671 $as_echo "$LIBICONV" >&6; }
12673 CPPFLAGS="$am_save_CPPFLAGS"
12687 acl_save_prefix="$prefix"
12688 prefix="$acl_final_prefix"
12689 acl_save_exec_prefix="$exec_prefix"
12690 exec_prefix="$acl_final_exec_prefix"
12692 eval additional_includedir=\"$includedir\"
12693 eval additional_libdir=\"$libdir\"
12695 exec_prefix="$acl_save_exec_prefix"
12696 prefix="$acl_save_prefix"
12699 # Check whether --with-libintl-prefix was given.
12700 if test "${with_libintl_prefix+set}" = set; then :
12701 withval=$with_libintl_prefix;
12702 if test "X$withval" = "Xno"; then
12705 if test "X$withval" = "X"; then
12707 acl_save_prefix="$prefix"
12708 prefix="$acl_final_prefix"
12709 acl_save_exec_prefix="$exec_prefix"
12710 exec_prefix="$acl_final_exec_prefix"
12712 eval additional_includedir=\"$includedir\"
12713 eval additional_libdir=\"$libdir\"
12715 exec_prefix="$acl_save_exec_prefix"
12716 prefix="$acl_save_prefix"
12719 additional_includedir="$withval/include"
12720 additional_libdir="$withval/$acl_libdirstem"
12732 names_already_handled=
12733 names_next_round='intl '
12734 while test -n "$names_next_round"; do
12735 names_this_round="$names_next_round"
12737 for name in $names_this_round; do
12739 for n in $names_already_handled; do
12740 if test "$n" = "$name"; then
12741 already_handled=yes
12745 if test -z "$already_handled"; then
12746 names_already_handled="$names_already_handled $name"
12747 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12748 eval value=\"\$HAVE_LIB$uppername\"
12749 if test -n "$value"; then
12750 if test "$value" = yes; then
12751 eval value=\"\$LIB$uppername\"
12752 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12753 eval value=\"\$LTLIB$uppername\"
12754 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12763 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12764 if test -n "$acl_shlibext"; then
12765 shrext=".$acl_shlibext" # typically: shrext=.so
12769 if test $use_additional = yes; then
12770 dir="$additional_libdir"
12771 if test -n "$acl_shlibext"; then
12772 if test -f "$dir/$libname$shrext"; then
12774 found_so="$dir/$libname$shrext"
12776 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12777 ver=`(cd "$dir" && \
12778 for f in "$libname$shrext".*; do echo "$f"; done \
12779 | sed -e "s,^$libname$shrext\\\\.,," \
12780 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12781 | sed 1q ) 2>/dev/null`
12782 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12784 found_so="$dir/$libname$shrext.$ver"
12787 eval library_names=\"$acl_library_names_spec\"
12788 for f in $library_names; do
12789 if test -f "$dir/$f"; then
12798 if test "X$found_dir" = "X"; then
12799 if test -f "$dir/$libname.$acl_libext"; then
12801 found_a="$dir/$libname.$acl_libext"
12804 if test "X$found_dir" != "X"; then
12805 if test -f "$dir/$libname.la"; then
12806 found_la="$dir/$libname.la"
12810 if test "X$found_dir" = "X"; then
12811 for x in $LDFLAGS $LTLIBINTL; do
12813 acl_save_prefix="$prefix"
12814 prefix="$acl_final_prefix"
12815 acl_save_exec_prefix="$exec_prefix"
12816 exec_prefix="$acl_final_exec_prefix"
12818 exec_prefix="$acl_save_exec_prefix"
12819 prefix="$acl_save_prefix"
12823 dir=`echo "X$x" | sed -e 's/^X-L//'`
12824 if test -n "$acl_shlibext"; then
12825 if test -f "$dir/$libname$shrext"; then
12827 found_so="$dir/$libname$shrext"
12829 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12830 ver=`(cd "$dir" && \
12831 for f in "$libname$shrext".*; do echo "$f"; done \
12832 | sed -e "s,^$libname$shrext\\\\.,," \
12833 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12834 | sed 1q ) 2>/dev/null`
12835 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12837 found_so="$dir/$libname$shrext.$ver"
12840 eval library_names=\"$acl_library_names_spec\"
12841 for f in $library_names; do
12842 if test -f "$dir/$f"; then
12851 if test "X$found_dir" = "X"; then
12852 if test -f "$dir/$libname.$acl_libext"; then
12854 found_a="$dir/$libname.$acl_libext"
12857 if test "X$found_dir" != "X"; then
12858 if test -f "$dir/$libname.la"; then
12859 found_la="$dir/$libname.la"
12864 if test "X$found_dir" != "X"; then
12869 if test "X$found_dir" != "X"; then
12870 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12871 if test "X$found_so" != "X"; then
12872 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
12873 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12876 for x in $ltrpathdirs; do
12877 if test "X$x" = "X$found_dir"; then
12882 if test -z "$haveit"; then
12883 ltrpathdirs="$ltrpathdirs $found_dir"
12885 if test "$acl_hardcode_direct" = yes; then
12886 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12888 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12889 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12891 for x in $rpathdirs; do
12892 if test "X$x" = "X$found_dir"; then
12897 if test -z "$haveit"; then
12898 rpathdirs="$rpathdirs $found_dir"
12902 for x in $LDFLAGS $LIBINTL; do
12904 acl_save_prefix="$prefix"
12905 prefix="$acl_final_prefix"
12906 acl_save_exec_prefix="$exec_prefix"
12907 exec_prefix="$acl_final_exec_prefix"
12909 exec_prefix="$acl_save_exec_prefix"
12910 prefix="$acl_save_prefix"
12912 if test "X$x" = "X-L$found_dir"; then
12917 if test -z "$haveit"; then
12918 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12920 if test "$acl_hardcode_minus_L" != no; then
12921 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12923 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12929 if test "X$found_a" != "X"; then
12930 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12932 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12935 additional_includedir=
12936 case "$found_dir" in
12937 */$acl_libdirstem | */$acl_libdirstem/)
12938 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12939 LIBINTL_PREFIX="$basedir"
12940 additional_includedir="$basedir/include"
12943 if test "X$additional_includedir" != "X"; then
12944 if test "X$additional_includedir" != "X/usr/include"; then
12946 if test "X$additional_includedir" = "X/usr/local/include"; then
12947 if test -n "$GCC"; then
12949 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12953 if test -z "$haveit"; then
12954 for x in $CPPFLAGS $INCINTL; do
12956 acl_save_prefix="$prefix"
12957 prefix="$acl_final_prefix"
12958 acl_save_exec_prefix="$exec_prefix"
12959 exec_prefix="$acl_final_exec_prefix"
12961 exec_prefix="$acl_save_exec_prefix"
12962 prefix="$acl_save_prefix"
12964 if test "X$x" = "X-I$additional_includedir"; then
12969 if test -z "$haveit"; then
12970 if test -d "$additional_includedir"; then
12971 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12977 if test -n "$found_la"; then
12978 save_libdir="$libdir"
12979 case "$found_la" in
12980 */* | *\\*) . "$found_la" ;;
12981 *) . "./$found_la" ;;
12983 libdir="$save_libdir"
12984 for dep in $dependency_libs; do
12987 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12988 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12990 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12991 if test -n "$GCC"; then
12993 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12997 if test -z "$haveit"; then
12999 for x in $LDFLAGS $LIBINTL; do
13001 acl_save_prefix="$prefix"
13002 prefix="$acl_final_prefix"
13003 acl_save_exec_prefix="$exec_prefix"
13004 exec_prefix="$acl_final_exec_prefix"
13006 exec_prefix="$acl_save_exec_prefix"
13007 prefix="$acl_save_prefix"
13009 if test "X$x" = "X-L$additional_libdir"; then
13014 if test -z "$haveit"; then
13015 if test -d "$additional_libdir"; then
13016 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13020 for x in $LDFLAGS $LTLIBINTL; do
13022 acl_save_prefix="$prefix"
13023 prefix="$acl_final_prefix"
13024 acl_save_exec_prefix="$exec_prefix"
13025 exec_prefix="$acl_final_exec_prefix"
13027 exec_prefix="$acl_save_exec_prefix"
13028 prefix="$acl_save_prefix"
13030 if test "X$x" = "X-L$additional_libdir"; then
13035 if test -z "$haveit"; then
13036 if test -d "$additional_libdir"; then
13037 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13044 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13045 if test "$enable_rpath" != no; then
13047 for x in $rpathdirs; do
13048 if test "X$x" = "X$dir"; then
13053 if test -z "$haveit"; then
13054 rpathdirs="$rpathdirs $dir"
13057 for x in $ltrpathdirs; do
13058 if test "X$x" = "X$dir"; then
13063 if test -z "$haveit"; then
13064 ltrpathdirs="$ltrpathdirs $dir"
13069 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13072 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13075 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13082 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13083 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13089 if test "X$rpathdirs" != "X"; then
13090 if test -n "$acl_hardcode_libdir_separator"; then
13092 for found_dir in $rpathdirs; do
13093 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13095 acl_save_libdir="$libdir"
13097 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13098 libdir="$acl_save_libdir"
13099 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13101 for found_dir in $rpathdirs; do
13102 acl_save_libdir="$libdir"
13103 libdir="$found_dir"
13104 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13105 libdir="$acl_save_libdir"
13106 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13110 if test "X$ltrpathdirs" != "X"; then
13111 for found_dir in $ltrpathdirs; do
13112 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13117 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13118 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13119 $as_echo_n "(cached) " >&6
13121 gt_save_CPPFLAGS="$CPPFLAGS"
13122 CPPFLAGS="$CPPFLAGS $INCINTL"
13123 gt_save_LIBS="$LIBS"
13124 LIBS="$LIBS $LIBINTL"
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #include <libintl.h>
13128 $gt_revision_test_code
13129 extern int _nl_msg_cat_cntr;
13134 const char *_nl_expand_alias (const char *);
13138 bindtextdomain ("", "");
13139 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 eval "$gt_func_gnugettext_libintl=yes"
13147 eval "$gt_func_gnugettext_libintl=no"
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13152 LIBS="$LIBS $LIBICONV"
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <libintl.h>
13156 $gt_revision_test_code
13157 extern int _nl_msg_cat_cntr;
13162 const char *_nl_expand_alias (const char *);
13166 bindtextdomain ("", "");
13167 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13172 if ac_fn_c_try_link "$LINENO"; then :
13173 LIBINTL="$LIBINTL $LIBICONV"
13174 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13175 eval "$gt_func_gnugettext_libintl=yes"
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13181 CPPFLAGS="$gt_save_CPPFLAGS"
13182 LIBS="$gt_save_LIBS"
13184 eval ac_res=\$$gt_func_gnugettext_libintl
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13186 $as_echo "$ac_res" >&6; }
13189 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13190 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13191 && test "$PACKAGE" != gettext-runtime \
13192 && test "$PACKAGE" != gettext-tools; }; then
13193 gt_use_preinstalled_gnugettext=yes
13202 if test -n "$INTL_MACOSX_LIBS"; then
13203 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13204 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13205 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13206 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13210 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13211 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13213 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13221 $as_echo_n "checking whether to use NLS... " >&6; }
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13223 $as_echo "$USE_NLS" >&6; }
13224 if test "$USE_NLS" = "yes"; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13226 $as_echo_n "checking where the gettext function comes from... " >&6; }
13227 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13228 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13229 gt_source="external libintl"
13234 gt_source="included intl directory"
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13237 $as_echo "$gt_source" >&6; }
13240 if test "$USE_NLS" = "yes"; then
13242 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13243 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13245 $as_echo_n "checking how to link with libintl... " >&6; }
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13247 $as_echo "$LIBINTL" >&6; }
13249 for element in $INCINTL; do
13251 for x in $CPPFLAGS; do
13253 acl_save_prefix="$prefix"
13254 prefix="$acl_final_prefix"
13255 acl_save_exec_prefix="$exec_prefix"
13256 exec_prefix="$acl_final_exec_prefix"
13258 exec_prefix="$acl_save_exec_prefix"
13259 prefix="$acl_save_prefix"
13261 if test "X$x" = "X$element"; then
13266 if test -z "$haveit"; then
13267 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13274 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13277 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13286 INTLLIBS="$LIBINTL"
13294 # gettext requires some extra checks. These really should be part of
13295 # the basic AM_GNU_GETTEXT macro. TODO: move other gettext-specific
13296 # function checks to here.
13298 for ac_func in strchr
13300 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13301 if test "x$ac_cv_func_strchr" = xyes; then :
13302 cat >>confdefs.h <<_ACEOF
13303 #define HAVE_STRCHR 1
13311 USE_INCLUDED_LIBINTL=no
13312 BUILD_INCLUDED_LIBINTL=no
13320 # We use HAVE_LANGINFO_CODESET in a couple of places.
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13323 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13324 if ${am_cv_langinfo_codeset+:} false; then :
13325 $as_echo_n "(cached) " >&6
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #include <langinfo.h>
13333 char* cs = nl_langinfo(CODESET); return !cs;
13338 if ac_fn_c_try_link "$LINENO"; then :
13339 am_cv_langinfo_codeset=yes
13341 am_cv_langinfo_codeset=no
13343 rm -f core conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13348 $as_echo "$am_cv_langinfo_codeset" >&6; }
13349 if test $am_cv_langinfo_codeset = yes; then
13351 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13356 # Checks required for our use of locales
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13359 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13360 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13361 $as_echo_n "(cached) " >&6
13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13365 #include <locale.h>
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 gt_cv_val_LC_MESSAGES=yes
13377 gt_cv_val_LC_MESSAGES=no
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13383 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13384 if test $gt_cv_val_LC_MESSAGES = yes; then
13386 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13395 if test "$selinux_support" = yes ; then
13397 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13403 # Checks for header files.
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13406 $as_echo "$as_me: checking for header files" >&6;}
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13408 $as_echo_n "checking for ANSI C header files... " >&6; }
13409 if ${ac_cv_header_stdc+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <stdlib.h>
13415 #include <stdarg.h>
13416 #include <string.h>
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 ac_cv_header_stdc=yes
13430 ac_cv_header_stdc=no
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13434 if test $ac_cv_header_stdc = yes; then
13435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <string.h>
13441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442 $EGREP "memchr" >/dev/null 2>&1; then :
13445 ac_cv_header_stdc=no
13451 if test $ac_cv_header_stdc = yes; then
13452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <stdlib.h>
13458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13459 $EGREP "free" >/dev/null 2>&1; then :
13462 ac_cv_header_stdc=no
13468 if test $ac_cv_header_stdc = yes; then
13469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13470 if test "$cross_compiling" = yes; then :
13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13474 /* end confdefs.h. */
13476 #include <stdlib.h>
13477 #if ((' ' & 0x0FF) == 0x020)
13478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13481 # define ISLOWER(c) \
13482 (('a' <= (c) && (c) <= 'i') \
13483 || ('j' <= (c) && (c) <= 'r') \
13484 || ('s' <= (c) && (c) <= 'z'))
13485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13493 for (i = 0; i < 256; i++)
13494 if (XOR (islower (i), ISLOWER (i))
13495 || toupper (i) != TOUPPER (i))
13500 if ac_fn_c_try_run "$LINENO"; then :
13503 ac_cv_header_stdc=no
13505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13506 conftest.$ac_objext conftest.beam conftest.$ac_ext
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13512 $as_echo "$ac_cv_header_stdc" >&6; }
13513 if test $ac_cv_header_stdc = yes; then
13515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13519 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13520 pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \
13521 stdint.h signal.h util.h libutil.h termios.h \
13522 ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13525 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13537 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13538 if ${ac_cv_header_time+:} false; then :
13539 $as_echo_n "(cached) " >&6
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <sys/types.h>
13544 #include <sys/time.h>
13550 if ((struct tm *) 0)
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557 ac_cv_header_time=yes
13559 ac_cv_header_time=no
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13564 $as_echo "$ac_cv_header_time" >&6; }
13565 if test $ac_cv_header_time = yes; then
13567 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13574 # Checks for typedefs, structures, and compiler characteristics.
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13577 $as_echo "$as_me: checking for system characteristics" >&6;}
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13579 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13580 if ${ac_cv_c_const+:} false; then :
13581 $as_echo_n "(cached) " >&6
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13590 #ifndef __cplusplus
13591 /* Ultrix mips cc rejects this sort of thing. */
13592 typedef int charset[2];
13593 const charset cs = { 0, 0 };
13594 /* SunOS 4.1.1 cc rejects this. */
13595 char const *const *pcpcc;
13597 /* NEC SVR4.0.2 mips cc rejects this. */
13598 struct point {int x, y;};
13599 static struct point const zero = {0,0};
13600 /* AIX XL C 1.02.0.0 rejects this.
13601 It does not let you subtract one const X* pointer from another in
13602 an arm of an if-expression whose if-part is not a constant
13604 const char *g = "string";
13605 pcpcc = &g + (g ? g-g : 0);
13606 /* HPUX 7.0 cc rejects these. */
13608 ppc = (char**) pcpcc;
13609 pcpcc = (char const *const *) ppc;
13610 { /* SCO 3.2v4 cc rejects this sort of thing. */
13613 char const *s = 0 ? (char *) 0 : (char const *) 0;
13618 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13619 int x[] = {25, 17};
13620 const int *foo = &x[0];
13623 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13624 typedef const int *iptr;
13628 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13629 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13630 struct s { int j; const int *ap[3]; } bx;
13631 struct s *b = &bx; b->j = 5;
13633 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13634 const int foo = 10;
13635 if (!foo) return 0;
13637 return !cs[0] && !zero.x;
13644 if ac_fn_c_try_compile "$LINENO"; then :
13649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13652 $as_echo "$ac_cv_c_const" >&6; }
13653 if test $ac_cv_c_const = no; then
13655 $as_echo "#define const /**/" >>confdefs.h
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13660 $as_echo_n "checking for inline... " >&6; }
13661 if ${ac_cv_c_inline+:} false; then :
13662 $as_echo_n "(cached) " >&6
13665 for ac_kw in inline __inline__ __inline; do
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13668 #ifndef __cplusplus
13670 static $ac_kw foo_t static_foo () {return 0; }
13671 $ac_kw foo_t foo () {return 0; }
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 ac_cv_c_inline=$ac_kw
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679 test "$ac_cv_c_inline" != no && break
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13684 $as_echo "$ac_cv_c_inline" >&6; }
13686 case $ac_cv_c_inline in
13689 case $ac_cv_c_inline in
13691 *) ac_val=$ac_cv_c_inline;;
13693 cat >>confdefs.h <<_ACEOF
13694 #ifndef __cplusplus
13695 #define inline $ac_val
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13702 $as_echo_n "checking for working volatile... " >&6; }
13703 if ${ac_cv_c_volatile+:} false; then :
13704 $as_echo_n "(cached) " >&6
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13714 int * volatile y = (int *) 0;
13720 if ac_fn_c_try_compile "$LINENO"; then :
13721 ac_cv_c_volatile=yes
13723 ac_cv_c_volatile=no
13725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13728 $as_echo "$ac_cv_c_volatile" >&6; }
13729 if test $ac_cv_c_volatile = no; then
13731 $as_echo "#define volatile /**/" >>confdefs.h
13735 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13736 if test "x$ac_cv_type_size_t" = xyes; then :
13740 cat >>confdefs.h <<_ACEOF
13741 #define size_t unsigned int
13746 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13747 if test "x$ac_cv_type_mode_t" = xyes; then :
13751 cat >>confdefs.h <<_ACEOF
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13758 $as_echo_n "checking return type of signal handlers... " >&6; }
13759 if ${ac_cv_type_signal+:} false; then :
13760 $as_echo_n "(cached) " >&6
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13764 #include <sys/types.h>
13765 #include <signal.h>
13770 return *(signal (0, 0)) (0) == 1;
13775 if ac_fn_c_try_compile "$LINENO"; then :
13776 ac_cv_type_signal=int
13778 ac_cv_type_signal=void
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13783 $as_echo "$ac_cv_type_signal" >&6; }
13785 cat >>confdefs.h <<_ACEOF
13786 #define RETSIGTYPE $ac_cv_type_signal
13790 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13791 /* NetBSD declares sys_siglist in unistd.h. */
13792 #ifdef HAVE_UNISTD_H
13793 # include <unistd.h>
13797 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13812 for ac_header in $ac_header_list
13814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13818 cat >>confdefs.h <<_ACEOF
13819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13830 if test $ac_cv_header_sys_socket_h = yes; then
13833 for ac_header in winsock2.h ws2tcpip.h
13835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13836 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13838 cat >>confdefs.h <<_ACEOF
13839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13846 SYS_SOCKET_H='sys/socket.h'
13850 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13851 #if HAVE_SYS_SOCKET_H
13852 # include <sys/socket.h>
13853 #elif HAVE_WS2TCPIP_H
13854 # include <ws2tcpip.h>
13857 if test "x$ac_cv_type_socklen_t" = xyes; then :
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13861 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13862 if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
13863 $as_echo_n "(cached) " >&6
13865 # Systems have either "struct sockaddr *" or
13866 # "void *" as the second argument to getpeername
13867 gl_cv_socklen_t_equiv=
13868 for arg2 in "struct sockaddr" void; do
13869 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 #include <sys/types.h>
13873 #include <sys/socket.h>
13875 int getpeername (int, $arg2 *, $t *);
13880 getpeername (0, 0, &len);
13885 if ac_fn_c_try_compile "$LINENO"; then :
13886 gl_cv_socklen_t_equiv="$t"
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 test "$gl_cv_socklen_t_equiv" != "" && break
13891 test "$gl_cv_socklen_t_equiv" != "" && break
13896 if test "$gl_cv_socklen_t_equiv" = ""; then
13897 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
13900 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
13902 cat >>confdefs.h <<_ACEOF
13903 #define socklen_t $gl_cv_socklen_t_equiv
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
13910 $as_echo_n "checking for library containing inet_addr... " >&6; }
13911 if ${ac_cv_search_inet_addr+:} false; then :
13912 $as_echo_n "(cached) " >&6
13914 ac_func_search_save_LIBS=$LIBS
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13918 /* Override any GCC internal prototype to avoid an error.
13919 Use char because int might match the return type of a GCC
13920 builtin and then its argument prototype would still apply. */
13928 return inet_addr ();
13933 for ac_lib in '' nsl; do
13934 if test -z "$ac_lib"; then
13935 ac_res="none required"
13938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13940 if ac_fn_c_try_link "$LINENO"; then :
13941 ac_cv_search_inet_addr=$ac_res
13943 rm -f core conftest.err conftest.$ac_objext \
13945 if ${ac_cv_search_inet_addr+:} false; then :
13949 if ${ac_cv_search_inet_addr+:} false; then :
13952 ac_cv_search_inet_addr=no
13954 rm conftest.$ac_ext
13955 LIBS=$ac_func_search_save_LIBS
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
13958 $as_echo "$ac_cv_search_inet_addr" >&6; }
13959 ac_res=$ac_cv_search_inet_addr
13960 if test "$ac_res" != no; then :
13961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13966 # Check whether --enable-endian-check was given.
13967 if test "${enable_endian_check+set}" = set; then :
13968 enableval=$enable_endian_check; endiancheck=$enableval
13974 if test x"$endiancheck" = xyes ; then
13976 tmp_assumed_endian=big
13978 if test "$cross_compiling" = yes; then
13979 case "$host_cpu" in
13981 tmp_assumed_endian=little
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
13988 $as_echo_n "checking endianness... " >&6; }
13989 if ${gnupg_cv_c_endian+:} false; then :
13990 $as_echo_n "(cached) " >&6
13992 gnupg_cv_c_endian=unknown
13993 # See if sys/param.h defines the BYTE_ORDER macro.
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996 #include <sys/types.h>
13997 #include <sys/param.h>
14002 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14003 bogus endian macros
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 # It does; now see whether it defined to BIG_ENDIAN or not.
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14013 #include <sys/types.h>
14014 #include <sys/param.h>
14019 #if BYTE_ORDER != BIG_ENDIAN
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 gnupg_cv_c_endian=big
14029 gnupg_cv_c_endian=little
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 if test "$gnupg_cv_c_endian" = unknown; then
14035 if test "$cross_compiling" = yes; then :
14036 gnupg_cv_c_endian=$tmp_assumed_endian
14037 tmp_assumed_warn=" (assumed)"
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h. */
14043 /* Are we little or big endian? From Harbison&Steele. */
14047 char c[sizeof (long)];
14050 exit (u.c[sizeof (long) - 1] == 1);
14053 if ac_fn_c_try_run "$LINENO"; then :
14054 gnupg_cv_c_endian=little
14056 gnupg_cv_c_endian=big
14058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14059 conftest.$ac_objext conftest.beam conftest.$ac_ext
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14067 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14068 if test "$gnupg_cv_c_endian" = little; then
14070 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14074 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14080 # fixme: we should get rid of the byte type
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
14082 $as_echo_n "checking for byte typedef... " >&6; }
14083 if ${gnupg_cv_typedef_byte+:} false; then :
14084 $as_echo_n "(cached) " >&6
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088 #define _GNU_SOURCE 1
14089 #include <stdlib.h>
14090 #include <sys/types.h>
14096 int a = sizeof(byte);
14102 if ac_fn_c_try_compile "$LINENO"; then :
14103 gnupg_cv_typedef_byte=yes
14105 gnupg_cv_typedef_byte=no
14107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
14111 $as_echo "$gnupg_cv_typedef_byte" >&6; }
14112 if test "$gnupg_cv_typedef_byte" = yes; then
14114 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
14119 $as_echo_n "checking for ushort typedef... " >&6; }
14120 if ${gnupg_cv_typedef_ushort+:} false; then :
14121 $as_echo_n "(cached) " >&6
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #define _GNU_SOURCE 1
14126 #include <stdlib.h>
14127 #include <sys/types.h>
14133 int a = sizeof(ushort);
14139 if ac_fn_c_try_compile "$LINENO"; then :
14140 gnupg_cv_typedef_ushort=yes
14142 gnupg_cv_typedef_ushort=no
14144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
14148 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
14149 if test "$gnupg_cv_typedef_ushort" = yes; then
14151 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
14156 $as_echo_n "checking for ulong typedef... " >&6; }
14157 if ${gnupg_cv_typedef_ulong+:} false; then :
14158 $as_echo_n "(cached) " >&6
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 #define _GNU_SOURCE 1
14163 #include <stdlib.h>
14164 #include <sys/types.h>
14170 int a = sizeof(ulong);
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 gnupg_cv_typedef_ulong=yes
14179 gnupg_cv_typedef_ulong=no
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
14185 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
14186 if test "$gnupg_cv_typedef_ulong" = yes; then
14188 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
14193 $as_echo_n "checking for u16 typedef... " >&6; }
14194 if ${gnupg_cv_typedef_u16+:} false; then :
14195 $as_echo_n "(cached) " >&6
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 #define _GNU_SOURCE 1
14200 #include <stdlib.h>
14201 #include <sys/types.h>
14207 int a = sizeof(u16);
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214 gnupg_cv_typedef_u16=yes
14216 gnupg_cv_typedef_u16=no
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
14222 $as_echo "$gnupg_cv_typedef_u16" >&6; }
14223 if test "$gnupg_cv_typedef_u16" = yes; then
14225 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
14230 $as_echo_n "checking for u32 typedef... " >&6; }
14231 if ${gnupg_cv_typedef_u32+:} false; then :
14232 $as_echo_n "(cached) " >&6
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 #define _GNU_SOURCE 1
14237 #include <stdlib.h>
14238 #include <sys/types.h>
14244 int a = sizeof(u32);
14250 if ac_fn_c_try_compile "$LINENO"; then :
14251 gnupg_cv_typedef_u32=yes
14253 gnupg_cv_typedef_u32=no
14255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
14259 $as_echo "$gnupg_cv_typedef_u32" >&6; }
14260 if test "$gnupg_cv_typedef_u32" = yes; then
14262 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
14267 # The cast to long int works around a bug in the HP C Compiler
14268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14270 # This bug is HP SR number 8606223364.
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14272 $as_echo_n "checking size of unsigned short... " >&6; }
14273 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14274 $as_echo_n "(cached) " >&6
14276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
14279 if test "$ac_cv_type_unsigned_short" = yes; then
14280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14282 as_fn_error 77 "cannot compute sizeof (unsigned short)
14283 See \`config.log' for more details" "$LINENO" 5; }
14285 ac_cv_sizeof_unsigned_short=0
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14291 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14295 cat >>confdefs.h <<_ACEOF
14296 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14300 # The cast to long int works around a bug in the HP C Compiler
14301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14303 # This bug is HP SR number 8606223364.
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14305 $as_echo_n "checking size of unsigned int... " >&6; }
14306 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14307 $as_echo_n "(cached) " >&6
14309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14312 if test "$ac_cv_type_unsigned_int" = yes; then
14313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14315 as_fn_error 77 "cannot compute sizeof (unsigned int)
14316 See \`config.log' for more details" "$LINENO" 5; }
14318 ac_cv_sizeof_unsigned_int=0
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14324 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14328 cat >>confdefs.h <<_ACEOF
14329 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14333 # The cast to long int works around a bug in the HP C Compiler
14334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14336 # This bug is HP SR number 8606223364.
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14338 $as_echo_n "checking size of unsigned long... " >&6; }
14339 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14340 $as_echo_n "(cached) " >&6
14342 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14345 if test "$ac_cv_type_unsigned_long" = yes; then
14346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14348 as_fn_error 77 "cannot compute sizeof (unsigned long)
14349 See \`config.log' for more details" "$LINENO" 5; }
14351 ac_cv_sizeof_unsigned_long=0
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14357 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14361 cat >>confdefs.h <<_ACEOF
14362 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14366 # The cast to long int works around a bug in the HP C Compiler
14367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14369 # This bug is HP SR number 8606223364.
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14371 $as_echo_n "checking size of unsigned long long... " >&6; }
14372 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14373 $as_echo_n "(cached) " >&6
14375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
14378 if test "$ac_cv_type_unsigned_long_long" = yes; then
14379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14381 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14382 See \`config.log' for more details" "$LINENO" 5; }
14384 ac_cv_sizeof_unsigned_long_long=0
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14390 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14394 cat >>confdefs.h <<_ACEOF
14395 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14401 if ${ac_cv_header_time+:} false; then :
14402 $as_echo_n "(cached) " >&6
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <sys/types.h>
14407 #include <sys/time.h>
14413 if ((struct tm *) 0)
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 ac_cv_header_time=yes
14422 ac_cv_header_time=no
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14427 $as_echo "$ac_cv_header_time" >&6; }
14428 if test $ac_cv_header_time = yes; then
14430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14434 # The cast to long int works around a bug in the HP C Compiler
14435 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14436 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14437 # This bug is HP SR number 8606223364.
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14439 $as_echo_n "checking size of time_t... " >&6; }
14440 if ${ac_cv_sizeof_time_t+:} false; then :
14441 $as_echo_n "(cached) " >&6
14443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
14445 #if TIME_WITH_SYS_TIME
14446 # include <sys/time.h>
14449 # if HAVE_SYS_TIME_H
14450 # include <sys/time.h>
14459 if test "$ac_cv_type_time_t" = yes; then
14460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14462 as_fn_error 77 "cannot compute sizeof (time_t)
14463 See \`config.log' for more details" "$LINENO" 5; }
14465 ac_cv_sizeof_time_t=0
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14471 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14475 cat >>confdefs.h <<_ACEOF
14476 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14481 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14482 if ${gnupg_cv_time_t_unsigned+:} false; then :
14483 $as_echo_n "(cached) " >&6
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 $ac_includes_default
14488 #if TIME_WITH_SYS_TIME
14489 # include <sys/time.h>
14492 # if HAVE_SYS_TIME_H
14493 # include <sys/time.h>
14502 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14503 test_array [0] = 0;
14504 return test_array [0];
14510 if ac_fn_c_try_compile "$LINENO"; then :
14511 gnupg_cv_time_t_unsigned=no
14513 gnupg_cv_time_t_unsigned=yes
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14518 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14519 if test $gnupg_cv_time_t_unsigned = yes; then
14521 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14527 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14528 || test "$ac_cv_sizeof_unsigned_int" = "0" \
14529 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14531 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14536 # Checks for library functions.
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14539 $as_echo "$as_me: checking for library functions" >&6;}
14540 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14541 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14547 cat >>confdefs.h <<_ACEOF
14548 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14553 if ${ac_cv_sys_largefile_source+:} false; then :
14554 $as_echo_n "(cached) " >&6
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559 #include <sys/types.h> /* for off_t */
14564 int (*fp) (FILE *, off_t, int) = fseeko;
14565 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14570 if ac_fn_c_try_link "$LINENO"; then :
14571 ac_cv_sys_largefile_source=no; break
14573 rm -f core conftest.err conftest.$ac_objext \
14574 conftest$ac_exeext conftest.$ac_ext
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577 #define _LARGEFILE_SOURCE 1
14578 #include <sys/types.h> /* for off_t */
14583 int (*fp) (FILE *, off_t, int) = fseeko;
14584 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14589 if ac_fn_c_try_link "$LINENO"; then :
14590 ac_cv_sys_largefile_source=1; break
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 ac_cv_sys_largefile_source=unknown
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14599 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14600 case $ac_cv_sys_largefile_source in #(
14603 cat >>confdefs.h <<_ACEOF
14604 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14610 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14611 # in glibc 2.1.3, but that breaks too many other things.
14612 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14613 if test $ac_cv_sys_largefile_source != unknown; then
14615 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14619 for ac_func in vprintf
14621 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14622 if test "x$ac_cv_func_vprintf" = xyes; then :
14623 cat >>confdefs.h <<_ACEOF
14624 #define HAVE_VPRINTF 1
14627 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14628 if test "x$ac_cv_func__doprnt" = xyes; then :
14630 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14638 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14639 if test "x$ac_cv_type_pid_t" = xyes; then :
14643 cat >>confdefs.h <<_ACEOF
14649 for ac_header in vfork.h
14651 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14652 if test "x$ac_cv_header_vfork_h" = xyes; then :
14653 cat >>confdefs.h <<_ACEOF
14654 #define HAVE_VFORK_H 1
14661 for ac_func in fork vfork
14663 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14664 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14665 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14666 cat >>confdefs.h <<_ACEOF
14667 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14673 if test "x$ac_cv_func_fork" = xyes; then
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14675 $as_echo_n "checking for working fork... " >&6; }
14676 if ${ac_cv_func_fork_works+:} false; then :
14677 $as_echo_n "(cached) " >&6
14679 if test "$cross_compiling" = yes; then :
14680 ac_cv_func_fork_works=cross
14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683 /* end confdefs.h. */
14684 $ac_includes_default
14689 /* By Ruediger Kuhlmann. */
14690 return fork () < 0;
14696 if ac_fn_c_try_run "$LINENO"; then :
14697 ac_cv_func_fork_works=yes
14699 ac_cv_func_fork_works=no
14701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14702 conftest.$ac_objext conftest.beam conftest.$ac_ext
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14707 $as_echo "$ac_cv_func_fork_works" >&6; }
14710 ac_cv_func_fork_works=$ac_cv_func_fork
14712 if test "x$ac_cv_func_fork_works" = xcross; then
14714 *-*-amigaos* | *-*-msdosdjgpp*)
14715 # Override, as these systems have only a dummy fork() stub
14716 ac_cv_func_fork_works=no
14719 ac_cv_func_fork_works=yes
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14723 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14725 ac_cv_func_vfork_works=$ac_cv_func_vfork
14726 if test "x$ac_cv_func_vfork" = xyes; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14728 $as_echo_n "checking for working vfork... " >&6; }
14729 if ${ac_cv_func_vfork_works+:} false; then :
14730 $as_echo_n "(cached) " >&6
14732 if test "$cross_compiling" = yes; then :
14733 ac_cv_func_vfork_works=cross
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 /* Thanks to Paul Eggert for this test. */
14738 $ac_includes_default
14739 #include <sys/wait.h>
14740 #ifdef HAVE_VFORK_H
14741 # include <vfork.h>
14743 /* On some sparc systems, changes by the child to local and incoming
14744 argument registers are propagated back to the parent. The compiler
14745 is told about this with #include <vfork.h>, but some compilers
14746 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14747 static variable whose address is put into a register that is
14748 clobbered by the vfork. */
14751 sparc_address_test (int arg)
14753 sparc_address_test (arg) int arg;
14756 static pid_t child;
14774 pid_t parent = getpid ();
14777 sparc_address_test (0);
14782 /* Here is another test for sparc vfork register problems. This
14783 test uses lots of local variables, at least as many local
14784 variables as main has allocated so far including compiler
14785 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14786 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14787 reuse the register of parent for one of the local variables,
14788 since it will think that parent can't possibly be used any more
14789 in this routine. Assigning to the local variable will thus
14790 munge parent in the parent process. */
14792 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14793 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14794 /* Convince the compiler that p..p7 are live; otherwise, it might
14795 use the same hardware register for all 8 local variables. */
14796 if (p != p1 || p != p2 || p != p3 || p != p4
14797 || p != p5 || p != p6 || p != p7)
14800 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14801 from child file descriptors. If the child closes a descriptor
14802 before it execs or exits, this munges the parent's descriptor
14803 as well. Test for this by closing stdout in the child. */
14804 _exit(close(fileno(stdout)) != 0);
14809 while (wait(&status) != child)
14812 /* Was there some problem with vforking? */
14815 /* Did the child fail? (This shouldn't happen.) */
14818 /* Did the vfork/compiler bug occur? */
14819 || parent != getpid()
14821 /* Did the file descriptor bug occur? */
14822 || fstat(fileno(stdout), &st) != 0
14827 if ac_fn_c_try_run "$LINENO"; then :
14828 ac_cv_func_vfork_works=yes
14830 ac_cv_func_vfork_works=no
14832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14833 conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14838 $as_echo "$ac_cv_func_vfork_works" >&6; }
14841 if test "x$ac_cv_func_fork_works" = xcross; then
14842 ac_cv_func_vfork_works=$ac_cv_func_vfork
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14844 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14847 if test "x$ac_cv_func_vfork_works" = xyes; then
14849 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14853 $as_echo "#define vfork fork" >>confdefs.h
14856 if test "x$ac_cv_func_fork_works" = xyes; then
14858 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14862 for ac_func in atexit canonicalize_file_name clock_gettime ctermid \
14863 explicit_bzero fcntl flockfile fsync ftello \
14864 ftruncate funlockfile getaddrinfo getenv getpagesize \
14865 getpwnam getpwuid getrlimit getrusage gettimeofday \
14866 gmtime_r inet_ntop inet_pton isascii lstat memicmp \
14867 memmove memrchr mmap nl_langinfo pipe raise rand \
14868 setenv setlocale setrlimit sigaction sigprocmask \
14869 stat stpcpy strcasecmp strerror strftime stricmp \
14870 strlwr strncasecmp strpbrk strsep strtol strtoul \
14871 strtoull tcgetattr timegm times ttyname unsetenv \
14874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14877 cat >>confdefs.h <<_ACEOF
14878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14885 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14886 # Given that we use nanosleep only as an optimization over a select
14887 # based wait function we want it only if it is available in libc.
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14890 $as_echo_n "checking for library containing nanosleep... " >&6; }
14891 if ${ac_cv_search_nanosleep+:} false; then :
14892 $as_echo_n "(cached) " >&6
14894 ac_func_search_save_LIBS=$LIBS
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14898 /* Override any GCC internal prototype to avoid an error.
14899 Use char because int might match the return type of a GCC
14900 builtin and then its argument prototype would still apply. */
14908 return nanosleep ();
14913 for ac_lib in '' ; do
14914 if test -z "$ac_lib"; then
14915 ac_res="none required"
14918 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14920 if ac_fn_c_try_link "$LINENO"; then :
14921 ac_cv_search_nanosleep=$ac_res
14923 rm -f core conftest.err conftest.$ac_objext \
14925 if ${ac_cv_search_nanosleep+:} false; then :
14929 if ${ac_cv_search_nanosleep+:} false; then :
14932 ac_cv_search_nanosleep=no
14934 rm conftest.$ac_ext
14935 LIBS=$ac_func_search_save_LIBS
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14938 $as_echo "$ac_cv_search_nanosleep" >&6; }
14939 ac_res=$ac_cv_search_nanosleep
14940 if test "$ac_res" != no; then :
14941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14943 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
14950 # See whether libc supports the Linux inotify interface
14953 for ac_func in inotify_init
14955 ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
14956 if test "x$ac_cv_func_inotify_init" = xyes; then :
14957 cat >>confdefs.h <<_ACEOF
14958 #define HAVE_INOTIFY_INIT 1
14968 if test "$have_android_system" = yes; then
14969 # On Android ttyname is a stub but prints an error message.
14971 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
14975 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
14977 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_STRUCT_SIGACTION 1
14985 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
14987 if test "x$ac_cv_type_sigset_t" = xyes; then :
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_SIGSET_T 1
14997 # Dirmngr requires mmap on Unix systems.
14998 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
14999 as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15004 # Check for the getsockopt SO_PEERCRED, etc.
15006 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15007 #include <sys/socket.h>
15009 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15011 cat >>confdefs.h <<_ACEOF
15012 #define HAVE_STRUCT_UCRED_PID 1
15017 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15018 #include <sys/socket.h>
15020 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15022 cat >>confdefs.h <<_ACEOF
15023 #define HAVE_STRUCT_UCRED_CR_PID 1
15028 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15029 #include <sys/socket.h>
15031 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15042 for ac_func in getpeerucred
15044 ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15045 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15046 cat >>confdefs.h <<_ACEOF
15047 #define HAVE_GETPEERUCRED 1
15056 # W32 specific test
15058 for ac_header in sys/stat.h unistd.h direct.h
15060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15063 cat >>confdefs.h <<_ACEOF
15064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
15072 $as_echo_n "checking if mkdir takes one argument... " >&6; }
15073 if ${gnupg_cv_mkdir_takes_one_arg+:} false; then :
15074 $as_echo_n "(cached) " >&6
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15079 #include <sys/types.h>
15080 #ifdef HAVE_SYS_STAT_H
15081 # include <sys/stat.h>
15083 #ifdef HAVE_UNISTD_H
15084 # include <unistd.h>
15086 #ifdef HAVE_DIRECT_H
15087 # include <direct.h>
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 gnupg_cv_mkdir_takes_one_arg=no
15100 gnupg_cv_mkdir_takes_one_arg=yes
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mkdir_takes_one_arg" >&5
15105 $as_echo "$gnupg_cv_mkdir_takes_one_arg" >&6; }
15106 if test $gnupg_cv_mkdir_takes_one_arg = yes ; then
15108 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
15115 # Do we have zlib? Must do it here because Solaris failed
15116 # when compiling a conftest (due to the "-lz" from LIBS).
15117 # Note that we combine zlib and bzlib2 in ZLIBS.
15119 if test "$use_zip" = yes ; then
15120 _cppflags="${CPPFLAGS}"
15121 _ldflags="${LDFLAGS}"
15123 # Check whether --with-zlib was given.
15124 if test "${with_zlib+set}" = set; then :
15125 withval=$with_zlib;
15126 if test -d "$withval"; then
15127 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15128 LDFLAGS="${LDFLAGS} -L$withval/lib"
15134 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15135 if test "x$ac_cv_header_zlib_h" = xyes; then :
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15137 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15138 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15139 $as_echo_n "(cached) " >&6
15141 ac_check_lib_save_LIBS=$LIBS
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15146 /* Override any GCC internal prototype to avoid an error.
15147 Use char because int might match the return type of a GCC
15148 builtin and then its argument prototype would still apply. */
15152 char deflateInit2_ ();
15156 return deflateInit2_ ();
15161 if ac_fn_c_try_link "$LINENO"; then :
15162 ac_cv_lib_z_deflateInit2_=yes
15164 ac_cv_lib_z_deflateInit2_=no
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 LIBS=$ac_check_lib_save_LIBS
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15171 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15172 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15176 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15180 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15184 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15192 # Check whether we can support bzip2
15194 if test "$use_bzip2" = yes ; then
15195 _cppflags="${CPPFLAGS}"
15196 _ldflags="${LDFLAGS}"
15198 # Check whether --with-bzip2 was given.
15199 if test "${with_bzip2+set}" = set; then :
15200 withval=$with_bzip2;
15201 if test -d "$withval" ; then
15202 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15203 LDFLAGS="${LDFLAGS} -L$withval/lib"
15211 # Checking alongside stdio.h as an early version of bzip2 (1.0)
15212 # required stdio.h to be included before bzlib.h, and Solaris 9 is
15213 # woefully out of date.
15214 if test "$withval" != no ; then
15215 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15217 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15219 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15220 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15221 $as_echo_n "(cached) " >&6
15223 ac_check_lib_save_LIBS=$LIBS
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15228 /* Override any GCC internal prototype to avoid an error.
15229 Use char because int might match the return type of a GCC
15230 builtin and then its argument prototype would still apply. */
15234 char BZ2_bzCompressInit ();
15238 return BZ2_bzCompressInit ();
15243 if ac_fn_c_try_link "$LINENO"; then :
15244 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15246 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15248 rm -f core conftest.err conftest.$ac_objext \
15249 conftest$ac_exeext conftest.$ac_ext
15250 LIBS=$ac_check_lib_save_LIBS
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15253 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15254 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15257 ZLIBS="$ZLIBS -lbz2"
15259 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15263 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15267 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15273 if test x"$have_bz2" = "xyes"; then
15274 ENABLE_BZIP2_SUPPORT_TRUE=
15275 ENABLE_BZIP2_SUPPORT_FALSE='#'
15277 ENABLE_BZIP2_SUPPORT_TRUE='#'
15278 ENABLE_BZIP2_SUPPORT_FALSE=
15284 # Check for readline support
15287 # Check whether --with-readline was given.
15288 if test "${with_readline+set}" = set; then :
15289 withval=$with_readline; _do_readline=$withval
15295 gnupg_cv_have_readline=no
15296 if test "$_do_readline" != "no" ; then
15297 if test -d "$withval" ; then
15298 CPPFLAGS="${CPPFLAGS} -I$withval/include"
15299 LDFLAGS="${LDFLAGS} -L$withval/lib"
15302 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15303 _readline_save_libs=$LIBS
15304 _combo="-lreadline${_termcap:+ $_termcap}"
15305 LIBS="$LIBS $_combo"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15308 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15311 /* end confdefs.h. */
15314 #include <readline/readline.h>
15315 #include <readline/history.h>
15321 rl_completion_func_t *completer;
15322 add_history("foobar");
15323 rl_catch_signals=0;
15324 rl_inhibit_completion=0;
15325 rl_attempted_completion_function=NULL;
15326 rl_completion_matches(NULL,NULL);
15332 if ac_fn_c_try_link "$LINENO"; then :
15333 _found_readline=yes
15337 rm -f core conftest.err conftest.$ac_objext \
15338 conftest$ac_exeext conftest.$ac_ext
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15341 $as_echo "$_found_readline" >&6; }
15343 LIBS=$_readline_save_libs
15345 if test $_found_readline = yes ; then
15347 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15349 LIBREADLINE=$_combo
15351 gnupg_cv_have_readline=yes
15357 unset _readline_save_libs
15359 unset _found_readline
15364 if test "$development_version" = yes; then
15366 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15370 if test "$USE_MAINTAINER_MODE" = "yes"; then
15372 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15376 if test x$cross_compiling = xyes; then
15377 CROSS_COMPILING_TRUE=
15378 CROSS_COMPILING_FALSE='#'
15380 CROSS_COMPILING_TRUE='#'
15381 CROSS_COMPILING_FALSE=
15386 if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15391 *** It seems that you are not using GNU make. Some make tools have serious
15392 *** flaws and you may not be able to build this software at all. Before you
15393 *** complain, please try GNU make: GNU make is easy to build and available
15394 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15396 $as_echo "$as_me: WARNING:
15398 *** It seems that you are not using GNU make. Some make tools have serious
15399 *** flaws and you may not be able to build this software at all. Before you
15400 *** complain, please try GNU make: GNU make is easy to build and available
15401 *** at all GNU archives. It is always available from ftp.gnu.org:/gnu/make.
15406 # Add some extra libs here so that previous tests don't fail for
15407 # mysterious reasons - the final link step should bail out.
15408 # W32SOCKLIBS is also defined so that if can be used for tools not
15409 # requiring any network stuff but linking to code in libcommon which
15410 # tracks in winsock stuff (e.g. init_common_subsystems).
15411 if test "$have_w32_system" = yes; then
15412 if test "$have_w32ce_system" = yes; then
15413 W32SOCKLIBS="-lws2"
15415 W32SOCKLIBS="-lws2_32"
15417 NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15424 # Setup gcc specific options
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
15428 $as_echo "$as_me: checking for cc features" >&6;}
15429 if test "$GCC" = yes; then
15431 mycflags_save=$CFLAGS
15433 # Check whether gcc does not emit a diagnositc for unknown -Wno-*
15434 # options. This is the case for gcc >= 4.6
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
15436 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15440 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
15451 if ac_fn_c_try_compile "$LINENO"; then :
15452 _gcc_silent_wno=yes
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
15458 $as_echo "$_gcc_silent_wno" >&6; }
15460 # Note that it is okay to use CFLAGS here because these are just
15461 # warning options and the user should have a chance of overriding
15463 if test "$USE_MAINTAINER_MODE" = "yes"; then
15464 mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
15465 mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
15466 if test x"$_gcc_silent_wno" = xyes ; then
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
15470 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
15471 CFLAGS="-Wno-missing-field-initializers"
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15483 if ac_fn_c_try_compile "$LINENO"; then :
15488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15490 $as_echo "$_gcc_wopt" >&6; }
15492 if test x"$_gcc_wopt" = xyes ; then
15493 mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
15494 mycflags="$mycflags -Wno-missing-field-initializers"
15495 mycflags="$mycflags -Wno-format-zero-length"
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
15499 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
15500 CFLAGS="-Wdeclaration-after-statement"
15501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15502 /* end confdefs.h. */
15512 if ac_fn_c_try_compile "$LINENO"; then :
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15519 $as_echo "$_gcc_wopt" >&6; }
15520 if test x"$_gcc_wopt" = xyes ; then
15521 mycflags="$mycflags -Wdeclaration-after-statement"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
15525 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
15526 CFLAGS="-Wlogical-op -Werror"
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15538 if ac_fn_c_try_compile "$LINENO"; then :
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15545 $as_echo "$_gcc_wopt" >&6; }
15546 if test x"$_gcc_wopt" = xyes ; then
15547 mycflags="$mycflags -Wlogical-op"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
15551 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15564 if ac_fn_c_try_compile "$LINENO"; then :
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
15571 $as_echo "$_gcc_wopt" >&6; }
15572 if test x"$_gcc_wopt" = xyes ; then
15573 mycflags="$mycflags -Wvla"
15577 mycflags="$mycflags -Wall"
15580 if test x"$_gcc_silent_wno" = xyes ; then
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
15584 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
15585 CFLAGS="-Wno-pointer-sign"
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15597 if ac_fn_c_try_compile "$LINENO"; then :
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15604 $as_echo "$_gcc_psign" >&6; }
15606 if test x"$_gcc_psign" = xyes ; then
15607 mycflags="$mycflags -Wno-pointer-sign"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
15611 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
15612 CFLAGS="-Wpointer-arith"
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15624 if ac_fn_c_try_compile "$LINENO"; then :
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
15631 $as_echo "$_gcc_psign" >&6; }
15632 if test x"$_gcc_psign" = xyes ; then
15633 mycflags="$mycflags -Wpointer-arith"
15636 CFLAGS="$mycflags $mycflags_save"
15637 if test "$use_libdns" = yes; then
15638 # dirmngr/dns.{c,h} require C99 and GNU extensions. */
15639 USE_C99_CFLAGS="-std=gnu99"
15647 # This is handy for debugging so the compiler doesn't rearrange
15648 # things and eliminate variables.
15650 # Check whether --enable-optimization was given.
15651 if test "${enable_optimization+set}" = set; then :
15652 enableval=$enable_optimization; if test $enableval = no ; then
15653 CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
15659 # Add -Werror to CFLAGS. This hack can be used to avoid problems with
15660 # misbehaving autoconf tests in case the user supplied -Werror.
15662 # Check whether --enable-werror was given.
15663 if test "${enable_werror+set}" = set; then :
15664 enableval=$enable_werror; if test $enableval = yes ; then
15665 CFLAGS="$CFLAGS -Werror"
15671 # Configure option --enable-all-tests
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
15674 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
15675 # Check whether --enable-all-tests was given.
15676 if test "${enable_all_tests+set}" = set; then :
15677 enableval=$enable_all_tests; run_all_tests=$enableval
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
15683 $as_echo "$run_all_tests" >&6; }
15684 if test "$run_all_tests" = "yes"; then
15686 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
15691 # Configure option --disable-tests
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
15694 $as_echo_n "checking whether tests should be run... " >&6; }
15695 # Check whether --enable-tests was given.
15696 if test "${enable_tests+set}" = set; then :
15697 enableval=$enable_tests; run_tests=$enableval
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
15703 $as_echo "$run_tests" >&6; }
15706 # We do not want support for the GNUPG_BUILDDIR environment variable
15707 # in a released version. However, our regression tests suite requires
15708 # this and thus we build with support for it during "make distcheck".
15709 # This configure option implements this along with the top Makefile's
15710 # AM_DISTCHECK_CONFIGURE_FLAGS.
15712 gnupg_builddir_envvar=no
15713 # Check whether --enable-gnupg-builddir-envvar was given.
15714 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
15715 enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
15718 if test x"$gnupg_builddir_envvar" = x"yes"; then
15720 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
15726 # To avoid problems with systemd cleaning up the /run/user directory,
15727 # this option will make GnuPG try to use /run/gnupg/user as socket dir
15730 # Check whether --enable-run-gnupg-user-socket was given.
15731 if test "${enable_run_gnupg_user_socket+set}" = set; then :
15732 enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
15735 if test x"$use_run_gnupg_user_socket" = x"yes"; then
15737 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
15743 # Decide what to build
15746 build_scdaemon_extra=""
15747 if test "$build_scdaemon" = "yes"; then
15748 if test $have_libusb = no; then
15749 build_scdaemon_extra="without internal CCID driver"
15751 if test -n "$build_scdaemon_extra"; then
15752 build_scdaemon_extra="(${build_scdaemon_extra})"
15758 # Set variables for use by automake makefiles.
15760 if test "$build_gpg" = "yes"; then
15762 BUILD_GPG_FALSE='#'
15768 if test "$build_gpgsm" = "yes"; then
15770 BUILD_GPGSM_FALSE='#'
15772 BUILD_GPGSM_TRUE='#'
15776 if test "$build_agent" = "yes"; then
15778 BUILD_AGENT_FALSE='#'
15780 BUILD_AGENT_TRUE='#'
15784 if test "$build_scdaemon" = "yes"; then
15785 BUILD_SCDAEMON_TRUE=
15786 BUILD_SCDAEMON_FALSE='#'
15788 BUILD_SCDAEMON_TRUE='#'
15789 BUILD_SCDAEMON_FALSE=
15792 if test "$build_g13" = "yes"; then
15794 BUILD_G13_FALSE='#'
15800 if test "$build_dirmngr" = "yes"; then
15801 BUILD_DIRMNGR_TRUE=
15802 BUILD_DIRMNGR_FALSE='#'
15804 BUILD_DIRMNGR_TRUE='#'
15805 BUILD_DIRMNGR_FALSE=
15808 if test "$build_doc" = "yes"; then
15810 BUILD_DOC_FALSE='#'
15816 if test "$build_gpgtar" = "yes"; then
15818 BUILD_GPGTAR_FALSE='#'
15820 BUILD_GPGTAR_TRUE='#'
15821 BUILD_GPGTAR_FALSE=
15824 if test "$build_wks_tools" = "yes"; then
15825 BUILD_WKS_TOOLS_TRUE=
15826 BUILD_WKS_TOOLS_FALSE='#'
15828 BUILD_WKS_TOOLS_TRUE='#'
15829 BUILD_WKS_TOOLS_FALSE=
15833 if test "$run_tests" != yes; then
15834 DISABLE_TESTS_TRUE=
15835 DISABLE_TESTS_FALSE='#'
15837 DISABLE_TESTS_TRUE='#'
15838 DISABLE_TESTS_FALSE=
15841 if test "$card_support" = yes; then
15842 ENABLE_CARD_SUPPORT_TRUE=
15843 ENABLE_CARD_SUPPORT_FALSE='#'
15845 ENABLE_CARD_SUPPORT_TRUE='#'
15846 ENABLE_CARD_SUPPORT_FALSE=
15849 if test "$use_trust_models" = no; then
15850 NO_TRUST_MODELS_TRUE=
15851 NO_TRUST_MODELS_FALSE='#'
15853 NO_TRUST_MODELS_TRUE='#'
15854 NO_TRUST_MODELS_FALSE=
15857 if test "$use_tofu" = yes; then
15867 # Set some defines for use gpgconf.
15869 if test "$build_gpg" = yes ; then
15871 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
15874 if test "$build_gpgsm" = yes ; then
15876 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
15879 if test "$build_agent" = yes ; then
15881 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
15884 if test "$build_scdaemon" = yes ; then
15886 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
15889 if test "$build_dirmngr" = yes ; then
15891 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
15894 if test "$build_g13" = yes ; then
15896 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
15902 # Define Name strings
15905 cat >>confdefs.h <<_ACEOF
15906 #define GNUPG_NAME "GnuPG"
15911 cat >>confdefs.h <<_ACEOF
15912 #define GPG_NAME "gpg"
15916 cat >>confdefs.h <<_ACEOF
15917 #define GPG_DISP_NAME "GnuPG"
15922 cat >>confdefs.h <<_ACEOF
15923 #define GPGSM_NAME "gpgsm"
15927 cat >>confdefs.h <<_ACEOF
15928 #define GPGSM_DISP_NAME "GPGSM"
15933 cat >>confdefs.h <<_ACEOF
15934 #define GPG_AGENT_NAME "gpg-agent"
15938 cat >>confdefs.h <<_ACEOF
15939 #define GPG_AGENT_DISP_NAME "GPG Agent"
15944 cat >>confdefs.h <<_ACEOF
15945 #define SCDAEMON_NAME "scdaemon"
15949 cat >>confdefs.h <<_ACEOF
15950 #define SCDAEMON_DISP_NAME "SCDaemon"
15955 cat >>confdefs.h <<_ACEOF
15956 #define DIRMNGR_NAME "dirmngr"
15960 cat >>confdefs.h <<_ACEOF
15961 #define DIRMNGR_DISP_NAME "DirMngr"
15966 cat >>confdefs.h <<_ACEOF
15967 #define G13_NAME "g13"
15971 cat >>confdefs.h <<_ACEOF
15972 #define G13_DISP_NAME "G13"
15977 cat >>confdefs.h <<_ACEOF
15978 #define GPGCONF_NAME "gpgconf"
15982 cat >>confdefs.h <<_ACEOF
15983 #define GPGCONF_DISP_NAME "GPGConf"
15988 cat >>confdefs.h <<_ACEOF
15989 #define GPGTAR_NAME "gpgtar"
15994 cat >>confdefs.h <<_ACEOF
15995 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
15999 cat >>confdefs.h <<_ACEOF
16000 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16004 cat >>confdefs.h <<_ACEOF
16005 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16009 cat >>confdefs.h <<_ACEOF
16010 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16014 cat >>confdefs.h <<_ACEOF
16015 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16019 cat >>confdefs.h <<_ACEOF
16020 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16024 cat >>confdefs.h <<_ACEOF
16025 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16029 cat >>confdefs.h <<_ACEOF
16030 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
16035 cat >>confdefs.h <<_ACEOF
16036 #define GPGEXT_GPG "gpg"
16040 if test "$have_w32_system" = yes; then
16042 cat >>confdefs.h <<_ACEOF
16043 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16050 # Provide information about the build.
16052 BUILD_REVISION="c77bb1a75"
16055 cat >>confdefs.h <<_ACEOF
16056 #define BUILD_REVISION "$BUILD_REVISION"
16060 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16061 BUILD_VERSION="${BUILD_VERSION}51067"
16062 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16066 # Check whether --enable-build-timestamp was given.
16067 if test "${enable_build_timestamp+set}" = set; then :
16068 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16069 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16071 BUILD_TIMESTAMP="$enableval"
16073 BUILD_HOSTNAME="$ac_hostname"
16075 BUILD_TIMESTAMP="<none>"
16076 BUILD_HOSTNAME="<anon>"
16081 cat >>confdefs.h <<_ACEOF
16082 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16089 # Print errors here so that they are visible all
16090 # together and the user can acquire them all together.
16093 if test "$have_gpg_error" = "no"; then
16095 { $as_echo "$as_me:${as_lineno-$LINENO}:
16097 *** You need libgpg-error to build this program.
16098 ** This library is for example available at
16099 *** https://gnupg.org/ftp/gcrypt/libgpg-error
16100 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16104 *** You need libgpg-error to build this program.
16105 ** This library is for example available at
16106 *** https://gnupg.org/ftp/gcrypt/libgpg-error
16107 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
16110 if test "$have_libgcrypt" = "no"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}:
16114 *** You need libgcrypt to build this program.
16115 ** This library is for example available at
16116 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16117 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16121 *** You need libgcrypt to build this program.
16122 ** This library is for example available at
16123 *** https://gnupg.org/ftp/gcrypt/libgcrypt/
16124 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16127 if test "$have_libassuan" = "no"; then
16129 { $as_echo "$as_me:${as_lineno-$LINENO}:
16131 *** You need libassuan to build this program.
16132 *** This library is for example available at
16133 *** https://gnupg.org/ftp/gcrypt/libassuan/
16134 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16138 *** You need libassuan to build this program.
16139 *** This library is for example available at
16140 *** https://gnupg.org/ftp/gcrypt/libassuan/
16141 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16144 if test "$have_ksba" = "no"; then
16146 { $as_echo "$as_me:${as_lineno-$LINENO}:
16148 *** You need libksba to build this program.
16149 *** This library is for example available at
16150 *** https://gnupg.org/ftp/gcrypt/libksba/
16151 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16155 *** You need libksba to build this program.
16156 *** This library is for example available at
16157 *** https://gnupg.org/ftp/gcrypt/libksba/
16158 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16161 if test "$gnupg_have_ldap" = yes; then
16162 if test "$have_w32ce_system" = yes; then
16163 { $as_echo "$as_me:${as_lineno-$LINENO}:
16164 *** Note that CeGCC might be broken, a package fixing this is:
16165 *** http://files.kolab.org/local/windows-ce/
16166 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16167 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16170 *** Note that CeGCC might be broken, a package fixing this is:
16171 *** http://files.kolab.org/local/windows-ce/
16172 *** source/wldap32_0.1-mingw32ce.orig.tar.gz
16173 *** binary/wldap32-ce-arm-dev_0.1-1_all.deb
16177 if test "$have_npth" = "no"; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}:
16181 *** It is now required to build with support for the
16182 *** New Portable Threads Library (nPth). Please install this
16183 *** library first. The library is for example available at
16184 *** https://gnupg.org/ftp/gcrypt/npth/
16185 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16189 *** It is now required to build with support for the
16190 *** New Portable Threads Library (nPth). Please install this
16191 *** library first. The library is for example available at
16192 *** https://gnupg.org/ftp/gcrypt/npth/
16193 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16197 if test "$require_iconv" = yes; then
16198 if test "$am_func_iconv" != yes; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}:
16202 *** The system does not provide a working iconv function. Please
16203 *** install a suitable library; for example GNU Libiconv which is
16205 *** https://ftp.gnu.org/gnu/libiconv/
16209 *** The system does not provide a working iconv function. Please
16210 *** install a suitable library; for example GNU Libiconv which is
16212 *** https://ftp.gnu.org/gnu/libiconv/
16217 if test "$use_ccid_driver" = yes; then
16218 if test "$have_libusb" != yes; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}:
16222 *** You need libusb to build the internal ccid driver. Please
16223 *** install a libusb suitable for your system.
16227 *** You need libusb to build the internal ccid driver. Please
16228 *** install a libusb suitable for your system.
16233 if test "$die" = "yes"; then
16236 *** Required libraries not found. Please consult the above messages
16237 *** and install them before running configure again.
16243 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"
16247 cat >confcache <<\_ACEOF
16248 # This file is a shell script that caches the results of configure
16249 # tests run on this system so they can be shared between configure
16250 # scripts and configure runs, see configure's option --config-cache.
16251 # It is not useful on other systems. If it contains results you don't
16252 # want to keep, you may remove or edit it.
16254 # config.status only pays attention to the cache file if you give it
16255 # the --recheck option to rerun configure.
16257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16259 # following values.
16263 # The following way of writing the cache mishandles newlines in values,
16264 # but we know of no workaround that is simple, portable, and efficient.
16265 # So, we kill variables containing newlines.
16266 # Ultrix sh set writes to stderr and can't be redirected directly,
16267 # and sets the high bit in the cache file unless we assign to the vars.
16269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16270 eval ac_val=\$$ac_var
16274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16278 _ | IFS | as_nl) ;; #(
16279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16280 *) { eval $ac_var=; unset $ac_var;} ;;
16286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16287 *${as_nl}ac_space=\ *)
16288 # `set' does not quote correctly, so add quotes: double-quote
16289 # substitution turns \\\\ into \\, and sed turns \\ into \.
16292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16295 # `set' quotes correctly as required by POSIX, so do not add quotes.
16296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16310 if test -w "$cache_file"; then
16311 if test "x$cache_file" != "x/dev/null"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16313 $as_echo "$as_me: updating cache $cache_file" >&6;}
16314 if test ! -f "$cache_file" || test -h "$cache_file"; then
16315 cat confcache >"$cache_file"
16317 case $cache_file in #(
16319 mv -f confcache "$cache_file"$$ &&
16320 mv -f "$cache_file"$$ "$cache_file" ;; #(
16322 mv -f confcache "$cache_file" ;;
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16334 # Let make expand exec_prefix.
16335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16337 DEFS=-DHAVE_CONFIG_H
16342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16343 # 1. Remove the extension, and $U if already installed.
16344 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16345 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16347 # will be set to the directory where LIBOBJS objects are built.
16348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16351 LIBOBJS=$ac_libobjs
16353 LTLIBOBJS=$ac_ltlibobjs
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16357 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16358 if test -n "$am_sleep_pid"; then
16359 # Hide warnings about reused PIDs.
16360 wait $am_sleep_pid 2>/dev/null
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16363 $as_echo "done" >&6; }
16364 if test -n "$EXEEXT"; then
16366 am__EXEEXT_FALSE='#'
16368 am__EXEEXT_TRUE='#'
16372 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16373 as_fn_error $? "conditional \"AMDEP\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16376 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16380 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
16381 as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16384 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
16385 as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16388 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
16389 as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
16390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
16393 as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
16394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
16397 as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
16398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
16401 as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
16402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
16405 as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
16406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
16409 as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
16410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16412 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16413 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16417 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16418 if test -n "$am_sleep_pid"; then
16419 # Hide warnings about reused PIDs.
16420 wait $am_sleep_pid 2>/dev/null
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16423 $as_echo "done" >&6; }
16424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16428 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
16429 as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
16430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16432 if test -z "${HAVE_USTAR_TRUE}" && test -z "${HAVE_USTAR_FALSE}"; then
16433 as_fn_error $? "conditional \"HAVE_USTAR\" was never defined.
16434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16436 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
16437 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
16438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16440 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
16441 as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
16442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16444 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
16445 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
16446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16448 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
16449 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
16450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16452 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
16453 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
16454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16456 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
16457 as_fn_error $? "conditional \"SQLITE3\" was never defined.
16458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16460 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
16461 as_fn_error $? "conditional \"USE_LDAP\" was never defined.
16462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464 if test -z "${USE_LDAPWRAPPER_TRUE}" && test -z "${USE_LDAPWRAPPER_FALSE}"; then
16465 as_fn_error $? "conditional \"USE_LDAPWRAPPER\" was never defined.
16466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
16469 as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
16470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16473 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
16477 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
16478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
16481 as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
16482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
16485 as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
16486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
16489 as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
16490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16492 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
16493 as_fn_error $? "conditional \"BUILD_G13\" was never defined.
16494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
16497 as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
16501 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
16505 as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
16509 as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
16513 as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
16517 as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
16521 as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
16522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
16525 as_fn_error $? "conditional \"USE_TOFU\" was never defined.
16526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16529 : "${CONFIG_STATUS=./config.status}"
16531 ac_clean_files_save=$ac_clean_files
16532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16534 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16536 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16538 # Generated by $as_me.
16539 # Run this file to recreate the current configuration.
16540 # Compiler output produced by configure, useful for debugging
16541 # configure, is in config.log if it exists.
16544 ac_cs_recheck=false
16547 SHELL=\${CONFIG_SHELL-$SHELL}
16550 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16551 ## -------------------- ##
16552 ## M4sh Initialization. ##
16553 ## -------------------- ##
16555 # Be more Bourne compatible
16556 DUALCASE=1; export DUALCASE # for MKS sh
16557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16560 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16561 # is contrary to our usage. Disable this feature.
16562 alias -g '${1+"$@"}'='"$@"'
16563 setopt NO_GLOB_SUBST
16565 case `(set -o) 2>/dev/null` in #(
16577 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16578 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16579 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16580 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16581 # Prefer a ksh shell builtin over an external printf program on Solaris,
16582 # but without wasting forks for bash or zsh.
16583 if test -z "$BASH_VERSION$ZSH_VERSION" \
16584 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16585 as_echo='print -r --'
16586 as_echo_n='print -rn --'
16587 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16588 as_echo='printf %s\n'
16589 as_echo_n='printf %s'
16591 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16592 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16593 as_echo_n='/usr/ucb/echo -n'
16595 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16596 as_echo_n_body='eval
16600 expr "X$arg" : "X\\(.*\\)$as_nl";
16601 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16603 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16605 export as_echo_n_body
16606 as_echo_n='sh -c $as_echo_n_body as_echo'
16608 export as_echo_body
16609 as_echo='sh -c $as_echo_body as_echo'
16612 # The user is always right.
16613 if test "${PATH_SEPARATOR+set}" != set; then
16615 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16616 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16623 # We need space, tab and new line, in precisely that order. Quoting is
16624 # there to prevent editors from complaining about space-tab.
16625 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16626 # splitting by setting IFS to empty value.)
16629 # Find who we are. Look in the path if we contain no directory separator.
16632 *[\\/]* ) as_myself=$0 ;;
16633 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16637 test -z "$as_dir" && as_dir=.
16638 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16644 # We did not find ourselves, most probably we were run as `sh COMMAND'
16645 # in which case we are not to be found in the path.
16646 if test "x$as_myself" = x; then
16649 if test ! -f "$as_myself"; then
16650 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16654 # Unset variables that we do not need and which cause bugs (e.g. in
16655 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16656 # suppresses any "Segmentation fault" message there. '((' could
16657 # trigger a bug in pdksh 5.2.14.
16658 for as_var in BASH_ENV ENV MAIL MAILPATH
16659 do eval test x\${$as_var+set} = xset \
16660 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16673 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16676 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16677 # ----------------------------------------
16678 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16679 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16680 # script with STATUS, using 1 if that was 0.
16683 as_status=$1; test $as_status -eq 0 && as_status=1
16685 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16686 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16688 $as_echo "$as_me: error: $2" >&2
16689 as_fn_exit $as_status
16693 # as_fn_set_status STATUS
16694 # -----------------------
16695 # Set $? to STATUS, without forking.
16696 as_fn_set_status ()
16699 } # as_fn_set_status
16701 # as_fn_exit STATUS
16702 # -----------------
16703 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16707 as_fn_set_status $1
16713 # Portably unset VAR.
16716 { eval $1=; unset $1;}
16718 as_unset=as_fn_unset
16719 # as_fn_append VAR VALUE
16720 # ----------------------
16721 # Append the text in VALUE to the end of the definition contained in VAR. Take
16722 # advantage of any shell optimizations that allow amortized linear growth over
16723 # repeated appends, instead of the typical quadratic growth present in naive
16725 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16726 eval 'as_fn_append ()
16737 # as_fn_arith ARG...
16738 # ------------------
16739 # Perform arithmetic evaluation on the ARGs, and store the result in the
16740 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16741 # must be portable across $(()) and expr.
16742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16743 eval 'as_fn_arith ()
16750 as_val=`expr "$@" || test $? -eq 1`
16755 if expr a : '\(a\)' >/dev/null 2>&1 &&
16756 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16762 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16763 as_basename=basename
16768 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16774 as_me=`$as_basename -- "$0" ||
16775 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16776 X"$0" : 'X\(//\)$' \| \
16777 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16779 sed '/^.*\/\([^/][^/]*\)\/*$/{
16793 # Avoid depending upon Character Ranges.
16794 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16795 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16796 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16797 as_cr_digits='0123456789'
16798 as_cr_alnum=$as_cr_Letters$as_cr_digits
16800 ECHO_C= ECHO_N= ECHO_T=
16801 case `echo -n x` in #(((((
16803 case `echo 'xy\c'` in
16804 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16806 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16813 rm -f conf$$ conf$$.exe conf$$.file
16814 if test -d conf$$.dir; then
16815 rm -f conf$$.dir/conf$$.file
16818 mkdir conf$$.dir 2>/dev/null
16820 if (echo >conf$$.file) 2>/dev/null; then
16821 if ln -s conf$$.file conf$$ 2>/dev/null; then
16823 # ... but there are two gotchas:
16824 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16825 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16826 # In both cases, we have to default to `cp -pR'.
16827 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16829 elif ln conf$$.file conf$$ 2>/dev/null; then
16837 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16838 rmdir conf$$.dir 2>/dev/null
16843 # Create "$as_dir" as a directory, including parents if necessary.
16848 -*) as_dir=./$as_dir;;
16850 test -d "$as_dir" || eval $as_mkdir_p || {
16854 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16855 *) as_qdir=$as_dir;;
16857 as_dirs="'$as_qdir' $as_dirs"
16858 as_dir=`$as_dirname -- "$as_dir" ||
16859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$as_dir" : 'X\(//\)[^/]' \| \
16861 X"$as_dir" : 'X\(//\)$' \| \
16862 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16863 $as_echo X"$as_dir" |
16864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16868 /^X\(\/\/\)[^/].*/{
16881 test -d "$as_dir" && break
16883 test -z "$as_dirs" || eval "mkdir $as_dirs"
16884 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16888 if mkdir -p . 2>/dev/null; then
16889 as_mkdir_p='mkdir -p "$as_dir"'
16891 test -d ./-p && rmdir ./-p
16896 # as_fn_executable_p FILE
16897 # -----------------------
16898 # Test if FILE is an executable regular file.
16899 as_fn_executable_p ()
16901 test -f "$1" && test -x "$1"
16902 } # as_fn_executable_p
16903 as_test_x='test -x'
16904 as_executable_p=as_fn_executable_p
16906 # Sed expression to map a string onto a valid CPP name.
16907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16909 # Sed expression to map a string onto a valid variable name.
16910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16914 ## ----------------------------------- ##
16915 ## Main body of $CONFIG_STATUS script. ##
16916 ## ----------------------------------- ##
16918 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16921 # Save the log message, to keep $0 and so on meaningful, and to
16922 # report actual input values of CONFIG_FILES etc. instead of their
16923 # values after options handling.
16925 This file was extended by gnupg $as_me 2.2.26, which was
16926 generated by GNU Autoconf 2.69. Invocation command line was
16928 CONFIG_FILES = $CONFIG_FILES
16929 CONFIG_HEADERS = $CONFIG_HEADERS
16930 CONFIG_LINKS = $CONFIG_LINKS
16931 CONFIG_COMMANDS = $CONFIG_COMMANDS
16934 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16939 case $ac_config_files in *"
16940 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16943 case $ac_config_headers in *"
16944 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16949 # Files that config.status was made for.
16950 config_files="$ac_config_files"
16951 config_headers="$ac_config_headers"
16952 config_commands="$ac_config_commands"
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16958 \`$as_me' instantiates files and other configuration actions
16959 from templates according to the current configuration. Unless the files
16960 and actions are specified as TAGs, all are instantiated by default.
16962 Usage: $0 [OPTION]... [TAG]...
16964 -h, --help print this help, then exit
16965 -V, --version print version number and configuration settings, then exit
16966 --config print configuration, then exit
16967 -q, --quiet, --silent
16968 do not print progress messages
16969 -d, --debug don't remove temporary files
16970 --recheck update $as_me by reconfiguring in the same conditions
16971 --file=FILE[:TEMPLATE]
16972 instantiate the configuration file FILE
16973 --header=FILE[:TEMPLATE]
16974 instantiate the configuration header FILE
16976 Configuration files:
16979 Configuration headers:
16982 Configuration commands:
16985 Report bugs to <https://bugs.gnupg.org>."
16988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16989 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16991 gnupg config.status 2.2.26
16992 configured by $0, generated by GNU Autoconf 2.69,
16993 with options \\"\$ac_cs_config\\"
16995 Copyright (C) 2012 Free Software Foundation, Inc.
16996 This config.status script is free software; the Free Software Foundation
16997 gives unlimited permission to copy, distribute and modify it."
17004 test -n "\$AWK" || AWK=awk
17007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17008 # The default lists apply if the user does not specify any file.
17014 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17015 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17031 # Handling of the options.
17032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17034 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17035 $as_echo "$ac_cs_version"; exit ;;
17036 --config | --confi | --conf | --con | --co | --c )
17037 $as_echo "$ac_cs_config"; exit ;;
17038 --debug | --debu | --deb | --de | --d | -d )
17040 --file | --fil | --fi | --f )
17043 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17044 '') as_fn_error $? "missing file argument" ;;
17046 as_fn_append CONFIG_FILES " '$ac_optarg'"
17047 ac_need_defaults=false;;
17048 --header | --heade | --head | --hea )
17051 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17053 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17054 ac_need_defaults=false;;
17056 # Conflict between --help and --header
17057 as_fn_error $? "ambiguous option: \`$1'
17058 Try \`$0 --help' for more information.";;
17059 --help | --hel | -h )
17060 $as_echo "$ac_cs_usage"; exit ;;
17061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17062 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17065 # This is an error.
17066 -*) as_fn_error $? "unrecognized option: \`$1'
17067 Try \`$0 --help' for more information." ;;
17069 *) as_fn_append ac_config_targets " $1"
17070 ac_need_defaults=false ;;
17076 ac_configure_extra_args=
17078 if $ac_cs_silent; then
17080 ac_configure_extra_args="$ac_configure_extra_args --silent"
17084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17085 if \$ac_cs_recheck; then
17086 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17088 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17089 CONFIG_SHELL='$SHELL'
17090 export CONFIG_SHELL
17095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17099 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17100 ## Running $as_me. ##
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17110 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17111 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17112 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17113 # from automake < 1.5.
17114 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17115 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17116 LINGUAS="${LINGUAS-%UNSET%}"
17121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17123 # Handling of arguments.
17124 for ac_config_target in $ac_config_targets
17126 case $ac_config_target in
17127 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17128 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17129 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17130 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17132 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17133 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17134 "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17135 "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17136 "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17137 "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17138 "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17139 "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17140 "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17141 "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17142 "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17143 "tools/gpg-zip") CONFIG_FILES="$CONFIG_FILES tools/gpg-zip" ;;
17144 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17145 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17146 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17147 "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17148 "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17149 "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17150 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17151 "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17152 "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17153 "agent/gpg-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES agent/gpg-agent.w32-manifest" ;;
17154 "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17155 "g10/gpgv.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpgv.w32-manifest" ;;
17156 "sm/gpgsm.w32-manifest") CONFIG_FILES="$CONFIG_FILES sm/gpgsm.w32-manifest" ;;
17157 "scd/scdaemon.w32-manifest") CONFIG_FILES="$CONFIG_FILES scd/scdaemon.w32-manifest" ;;
17158 "dirmngr/dirmngr.w32-manifest") CONFIG_FILES="$CONFIG_FILES dirmngr/dirmngr.w32-manifest" ;;
17159 "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17160 "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17161 "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17162 "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17163 "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17170 # If the user did not use the arguments to specify the items to instantiate,
17171 # then the envvar interface is used. Set only those that are not.
17172 # We use the long form for the default assignment because of an extremely
17173 # bizarre bug on SunOS 4.1.3.
17174 if $ac_need_defaults; then
17175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17176 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17177 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17180 # Have a temporary directory for convenience. Make it in the build tree
17181 # simply because there is no reason against having it here, and in addition,
17182 # creating and moving files from /tmp can sometimes cause problems.
17183 # Hook for its removal unless debugging.
17184 # Note that there is a small window in which the directory will not be cleaned:
17185 # after its creation but before its name has been assigned to `$tmp'.
17189 trap 'exit_status=$?
17190 : "${ac_tmp:=$tmp}"
17191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17193 trap 'as_fn_exit 1' 1 2 13 15
17195 # Create a (secure) tmp directory for tmp files.
17198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17202 tmp=./conf$$-$RANDOM
17203 (umask 077 && mkdir "$tmp")
17204 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17207 # Set up the scripts for CONFIG_FILES section.
17208 # No need to generate them if there are no CONFIG_FILES.
17209 # This happens for instance with `./config.status config.h'.
17210 if test -n "$CONFIG_FILES"; then
17213 ac_cr=`echo X | tr X '\015'`
17214 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17215 # But we know of no other shell where ac_cr would be empty at this
17216 # point, so we can use a bashism as a fallback.
17217 if test "x$ac_cr" = x; then
17218 eval ac_cr=\$\'\\r\'
17220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17224 ac_cs_awk_cr=$ac_cr
17227 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17232 echo "cat >conf$$subs.awk <<_ACEOF" &&
17233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17235 } >conf$$subs.sh ||
17236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17239 for ac_last_try in false false false false false :; do
17240 . ./conf$$subs.sh ||
17241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17244 if test $ac_delim_n = $ac_delim_num; then
17246 elif $ac_last_try; then
17247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17252 rm -f conf$$subs.sh
17254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17259 s/^/S["/; s/!.*/"]=/
17269 s/\(.\{148\}\)..*/\1/
17271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17283 s/\(.\{148\}\)..*/\1/
17285 s/["\\]/\\&/g; s/^/"/; s/$/"/
17289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17294 ' <conf$$subs.awk | sed '
17299 ' >>$CONFIG_STATUS || ac_write_fail=1
17300 rm -f conf$$subs.awk
17301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17303 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17304 for (key in S) S_is_set[key] = 1
17310 nfields = split(line, field, "@")
17312 len = length(field[1])
17313 for (i = 2; i < nfields; i++) {
17315 keylen = length(key)
17316 if (S_is_set[key]) {
17318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17319 len += length(value) + length(field[++i])
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17335 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17339 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17340 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17341 # trailing colons and then remove the whole line if VPATH becomes empty
17342 # (actually we leave an empty line to preserve line numbers).
17343 if test "x$srcdir" = x.; then
17344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17363 fi # test -n "$CONFIG_FILES"
17365 # Set up the scripts for CONFIG_HEADERS section.
17366 # No need to generate them if there are no CONFIG_HEADERS.
17367 # This happens for instance with `./config.status Makefile'.
17368 if test -n "$CONFIG_HEADERS"; then
17369 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17373 # Transform confdefs.h into an awk script `defines.awk', embedded as
17374 # here-document in config.status, that substitutes the proper values into
17375 # config.h.in to produce config.h.
17377 # Create a delimiter string that does not exist in confdefs.h, to ease
17378 # handling of long lines.
17380 for ac_last_try in false false :; do
17381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17382 if test -z "$ac_tt"; then
17384 elif $ac_last_try; then
17385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17391 # For the awk script, D is an array of macro values keyed by name,
17392 # likewise P contains macro parameters if any. Preserve backslash
17393 # newline sequences.
17395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17397 s/.\{148\}/&'"$ac_delim"'/g
17400 s/^[ ]*#[ ]*define[ ][ ]*/ /
17407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17414 D["\1"]=" \3\\\\\\n"\\/p
17416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17421 s/.\{148\}/&'"$ac_delim"'/g
17426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17431 ' <confdefs.h | sed '
17432 s/'"$ac_delim"'/"\\\
17433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17436 for (key in D) D_is_set[key] = 1
17439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17441 split(line, arg, " ")
17442 if (arg[1] == "#") {
17446 defundef = substr(arg[1], 2)
17449 split(mac1, mac2, "(") #)
17451 prefix = substr(line, 1, index(line, defundef) - 1)
17452 if (D_is_set[macro]) {
17453 # Preserve the white space surrounding the "#".
17454 print prefix "define", macro P[macro] D[macro]
17457 # Replace #undef with comments. This is necessary, for example,
17458 # in the case of _POSIX_SOURCE, which is predefined and required
17459 # on some systems where configure will not decide to define it.
17460 if (defundef == "undef") {
17461 print "/*", prefix defundef, macro, "*/"
17469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17471 fi # test -n "$CONFIG_HEADERS"
17474 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17479 :[FHLC]) ac_mode=$ac_tag; continue;;
17481 case $ac_mode$ac_tag in
17483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17484 :[FH]-) ac_tag=-:-;;
17485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17502 -) ac_f="$ac_tmp/stdin";;
17503 *) # Look for the file first in the build tree, then in the source tree
17504 # (if the path is not absolute). The absolute path cannot be DOS-style,
17505 # because $ac_f cannot contain `:'.
17509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17514 as_fn_append ac_file_inputs " '$ac_f'"
17517 # Let's still pretend it is `configure' which instantiates (i.e., don't
17518 # use $as_me), people would be surprised to read:
17519 # /* config.h. Generated by config.status. */
17520 configure_input='Generated from '`
17521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17523 if test x"$ac_file" != x-; then
17524 configure_input="$ac_file. $configure_input"
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17526 $as_echo "$as_me: creating $ac_file" >&6;}
17528 # Neutralize special characters interpreted by sed in replacement strings.
17529 case $configure_input in #(
17530 *\&* | *\|* | *\\* )
17531 ac_sed_conf_input=`$as_echo "$configure_input" |
17532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17533 *) ac_sed_conf_input=$configure_input;;
17537 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17543 ac_dir=`$as_dirname -- "$ac_file" ||
17544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17545 X"$ac_file" : 'X\(//\)[^/]' \| \
17546 X"$ac_file" : 'X\(//\)$' \| \
17547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17548 $as_echo X"$ac_file" |
17549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17553 /^X\(\/\/\)[^/].*/{
17566 as_dir="$ac_dir"; as_fn_mkdir_p
17570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17573 # A ".." for each directory in $ac_dir_suffix.
17574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17575 case $ac_top_builddir_sub in
17576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17580 ac_abs_top_builddir=$ac_pwd
17581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17582 # for backward compatibility:
17583 ac_top_builddir=$ac_top_build_prefix
17586 .) # We are building in place.
17588 ac_top_srcdir=$ac_top_builddir_sub
17589 ac_abs_top_srcdir=$ac_pwd ;;
17590 [\\/]* | ?:[\\/]* ) # Absolute name.
17591 ac_srcdir=$srcdir$ac_dir_suffix;
17592 ac_top_srcdir=$srcdir
17593 ac_abs_top_srcdir=$srcdir ;;
17594 *) # Relative name.
17595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17596 ac_top_srcdir=$ac_top_build_prefix$srcdir
17597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17612 ac_MKDIR_P=$MKDIR_P
17614 [\\/$]* | ?:[\\/]* ) ;;
17615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17620 # If the template does not know about datarootdir, expand it.
17621 # FIXME: This hack should be removed a few years after 2.60.
17622 ac_datarootdir_hack=; ac_datarootdir_seen=
17633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17634 *datarootdir*) ac_datarootdir_seen=yes;;
17635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17640 ac_datarootdir_hack='
17641 s&@datadir@&$datadir&g
17642 s&@docdir@&$docdir&g
17643 s&@infodir@&$infodir&g
17644 s&@localedir@&$localedir&g
17645 s&@mandir@&$mandir&g
17646 s&\\\${datarootdir}&$datarootdir&g' ;;
17650 # Neutralize VPATH when `$srcdir' = `.'.
17651 # Shell code in configure.ac might set extrasub.
17652 # FIXME: do we really want to maintain this feature?
17653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17654 ac_sed_extra="$ac_vpsub
17657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17660 s|@configure_input@|$ac_sed_conf_input|;t t
17661 s&@top_builddir@&$ac_top_builddir_sub&;t t
17662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17663 s&@srcdir@&$ac_srcdir&;t t
17664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17665 s&@top_srcdir@&$ac_top_srcdir&;t t
17666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17667 s&@builddir@&$ac_builddir&;t t
17668 s&@abs_builddir@&$ac_abs_builddir&;t t
17669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17670 s&@INSTALL@&$ac_INSTALL&;t t
17671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17672 $ac_datarootdir_hack
17674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17680 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17682 which seems to be undefined. Please make sure it is defined" >&5
17683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17684 which seems to be undefined. Please make sure it is defined" >&2;}
17686 rm -f "$ac_tmp/stdin"
17688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17697 if test x"$ac_file" != x-; then
17699 $as_echo "/* $configure_input */" \
17700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17701 } >"$ac_tmp/config.h" \
17702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17708 mv "$ac_tmp/config.h" "$ac_file" \
17709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17712 $as_echo "/* $configure_input */" \
17713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17714 || as_fn_error $? "could not create -" "$LINENO" 5
17716 # Compute "$ac_file"'s index in $config_headers.
17719 for _am_header in $config_headers :; do
17720 case $_am_header in
17721 $_am_arg | $_am_arg:* )
17724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17729 X"$_am_arg" : 'X\(//\)[^/]' \| \
17730 X"$_am_arg" : 'X\(//\)$' \| \
17731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17732 $as_echo X"$_am_arg" |
17733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17737 /^X\(\/\/\)[^/].*/{
17749 s/.*/./; q'`/stamp-h$_am_stamp_count
17752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17753 $as_echo "$as_me: executing $ac_file commands" >&6;}
17758 case $ac_file$ac_mode in
17759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17760 # Older Autoconf quotes --file arguments for eval, but not when files
17761 # are listed without --file. Let's play safe and only enable the eval
17762 # if we detect the quoting.
17763 # TODO: see whether this extra hack can be removed once we start
17764 # requiring Autoconf 2.70 or later.
17765 case $CONFIG_FILES in #(
17767 eval set x "$CONFIG_FILES" ;; #(
17769 set x $CONFIG_FILES ;; #(
17774 # Used to flag and report bootstrapping failures.
17778 # Strip MF so we end up with the name of the file.
17779 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17780 # Check whether this is an Automake generated Makefile which includes
17781 # dependency-tracking related rules and includes.
17782 # Grep'ing the whole file directly is not great: AIX grep has a line
17783 # limit of 2048, but all sed's we know have understand at least 4000.
17784 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17786 am_dirpart=`$as_dirname -- "$am_mf" ||
17787 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17788 X"$am_mf" : 'X\(//\)[^/]' \| \
17789 X"$am_mf" : 'X\(//\)$' \| \
17790 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17791 $as_echo X"$am_mf" |
17792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17796 /^X\(\/\/\)[^/].*/{
17809 am_filepart=`$as_basename -- "$am_mf" ||
17810 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17811 X"$am_mf" : 'X\(//\)$' \| \
17812 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17813 $as_echo X/"$am_mf" |
17814 sed '/^.*\/\([^/][^/]*\)\/*$/{
17827 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17828 && sed -e '/# am--include-marker/d' "$am_filepart" \
17829 | $MAKE -f - am--depfiles" >&5
17830 (cd "$am_dirpart" \
17831 && sed -e '/# am--include-marker/d' "$am_filepart" \
17832 | $MAKE -f - am--depfiles) >&5 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } || am_rc=$?
17837 if test $am_rc -ne 0; then
17838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17840 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17841 for automatic dependency tracking. Try re-running configure with the
17842 '--disable-dependency-tracking' option to at least be able to build
17843 the package (albeit without support for automatic dependency tracking).
17844 See \`config.log' for more details" "$LINENO" 5; }
17846 { am_dirpart=; unset am_dirpart;}
17847 { am_filepart=; unset am_filepart;}
17848 { am_mf=; unset am_mf;}
17849 { am_rc=; unset am_rc;}
17850 rm -f conftest-deps.mk
17853 "po-directories":C)
17854 for ac_file in $CONFIG_FILES; do
17855 # Support "outfile[:infile[:infile...]]"
17857 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17859 # PO directories have a Makefile.in generated from Makefile.in.in.
17860 case "$ac_file" in */Makefile.in)
17861 # Adjust a relative srcdir.
17862 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17863 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17864 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17865 # In autoconf-2.13 it is called $ac_given_srcdir.
17866 # In autoconf-2.50 it is called $srcdir.
17867 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17868 case "$ac_given_srcdir" in
17869 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17870 /*) top_srcdir="$ac_given_srcdir" ;;
17871 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17873 # Treat a directory as a PO directory if and only if it has a
17874 # POTFILES.in file. This allows packages to have multiple PO
17875 # directories under different names or in different locations.
17876 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17877 rm -f "$ac_dir/POTFILES"
17878 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17879 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17880 POMAKEFILEDEPS="POTFILES.in"
17881 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17882 # on $ac_dir but don't depend on user-specified configuration
17884 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17885 # The LINGUAS file contains the set of available languages.
17886 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17887 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17889 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17890 # Hide the ALL_LINGUAS assignment from automake < 1.5.
17891 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17892 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17894 # The set of available languages was given in configure.in.
17895 # Hide the ALL_LINGUAS assignment from automake < 1.5.
17896 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17899 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17900 # Compute UPDATEPOFILES
17901 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17902 # Compute DUMMYPOFILES
17903 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17905 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17906 case "$ac_given_srcdir" in
17908 *) srcdirpre='$(srcdir)/' ;;
17914 for lang in $ALL_LINGUAS; do
17915 POFILES="$POFILES $srcdirpre$lang.po"
17916 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17917 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17918 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17920 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17921 # environment variable.
17923 if test -n "$ALL_LINGUAS"; then
17924 for presentlang in $ALL_LINGUAS; do
17926 if test "%UNSET%" != "$LINGUAS"; then
17927 desiredlanguages="$LINGUAS"
17929 desiredlanguages="$ALL_LINGUAS"
17931 for desiredlang in $desiredlanguages; do
17932 # Use the presentlang catalog if desiredlang is
17933 # a. equal to presentlang, or
17934 # b. a variant of presentlang (because in this case,
17935 # presentlang can be used as a fallback for messages
17936 # which are not translated in the desiredlang catalog).
17937 case "$desiredlang" in
17938 "$presentlang"*) useit=yes;;
17941 if test $useit = yes; then
17942 INST_LINGUAS="$INST_LINGUAS $presentlang"
17947 if test -n "$INST_LINGUAS"; then
17948 for lang in $INST_LINGUAS; do
17949 CATALOGS="$CATALOGS $lang.gmo"
17952 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17953 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"
17954 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17955 if test -f "$f"; then
17957 *.orig | *.bak | *~) ;;
17958 *) cat "$f" >> "$ac_dir/Makefile" ;;
17973 ac_clean_files=$ac_clean_files_save
17975 test $ac_write_fail = 0 ||
17976 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17979 # configure is writing to config.log, and then calls config.status.
17980 # config.status does its own redirection, appending to config.log.
17981 # Unfortunately, on DOS this fails, as config.log is still kept open
17982 # by configure, so config.status won't be able to write to it; its
17983 # output is simply discarded. So we exec the FD to /dev/null,
17984 # effectively closing config.log, so it can be properly (re)opened and
17985 # appended to by config.status. When coming back to configure, we
17986 # need to make the FD available again.
17987 if test "$no_create" != yes; then
17989 ac_config_status_args=
17990 test "$silent" = yes &&
17991 ac_config_status_args="$ac_config_status_args --quiet"
17993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17996 # would make configure fail if this is the last instruction.
17997 $ac_cs_success || as_fn_exit 1
17999 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18001 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18007 GnuPG v${VERSION} has been configured as follows:
18009 Revision: c77bb1a75 (51067)
18010 Platform: $PRINTABLE_OS_NAME ($host)
18012 OpenPGP: $build_gpg
18013 S/MIME: $build_gpgsm
18014 Agent: $build_agent
18015 Smartcard: $build_scdaemon $build_scdaemon_extra
18017 Dirmngr: $build_dirmngr
18018 Gpgtar: $build_gpgtar
18019 WKS tools: $build_wks_tools
18021 Protect tool: $show_gnupg_protect_tool_pgm
18022 LDAP wrapper: $show_gnupg_dirmngr_ldap_pgm
18023 Default agent: $show_gnupg_agent_pgm
18024 Default pinentry: $show_gnupg_pinentry_pgm
18025 Default scdaemon: $show_gnupg_scdaemon_pgm
18026 Default dirmngr: $show_gnupg_dirmngr_pgm
18028 Dirmngr auto start: $dirmngr_auto_start
18029 Readline support: $gnupg_cv_have_readline
18030 LDAP support: $gnupg_have_ldap
18031 TLS support: $use_tls_library
18032 TOFU support: $use_tofu
18033 Tor support: $show_tor_support
18035 if test "x${gpg_config_script_warn}" != x; then
18037 Warning: Mismatches between the target platform and the
18038 to be used libraries have been detected for:
18039 ${gpg_config_script_warn}
18040 Please check above for more warning messages.
18044 if test "${build_gpg}" != "yes"; then
18046 Warning: The component "gpg" is used by other components as
18047 well as for the test suite. You have disabled
18048 this component and thus other things won't work.
18052 if test "${run_tests}" != "yes"; then
18054 Warning: The use of the test suite has been disabled!
18055 This is in almost all cases a bad idea. Take care.