Imported Upstream version 2.3.3
[platform/upstream/gpg2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gnupg 2.3.3.
4 #
5 # Report bugs to <https://bugs.gnupg.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
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 ## -------------------- ##
16
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 :
20   emulate sh
21   NULLCMD=:
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+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
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'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
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.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
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
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
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 || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
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
158 as_fn_exit 255
159   fi
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 :
164   emulate sh
165   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
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; }
184
185 exitcode=0
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 :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || 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 :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
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 :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
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
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
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.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
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
259 exit 255
260 fi
261
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."
268   else
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."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
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
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
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 :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
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.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
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
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
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
466
467
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.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
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; }
490
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).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
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 ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
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'"
555
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'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
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`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='gnupg'
582 PACKAGE_TARNAME='gnupg'
583 PACKAGE_VERSION='2.3.3'
584 PACKAGE_STRING='gnupg 2.3.3'
585 PACKAGE_BUGREPORT='https://bugs.gnupg.org'
586 PACKAGE_URL=''
587
588 ac_unique_file="sm/gpgsm.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_header_list=
627 ac_subst_vars='am__EXEEXT_FALSE
628 am__EXEEXT_TRUE
629 LTLIBOBJS
630 LIBOBJS
631 BUILD_HOSTNAME
632 BUILD_TIMESTAMP
633 BUILD_FILEVERSION
634 BUILD_VERSION
635 BUILD_REVISION
636 USE_TOFU_FALSE
637 USE_TOFU_TRUE
638 NO_TRUST_MODELS_FALSE
639 NO_TRUST_MODELS_TRUE
640 ENABLE_CARD_SUPPORT_FALSE
641 ENABLE_CARD_SUPPORT_TRUE
642 DISABLE_TESTS_FALSE
643 DISABLE_TESTS_TRUE
644 BUILD_WKS_TOOLS_FALSE
645 BUILD_WKS_TOOLS_TRUE
646 BUILD_GPGTAR_FALSE
647 BUILD_GPGTAR_TRUE
648 BUILD_DOC_FALSE
649 BUILD_DOC_TRUE
650 BUILD_TPM2D_FALSE
651 BUILD_TPM2D_TRUE
652 BUILD_KEYBOXD_FALSE
653 BUILD_KEYBOXD_TRUE
654 BUILD_DIRMNGR_FALSE
655 BUILD_DIRMNGR_TRUE
656 BUILD_G13_FALSE
657 BUILD_G13_TRUE
658 BUILD_SCDAEMON_FALSE
659 BUILD_SCDAEMON_TRUE
660 BUILD_AGENT_FALSE
661 BUILD_AGENT_TRUE
662 BUILD_GPGSM_FALSE
663 BUILD_GPGSM_TRUE
664 BUILD_GPG_FALSE
665 BUILD_GPG_TRUE
666 USE_C99_CFLAGS
667 HAVE_LIBTSS
668 TEST_LIBTSS_FALSE
669 TEST_LIBTSS_TRUE
670 HAVE_LIBTSS_FALSE
671 HAVE_LIBTSS_TRUE
672 LIBTSS_CFLAGS
673 LIBTSS_LIBS
674 TSSSTARTUP
675 SWTPM_IOCTL
676 SWTPM
677 TPMSERVER
678 TSS_INCLUDE
679 W32SOCKLIBS
680 NETLIBS
681 CROSS_COMPILING_FALSE
682 CROSS_COMPILING_TRUE
683 LIBREADLINE
684 ZLIBS
685 ENABLE_BZIP2_SUPPORT_FALSE
686 ENABLE_BZIP2_SUPPORT_TRUE
687 SYS_SOCKET_H
688 BUILD_INCLUDED_LIBINTL
689 USE_INCLUDED_LIBINTL
690 POSUB
691 LTLIBINTL
692 LIBINTL
693 INTLLIBS
694 INTL_MACOSX_LIBS
695 XGETTEXT_EXTRA_OPTIONS
696 MSGMERGE
697 XGETTEXT_015
698 XGETTEXT
699 GMSGFMT_015
700 MSGFMT_015
701 GMSGFMT
702 MSGFMT
703 GETTEXT_MACRO_VERSION
704 USE_NLS
705 LTLIBICONV
706 LIBICONV
707 SENDMAIL
708 USE_LDAP_FALSE
709 USE_LDAP_TRUE
710 LBER_LIBS
711 LDAP_CPPFLAGS
712 LDAPLIBS
713 GPGKEYS_LDAP
714 DNSLIBS
715 LIBGNUTLS_LIBS
716 LIBGNUTLS_CFLAGS
717 NTBTLS_LIBS
718 NTBTLS_CFLAGS
719 NTBTLS_CONFIG
720 NPTH_LIBS
721 NPTH_CFLAGS
722 NPTH_CONFIG
723 FUSERMOUNT
724 ENCFS
725 SQLITE3_FALSE
726 SQLITE3_TRUE
727 SQLITE3_LIBS
728 SQLITE3_CFLAGS
729 DL_LIBS
730 LIBUSB_CPPFLAGS
731 LIBUSB_LIBS
732 KSBA_LIBS
733 KSBA_CFLAGS
734 KSBA_CONFIG
735 LIBASSUAN_LIBS
736 LIBASSUAN_CFLAGS
737 LIBASSUAN_CONFIG
738 LIBGCRYPT_LIBS
739 LIBGCRYPT_CFLAGS
740 LIBGCRYPT_CONFIG
741 GPG_ERROR_MT_LIBS
742 GPG_ERROR_MT_CFLAGS
743 GPG_ERROR_LIBS
744 GPG_ERROR_CFLAGS
745 GPGRT_CONFIG
746 GPG_ERROR_CONFIG
747 HAVE_ANDROID_SYSTEM_FALSE
748 HAVE_ANDROID_SYSTEM_TRUE
749 HAVE_W32CE_SYSTEM_FALSE
750 HAVE_W32CE_SYSTEM_TRUE
751 HAVE_W32_SYSTEM_FALSE
752 HAVE_W32_SYSTEM_TRUE
753 USE_SIMPLE_GETTEXT_FALSE
754 USE_SIMPLE_GETTEXT_TRUE
755 HAVE_DOSISH_SYSTEM_FALSE
756 HAVE_DOSISH_SYSTEM_TRUE
757 PKG_CONFIG_LIBDIR
758 PKG_CONFIG_PATH
759 PKG_CONFIG
760 CC_FOR_BUILD
761 AWK_HEX_NUMBER_OPTION
762 HAVE_YAT2M_FALSE
763 HAVE_YAT2M_TRUE
764 YAT2M
765 WINDRES
766 PERL
767 AR
768 RANLIB
769 LN_S
770 SYSROOT
771 MAINT
772 MAINTAINER_MODE_FALSE
773 MAINTAINER_MODE_TRUE
774 USE_LIBDNS_FALSE
775 USE_LIBDNS_TRUE
776 USE_GPG2_HACK_FALSE
777 USE_GPG2_HACK_TRUE
778 GNUPG_DIRMNGR_LDAP_PGM_FALSE
779 GNUPG_DIRMNGR_LDAP_PGM_TRUE
780 GNUPG_DIRMNGR_LDAP_PGM
781 GNUPG_PROTECT_TOOL_PGM_FALSE
782 GNUPG_PROTECT_TOOL_PGM_TRUE
783 GNUPG_PROTECT_TOOL_PGM
784 GNUPG_KEYBOXD_PGM_FALSE
785 GNUPG_KEYBOXD_PGM_TRUE
786 GNUPG_KEYBOXD_PGM
787 GNUPG_DIRMNGR_PGM_FALSE
788 GNUPG_DIRMNGR_PGM_TRUE
789 GNUPG_DIRMNGR_PGM
790 GNUPG_TPM2DAEMON_PGM_FALSE
791 GNUPG_TPM2DAEMON_PGM_TRUE
792 GNUPG_TPM2DAEMON_PGM
793 GNUPG_SCDAEMON_PGM_FALSE
794 GNUPG_SCDAEMON_PGM_TRUE
795 GNUPG_SCDAEMON_PGM
796 GNUPG_PINENTRY_PGM_FALSE
797 GNUPG_PINENTRY_PGM_TRUE
798 GNUPG_PINENTRY_PGM
799 GNUPG_AGENT_PGM_FALSE
800 GNUPG_AGENT_PGM_TRUE
801 GNUPG_AGENT_PGM
802 PACKAGE_GT
803 EGREP
804 GREP
805 CPP
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 am__nodep
810 AMDEPBACKSLASH
811 AMDEP_FALSE
812 AMDEP_TRUE
813 am__include
814 DEPDIR
815 OBJEXT
816 EXEEXT
817 ac_ct_CC
818 CPPFLAGS
819 LDFLAGS
820 CFLAGS
821 CC
822 host_os
823 host_vendor
824 host_cpu
825 host
826 build_os
827 build_vendor
828 build_cpu
829 build
830 AM_BACKSLASH
831 AM_DEFAULT_VERBOSITY
832 AM_DEFAULT_V
833 AM_V
834 am__untar
835 am__tar
836 AMTAR
837 am__leading_dot
838 SET_MAKE
839 AWK
840 mkdir_p
841 MKDIR_P
842 INSTALL_STRIP_PROGRAM
843 STRIP
844 install_sh
845 MAKEINFO
846 AUTOHEADER
847 AUTOMAKE
848 AUTOCONF
849 ACLOCAL
850 VERSION
851 PACKAGE
852 CYGPATH_W
853 am__isrc
854 INSTALL_DATA
855 INSTALL_SCRIPT
856 INSTALL_PROGRAM
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 runstatedir
877 localstatedir
878 sharedstatedir
879 sysconfdir
880 datadir
881 datarootdir
882 libexecdir
883 sbindir
884 bindir
885 program_transform_name
886 prefix
887 exec_prefix
888 PACKAGE_URL
889 PACKAGE_BUGREPORT
890 PACKAGE_STRING
891 PACKAGE_VERSION
892 PACKAGE_TARNAME
893 PACKAGE_NAME
894 PATH_SEPARATOR
895 SHELL
896 am__quote'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_silent_rules
901 enable_dependency_tracking
902 enable_gpgsm
903 enable_scdaemon
904 enable_g13
905 enable_dirmngr
906 enable_keyboxd
907 enable_tpm2d
908 enable_doc
909 enable_gpgtar
910 enable_wks_tools
911 with_agent_pgm
912 with_pinentry_pgm
913 with_scdaemon_pgm
914 with_tpm2daemon_pgm
915 with_dirmngr_pgm
916 with_keyboxd_pgm
917 with_protect_tool_pgm
918 with_dirmngr_ldap_pgm
919 enable_gpg_is_gpg2
920 enable_selinux_support
921 enable_large_secmem
922 with_agent_s2k_calibration
923 enable_trust_models
924 enable_tofu
925 enable_libdns
926 enable_gpg_rsa
927 enable_gpg_ecdh
928 enable_gpg_ecdsa
929 enable_gpg_eddsa
930 enable_gpg_idea
931 enable_gpg_cast5
932 enable_gpg_blowfish
933 enable_gpg_aes128
934 enable_gpg_aes192
935 enable_gpg_aes256
936 enable_gpg_twofish
937 enable_gpg_camellia128
938 enable_gpg_camellia192
939 enable_gpg_camellia256
940 enable_gpg_md5
941 enable_gpg_rmd160
942 enable_gpg_sha224
943 enable_gpg_sha384
944 enable_gpg_sha512
945 enable_zip
946 enable_bzip2
947 enable_exec
948 enable_photo_viewers
949 with_photo_viewer
950 enable_key_cache
951 with_capabilities
952 enable_card_support
953 enable_ccid_driver
954 enable_dirmngr_auto_start
955 enable_maintainer_mode
956 enable_largefile
957 with_libgpg_error_prefix
958 with_gpg_error_prefix
959 with_libgcrypt_prefix
960 with_libassuan_prefix
961 with_libksba_prefix
962 with_ksba_prefix
963 enable_sqlite
964 with_npth_prefix
965 enable_npth_debug
966 enable_ntbtls
967 with_ntbtls_prefix
968 enable_gnutls
969 with_default_trust_store_file
970 enable_ldap
971 with_ldap
972 with_mailprog
973 with_gnu_ld
974 enable_rpath
975 with_libiconv_prefix
976 enable_nls
977 with_libintl_prefix
978 enable_endian_check
979 with_zlib
980 with_bzip2
981 with_readline
982 with_tss
983 enable_optimization
984 enable_log_clock
985 enable_werror
986 enable_all_tests
987 enable_tests
988 enable_gnupg_builddir_envvar
989 enable_run_gnupg_user_socket
990 enable_build_timestamp
991 '
992       ac_precious_vars='build_alias
993 host_alias
994 target_alias
995 CC
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1000 CPP
1001 SYSROOT
1002 YAT2M
1003 CC_FOR_BUILD
1004 PKG_CONFIG
1005 PKG_CONFIG_PATH
1006 PKG_CONFIG_LIBDIR
1007 SQLITE3_CFLAGS
1008 SQLITE3_LIBS
1009 LIBGNUTLS_CFLAGS
1010 LIBGNUTLS_LIBS'
1011
1012
1013 # Initialize some variables set by options.
1014 ac_init_help=
1015 ac_init_version=false
1016 ac_unrecognized_opts=
1017 ac_unrecognized_sep=
1018 # The variables have the same names as the options, with
1019 # dashes changed to underlines.
1020 cache_file=/dev/null
1021 exec_prefix=NONE
1022 no_create=
1023 no_recursion=
1024 prefix=NONE
1025 program_prefix=NONE
1026 program_suffix=NONE
1027 program_transform_name=s,x,x,
1028 silent=
1029 site=
1030 srcdir=
1031 verbose=
1032 x_includes=NONE
1033 x_libraries=NONE
1034
1035 # Installation directory options.
1036 # These are left unexpanded so users can "make install exec_prefix=/foo"
1037 # and all the variables that are supposed to be based on exec_prefix
1038 # by default will actually change.
1039 # Use braces instead of parens because sh, perl, etc. also accept them.
1040 # (The list follows the same order as the GNU Coding Standards.)
1041 bindir='${exec_prefix}/bin'
1042 sbindir='${exec_prefix}/sbin'
1043 libexecdir='${exec_prefix}/libexec'
1044 datarootdir='${prefix}/share'
1045 datadir='${datarootdir}'
1046 sysconfdir='${prefix}/etc'
1047 sharedstatedir='${prefix}/com'
1048 localstatedir='${prefix}/var'
1049 runstatedir='${localstatedir}/run'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1053 infodir='${datarootdir}/info'
1054 htmldir='${docdir}'
1055 dvidir='${docdir}'
1056 pdfdir='${docdir}'
1057 psdir='${docdir}'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1061
1062 ac_prev=
1063 ac_dashdash=
1064 for ac_option
1065 do
1066   # If the previous option needs an argument, assign it.
1067   if test -n "$ac_prev"; then
1068     eval $ac_prev=\$ac_option
1069     ac_prev=
1070     continue
1071   fi
1072
1073   case $ac_option in
1074   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075   *=)   ac_optarg= ;;
1076   *)    ac_optarg=yes ;;
1077   esac
1078
1079   # Accept the important Cygnus configure options, so we can diagnose typos.
1080
1081   case $ac_dashdash$ac_option in
1082   --)
1083     ac_dashdash=yes ;;
1084
1085   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1086     ac_prev=bindir ;;
1087   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1088     bindir=$ac_optarg ;;
1089
1090   -build | --build | --buil | --bui | --bu)
1091     ac_prev=build_alias ;;
1092   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1093     build_alias=$ac_optarg ;;
1094
1095   -cache-file | --cache-file | --cache-fil | --cache-fi \
1096   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1097     ac_prev=cache_file ;;
1098   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1099   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1100     cache_file=$ac_optarg ;;
1101
1102   --config-cache | -C)
1103     cache_file=config.cache ;;
1104
1105   -datadir | --datadir | --datadi | --datad)
1106     ac_prev=datadir ;;
1107   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1108     datadir=$ac_optarg ;;
1109
1110   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1111   | --dataroo | --dataro | --datar)
1112     ac_prev=datarootdir ;;
1113   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1114   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1115     datarootdir=$ac_optarg ;;
1116
1117   -disable-* | --disable-*)
1118     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121       as_fn_error $? "invalid feature name: $ac_useropt"
1122     ac_useropt_orig=$ac_useropt
1123     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124     case $ac_user_opts in
1125       *"
1126 "enable_$ac_useropt"
1127 "*) ;;
1128       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1129          ac_unrecognized_sep=', ';;
1130     esac
1131     eval enable_$ac_useropt=no ;;
1132
1133   -docdir | --docdir | --docdi | --doc | --do)
1134     ac_prev=docdir ;;
1135   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1136     docdir=$ac_optarg ;;
1137
1138   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1139     ac_prev=dvidir ;;
1140   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1141     dvidir=$ac_optarg ;;
1142
1143   -enable-* | --enable-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid feature name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=\$ac_optarg ;;
1158
1159   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1160   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1161   | --exec | --exe | --ex)
1162     ac_prev=exec_prefix ;;
1163   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1164   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1165   | --exec=* | --exe=* | --ex=*)
1166     exec_prefix=$ac_optarg ;;
1167
1168   -gas | --gas | --ga | --g)
1169     # Obsolete; use --with-gas.
1170     with_gas=yes ;;
1171
1172   -help | --help | --hel | --he | -h)
1173     ac_init_help=long ;;
1174   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1175     ac_init_help=recursive ;;
1176   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1177     ac_init_help=short ;;
1178
1179   -host | --host | --hos | --ho)
1180     ac_prev=host_alias ;;
1181   -host=* | --host=* | --hos=* | --ho=*)
1182     host_alias=$ac_optarg ;;
1183
1184   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1185     ac_prev=htmldir ;;
1186   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1187   | --ht=*)
1188     htmldir=$ac_optarg ;;
1189
1190   -includedir | --includedir | --includedi | --included | --include \
1191   | --includ | --inclu | --incl | --inc)
1192     ac_prev=includedir ;;
1193   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1194   | --includ=* | --inclu=* | --incl=* | --inc=*)
1195     includedir=$ac_optarg ;;
1196
1197   -infodir | --infodir | --infodi | --infod | --info | --inf)
1198     ac_prev=infodir ;;
1199   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1200     infodir=$ac_optarg ;;
1201
1202   -libdir | --libdir | --libdi | --libd)
1203     ac_prev=libdir ;;
1204   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1205     libdir=$ac_optarg ;;
1206
1207   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1208   | --libexe | --libex | --libe)
1209     ac_prev=libexecdir ;;
1210   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1211   | --libexe=* | --libex=* | --libe=*)
1212     libexecdir=$ac_optarg ;;
1213
1214   -localedir | --localedir | --localedi | --localed | --locale)
1215     ac_prev=localedir ;;
1216   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1217     localedir=$ac_optarg ;;
1218
1219   -localstatedir | --localstatedir | --localstatedi | --localstated \
1220   | --localstate | --localstat | --localsta | --localst | --locals)
1221     ac_prev=localstatedir ;;
1222   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1223   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1224     localstatedir=$ac_optarg ;;
1225
1226   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1227     ac_prev=mandir ;;
1228   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1229     mandir=$ac_optarg ;;
1230
1231   -nfp | --nfp | --nf)
1232     # Obsolete; use --without-fp.
1233     with_fp=no ;;
1234
1235   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1236   | --no-cr | --no-c | -n)
1237     no_create=yes ;;
1238
1239   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1240   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1241     no_recursion=yes ;;
1242
1243   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1244   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1245   | --oldin | --oldi | --old | --ol | --o)
1246     ac_prev=oldincludedir ;;
1247   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1248   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1249   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1250     oldincludedir=$ac_optarg ;;
1251
1252   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1253     ac_prev=prefix ;;
1254   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1255     prefix=$ac_optarg ;;
1256
1257   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1258   | --program-pre | --program-pr | --program-p)
1259     ac_prev=program_prefix ;;
1260   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1261   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1262     program_prefix=$ac_optarg ;;
1263
1264   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1265   | --program-suf | --program-su | --program-s)
1266     ac_prev=program_suffix ;;
1267   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1268   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1269     program_suffix=$ac_optarg ;;
1270
1271   -program-transform-name | --program-transform-name \
1272   | --program-transform-nam | --program-transform-na \
1273   | --program-transform-n | --program-transform- \
1274   | --program-transform | --program-transfor \
1275   | --program-transfo | --program-transf \
1276   | --program-trans | --program-tran \
1277   | --progr-tra | --program-tr | --program-t)
1278     ac_prev=program_transform_name ;;
1279   -program-transform-name=* | --program-transform-name=* \
1280   | --program-transform-nam=* | --program-transform-na=* \
1281   | --program-transform-n=* | --program-transform-=* \
1282   | --program-transform=* | --program-transfor=* \
1283   | --program-transfo=* | --program-transf=* \
1284   | --program-trans=* | --program-tran=* \
1285   | --progr-tra=* | --program-tr=* | --program-t=*)
1286     program_transform_name=$ac_optarg ;;
1287
1288   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1289     ac_prev=pdfdir ;;
1290   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1291     pdfdir=$ac_optarg ;;
1292
1293   -psdir | --psdir | --psdi | --psd | --ps)
1294     ac_prev=psdir ;;
1295   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1296     psdir=$ac_optarg ;;
1297
1298   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1299   | -silent | --silent | --silen | --sile | --sil)
1300     silent=yes ;;
1301
1302   -runstatedir | --runstatedir | --runstatedi | --runstated \
1303   | --runstate | --runstat | --runsta | --runst | --runs \
1304   | --run | --ru | --r)
1305     ac_prev=runstatedir ;;
1306   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1307   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1308   | --run=* | --ru=* | --r=*)
1309     runstatedir=$ac_optarg ;;
1310
1311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1312     ac_prev=sbindir ;;
1313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1314   | --sbi=* | --sb=*)
1315     sbindir=$ac_optarg ;;
1316
1317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1319   | --sharedst | --shareds | --shared | --share | --shar \
1320   | --sha | --sh)
1321     ac_prev=sharedstatedir ;;
1322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1325   | --sha=* | --sh=*)
1326     sharedstatedir=$ac_optarg ;;
1327
1328   -site | --site | --sit)
1329     ac_prev=site ;;
1330   -site=* | --site=* | --sit=*)
1331     site=$ac_optarg ;;
1332
1333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1334     ac_prev=srcdir ;;
1335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1336     srcdir=$ac_optarg ;;
1337
1338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1339   | --syscon | --sysco | --sysc | --sys | --sy)
1340     ac_prev=sysconfdir ;;
1341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1343     sysconfdir=$ac_optarg ;;
1344
1345   -target | --target | --targe | --targ | --tar | --ta | --t)
1346     ac_prev=target_alias ;;
1347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1348     target_alias=$ac_optarg ;;
1349
1350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1351     verbose=yes ;;
1352
1353   -version | --version | --versio | --versi | --vers | -V)
1354     ac_init_version=: ;;
1355
1356   -with-* | --with-*)
1357     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1358     # Reject names that are not valid shell variable names.
1359     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360       as_fn_error $? "invalid package name: $ac_useropt"
1361     ac_useropt_orig=$ac_useropt
1362     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363     case $ac_user_opts in
1364       *"
1365 "with_$ac_useropt"
1366 "*) ;;
1367       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1368          ac_unrecognized_sep=', ';;
1369     esac
1370     eval with_$ac_useropt=\$ac_optarg ;;
1371
1372   -without-* | --without-*)
1373     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1374     # Reject names that are not valid shell variable names.
1375     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376       as_fn_error $? "invalid package name: $ac_useropt"
1377     ac_useropt_orig=$ac_useropt
1378     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379     case $ac_user_opts in
1380       *"
1381 "with_$ac_useropt"
1382 "*) ;;
1383       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1384          ac_unrecognized_sep=', ';;
1385     esac
1386     eval with_$ac_useropt=no ;;
1387
1388   --x)
1389     # Obsolete; use --with-x.
1390     with_x=yes ;;
1391
1392   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1393   | --x-incl | --x-inc | --x-in | --x-i)
1394     ac_prev=x_includes ;;
1395   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1396   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1397     x_includes=$ac_optarg ;;
1398
1399   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1400   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1401     ac_prev=x_libraries ;;
1402   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1403   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1404     x_libraries=$ac_optarg ;;
1405
1406   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1407 Try \`$0 --help' for more information"
1408     ;;
1409
1410   *=*)
1411     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1412     # Reject names that are not valid shell variable names.
1413     case $ac_envvar in #(
1414       '' | [0-9]* | *[!_$as_cr_alnum]* )
1415       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1416     esac
1417     eval $ac_envvar=\$ac_optarg
1418     export $ac_envvar ;;
1419
1420   *)
1421     # FIXME: should be removed in autoconf 3.0.
1422     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1423     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1424       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1425     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1426     ;;
1427
1428   esac
1429 done
1430
1431 if test -n "$ac_prev"; then
1432   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1433   as_fn_error $? "missing argument to $ac_option"
1434 fi
1435
1436 if test -n "$ac_unrecognized_opts"; then
1437   case $enable_option_checking in
1438     no) ;;
1439     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1440     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1441   esac
1442 fi
1443
1444 # Check all directory arguments for consistency.
1445 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446                 datadir sysconfdir sharedstatedir localstatedir includedir \
1447                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448                 libdir localedir mandir runstatedir
1449 do
1450   eval ac_val=\$$ac_var
1451   # Remove trailing slashes.
1452   case $ac_val in
1453     */ )
1454       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1455       eval $ac_var=\$ac_val;;
1456   esac
1457   # Be sure to have absolute directory names.
1458   case $ac_val in
1459     [\\/$]* | ?:[\\/]* )  continue;;
1460     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461   esac
1462   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1463 done
1464
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1468 build=$build_alias
1469 host=$host_alias
1470 target=$target_alias
1471
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474   if test "x$build_alias" = x; then
1475     cross_compiling=maybe
1476   elif test "x$build_alias" != "x$host_alias"; then
1477     cross_compiling=yes
1478   fi
1479 fi
1480
1481 ac_tool_prefix=
1482 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1483
1484 test "$silent" = yes && exec 6>/dev/null
1485
1486
1487 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1488 ac_ls_di=`ls -di .` &&
1489 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1490   as_fn_error $? "working directory cannot be determined"
1491 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1492   as_fn_error $? "pwd does not report name of working directory"
1493
1494
1495 # Find the source files, if location was not specified.
1496 if test -z "$srcdir"; then
1497   ac_srcdir_defaulted=yes
1498   # Try the directory containing this script, then the parent directory.
1499   ac_confdir=`$as_dirname -- "$as_myself" ||
1500 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1501          X"$as_myself" : 'X\(//\)[^/]' \| \
1502          X"$as_myself" : 'X\(//\)$' \| \
1503          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1504 $as_echo X"$as_myself" |
1505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)[^/].*/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\/\)$/{
1514             s//\1/
1515             q
1516           }
1517           /^X\(\/\).*/{
1518             s//\1/
1519             q
1520           }
1521           s/.*/./; q'`
1522   srcdir=$ac_confdir
1523   if test ! -r "$srcdir/$ac_unique_file"; then
1524     srcdir=..
1525   fi
1526 else
1527   ac_srcdir_defaulted=no
1528 fi
1529 if test ! -r "$srcdir/$ac_unique_file"; then
1530   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1531   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1532 fi
1533 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1534 ac_abs_confdir=`(
1535         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1536         pwd)`
1537 # When building in place, set srcdir=.
1538 if test "$ac_abs_confdir" = "$ac_pwd"; then
1539   srcdir=.
1540 fi
1541 # Remove unnecessary trailing slashes from srcdir.
1542 # Double slashes in file names in object file debugging info
1543 # mess up M-x gdb in Emacs.
1544 case $srcdir in
1545 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1546 esac
1547 for ac_var in $ac_precious_vars; do
1548   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_env_${ac_var}_value=\$${ac_var}
1550   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1551   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1552 done
1553
1554 #
1555 # Report the --help message.
1556 #
1557 if test "$ac_init_help" = "long"; then
1558   # Omit some internal or obsolete options to make the list less imposing.
1559   # This message is too long to be a string in the A/UX 3.1 sh.
1560   cat <<_ACEOF
1561 \`configure' configures gnupg 2.3.3 to adapt to many kinds of systems.
1562
1563 Usage: $0 [OPTION]... [VAR=VALUE]...
1564
1565 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1566 VAR=VALUE.  See below for descriptions of some of the useful variables.
1567
1568 Defaults for the options are specified in brackets.
1569
1570 Configuration:
1571   -h, --help              display this help and exit
1572       --help=short        display options specific to this package
1573       --help=recursive    display the short help of all the included packages
1574   -V, --version           display version information and exit
1575   -q, --quiet, --silent   do not print \`checking ...' messages
1576       --cache-file=FILE   cache test results in FILE [disabled]
1577   -C, --config-cache      alias for \`--cache-file=config.cache'
1578   -n, --no-create         do not create output files
1579       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1580
1581 Installation directories:
1582   --prefix=PREFIX         install architecture-independent files in PREFIX
1583                           [$ac_default_prefix]
1584   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1585                           [PREFIX]
1586
1587 By default, \`make install' will install all the files in
1588 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1589 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1590 for instance \`--prefix=\$HOME'.
1591
1592 For better control, use the options below.
1593
1594 Fine tuning of the installation directories:
1595   --bindir=DIR            user executables [EPREFIX/bin]
1596   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1597   --libexecdir=DIR        program executables [EPREFIX/libexec]
1598   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1599   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1600   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1601   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1602   --libdir=DIR            object code libraries [EPREFIX/lib]
1603   --includedir=DIR        C header files [PREFIX/include]
1604   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1605   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1606   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1607   --infodir=DIR           info documentation [DATAROOTDIR/info]
1608   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1609   --mandir=DIR            man documentation [DATAROOTDIR/man]
1610   --docdir=DIR            documentation root [DATAROOTDIR/doc/gnupg]
1611   --htmldir=DIR           html documentation [DOCDIR]
1612   --dvidir=DIR            dvi documentation [DOCDIR]
1613   --pdfdir=DIR            pdf documentation [DOCDIR]
1614   --psdir=DIR             ps documentation [DOCDIR]
1615 _ACEOF
1616
1617   cat <<\_ACEOF
1618
1619 Program names:
1620   --program-prefix=PREFIX            prepend PREFIX to installed program names
1621   --program-suffix=SUFFIX            append SUFFIX to installed program names
1622   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1623
1624 System types:
1625   --build=BUILD     configure for building on BUILD [guessed]
1626   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1627 _ACEOF
1628 fi
1629
1630 if test -n "$ac_init_help"; then
1631   case $ac_init_help in
1632      short | recursive ) echo "Configuration of gnupg 2.3.3:";;
1633    esac
1634   cat <<\_ACEOF
1635
1636 Optional Features:
1637   --disable-option-checking  ignore unrecognized --enable/--with options
1638   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1639   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1640   --enable-silent-rules   less verbose build output (undo: "make V=1")
1641   --disable-silent-rules  verbose build output (undo: "make V=0")
1642   --enable-dependency-tracking
1643                           do not reject slow dependency extractors
1644   --disable-dependency-tracking
1645                           speeds up one-time build
1646   --disable-gpgsm         do not build the gpgsm program
1647   --disable-scdaemon      do not build the scdaemon program
1648   --enable-g13            build the g13 program
1649   --disable-dirmngr       do not build the dirmngr program
1650   --disable-keyboxd       do not build the keyboxd program
1651   --disable-tpm2d         do not build the tpm2d program
1652   --disable-doc           do not build the doc program
1653   --disable-gpgtar        do not build the gpgtar program
1654   --disable-wks-tools     do not build the wks-tools program
1655   --enable-gpg-is-gpg2    Set installed name of gpg to gpg2
1656   --enable-selinux-support
1657                           enable SELinux support
1658   --enable-large-secmem   allocate extra secure memory
1659   --disable-trust-models  disable all trust models except "always"
1660   --disable-tofu          disable the TOFU trust model
1661   --disable-libdns        do not build with libdns support
1662   --disable-gpg-rsa       disable the RSA public key algorithm in gpg
1663   --disable-gpg-ecdh      disable the ECDH public key algorithm in gpg
1664   --disable-gpg-ecdsa     disable the ECDSA public key algorithm in gpg
1665   --disable-gpg-eddsa     disable the EdDSA public key algorithm in gpg
1666   --disable-gpg-idea      disable the IDEA cipher algorithm in gpg
1667   --disable-gpg-cast5     disable the CAST5 cipher algorithm in gpg
1668   --disable-gpg-blowfish  disable the BLOWFISH cipher algorithm in gpg
1669   --disable-gpg-aes128    disable the AES128 cipher algorithm in gpg
1670   --disable-gpg-aes192    disable the AES192 cipher algorithm in gpg
1671   --disable-gpg-aes256    disable the AES256 cipher algorithm in gpg
1672   --disable-gpg-twofish   disable the TWOFISH cipher algorithm in gpg
1673   --disable-gpg-camellia128
1674                           disable the CAMELLIA128 cipher algorithm in gpg
1675   --disable-gpg-camellia192
1676                           disable the CAMELLIA192 cipher algorithm in gpg
1677   --disable-gpg-camellia256
1678                           disable the CAMELLIA256 cipher algorithm in gpg
1679   --disable-gpg-md5       disable the MD5 hash algorithm in gpg
1680   --disable-gpg-rmd160    disable the RIPE-MD160 hash algorithm in gpg
1681   --disable-gpg-sha224    disable the SHA-224 hash algorithm in gpg
1682   --disable-gpg-sha384    disable the SHA-384 hash algorithm in gpg
1683   --disable-gpg-sha512    disable the SHA-512 hash algorithm in gpg
1684   --disable-zip           disable the ZIP and ZLIB compression algorithm
1685   --disable-bzip2         disable the BZIP2 compression algorithm
1686   --disable-exec          disable all external program execution
1687   --disable-photo-viewers disable photo ID viewers
1688   --enable-key-cache=SIZE Set key cache to SIZE (default 4096)
1689   --disable-card-support  disable smartcard support
1690   --disable-ccid-driver   disable the internal CCID driver
1691   --disable-dirmngr-auto-start
1692                           disable auto starting of the dirmngr
1693   --enable-maintainer-mode
1694                           enable make rules and dependencies not useful (and
1695                           sometimes confusing) to the casual installer
1696   --disable-largefile     omit support for large files
1697   --disable-sqlite        disable the use of SQLITE
1698   --enable-npth-debug     build with debug version of npth
1699   --disable-ntbtls        disable the use of NTBTLS as TLS library
1700   --disable-gnutls        disable GNUTLS as fallback TLS library
1701   --disable-ldap          disable LDAP support
1702   --disable-rpath         do not hardcode runtime library paths
1703   --disable-nls           do not use Native Language Support
1704   --disable-endian-check  disable the endian check and trust the OS provided
1705                           macros
1706   --disable-optimization  disable compiler optimization
1707   --enable-log-clock      enable log_clock timestamps
1708   --enable-werror         append -Werror to CFLAGS
1709   --enable-all-tests      let "make check" run all tests
1710   --disable-tests         do not run any tests
1711
1712   --enable-run-gnupg-user-socket
1713                           try /run/gnupg/user for sockets prior to /run/user
1714   --enable-build-timestamp
1715                           set an explicit build timestamp for reproducibility.
1716                           (default is the current time in ISO-8601 format)
1717
1718 Optional Packages:
1719   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1720   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1721   --with-agent-pgm=PATH  Use PATH as the default for the agent)
1722   --with-pinentry-pgm=PATH  Use PATH as the default for the pinentry)
1723   --with-scdaemon-pgm=PATH  Use PATH as the default for the scdaemon)
1724   --with-tpm2daemon-pgm=PATH  Use PATH as the default for the tpm2daemon)
1725   --with-dirmngr-pgm=PATH  Use PATH as the default for the dirmngr)
1726   --with-keyboxd-pgm=PATH  Use PATH as the default for the keyboxd)
1727   --with-protect-tool-pgm=PATH  Use PATH as the default for the protect-tool)
1728   --with-dirmngr-ldap-pgm=PATH  Use PATH as the default for the dirmngr ldap wrapper)
1729   --with-agent-s2k-calibration=MSEC
1730                           calibrate passphrase stretching (s2k) to MSEC
1731                           milliseconds
1732   --with-photo-viewer=FIXED_VIEWER  set a fixed photo ID viewer
1733   --with-capabilities     use linux capabilities default=no
1734   --with-libgpg-error-prefix=PFX
1735                           prefix where GPG Error is installed (optional)
1736
1737   --with-libgcrypt-prefix=PFX
1738                           prefix where LIBGCRYPT is installed (optional)
1739   --with-libassuan-prefix=PFX
1740                           prefix where LIBASSUAN is installed (optional)
1741   --with-libksba-prefix=PFX
1742                           prefix where KSBA is installed (optional)
1743   --with-npth-prefix=PFX  prefix where NPTH is installed (optional)
1744   --with-ntbtls-prefix=PFX
1745                           prefix where NTBTLS is installed (optional)
1746   --with-default-trust-store-file=FILE
1747                           Use FILE as system trust store
1748   --with-ldap=DIR         look for the LDAP library in DIR
1749   --with-mailprog=NAME    use "NAME -t" for mail transport
1750   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1751   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1752   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1753   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1754   --without-libintl-prefix     don't search for libintl in includedir and libdir
1755   --with-zlib=DIR         use libz in DIR
1756   --with-bzip2=DIR        look for bzip2 in DIR
1757   --with-readline=DIR     look for the readline library in DIR
1758   --with-tss=TSS          use the specified TPM Software Stack (ibm, intel, or
1759                           autodetect)
1760
1761 Some influential environment variables:
1762   CC          C compiler command
1763   CFLAGS      C compiler flags
1764   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1765               nonstandard directory <lib dir>
1766   LIBS        libraries to pass to the linker, e.g. -l<library>
1767   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1768               you have headers in a nonstandard directory <include dir>
1769   CPP         C preprocessor
1770   SYSROOT     locate config scripts also below that directory
1771   YAT2M       tool to convert texi to man pages
1772   CC_FOR_BUILD
1773               build system C compiler
1774   PKG_CONFIG  path to pkg-config utility
1775   PKG_CONFIG_PATH
1776               directories to add to pkg-config's search path
1777   PKG_CONFIG_LIBDIR
1778               path overriding pkg-config's built-in search path
1779   SQLITE3_CFLAGS
1780               C compiler flags for SQLITE3, overriding pkg-config
1781   SQLITE3_LIBS
1782               linker flags for SQLITE3, overriding pkg-config
1783   LIBGNUTLS_CFLAGS
1784               C compiler flags for LIBGNUTLS, overriding pkg-config
1785   LIBGNUTLS_LIBS
1786               linker flags for LIBGNUTLS, overriding pkg-config
1787
1788 Use these variables to override the choices made by `configure' or to help
1789 it to find libraries and programs with nonstandard names/locations.
1790
1791 Report bugs to <https://bugs.gnupg.org>.
1792 _ACEOF
1793 ac_status=$?
1794 fi
1795
1796 if test "$ac_init_help" = "recursive"; then
1797   # If there are subdirs, report their specific --help.
1798   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1799     test -d "$ac_dir" ||
1800       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1801       continue
1802     ac_builddir=.
1803
1804 case "$ac_dir" in
1805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1806 *)
1807   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1808   # A ".." for each directory in $ac_dir_suffix.
1809   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1810   case $ac_top_builddir_sub in
1811   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1813   esac ;;
1814 esac
1815 ac_abs_top_builddir=$ac_pwd
1816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1817 # for backward compatibility:
1818 ac_top_builddir=$ac_top_build_prefix
1819
1820 case $srcdir in
1821   .)  # We are building in place.
1822     ac_srcdir=.
1823     ac_top_srcdir=$ac_top_builddir_sub
1824     ac_abs_top_srcdir=$ac_pwd ;;
1825   [\\/]* | ?:[\\/]* )  # Absolute name.
1826     ac_srcdir=$srcdir$ac_dir_suffix;
1827     ac_top_srcdir=$srcdir
1828     ac_abs_top_srcdir=$srcdir ;;
1829   *) # Relative name.
1830     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1831     ac_top_srcdir=$ac_top_build_prefix$srcdir
1832     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1833 esac
1834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1835
1836     cd "$ac_dir" || { ac_status=$?; continue; }
1837     # Check for guested configure.
1838     if test -f "$ac_srcdir/configure.gnu"; then
1839       echo &&
1840       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1841     elif test -f "$ac_srcdir/configure"; then
1842       echo &&
1843       $SHELL "$ac_srcdir/configure" --help=recursive
1844     else
1845       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1846     fi || ac_status=$?
1847     cd "$ac_pwd" || { ac_status=$?; break; }
1848   done
1849 fi
1850
1851 test -n "$ac_init_help" && exit $ac_status
1852 if $ac_init_version; then
1853   cat <<\_ACEOF
1854 gnupg configure 2.3.3
1855 generated by GNU Autoconf 2.69
1856
1857 Copyright (C) 2012 Free Software Foundation, Inc.
1858 This configure script is free software; the Free Software Foundation
1859 gives unlimited permission to copy, distribute and modify it.
1860 _ACEOF
1861   exit
1862 fi
1863
1864 ## ------------------------ ##
1865 ## Autoconf initialization. ##
1866 ## ------------------------ ##
1867
1868 # ac_fn_c_try_compile LINENO
1869 # --------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_c_try_compile ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   rm -f conftest.$ac_objext
1875   if { { ac_try="$ac_compile"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_compile") 2>conftest.err
1883   ac_status=$?
1884   if test -s conftest.err; then
1885     grep -v '^ *+' conftest.err >conftest.er1
1886     cat conftest.er1 >&5
1887     mv -f conftest.er1 conftest.err
1888   fi
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } && {
1891          test -z "$ac_c_werror_flag" ||
1892          test ! -s conftest.err
1893        } && test -s conftest.$ac_objext; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899         ac_retval=1
1900 fi
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_c_try_compile
1905
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_cpp ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   if { { ac_try="$ac_cpp conftest.$ac_ext"
1913 case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920   ac_status=$?
1921   if test -s conftest.err; then
1922     grep -v '^ *+' conftest.err >conftest.er1
1923     cat conftest.er1 >&5
1924     mv -f conftest.er1 conftest.err
1925   fi
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; } > conftest.i && {
1928          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929          test ! -s conftest.err
1930        }; then :
1931   ac_retval=0
1932 else
1933   $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936     ac_retval=1
1937 fi
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939   as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_cpp
1942
1943 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1946 # the include files in INCLUDES and setting the cache variable VAR
1947 # accordingly.
1948 ac_fn_c_check_header_mongrel ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   if eval \${$3+:} false; then :
1952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955   $as_echo_n "(cached) " >&6
1956 fi
1957 eval ac_res=\$$3
1958                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 else
1961   # Is the header compilable?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1963 $as_echo_n "checking $2 usability... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h.  */
1966 $4
1967 #include <$2>
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   ac_header_compiler=yes
1971 else
1972   ac_header_compiler=no
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1976 $as_echo "$ac_header_compiler" >&6; }
1977
1978 # Is the header present?
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1980 $as_echo_n "checking $2 presence... " >&6; }
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h.  */
1983 #include <$2>
1984 _ACEOF
1985 if ac_fn_c_try_cpp "$LINENO"; then :
1986   ac_header_preproc=yes
1987 else
1988   ac_header_preproc=no
1989 fi
1990 rm -f conftest.err conftest.i conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1992 $as_echo "$ac_header_preproc" >&6; }
1993
1994 # So?  What about this header?
1995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996   yes:no: )
1997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1998 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2001     ;;
2002   no:yes:* )
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2004 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2006 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2008 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2010 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ( $as_echo "## ------------------------------------- ##
2014 ## Report this to https://bugs.gnupg.org ##
2015 ## ------------------------------------- ##"
2016      ) | sed "s/^/$as_me: WARNING:     /" >&2
2017     ;;
2018 esac
2019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if eval \${$3+:} false; then :
2022   $as_echo_n "(cached) " >&6
2023 else
2024   eval "$3=\$ac_header_compiler"
2025 fi
2026 eval ac_res=\$$3
2027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 fi
2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031
2032 } # ac_fn_c_check_header_mongrel
2033
2034 # ac_fn_c_try_run LINENO
2035 # ----------------------
2036 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2037 # that executables *can* be run.
2038 ac_fn_c_try_run ()
2039 {
2040   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041   if { { ac_try="$ac_link"
2042 case "(($ac_try" in
2043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2044   *) ac_try_echo=$ac_try;;
2045 esac
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048   (eval "$ac_link") 2>&5
2049   ac_status=$?
2050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2052   { { case "(($ac_try" in
2053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054   *) ac_try_echo=$ac_try;;
2055 esac
2056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057 $as_echo "$ac_try_echo"; } >&5
2058   (eval "$ac_try") 2>&5
2059   ac_status=$?
2060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061   test $ac_status = 0; }; }; then :
2062   ac_retval=0
2063 else
2064   $as_echo "$as_me: program exited with status $ac_status" >&5
2065        $as_echo "$as_me: failed program was:" >&5
2066 sed 's/^/| /' conftest.$ac_ext >&5
2067
2068        ac_retval=$ac_status
2069 fi
2070   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2071   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072   as_fn_set_status $ac_retval
2073
2074 } # ac_fn_c_try_run
2075
2076 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2077 # -------------------------------------------------------
2078 # Tests whether HEADER exists and can be compiled using the include files in
2079 # INCLUDES, setting the cache variable VAR accordingly.
2080 ac_fn_c_check_header_compile ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h.  */
2090 $4
2091 #include <$2>
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094   eval "$3=yes"
2095 else
2096   eval "$3=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 eval ac_res=\$$3
2101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_check_header_compile
2106
2107 # ac_fn_c_try_link LINENO
2108 # -----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded.
2110 ac_fn_c_try_link ()
2111 {
2112   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113   rm -f conftest.$ac_objext conftest$ac_exeext
2114   if { { ac_try="$ac_link"
2115 case "(($ac_try" in
2116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117   *) ac_try_echo=$ac_try;;
2118 esac
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121   (eval "$ac_link") 2>conftest.err
2122   ac_status=$?
2123   if test -s conftest.err; then
2124     grep -v '^ *+' conftest.err >conftest.er1
2125     cat conftest.er1 >&5
2126     mv -f conftest.er1 conftest.err
2127   fi
2128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2129   test $ac_status = 0; } && {
2130          test -z "$ac_c_werror_flag" ||
2131          test ! -s conftest.err
2132        } && test -s conftest$ac_exeext && {
2133          test "$cross_compiling" = yes ||
2134          test -x conftest$ac_exeext
2135        }; then :
2136   ac_retval=0
2137 else
2138   $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141         ac_retval=1
2142 fi
2143   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2144   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2145   # interfere with the next link command; also delete a directory that is
2146   # left behind by Apple's compiler.  We do this before executing the actions.
2147   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149   as_fn_set_status $ac_retval
2150
2151 } # ac_fn_c_try_link
2152
2153 # ac_fn_c_check_func LINENO FUNC VAR
2154 # ----------------------------------
2155 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2156 ac_fn_c_check_func ()
2157 {
2158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h.  */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2168 #define $2 innocuous_$2
2169
2170 /* System header to define __stub macros and hopefully few prototypes,
2171     which can conflict with char $2 (); below.
2172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173     <limits.h> exists even on freestanding compilers.  */
2174
2175 #ifdef __STDC__
2176 # include <limits.h>
2177 #else
2178 # include <assert.h>
2179 #endif
2180
2181 #undef $2
2182
2183 /* Override any GCC internal prototype to avoid an error.
2184    Use char because int might match the return type of a GCC
2185    builtin and then its argument prototype would still apply.  */
2186 #ifdef __cplusplus
2187 extern "C"
2188 #endif
2189 char $2 ();
2190 /* The GNU C library defines this for functions which it implements
2191     to always fail with ENOSYS.  Some functions are actually named
2192     something starting with __ and the normal name is an alias.  */
2193 #if defined __stub_$2 || defined __stub___$2
2194 choke me
2195 #endif
2196
2197 int
2198 main ()
2199 {
2200 return $2 ();
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_link "$LINENO"; then :
2206   eval "$3=yes"
2207 else
2208   eval "$3=no"
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext \
2211     conftest$ac_exeext conftest.$ac_ext
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217
2218 } # ac_fn_c_check_func
2219
2220 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2221 # -------------------------------------------
2222 # Tests whether TYPE exists after having included INCLUDES, setting cache
2223 # variable VAR accordingly.
2224 ac_fn_c_check_type ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230   $as_echo_n "(cached) " >&6
2231 else
2232   eval "$3=no"
2233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h.  */
2235 $4
2236 int
2237 main ()
2238 {
2239 if (sizeof ($2))
2240          return 0;
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 if (sizeof (($2)))
2253             return 0;
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259
2260 else
2261   eval "$3=yes"
2262 fi
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$3
2268                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271
2272 } # ac_fn_c_check_type
2273
2274 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2275 # ---------------------------------------------
2276 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2277 # accordingly.
2278 ac_fn_c_check_decl ()
2279 {
2280   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281   as_decl_name=`echo $2|sed 's/ *(.*//'`
2282   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2284 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2285 if eval \${$3+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h.  */
2290 $4
2291 int
2292 main ()
2293 {
2294 #ifndef $as_decl_name
2295 #ifdef __cplusplus
2296   (void) $as_decl_use;
2297 #else
2298   (void) $as_decl_name;
2299 #endif
2300 #endif
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307   eval "$3=yes"
2308 else
2309   eval "$3=no"
2310 fi
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 eval ac_res=\$$3
2314                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317
2318 } # ac_fn_c_check_decl
2319
2320 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2321 # --------------------------------------------
2322 # Tries to find the compile-time value of EXPR in a program that includes
2323 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2324 # computed
2325 ac_fn_c_compute_int ()
2326 {
2327   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328   if test "$cross_compiling" = yes; then
2329     # Depending upon the size, compute the lo and hi bounds.
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h.  */
2332 $4
2333 int
2334 main ()
2335 {
2336 static int test_array [1 - 2 * !(($2) >= 0)];
2337 test_array [0] = 0;
2338 return test_array [0];
2339
2340   ;
2341   return 0;
2342 }
2343 _ACEOF
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345   ac_lo=0 ac_mid=0
2346   while :; do
2347     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 int
2351 main ()
2352 {
2353 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2354 test_array [0] = 0;
2355 return test_array [0];
2356
2357   ;
2358   return 0;
2359 }
2360 _ACEOF
2361 if ac_fn_c_try_compile "$LINENO"; then :
2362   ac_hi=$ac_mid; break
2363 else
2364   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2365                         if test $ac_lo -le $ac_mid; then
2366                           ac_lo= ac_hi=
2367                           break
2368                         fi
2369                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2370 fi
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2372   done
2373 else
2374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 static int test_array [1 - 2 * !(($2) < 0)];
2381 test_array [0] = 0;
2382 return test_array [0];
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389   ac_hi=-1 ac_mid=-1
2390   while :; do
2391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h.  */
2393 $4
2394 int
2395 main ()
2396 {
2397 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2398 test_array [0] = 0;
2399 return test_array [0];
2400
2401   ;
2402   return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406   ac_lo=$ac_mid; break
2407 else
2408   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2409                         if test $ac_mid -le $ac_hi; then
2410                           ac_lo= ac_hi=
2411                           break
2412                         fi
2413                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416   done
2417 else
2418   ac_lo= ac_hi=
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 fi
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 # Binary search between lo and hi bounds.
2424 while test "x$ac_lo" != "x$ac_hi"; do
2425   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h.  */
2428 $4
2429 int
2430 main ()
2431 {
2432 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2433 test_array [0] = 0;
2434 return test_array [0];
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441   ac_hi=$ac_mid
2442 else
2443   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 done
2447 case $ac_lo in #((
2448 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2449 '') ac_retval=1 ;;
2450 esac
2451   else
2452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h.  */
2454 $4
2455 static long int longval () { return $2; }
2456 static unsigned long int ulongval () { return $2; }
2457 #include <stdio.h>
2458 #include <stdlib.h>
2459 int
2460 main ()
2461 {
2462
2463   FILE *f = fopen ("conftest.val", "w");
2464   if (! f)
2465     return 1;
2466   if (($2) < 0)
2467     {
2468       long int i = longval ();
2469       if (i != ($2))
2470         return 1;
2471       fprintf (f, "%ld", i);
2472     }
2473   else
2474     {
2475       unsigned long int i = ulongval ();
2476       if (i != ($2))
2477         return 1;
2478       fprintf (f, "%lu", i);
2479     }
2480   /* Do not output a trailing newline, as this causes \r\n confusion
2481      on some platforms.  */
2482   return ferror (f) || fclose (f) != 0;
2483
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 if ac_fn_c_try_run "$LINENO"; then :
2489   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2490 else
2491   ac_retval=1
2492 fi
2493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2494   conftest.$ac_objext conftest.beam conftest.$ac_ext
2495 rm -f conftest.val
2496
2497   fi
2498   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2499   as_fn_set_status $ac_retval
2500
2501 } # ac_fn_c_compute_int
2502
2503 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2504 # ----------------------------------------------------
2505 # Tries to find if the field MEMBER exists in type AGGR, after including
2506 # INCLUDES, setting cache variable VAR accordingly.
2507 ac_fn_c_check_member ()
2508 {
2509   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2511 $as_echo_n "checking for $2.$3... " >&6; }
2512 if eval \${$4+:} false; then :
2513   $as_echo_n "(cached) " >&6
2514 else
2515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h.  */
2517 $5
2518 int
2519 main ()
2520 {
2521 static $2 ac_aggr;
2522 if (ac_aggr.$3)
2523 return 0;
2524   ;
2525   return 0;
2526 }
2527 _ACEOF
2528 if ac_fn_c_try_compile "$LINENO"; then :
2529   eval "$4=yes"
2530 else
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 $5
2534 int
2535 main ()
2536 {
2537 static $2 ac_aggr;
2538 if (sizeof ac_aggr.$3)
2539 return 0;
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 if ac_fn_c_try_compile "$LINENO"; then :
2545   eval "$4=yes"
2546 else
2547   eval "$4=no"
2548 fi
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 fi
2553 eval ac_res=\$$4
2554                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557
2558 } # ac_fn_c_check_member
2559 cat >config.log <<_ACEOF
2560 This file contains any messages produced by compilers while
2561 running configure, to aid debugging if configure makes a mistake.
2562
2563 It was created by gnupg $as_me 2.3.3, which was
2564 generated by GNU Autoconf 2.69.  Invocation command line was
2565
2566   $ $0 $@
2567
2568 _ACEOF
2569 exec 5>>config.log
2570 {
2571 cat <<_ASUNAME
2572 ## --------- ##
2573 ## Platform. ##
2574 ## --------- ##
2575
2576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2581
2582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2583 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2584
2585 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2586 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2588 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2589 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2590 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2591 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2592
2593 _ASUNAME
2594
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598   IFS=$as_save_IFS
2599   test -z "$as_dir" && as_dir=.
2600     $as_echo "PATH: $as_dir"
2601   done
2602 IFS=$as_save_IFS
2603
2604 } >&5
2605
2606 cat >&5 <<_ACEOF
2607
2608
2609 ## ----------- ##
2610 ## Core tests. ##
2611 ## ----------- ##
2612
2613 _ACEOF
2614
2615
2616 # Keep a trace of the command line.
2617 # Strip out --no-create and --no-recursion so they do not pile up.
2618 # Strip out --silent because we don't want to record it for future runs.
2619 # Also quote any args containing shell meta-characters.
2620 # Make two passes to allow for proper duplicate-argument suppression.
2621 ac_configure_args=
2622 ac_configure_args0=
2623 ac_configure_args1=
2624 ac_must_keep_next=false
2625 for ac_pass in 1 2
2626 do
2627   for ac_arg
2628   do
2629     case $ac_arg in
2630     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2631     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2632     | -silent | --silent | --silen | --sile | --sil)
2633       continue ;;
2634     *\'*)
2635       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2636     esac
2637     case $ac_pass in
2638     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2639     2)
2640       as_fn_append ac_configure_args1 " '$ac_arg'"
2641       if test $ac_must_keep_next = true; then
2642         ac_must_keep_next=false # Got value, back to normal.
2643       else
2644         case $ac_arg in
2645           *=* | --config-cache | -C | -disable-* | --disable-* \
2646           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2647           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2648           | -with-* | --with-* | -without-* | --without-* | --x)
2649             case "$ac_configure_args0 " in
2650               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2651             esac
2652             ;;
2653           -* ) ac_must_keep_next=true ;;
2654         esac
2655       fi
2656       as_fn_append ac_configure_args " '$ac_arg'"
2657       ;;
2658     esac
2659   done
2660 done
2661 { ac_configure_args0=; unset ac_configure_args0;}
2662 { ac_configure_args1=; unset ac_configure_args1;}
2663
2664 # When interrupted or exit'd, cleanup temporary files, and complete
2665 # config.log.  We remove comments because anyway the quotes in there
2666 # would cause problems or look ugly.
2667 # WARNING: Use '\'' to represent an apostrophe within the trap.
2668 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2669 trap 'exit_status=$?
2670   # Save into config.log some information that might help in debugging.
2671   {
2672     echo
2673
2674     $as_echo "## ---------------- ##
2675 ## Cache variables. ##
2676 ## ---------------- ##"
2677     echo
2678     # The following way of writing the cache mishandles newlines in values,
2679 (
2680   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2681     eval ac_val=\$$ac_var
2682     case $ac_val in #(
2683     *${as_nl}*)
2684       case $ac_var in #(
2685       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2686 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2687       esac
2688       case $ac_var in #(
2689       _ | IFS | as_nl) ;; #(
2690       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2691       *) { eval $ac_var=; unset $ac_var;} ;;
2692       esac ;;
2693     esac
2694   done
2695   (set) 2>&1 |
2696     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2697     *${as_nl}ac_space=\ *)
2698       sed -n \
2699         "s/'\''/'\''\\\\'\'''\''/g;
2700           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2701       ;; #(
2702     *)
2703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2704       ;;
2705     esac |
2706     sort
2707 )
2708     echo
2709
2710     $as_echo "## ----------------- ##
2711 ## Output variables. ##
2712 ## ----------------- ##"
2713     echo
2714     for ac_var in $ac_subst_vars
2715     do
2716       eval ac_val=\$$ac_var
2717       case $ac_val in
2718       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2719       esac
2720       $as_echo "$ac_var='\''$ac_val'\''"
2721     done | sort
2722     echo
2723
2724     if test -n "$ac_subst_files"; then
2725       $as_echo "## ------------------- ##
2726 ## File substitutions. ##
2727 ## ------------------- ##"
2728       echo
2729       for ac_var in $ac_subst_files
2730       do
2731         eval ac_val=\$$ac_var
2732         case $ac_val in
2733         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2734         esac
2735         $as_echo "$ac_var='\''$ac_val'\''"
2736       done | sort
2737       echo
2738     fi
2739
2740     if test -s confdefs.h; then
2741       $as_echo "## ----------- ##
2742 ## confdefs.h. ##
2743 ## ----------- ##"
2744       echo
2745       cat confdefs.h
2746       echo
2747     fi
2748     test "$ac_signal" != 0 &&
2749       $as_echo "$as_me: caught signal $ac_signal"
2750     $as_echo "$as_me: exit $exit_status"
2751   } >&5
2752   rm -f core *.core core.conftest.* &&
2753     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2754     exit $exit_status
2755 ' 0
2756 for ac_signal in 1 2 13 15; do
2757   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2758 done
2759 ac_signal=0
2760
2761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2762 rm -f -r conftest* confdefs.h
2763
2764 $as_echo "/* confdefs.h */" > confdefs.h
2765
2766 # Predefined preprocessor variables.
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE_NAME "$PACKAGE_NAME"
2770 _ACEOF
2771
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2774 _ACEOF
2775
2776 cat >>confdefs.h <<_ACEOF
2777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2778 _ACEOF
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE_STRING "$PACKAGE_STRING"
2782 _ACEOF
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2786 _ACEOF
2787
2788 cat >>confdefs.h <<_ACEOF
2789 #define PACKAGE_URL "$PACKAGE_URL"
2790 _ACEOF
2791
2792
2793 # Let the site file select an alternate cache file if it wants to.
2794 # Prefer an explicitly selected file to automatically selected ones.
2795 ac_site_file1=NONE
2796 ac_site_file2=NONE
2797 if test -n "$CONFIG_SITE"; then
2798   # We do not want a PATH search for config.site.
2799   case $CONFIG_SITE in #((
2800     -*)  ac_site_file1=./$CONFIG_SITE;;
2801     */*) ac_site_file1=$CONFIG_SITE;;
2802     *)   ac_site_file1=./$CONFIG_SITE;;
2803   esac
2804 elif test "x$prefix" != xNONE; then
2805   ac_site_file1=$prefix/share/config.site
2806   ac_site_file2=$prefix/etc/config.site
2807 else
2808   ac_site_file1=$ac_default_prefix/share/config.site
2809   ac_site_file2=$ac_default_prefix/etc/config.site
2810 fi
2811 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2812 do
2813   test "x$ac_site_file" = xNONE && continue
2814   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2815     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2816 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2817     sed 's/^/| /' "$ac_site_file" >&5
2818     . "$ac_site_file" \
2819       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 as_fn_error $? "failed to load site script $ac_site_file
2822 See \`config.log' for more details" "$LINENO" 5; }
2823   fi
2824 done
2825
2826 if test -r "$cache_file"; then
2827   # Some versions of bash will fail to source /dev/null (special files
2828   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2829   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2830     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2831 $as_echo "$as_me: loading cache $cache_file" >&6;}
2832     case $cache_file in
2833       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2834       *)                      . "./$cache_file";;
2835     esac
2836   fi
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2839 $as_echo "$as_me: creating cache $cache_file" >&6;}
2840   >$cache_file
2841 fi
2842
2843 gt_needs="$gt_needs need-ngettext"
2844 as_fn_append ac_header_list " sys/socket.h"
2845 # Check that the precious variables saved in the cache have kept the same
2846 # value.
2847 ac_cache_corrupted=false
2848 for ac_var in $ac_precious_vars; do
2849   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2850   eval ac_new_set=\$ac_env_${ac_var}_set
2851   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2852   eval ac_new_val=\$ac_env_${ac_var}_value
2853   case $ac_old_set,$ac_new_set in
2854     set,)
2855       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2856 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2857       ac_cache_corrupted=: ;;
2858     ,set)
2859       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2860 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2861       ac_cache_corrupted=: ;;
2862     ,);;
2863     *)
2864       if test "x$ac_old_val" != "x$ac_new_val"; then
2865         # differences in whitespace do not lead to failure.
2866         ac_old_val_w=`echo x $ac_old_val`
2867         ac_new_val_w=`echo x $ac_new_val`
2868         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2869           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2870 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2871           ac_cache_corrupted=:
2872         else
2873           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2874 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2875           eval $ac_var=\$ac_old_val
2876         fi
2877         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2878 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2879         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2880 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2881       fi;;
2882   esac
2883   # Pass precious variables to config.status.
2884   if test "$ac_new_set" = set; then
2885     case $ac_new_val in
2886     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2887     *) ac_arg=$ac_var=$ac_new_val ;;
2888     esac
2889     case " $ac_configure_args " in
2890       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2891       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2892     esac
2893   fi
2894 done
2895 if $ac_cache_corrupted; then
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2899 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2900   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2901 fi
2902 ## -------------------- ##
2903 ## Main body of script. ##
2904 ## -------------------- ##
2905
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911
2912
2913
2914 # When changing the SWDB tag please also adjust the hard coded tags in
2915 # build-aux/speedo.mk, build-aux/getswdb.sh, and Makefile.am
2916
2917 cat >>confdefs.h <<_ACEOF
2918 #define GNUPG_SWDB_TAG "gnupg24"
2919 _ACEOF
2920
2921
2922 NEED_GPGRT_VERSION=1.41
2923
2924 NEED_LIBGCRYPT_API=1
2925 NEED_LIBGCRYPT_VERSION=1.9.1
2926
2927 NEED_LIBASSUAN_API=2
2928 NEED_LIBASSUAN_VERSION=2.5.0
2929
2930 NEED_KSBA_API=1
2931 NEED_KSBA_VERSION=1.3.4
2932
2933 NEED_NTBTLS_API=1
2934 NEED_NTBTLS_VERSION=0.1.0
2935
2936 NEED_NPTH_API=1
2937 NEED_NPTH_VERSION=1.2
2938
2939
2940 NEED_GNUTLS_VERSION=3.0
2941
2942 NEED_SQLITE_VERSION=3.27
2943
2944 development_version=no
2945 PACKAGE=$PACKAGE_NAME
2946 PACKAGE_GT=${PACKAGE_NAME}2
2947 VERSION=$PACKAGE_VERSION
2948
2949 ac_aux_dir=
2950 for ac_dir in build-aux "$srcdir"/build-aux; do
2951   if test -f "$ac_dir/install-sh"; then
2952     ac_aux_dir=$ac_dir
2953     ac_install_sh="$ac_aux_dir/install-sh -c"
2954     break
2955   elif test -f "$ac_dir/install.sh"; then
2956     ac_aux_dir=$ac_dir
2957     ac_install_sh="$ac_aux_dir/install.sh -c"
2958     break
2959   elif test -f "$ac_dir/shtool"; then
2960     ac_aux_dir=$ac_dir
2961     ac_install_sh="$ac_aux_dir/shtool install -c"
2962     break
2963   fi
2964 done
2965 if test -z "$ac_aux_dir"; then
2966   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2967 fi
2968
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2976
2977
2978
2979 ac_config_headers="$ac_config_headers config.h"
2980
2981 am__api_version='1.16'
2982
2983 # Find a good install program.  We prefer a C program (faster),
2984 # so one script is as good as another.  But avoid the broken or
2985 # incompatible versions:
2986 # SysV /etc/install, /usr/sbin/install
2987 # SunOS /usr/etc/install
2988 # IRIX /sbin/install
2989 # AIX /bin/install
2990 # AmigaOS /C/install, which installs bootblocks on floppy discs
2991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2994 # OS/2's system install, which has a completely different semantic
2995 # ./install, which can be erroneously created by make from ./install.sh.
2996 # Reject install programs that cannot install multiple files.
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2998 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2999 if test -z "$INSTALL"; then
3000 if ${ac_cv_path_install+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     # Account for people who put trailing slashes in PATH elements.
3009 case $as_dir/ in #((
3010   ./ | .// | /[cC]/* | \
3011   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3012   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3013   /usr/ucb/* ) ;;
3014   *)
3015     # OSF1 and SCO ODT 3.0 have their own names for install.
3016     # Don't use installbsd from OSF since it installs stuff as root
3017     # by default.
3018     for ac_prog in ginstall scoinst install; do
3019       for ac_exec_ext in '' $ac_executable_extensions; do
3020         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3021           if test $ac_prog = install &&
3022             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3023             # AIX install.  It has an incompatible calling convention.
3024             :
3025           elif test $ac_prog = install &&
3026             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3027             # program-specific install script used by HP pwplus--don't use.
3028             :
3029           else
3030             rm -rf conftest.one conftest.two conftest.dir
3031             echo one > conftest.one
3032             echo two > conftest.two
3033             mkdir conftest.dir
3034             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3035               test -s conftest.one && test -s conftest.two &&
3036               test -s conftest.dir/conftest.one &&
3037               test -s conftest.dir/conftest.two
3038             then
3039               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3040               break 3
3041             fi
3042           fi
3043         fi
3044       done
3045     done
3046     ;;
3047 esac
3048
3049   done
3050 IFS=$as_save_IFS
3051
3052 rm -rf conftest.one conftest.two conftest.dir
3053
3054 fi
3055   if test "${ac_cv_path_install+set}" = set; then
3056     INSTALL=$ac_cv_path_install
3057   else
3058     # As a last resort, use the slow shell script.  Don't cache a
3059     # value for INSTALL within a source directory, because that will
3060     # break other packages using the cache if that directory is
3061     # removed, or if the value is a relative name.
3062     INSTALL=$ac_install_sh
3063   fi
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3066 $as_echo "$INSTALL" >&6; }
3067
3068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3069 # It thinks the first close brace ends the variable substitution.
3070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071
3072 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073
3074 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3077 $as_echo_n "checking whether build environment is sane... " >&6; }
3078 # Reject unsafe characters in $srcdir or the absolute working directory
3079 # name.  Accept space and tab only in the latter.
3080 am_lf='
3081 '
3082 case `pwd` in
3083   *[\\\"\#\$\&\'\`$am_lf]*)
3084     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3085 esac
3086 case $srcdir in
3087   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3088     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3089 esac
3090
3091 # Do 'set' in a subshell so we don't clobber the current shell's
3092 # arguments.  Must try -L first in case configure is actually a
3093 # symlink; some systems play weird games with the mod time of symlinks
3094 # (eg FreeBSD returns the mod time of the symlink's containing
3095 # directory).
3096 if (
3097    am_has_slept=no
3098    for am_try in 1 2; do
3099      echo "timestamp, slept: $am_has_slept" > conftest.file
3100      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3101      if test "$*" = "X"; then
3102         # -L didn't work.
3103         set X `ls -t "$srcdir/configure" conftest.file`
3104      fi
3105      if test "$*" != "X $srcdir/configure conftest.file" \
3106         && test "$*" != "X conftest.file $srcdir/configure"; then
3107
3108         # If neither matched, then we have a broken ls.  This can happen
3109         # if, for instance, CONFIG_SHELL is bash and it inherits a
3110         # broken ls alias from the environment.  This has actually
3111         # happened.  Such a system could not be considered "sane".
3112         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3113   alias in your environment" "$LINENO" 5
3114      fi
3115      if test "$2" = conftest.file || test $am_try -eq 2; then
3116        break
3117      fi
3118      # Just in case.
3119      sleep 1
3120      am_has_slept=yes
3121    done
3122    test "$2" = conftest.file
3123    )
3124 then
3125    # Ok.
3126    :
3127 else
3128    as_fn_error $? "newly created file is older than distributed files!
3129 Check your system clock" "$LINENO" 5
3130 fi
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3132 $as_echo "yes" >&6; }
3133 # If we didn't sleep, we still need to ensure time stamps of config.status and
3134 # generated files are strictly newer.
3135 am_sleep_pid=
3136 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3137   ( sleep 1 ) &
3138   am_sleep_pid=$!
3139 fi
3140
3141 rm -f conftest.file
3142
3143 test "$program_prefix" != NONE &&
3144   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3145 # Use a double $ so make ignores it.
3146 test "$program_suffix" != NONE &&
3147   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3148 # Double any \ or $.
3149 # By default was `s,x,x', remove it if useless.
3150 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3151 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3152
3153 # Expand $ac_aux_dir to an absolute path.
3154 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3155
3156 if test x"${MISSING+set}" != xset; then
3157   MISSING="\${SHELL} '$am_aux_dir/missing'"
3158 fi
3159 # Use eval to expand $SHELL
3160 if eval "$MISSING --is-lightweight"; then
3161   am_missing_run="$MISSING "
3162 else
3163   am_missing_run=
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3165 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3166 fi
3167
3168 if test x"${install_sh+set}" != xset; then
3169   case $am_aux_dir in
3170   *\ * | *\     *)
3171     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3172   *)
3173     install_sh="\${SHELL} $am_aux_dir/install-sh"
3174   esac
3175 fi
3176
3177 # Installed binaries are usually stripped using 'strip' when the user
3178 # run "make install-strip".  However 'strip' might not be the right
3179 # tool to use in cross-compilation environments, therefore Automake
3180 # will honor the 'STRIP' environment variable to overrule this program.
3181 if test "$cross_compiling" != no; then
3182   if test -n "$ac_tool_prefix"; then
3183   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}strip; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_STRIP+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   if test -n "$STRIP"; then
3191   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198     for ac_exec_ext in '' $ac_executable_extensions; do
3199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205   done
3206 IFS=$as_save_IFS
3207
3208 fi
3209 fi
3210 STRIP=$ac_cv_prog_STRIP
3211 if test -n "$STRIP"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3213 $as_echo "$STRIP" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$ac_cv_prog_STRIP"; then
3222   ac_ct_STRIP=$STRIP
3223   # Extract the first word of "strip", so it can be a program name with args.
3224 set dummy strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$ac_ct_STRIP"; then
3231   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240     ac_cv_prog_ac_ct_STRIP="strip"
3241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245   done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3251 if test -n "$ac_ct_STRIP"; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3253 $as_echo "$ac_ct_STRIP" >&6; }
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259   if test "x$ac_ct_STRIP" = x; then
3260     STRIP=":"
3261   else
3262     case $cross_compiling:$ac_tool_warned in
3263 yes:)
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3267 esac
3268     STRIP=$ac_ct_STRIP
3269   fi
3270 else
3271   STRIP="$ac_cv_prog_STRIP"
3272 fi
3273
3274 fi
3275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3279 if test -z "$MKDIR_P"; then
3280   if ${ac_cv_path_mkdir+:} false; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_prog in mkdir gmkdir; do
3289          for ac_exec_ext in '' $ac_executable_extensions; do
3290            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3291            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3292              'mkdir (GNU coreutils) '* | \
3293              'mkdir (coreutils) '* | \
3294              'mkdir (fileutils) '4.1*)
3295                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3296                break 3;;
3297            esac
3298          done
3299        done
3300   done
3301 IFS=$as_save_IFS
3302
3303 fi
3304
3305   test -d ./--version && rmdir ./--version
3306   if test "${ac_cv_path_mkdir+set}" = set; then
3307     MKDIR_P="$ac_cv_path_mkdir -p"
3308   else
3309     # As a last resort, use the slow shell script.  Don't cache a
3310     # value for MKDIR_P within a source directory, because that will
3311     # break other packages using the cache if that directory is
3312     # removed, or if the value is a relative name.
3313     MKDIR_P="$ac_install_sh -d"
3314   fi
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3317 $as_echo "$MKDIR_P" >&6; }
3318
3319 for ac_prog in gawk mawk nawk awk
3320 do
3321   # Extract the first word of "$ac_prog", so it can be a program name with args.
3322 set dummy $ac_prog; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if ${ac_cv_prog_AWK+:} false; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   if test -n "$AWK"; then
3329   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334   IFS=$as_save_IFS
3335   test -z "$as_dir" && as_dir=.
3336     for ac_exec_ext in '' $ac_executable_extensions; do
3337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3338     ac_cv_prog_AWK="$ac_prog"
3339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340     break 2
3341   fi
3342 done
3343   done
3344 IFS=$as_save_IFS
3345
3346 fi
3347 fi
3348 AWK=$ac_cv_prog_AWK
3349 if test -n "$AWK"; then
3350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3351 $as_echo "$AWK" >&6; }
3352 else
3353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3355 fi
3356
3357
3358   test -n "$AWK" && break
3359 done
3360
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3363 set x ${MAKE-make}
3364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3366   $as_echo_n "(cached) " >&6
3367 else
3368   cat >conftest.make <<\_ACEOF
3369 SHELL = /bin/sh
3370 all:
3371         @echo '@@@%%%=$(MAKE)=@@@%%%'
3372 _ACEOF
3373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3375   *@@@%%%=?*=@@@%%%*)
3376     eval ac_cv_prog_make_${ac_make}_set=yes;;
3377   *)
3378     eval ac_cv_prog_make_${ac_make}_set=no;;
3379 esac
3380 rm -f conftest.make
3381 fi
3382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3385   SET_MAKE=
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389   SET_MAKE="MAKE=${MAKE-make}"
3390 fi
3391
3392 rm -rf .tst 2>/dev/null
3393 mkdir .tst 2>/dev/null
3394 if test -d .tst; then
3395   am__leading_dot=.
3396 else
3397   am__leading_dot=_
3398 fi
3399 rmdir .tst 2>/dev/null
3400
3401 # Check whether --enable-silent-rules was given.
3402 if test "${enable_silent_rules+set}" = set; then :
3403   enableval=$enable_silent_rules;
3404 fi
3405
3406 case $enable_silent_rules in # (((
3407   yes) AM_DEFAULT_VERBOSITY=0;;
3408    no) AM_DEFAULT_VERBOSITY=1;;
3409     *) AM_DEFAULT_VERBOSITY=1;;
3410 esac
3411 am_make=${MAKE-make}
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3413 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3414 if ${am_cv_make_support_nested_variables+:} false; then :
3415   $as_echo_n "(cached) " >&6
3416 else
3417   if $as_echo 'TRUE=$(BAR$(V))
3418 BAR0=false
3419 BAR1=true
3420 V=1
3421 am__doit:
3422         @$(TRUE)
3423 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3424   am_cv_make_support_nested_variables=yes
3425 else
3426   am_cv_make_support_nested_variables=no
3427 fi
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3430 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3431 if test $am_cv_make_support_nested_variables = yes; then
3432     AM_V='$(V)'
3433   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3434 else
3435   AM_V=$AM_DEFAULT_VERBOSITY
3436   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3437 fi
3438 AM_BACKSLASH='\'
3439
3440 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3441   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3442   # is not polluted with repeated "-I."
3443   am__isrc=' -I$(srcdir)'
3444   # test to see if srcdir already configured
3445   if test -f $srcdir/config.status; then
3446     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3447   fi
3448 fi
3449
3450 # test whether we have cygpath
3451 if test -z "$CYGPATH_W"; then
3452   if (cygpath --version) >/dev/null 2>/dev/null; then
3453     CYGPATH_W='cygpath -w'
3454   else
3455     CYGPATH_W=echo
3456   fi
3457 fi
3458
3459
3460 # Define the identity of the package.
3461  PACKAGE='gnupg'
3462  VERSION='2.3.3'
3463
3464
3465 cat >>confdefs.h <<_ACEOF
3466 #define PACKAGE "$PACKAGE"
3467 _ACEOF
3468
3469
3470 cat >>confdefs.h <<_ACEOF
3471 #define VERSION "$VERSION"
3472 _ACEOF
3473
3474 # Some tools Automake needs.
3475
3476 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3477
3478
3479 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3480
3481
3482 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3483
3484
3485 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3486
3487
3488 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3489
3490 # For better backward compatibility.  To be removed once Automake 1.9.x
3491 # dies out for good.  For more background, see:
3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3493 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3494 mkdir_p='$(MKDIR_P)'
3495
3496 # We need awk for the "check" target (and possibly the TAP driver).  The
3497 # system "awk" is bad on some platforms.
3498 # Always define AMTAR for backward compatibility.  Yes, it's still used
3499 # in the wild :-(  We should find a proper way to deprecate it ...
3500 AMTAR='$${TAR-tar}'
3501
3502
3503 # We'll loop over all known methods to create a tar archive until one works.
3504 _am_tools='gnutar  pax cpio none'
3505
3506 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3507
3508
3509
3510
3511
3512
3513 # POSIX will say in a future version that running "rm -f" with no argument
3514 # is OK; and we want to be able to make that assumption in our Makefile
3515 # recipes.  So use an aggressive probe to check that the usage we want is
3516 # actually supported "in the wild" to an acceptable degree.
3517 # See automake bug#10828.
3518 # To make any issue more visible, cause the running configure to be aborted
3519 # by default if the 'rm' program in use doesn't match our expectations; the
3520 # user can still override this though.
3521 if rm -f && rm -fr && rm -rf; then : OK; else
3522   cat >&2 <<'END'
3523 Oops!
3524
3525 Your 'rm' program seems unable to run without file operands specified
3526 on the command line, even when the '-f' option is present.  This is contrary
3527 to the behaviour of most rm programs out there, and not conforming with
3528 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3529
3530 Please tell bug-automake@gnu.org about your system, including the value
3531 of your $PATH and any error possibly output before this message.  This
3532 can help us improve future automake versions.
3533
3534 END
3535   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3536     echo 'Configuration will proceed anyway, since you have set the' >&2
3537     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3538     echo >&2
3539   else
3540     cat >&2 <<'END'
3541 Aborting the configuration process, to ensure you take notice of the issue.
3542
3543 You can download and install GNU coreutils to get an 'rm' implementation
3544 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3545
3546 If you want to complete the configuration process using your problematic
3547 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3548 to "yes", and re-run configure.
3549
3550 END
3551     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3552   fi
3553 fi
3554
3555 # Make sure we can run config.sub.
3556 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3557   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3558
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3560 $as_echo_n "checking build system type... " >&6; }
3561 if ${ac_cv_build+:} false; then :
3562   $as_echo_n "(cached) " >&6
3563 else
3564   ac_build_alias=$build_alias
3565 test "x$ac_build_alias" = x &&
3566   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3567 test "x$ac_build_alias" = x &&
3568   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3569 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3570   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3571
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3574 $as_echo "$ac_cv_build" >&6; }
3575 case $ac_cv_build in
3576 *-*-*) ;;
3577 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3578 esac
3579 build=$ac_cv_build
3580 ac_save_IFS=$IFS; IFS='-'
3581 set x $ac_cv_build
3582 shift
3583 build_cpu=$1
3584 build_vendor=$2
3585 shift; shift
3586 # Remember, the first character of IFS is used to create $*,
3587 # except with old shells:
3588 build_os=$*
3589 IFS=$ac_save_IFS
3590 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591
3592
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3594 $as_echo_n "checking host system type... " >&6; }
3595 if ${ac_cv_host+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test "x$host_alias" = x; then
3599   ac_cv_host=$ac_cv_build
3600 else
3601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3602     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3603 fi
3604
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3607 $as_echo "$ac_cv_host" >&6; }
3608 case $ac_cv_host in
3609 *-*-*) ;;
3610 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3611 esac
3612 host=$ac_cv_host
3613 ac_save_IFS=$IFS; IFS='-'
3614 set x $ac_cv_host
3615 shift
3616 host_cpu=$1
3617 host_vendor=$2
3618 shift; shift
3619 # Remember, the first character of IFS is used to create $*,
3620 # except with old shells:
3621 host_os=$*
3622 IFS=$ac_save_IFS
3623 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3624
3625
3626
3627
3628
3629
3630         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&5
3631 $as_echo "$as_me: autobuild project... ${PACKAGE_NAME:-$PACKAGE}" >&6;}
3632         { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&5
3633 $as_echo "$as_me: autobuild revision... ${PACKAGE_VERSION:-$VERSION}" >&6;}
3634         hostname=`hostname`
3635         if test "$hostname"; then
3636            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5
3637 $as_echo "$as_me: autobuild hostname... $hostname" >&6;}
3638         fi
3639
3640         date=`date +%Y%m%d-%H%M%S`
3641         if test "$?" != 0; then
3642            date=`date`
3643         fi
3644         if test "$date"; then
3645            { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5
3646 $as_echo "$as_me: autobuild timestamp... $date" >&6;}
3647         fi
3648
3649
3650 DEPDIR="${am__leading_dot}deps"
3651
3652 ac_config_commands="$ac_config_commands depfiles"
3653
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3655 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3656 cat > confinc.mk << 'END'
3657 am__doit:
3658         @echo this is the am__doit target >confinc.out
3659 .PHONY: am__doit
3660 END
3661 am__include="#"
3662 am__quote=
3663 # BSD make does it like this.
3664 echo '.include "confinc.mk" # ignored' > confmf.BSD
3665 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3666 echo 'include confinc.mk # ignored' > confmf.GNU
3667 _am_result=no
3668 for s in GNU BSD; do
3669   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3670    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3671    ac_status=$?
3672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673    (exit $ac_status); }
3674   case $?:`cat confinc.out 2>/dev/null` in #(
3675   '0:this is the am__doit target') :
3676     case $s in #(
3677   BSD) :
3678     am__include='.include' am__quote='"' ;; #(
3679   *) :
3680     am__include='include' am__quote='' ;;
3681 esac ;; #(
3682   *) :
3683      ;;
3684 esac
3685   if test "$am__include" != "#"; then
3686     _am_result="yes ($s style)"
3687     break
3688   fi
3689 done
3690 rm -f confinc.* confmf.*
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3692 $as_echo "${_am_result}" >&6; }
3693
3694 # Check whether --enable-dependency-tracking was given.
3695 if test "${enable_dependency_tracking+set}" = set; then :
3696   enableval=$enable_dependency_tracking;
3697 fi
3698
3699 if test "x$enable_dependency_tracking" != xno; then
3700   am_depcomp="$ac_aux_dir/depcomp"
3701   AMDEPBACKSLASH='\'
3702   am__nodep='_no'
3703 fi
3704  if test "x$enable_dependency_tracking" != xno; then
3705   AMDEP_TRUE=
3706   AMDEP_FALSE='#'
3707 else
3708   AMDEP_TRUE='#'
3709   AMDEP_FALSE=
3710 fi
3711
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 if test -n "$ac_tool_prefix"; then
3719   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_CC+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$CC"; then
3727   ac_cv_prog_CC="$CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 CC=$ac_cv_prog_CC
3747 if test -n "$CC"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756 fi
3757 if test -z "$ac_cv_prog_CC"; then
3758   ac_ct_CC=$CC
3759   # Extract the first word of "gcc", so it can be a program name with args.
3760 set dummy gcc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$ac_ct_CC"; then
3767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_prog_ac_ct_CC="gcc"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3787 if test -n "$ac_ct_CC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3789 $as_echo "$ac_ct_CC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795   if test "x$ac_ct_CC" = x; then
3796     CC=""
3797   else
3798     case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804     CC=$ac_ct_CC
3805   fi
3806 else
3807   CC="$ac_cv_prog_CC"
3808 fi
3809
3810 if test -z "$CC"; then
3811           if test -n "$ac_tool_prefix"; then
3812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3813 set dummy ${ac_tool_prefix}cc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_CC+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -n "$CC"; then
3820   ac_cv_prog_CC="$CC" # Let the user override the test.
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3824 do
3825   IFS=$as_save_IFS
3826   test -z "$as_dir" && as_dir=.
3827     for ac_exec_ext in '' $ac_executable_extensions; do
3828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829     ac_cv_prog_CC="${ac_tool_prefix}cc"
3830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831     break 2
3832   fi
3833 done
3834   done
3835 IFS=$as_save_IFS
3836
3837 fi
3838 fi
3839 CC=$ac_cv_prog_CC
3840 if test -n "$CC"; then
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842 $as_echo "$CC" >&6; }
3843 else
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 fi
3847
3848
3849   fi
3850 fi
3851 if test -z "$CC"; then
3852   # Extract the first word of "cc", so it can be a program name with args.
3853 set dummy cc; ac_word=$2
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if ${ac_cv_prog_CC+:} false; then :
3857   $as_echo_n "(cached) " >&6
3858 else
3859   if test -n "$CC"; then
3860   ac_cv_prog_CC="$CC" # Let the user override the test.
3861 else
3862   ac_prog_rejected=no
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868     for ac_exec_ext in '' $ac_executable_extensions; do
3869   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3871        ac_prog_rejected=yes
3872        continue
3873      fi
3874     ac_cv_prog_CC="cc"
3875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876     break 2
3877   fi
3878 done
3879   done
3880 IFS=$as_save_IFS
3881
3882 if test $ac_prog_rejected = yes; then
3883   # We found a bogon in the path, so make sure we never use it.
3884   set dummy $ac_cv_prog_CC
3885   shift
3886   if test $# != 0; then
3887     # We chose a different compiler from the bogus one.
3888     # However, it has the same basename, so the bogon will be chosen
3889     # first if we set CC to just the basename; use the full file name.
3890     shift
3891     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3892   fi
3893 fi
3894 fi
3895 fi
3896 CC=$ac_cv_prog_CC
3897 if test -n "$CC"; then
3898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 $as_echo "$CC" >&6; }
3900 else
3901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 $as_echo "no" >&6; }
3903 fi
3904
3905
3906 fi
3907 if test -z "$CC"; then
3908   if test -n "$ac_tool_prefix"; then
3909   for ac_prog in cl.exe
3910   do
3911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_CC+:} false; then :
3916   $as_echo_n "(cached) " >&6
3917 else
3918   if test -n "$CC"; then
3919   ac_cv_prog_CC="$CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933   done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 CC=$ac_cv_prog_CC
3939 if test -n "$CC"; then
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3942 else
3943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948     test -n "$CC" && break
3949   done
3950 fi
3951 if test -z "$CC"; then
3952   ac_ct_CC=$CC
3953   for ac_prog in cl.exe
3954 do
3955   # Extract the first word of "$ac_prog", so it can be a program name with args.
3956 set dummy $ac_prog; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   if test -n "$ac_ct_CC"; then
3963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972     ac_cv_prog_ac_ct_CC="$ac_prog"
3973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977   done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983 if test -n "$ac_ct_CC"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985 $as_echo "$ac_ct_CC" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991
3992   test -n "$ac_ct_CC" && break
3993 done
3994
3995   if test "x$ac_ct_CC" = x; then
3996     CC=""
3997   else
3998     case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004     CC=$ac_ct_CC
4005   fi
4006 fi
4007
4008 fi
4009
4010
4011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "no acceptable C compiler found in \$PATH
4014 See \`config.log' for more details" "$LINENO" 5; }
4015
4016 # Provide some information about the compiler.
4017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018 set X $ac_compile
4019 ac_compiler=$2
4020 for ac_option in --version -v -V -qversion; do
4021   { { ac_try="$ac_compiler $ac_option >&5"
4022 case "(($ac_try" in
4023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024   *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4029   ac_status=$?
4030   if test -s conftest.err; then
4031     sed '10a\
4032 ... rest of stderr output deleted ...
4033          10q' conftest.err >conftest.er1
4034     cat conftest.er1 >&5
4035   fi
4036   rm -f conftest.er1 conftest.err
4037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038   test $ac_status = 0; }
4039 done
4040
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047
4048   ;
4049   return 0;
4050 }
4051 _ACEOF
4052 ac_clean_files_save=$ac_clean_files
4053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4054 # Try to create an executable without -o first, disregard a.out.
4055 # It will help us diagnose broken compilers, and finding out an intuition
4056 # of exeext.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4058 $as_echo_n "checking whether the C compiler works... " >&6; }
4059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4060
4061 # The possible output files:
4062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4063
4064 ac_rmfiles=
4065 for ac_file in $ac_files
4066 do
4067   case $ac_file in
4068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4069     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4070   esac
4071 done
4072 rm -f $ac_rmfiles
4073
4074 if { { ac_try="$ac_link_default"
4075 case "(($ac_try" in
4076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077   *) ac_try_echo=$ac_try;;
4078 esac
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081   (eval "$ac_link_default") 2>&5
4082   ac_status=$?
4083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084   test $ac_status = 0; }; then :
4085   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4087 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4088 # so that the user can short-circuit this test for compilers unknown to
4089 # Autoconf.
4090 for ac_file in $ac_files ''
4091 do
4092   test -f "$ac_file" || continue
4093   case $ac_file in
4094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4095         ;;
4096     [ab].out )
4097         # We found the default executable, but exeext='' is most
4098         # certainly right.
4099         break;;
4100     *.* )
4101         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4102         then :; else
4103            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4104         fi
4105         # We set ac_cv_exeext here because the later test for it is not
4106         # safe: cross compilers may not add the suffix if given an `-o'
4107         # argument, so we may need to know it at that point already.
4108         # Even if this section looks crufty: it has the advantage of
4109         # actually working.
4110         break;;
4111     * )
4112         break;;
4113   esac
4114 done
4115 test "$ac_cv_exeext" = no && ac_cv_exeext=
4116
4117 else
4118   ac_file=''
4119 fi
4120 if test -z "$ac_file"; then :
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128 as_fn_error 77 "C compiler cannot create executables
4129 See \`config.log' for more details" "$LINENO" 5; }
4130 else
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132 $as_echo "yes" >&6; }
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4135 $as_echo_n "checking for C compiler default output file name... " >&6; }
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4137 $as_echo "$ac_file" >&6; }
4138 ac_exeext=$ac_cv_exeext
4139
4140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4141 ac_clean_files=$ac_clean_files_save
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4143 $as_echo_n "checking for suffix of executables... " >&6; }
4144 if { { ac_try="$ac_link"
4145 case "(($ac_try" in
4146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147   *) ac_try_echo=$ac_try;;
4148 esac
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151   (eval "$ac_link") 2>&5
4152   ac_status=$?
4153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154   test $ac_status = 0; }; then :
4155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4157 # work properly (i.e., refer to `conftest.exe'), while it won't with
4158 # `rm'.
4159 for ac_file in conftest.exe conftest conftest.*; do
4160   test -f "$ac_file" || continue
4161   case $ac_file in
4162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4164           break;;
4165     * ) break;;
4166   esac
4167 done
4168 else
4169   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4172 See \`config.log' for more details" "$LINENO" 5; }
4173 fi
4174 rm -f conftest conftest$ac_cv_exeext
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4176 $as_echo "$ac_cv_exeext" >&6; }
4177
4178 rm -f conftest.$ac_ext
4179 EXEEXT=$ac_cv_exeext
4180 ac_exeext=$EXEEXT
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h.  */
4183 #include <stdio.h>
4184 int
4185 main ()
4186 {
4187 FILE *f = fopen ("conftest.out", "w");
4188  return ferror (f) || fclose (f) != 0;
4189
4190   ;
4191   return 0;
4192 }
4193 _ACEOF
4194 ac_clean_files="$ac_clean_files conftest.out"
4195 # Check that the compiler produces executables we can run.  If not, either
4196 # the compiler is broken, or we cross compile.
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4198 $as_echo_n "checking whether we are cross compiling... " >&6; }
4199 if test "$cross_compiling" != yes; then
4200   { { ac_try="$ac_link"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207   (eval "$ac_link") 2>&5
4208   ac_status=$?
4209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210   test $ac_status = 0; }
4211   if { ac_try='./conftest$ac_cv_exeext'
4212   { { case "(($ac_try" in
4213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214   *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218   (eval "$ac_try") 2>&5
4219   ac_status=$?
4220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221   test $ac_status = 0; }; }; then
4222     cross_compiling=no
4223   else
4224     if test "$cross_compiling" = maybe; then
4225         cross_compiling=yes
4226     else
4227         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "cannot run C compiled programs.
4230 If you meant to cross compile, use \`--host'.
4231 See \`config.log' for more details" "$LINENO" 5; }
4232     fi
4233   fi
4234 fi
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4236 $as_echo "$cross_compiling" >&6; }
4237
4238 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4239 ac_clean_files=$ac_clean_files_save
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4241 $as_echo_n "checking for suffix of object files... " >&6; }
4242 if ${ac_cv_objext+:} false; then :
4243   $as_echo_n "(cached) " >&6
4244 else
4245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h.  */
4247
4248 int
4249 main ()
4250 {
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.o conftest.obj
4257 if { { ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264   (eval "$ac_compile") 2>&5
4265   ac_status=$?
4266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267   test $ac_status = 0; }; then :
4268   for ac_file in conftest.o conftest.obj conftest.*; do
4269   test -f "$ac_file" || continue;
4270   case $ac_file in
4271     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4272     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4273        break;;
4274   esac
4275 done
4276 else
4277   $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4282 as_fn_error $? "cannot compute suffix of object files: cannot compile
4283 See \`config.log' for more details" "$LINENO" 5; }
4284 fi
4285 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4288 $as_echo "$ac_cv_objext" >&6; }
4289 OBJEXT=$ac_cv_objext
4290 ac_objext=$OBJEXT
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4293 if ${ac_cv_c_compiler_gnu+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302 #ifndef __GNUC__
4303        choke me
4304 #endif
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311   ac_compiler_gnu=yes
4312 else
4313   ac_compiler_gnu=no
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4317
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4321 if test $ac_compiler_gnu = yes; then
4322   GCC=yes
4323 else
4324   GCC=
4325 fi
4326 ac_test_CFLAGS=${CFLAGS+set}
4327 ac_save_CFLAGS=$CFLAGS
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4330 if ${ac_cv_prog_cc_g+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   ac_save_c_werror_flag=$ac_c_werror_flag
4334    ac_c_werror_flag=yes
4335    ac_cv_prog_cc_g=no
4336    CFLAGS="-g"
4337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339
4340 int
4341 main ()
4342 {
4343
4344   ;
4345   return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_c_try_compile "$LINENO"; then :
4349   ac_cv_prog_cc_g=yes
4350 else
4351   CFLAGS=""
4352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 if ac_fn_c_try_compile "$LINENO"; then :
4364
4365 else
4366   ac_c_werror_flag=$ac_save_c_werror_flag
4367          CFLAGS="-g"
4368          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h.  */
4370
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_compile "$LINENO"; then :
4380   ac_cv_prog_cc_g=yes
4381 fi
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 fi
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 fi
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387    ac_c_werror_flag=$ac_save_c_werror_flag
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4390 $as_echo "$ac_cv_prog_cc_g" >&6; }
4391 if test "$ac_test_CFLAGS" = set; then
4392   CFLAGS=$ac_save_CFLAGS
4393 elif test $ac_cv_prog_cc_g = yes; then
4394   if test "$GCC" = yes; then
4395     CFLAGS="-g -O2"
4396   else
4397     CFLAGS="-g"
4398   fi
4399 else
4400   if test "$GCC" = yes; then
4401     CFLAGS="-O2"
4402   else
4403     CFLAGS=
4404   fi
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4408 if ${ac_cv_prog_cc_c89+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   ac_cv_prog_cc_c89=no
4412 ac_save_CC=$CC
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 #include <stdarg.h>
4416 #include <stdio.h>
4417 struct stat;
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4422      char **p;
4423      int i;
4424 {
4425   return p[i];
4426 }
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4428 {
4429   char *s;
4430   va_list v;
4431   va_start (v,p);
4432   s = g (p, va_arg (v,int));
4433   va_end (v);
4434   return s;
4435 }
4436
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4438    function prototypes and stuff, but not '\xHH' hex character constants.
4439    These don't provoke an error unfortunately, instead are silently treated
4440    as 'x'.  The following induces an error, until -std is added to get
4441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4442    array size at least.  It's necessary to write '\x00'==0 to get something
4443    that's true only with -std.  */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4445
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447    inside strings and character constants.  */
4448 #define FOO(x) 'x'
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4450
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4455 int argc;
4456 char **argv;
4457 int
4458 main ()
4459 {
4460 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4467 do
4468   CC="$ac_save_CC $ac_arg"
4469   if ac_fn_c_try_compile "$LINENO"; then :
4470   ac_cv_prog_cc_c89=$ac_arg
4471 fi
4472 rm -f core conftest.err conftest.$ac_objext
4473   test "x$ac_cv_prog_cc_c89" != "xno" && break
4474 done
4475 rm -f conftest.$ac_ext
4476 CC=$ac_save_CC
4477
4478 fi
4479 # AC_CACHE_VAL
4480 case "x$ac_cv_prog_cc_c89" in
4481   x)
4482     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4484   xno)
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4487   *)
4488     CC="$CC $ac_cv_prog_cc_c89"
4489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4491 esac
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4493
4494 fi
4495
4496 ac_ext=c
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4501
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4508 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4509 if ${am_cv_prog_cc_c_o+:} false; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523   # Make sure it works both with $CC and with simple cc.
4524   # Following AC_PROG_CC_C_O, we do the test twice because some
4525   # compilers refuse to overwrite an existing .o file with -o,
4526   # though they will create one.
4527   am_cv_prog_cc_c_o=yes
4528   for am_i in 1 2; do
4529     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4530    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4531    ac_status=$?
4532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533    (exit $ac_status); } \
4534          && test -f conftest2.$ac_objext; then
4535       : OK
4536     else
4537       am_cv_prog_cc_c_o=no
4538       break
4539     fi
4540   done
4541   rm -f core conftest*
4542   unset am_i
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4545 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4546 if test "$am_cv_prog_cc_c_o" != yes; then
4547    # Losing compiler, so override with the script.
4548    # FIXME: It is wrong to rewrite CC.
4549    # But if we don't then we get into trouble of one sort or another.
4550    # A longer-term fix would be to have automake use am__CC in this case,
4551    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4552    CC="$am_aux_dir/compile $CC"
4553 fi
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560
4561 depcc="$CC"   am_compiler_list=
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4564 $as_echo_n "checking dependency style of $depcc... " >&6; }
4565 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4569   # We make a subdir and do the tests there.  Otherwise we can end up
4570   # making bogus files that we don't know about and never remove.  For
4571   # instance it was reported that on HP-UX the gcc test will end up
4572   # making a dummy file named 'D' -- because '-MD' means "put the output
4573   # in D".
4574   rm -rf conftest.dir
4575   mkdir conftest.dir
4576   # Copy depcomp to subdir because otherwise we won't find it if we're
4577   # using a relative directory.
4578   cp "$am_depcomp" conftest.dir
4579   cd conftest.dir
4580   # We will build objects and dependencies in a subdirectory because
4581   # it helps to detect inapplicable dependency modes.  For instance
4582   # both Tru64's cc and ICC support -MD to output dependencies as a
4583   # side effect of compilation, but ICC will put the dependencies in
4584   # the current directory while Tru64 will put them in the object
4585   # directory.
4586   mkdir sub
4587
4588   am_cv_CC_dependencies_compiler_type=none
4589   if test "$am_compiler_list" = ""; then
4590      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4591   fi
4592   am__universal=false
4593   case " $depcc " in #(
4594      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4595      esac
4596
4597   for depmode in $am_compiler_list; do
4598     # Setup a source with many dependencies, because some compilers
4599     # like to wrap large dependency lists on column 80 (with \), and
4600     # we should not choose a depcomp mode which is confused by this.
4601     #
4602     # We need to recreate these files for each test, as the compiler may
4603     # overwrite some of them when testing with obscure command lines.
4604     # This happens at least with the AIX C compiler.
4605     : > sub/conftest.c
4606     for i in 1 2 3 4 5 6; do
4607       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4608       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4609       # Solaris 10 /bin/sh.
4610       echo '/* dummy */' > sub/conftst$i.h
4611     done
4612     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4613
4614     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4615     # mode.  It turns out that the SunPro C++ compiler does not properly
4616     # handle '-M -o', and we need to detect this.  Also, some Intel
4617     # versions had trouble with output in subdirs.
4618     am__obj=sub/conftest.${OBJEXT-o}
4619     am__minus_obj="-o $am__obj"
4620     case $depmode in
4621     gcc)
4622       # This depmode causes a compiler race in universal mode.
4623       test "$am__universal" = false || continue
4624       ;;
4625     nosideeffect)
4626       # After this tag, mechanisms are not by side-effect, so they'll
4627       # only be used when explicitly requested.
4628       if test "x$enable_dependency_tracking" = xyes; then
4629         continue
4630       else
4631         break
4632       fi
4633       ;;
4634     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4635       # This compiler won't grok '-c -o', but also, the minuso test has
4636       # not run yet.  These depmodes are late enough in the game, and
4637       # so weak that their functioning should not be impacted.
4638       am__obj=conftest.${OBJEXT-o}
4639       am__minus_obj=
4640       ;;
4641     none) break ;;
4642     esac
4643     if depmode=$depmode \
4644        source=sub/conftest.c object=$am__obj \
4645        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4646        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4647          >/dev/null 2>conftest.err &&
4648        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4649        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4650        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4651        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4652       # icc doesn't choke on unknown options, it will just issue warnings
4653       # or remarks (even with -Werror).  So we grep stderr for any message
4654       # that says an option was ignored or not supported.
4655       # When given -MP, icc 7.0 and 7.1 complain thusly:
4656       #   icc: Command line warning: ignoring option '-M'; no argument required
4657       # The diagnosis changed in icc 8.0:
4658       #   icc: Command line remark: option '-MP' not supported
4659       if (grep 'ignoring option' conftest.err ||
4660           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4661         am_cv_CC_dependencies_compiler_type=$depmode
4662         break
4663       fi
4664     fi
4665   done
4666
4667   cd ..
4668   rm -rf conftest.dir
4669 else
4670   am_cv_CC_dependencies_compiler_type=none
4671 fi
4672
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4675 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4676 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4677
4678  if
4679   test "x$enable_dependency_tracking" != xno \
4680   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4681   am__fastdepCC_TRUE=
4682   am__fastdepCC_FALSE='#'
4683 else
4684   am__fastdepCC_TRUE='#'
4685   am__fastdepCC_FALSE=
4686 fi
4687
4688
4689
4690 ac_ext=c
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4697 # On Suns, sometimes $CPP names a directory.
4698 if test -n "$CPP" && test -d "$CPP"; then
4699   CPP=
4700 fi
4701 if test -z "$CPP"; then
4702   if ${ac_cv_prog_CPP+:} false; then :
4703   $as_echo_n "(cached) " >&6
4704 else
4705       # Double quotes because CPP needs to be expanded
4706     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707     do
4708       ac_preproc_ok=false
4709 for ac_c_preproc_warn_flag in '' yes
4710 do
4711   # Use a header file that comes with gcc, so configuring glibc
4712   # with a fresh cross-compiler works.
4713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714   # <limits.h> exists even on freestanding compilers.
4715   # On the NeXT, cc -E runs the code through the compiler's parser,
4716   # not just through cpp. "Syntax error" is here to catch this case.
4717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h.  */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724                      Syntax error
4725 _ACEOF
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4727
4728 else
4729   # Broken: fails on valid input.
4730 continue
4731 fi
4732 rm -f conftest.err conftest.i conftest.$ac_ext
4733
4734   # OK, works on sane cases.  Now check whether nonexistent headers
4735   # can be detected and how.
4736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738 #include <ac_nonexistent.h>
4739 _ACEOF
4740 if ac_fn_c_try_cpp "$LINENO"; then :
4741   # Broken: success on invalid input.
4742 continue
4743 else
4744   # Passes both tests.
4745 ac_preproc_ok=:
4746 break
4747 fi
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4749
4750 done
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.i conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then :
4754   break
4755 fi
4756
4757     done
4758     ac_cv_prog_CPP=$CPP
4759
4760 fi
4761   CPP=$ac_cv_prog_CPP
4762 else
4763   ac_cv_prog_CPP=$CPP
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4766 $as_echo "$CPP" >&6; }
4767 ac_preproc_ok=false
4768 for ac_c_preproc_warn_flag in '' yes
4769 do
4770   # Use a header file that comes with gcc, so configuring glibc
4771   # with a fresh cross-compiler works.
4772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773   # <limits.h> exists even on freestanding compilers.
4774   # On the NeXT, cc -E runs the code through the compiler's parser,
4775   # not just through cpp. "Syntax error" is here to catch this case.
4776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778 #ifdef __STDC__
4779 # include <limits.h>
4780 #else
4781 # include <assert.h>
4782 #endif
4783                      Syntax error
4784 _ACEOF
4785 if ac_fn_c_try_cpp "$LINENO"; then :
4786
4787 else
4788   # Broken: fails on valid input.
4789 continue
4790 fi
4791 rm -f conftest.err conftest.i conftest.$ac_ext
4792
4793   # OK, works on sane cases.  Now check whether nonexistent headers
4794   # can be detected and how.
4795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797 #include <ac_nonexistent.h>
4798 _ACEOF
4799 if ac_fn_c_try_cpp "$LINENO"; then :
4800   # Broken: success on invalid input.
4801 continue
4802 else
4803   # Passes both tests.
4804 ac_preproc_ok=:
4805 break
4806 fi
4807 rm -f conftest.err conftest.i conftest.$ac_ext
4808
4809 done
4810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4811 rm -f conftest.i conftest.err conftest.$ac_ext
4812 if $ac_preproc_ok; then :
4813
4814 else
4815   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4817 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4818 See \`config.log' for more details" "$LINENO" 5; }
4819 fi
4820
4821 ac_ext=c
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4830 if ${ac_cv_path_GREP+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test -z "$GREP"; then
4834   ac_path_GREP_found=false
4835   # Loop through the user's path and test for each of PROGNAME-LIST
4836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4838 do
4839   IFS=$as_save_IFS
4840   test -z "$as_dir" && as_dir=.
4841     for ac_prog in grep ggrep; do
4842     for ac_exec_ext in '' $ac_executable_extensions; do
4843       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4844       as_fn_executable_p "$ac_path_GREP" || continue
4845 # Check for GNU ac_path_GREP and select it if it is found.
4846   # Check for GNU $ac_path_GREP
4847 case `"$ac_path_GREP" --version 2>&1` in
4848 *GNU*)
4849   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4850 *)
4851   ac_count=0
4852   $as_echo_n 0123456789 >"conftest.in"
4853   while :
4854   do
4855     cat "conftest.in" "conftest.in" >"conftest.tmp"
4856     mv "conftest.tmp" "conftest.in"
4857     cp "conftest.in" "conftest.nl"
4858     $as_echo 'GREP' >> "conftest.nl"
4859     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4860     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4861     as_fn_arith $ac_count + 1 && ac_count=$as_val
4862     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4863       # Best one so far, save it but keep looking for a better one
4864       ac_cv_path_GREP="$ac_path_GREP"
4865       ac_path_GREP_max=$ac_count
4866     fi
4867     # 10*(2^10) chars as input seems more than enough
4868     test $ac_count -gt 10 && break
4869   done
4870   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4871 esac
4872
4873       $ac_path_GREP_found && break 3
4874     done
4875   done
4876   done
4877 IFS=$as_save_IFS
4878   if test -z "$ac_cv_path_GREP"; then
4879     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4880   fi
4881 else
4882   ac_cv_path_GREP=$GREP
4883 fi
4884
4885 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4887 $as_echo "$ac_cv_path_GREP" >&6; }
4888  GREP="$ac_cv_path_GREP"
4889
4890
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4892 $as_echo_n "checking for egrep... " >&6; }
4893 if ${ac_cv_path_EGREP+:} false; then :
4894   $as_echo_n "(cached) " >&6
4895 else
4896   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4897    then ac_cv_path_EGREP="$GREP -E"
4898    else
4899      if test -z "$EGREP"; then
4900   ac_path_EGREP_found=false
4901   # Loop through the user's path and test for each of PROGNAME-LIST
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_prog in egrep; do
4908     for ac_exec_ext in '' $ac_executable_extensions; do
4909       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4910       as_fn_executable_p "$ac_path_EGREP" || continue
4911 # Check for GNU ac_path_EGREP and select it if it is found.
4912   # Check for GNU $ac_path_EGREP
4913 case `"$ac_path_EGREP" --version 2>&1` in
4914 *GNU*)
4915   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4916 *)
4917   ac_count=0
4918   $as_echo_n 0123456789 >"conftest.in"
4919   while :
4920   do
4921     cat "conftest.in" "conftest.in" >"conftest.tmp"
4922     mv "conftest.tmp" "conftest.in"
4923     cp "conftest.in" "conftest.nl"
4924     $as_echo 'EGREP' >> "conftest.nl"
4925     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4927     as_fn_arith $ac_count + 1 && ac_count=$as_val
4928     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4929       # Best one so far, save it but keep looking for a better one
4930       ac_cv_path_EGREP="$ac_path_EGREP"
4931       ac_path_EGREP_max=$ac_count
4932     fi
4933     # 10*(2^10) chars as input seems more than enough
4934     test $ac_count -gt 10 && break
4935   done
4936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4937 esac
4938
4939       $ac_path_EGREP_found && break 3
4940     done
4941   done
4942   done
4943 IFS=$as_save_IFS
4944   if test -z "$ac_cv_path_EGREP"; then
4945     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4946   fi
4947 else
4948   ac_cv_path_EGREP=$EGREP
4949 fi
4950
4951    fi
4952 fi
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4954 $as_echo "$ac_cv_path_EGREP" >&6; }
4955  EGREP="$ac_cv_path_EGREP"
4956
4957
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4959 $as_echo_n "checking for ANSI C header files... " >&6; }
4960 if ${ac_cv_header_stdc+:} false; then :
4961   $as_echo_n "(cached) " >&6
4962 else
4963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h.  */
4965 #include <stdlib.h>
4966 #include <stdarg.h>
4967 #include <string.h>
4968 #include <float.h>
4969
4970 int
4971 main ()
4972 {
4973
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_c_try_compile "$LINENO"; then :
4979   ac_cv_header_stdc=yes
4980 else
4981   ac_cv_header_stdc=no
4982 fi
4983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4984
4985 if test $ac_cv_header_stdc = yes; then
4986   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h.  */
4989 #include <string.h>
4990
4991 _ACEOF
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993   $EGREP "memchr" >/dev/null 2>&1; then :
4994
4995 else
4996   ac_cv_header_stdc=no
4997 fi
4998 rm -f conftest*
4999
5000 fi
5001
5002 if test $ac_cv_header_stdc = yes; then
5003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h.  */
5006 #include <stdlib.h>
5007
5008 _ACEOF
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010   $EGREP "free" >/dev/null 2>&1; then :
5011
5012 else
5013   ac_cv_header_stdc=no
5014 fi
5015 rm -f conftest*
5016
5017 fi
5018
5019 if test $ac_cv_header_stdc = yes; then
5020   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5021   if test "$cross_compiling" = yes; then :
5022   :
5023 else
5024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5025 /* end confdefs.h.  */
5026 #include <ctype.h>
5027 #include <stdlib.h>
5028 #if ((' ' & 0x0FF) == 0x020)
5029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5031 #else
5032 # define ISLOWER(c) \
5033                    (('a' <= (c) && (c) <= 'i') \
5034                      || ('j' <= (c) && (c) <= 'r') \
5035                      || ('s' <= (c) && (c) <= 'z'))
5036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5037 #endif
5038
5039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5040 int
5041 main ()
5042 {
5043   int i;
5044   for (i = 0; i < 256; i++)
5045     if (XOR (islower (i), ISLOWER (i))
5046         || toupper (i) != TOUPPER (i))
5047       return 2;
5048   return 0;
5049 }
5050 _ACEOF
5051 if ac_fn_c_try_run "$LINENO"; then :
5052
5053 else
5054   ac_cv_header_stdc=no
5055 fi
5056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5057   conftest.$ac_objext conftest.beam conftest.$ac_ext
5058 fi
5059
5060 fi
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5063 $as_echo "$ac_cv_header_stdc" >&6; }
5064 if test $ac_cv_header_stdc = yes; then
5065
5066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5067
5068 fi
5069
5070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5072                   inttypes.h stdint.h unistd.h
5073 do :
5074   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5076 "
5077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5078   cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5080 _ACEOF
5081
5082 fi
5083
5084 done
5085
5086
5087
5088   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5089 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5090   MINIX=yes
5091 else
5092   MINIX=
5093 fi
5094
5095
5096   if test "$MINIX" = yes; then
5097
5098 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5099
5100
5101 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5102
5103
5104 $as_echo "#define _MINIX 1" >>confdefs.h
5105
5106   fi
5107
5108
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5110 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5111 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h.  */
5116
5117 #         define __EXTENSIONS__ 1
5118           $ac_includes_default
5119 int
5120 main ()
5121 {
5122
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128   ac_cv_safe_to_define___extensions__=yes
5129 else
5130   ac_cv_safe_to_define___extensions__=no
5131 fi
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5135 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5136   test $ac_cv_safe_to_define___extensions__ = yes &&
5137     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5138
5139   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5140
5141   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5142
5143   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5144
5145   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5146
5147
5148
5149
5150 # Some status variables.
5151 have_gpg_error=no
5152 have_libgcrypt=no
5153 have_libassuan=no
5154 have_ksba=no
5155 have_ntbtls=no
5156 have_gnutls=no
5157 have_sqlite=no
5158 have_npth=no
5159 have_libusb=no
5160 have_libtss=no
5161 have_system_resolver=no
5162 gnupg_have_ldap="n/a"
5163
5164 use_zip=yes
5165 use_bzip2=yes
5166 use_exec=yes
5167 use_trust_models=yes
5168 use_tofu=yes
5169 use_libdns=yes
5170 card_support=yes
5171 use_ccid_driver=auto
5172 dirmngr_auto_start=yes
5173 use_tls_library=no
5174 large_secmem=no
5175 show_tor_support=no
5176
5177 # gpg is a required part and can't be disabled anymore.
5178 build_gpg=yes
5179
5180    build_gpgsm=yes
5181
5182       # Check whether --enable-gpgsm was given.
5183 if test "${enable_gpgsm+set}" = set; then :
5184   enableval=$enable_gpgsm; build_gpgsm=$enableval
5185 else
5186   build_gpgsm=yes
5187 fi
5188
5189
5190    case "$build_gpgsm" in
5191          no|yes)
5192            ;;
5193          *)
5194            as_fn_error $? "only yes or no allowed for feature --enable-gpgsm" "$LINENO" 5
5195            ;;
5196    esac
5197
5198
5199 # The agent is a required part and can't be disabled anymore.
5200 build_agent=yes
5201
5202    build_scdaemon=yes
5203
5204       # Check whether --enable-scdaemon was given.
5205 if test "${enable_scdaemon+set}" = set; then :
5206   enableval=$enable_scdaemon; build_scdaemon=$enableval
5207 else
5208   build_scdaemon=yes
5209 fi
5210
5211
5212    case "$build_scdaemon" in
5213          no|yes)
5214            ;;
5215          *)
5216            as_fn_error $? "only yes or no allowed for feature --enable-scdaemon" "$LINENO" 5
5217            ;;
5218    esac
5219
5220
5221
5222    build_g13=no
5223
5224       # Check whether --enable-g13 was given.
5225 if test "${enable_g13+set}" = set; then :
5226   enableval=$enable_g13; build_g13=$enableval
5227 else
5228   build_g13=no
5229 fi
5230
5231
5232    case "$build_g13" in
5233          no|yes)
5234            ;;
5235          *)
5236            as_fn_error $? "only yes or no allowed for feature --enable-g13" "$LINENO" 5
5237            ;;
5238    esac
5239
5240
5241
5242    build_dirmngr=yes
5243
5244       # Check whether --enable-dirmngr was given.
5245 if test "${enable_dirmngr+set}" = set; then :
5246   enableval=$enable_dirmngr; build_dirmngr=$enableval
5247 else
5248   build_dirmngr=yes
5249 fi
5250
5251
5252    case "$build_dirmngr" in
5253          no|yes)
5254            ;;
5255          *)
5256            as_fn_error $? "only yes or no allowed for feature --enable-dirmngr" "$LINENO" 5
5257            ;;
5258    esac
5259
5260
5261
5262    build_keyboxd=yes
5263
5264       # Check whether --enable-keyboxd was given.
5265 if test "${enable_keyboxd+set}" = set; then :
5266   enableval=$enable_keyboxd; build_keyboxd=$enableval
5267 else
5268   build_keyboxd=yes
5269 fi
5270
5271
5272    case "$build_keyboxd" in
5273          no|yes)
5274            ;;
5275          *)
5276            as_fn_error $? "only yes or no allowed for feature --enable-keyboxd" "$LINENO" 5
5277            ;;
5278    esac
5279
5280
5281
5282    build_tpm2d=yes
5283
5284       # Check whether --enable-tpm2d was given.
5285 if test "${enable_tpm2d+set}" = set; then :
5286   enableval=$enable_tpm2d; build_tpm2d=$enableval
5287 else
5288   build_tpm2d=yes
5289 fi
5290
5291
5292    case "$build_tpm2d" in
5293          no|yes)
5294            ;;
5295          *)
5296            as_fn_error $? "only yes or no allowed for feature --enable-tpm2d" "$LINENO" 5
5297            ;;
5298    esac
5299
5300
5301
5302    build_doc=yes
5303
5304       # Check whether --enable-doc was given.
5305 if test "${enable_doc+set}" = set; then :
5306   enableval=$enable_doc; build_doc=$enableval
5307 else
5308   build_doc=yes
5309 fi
5310
5311
5312    case "$build_doc" in
5313          no|yes)
5314            ;;
5315          *)
5316            as_fn_error $? "only yes or no allowed for feature --enable-doc" "$LINENO" 5
5317            ;;
5318    esac
5319
5320
5321 # We use gpgtar to unpack test data, hence we always build it.  If the
5322 # user opts out, we simply don't install it.
5323
5324    build_gpgtar=yes
5325
5326       # Check whether --enable-gpgtar was given.
5327 if test "${enable_gpgtar+set}" = set; then :
5328   enableval=$enable_gpgtar; build_gpgtar=$enableval
5329 else
5330   build_gpgtar=yes
5331 fi
5332
5333
5334    case "$build_gpgtar" in
5335          no|yes)
5336            ;;
5337          *)
5338            as_fn_error $? "only yes or no allowed for feature --enable-gpgtar" "$LINENO" 5
5339            ;;
5340    esac
5341
5342
5343 # We also install the gpg-wks-server tool by default but disable it
5344 # later for platforms where it can't be build.
5345
5346    build_wks_tools=yes
5347
5348       # Check whether --enable-wks-tools was given.
5349 if test "${enable_wks_tools+set}" = set; then :
5350   enableval=$enable_wks_tools; build_wks_tools=$enableval
5351 else
5352   build_wks_tools=yes
5353 fi
5354
5355
5356    case "$build_wks_tools" in
5357          no|yes)
5358            ;;
5359          *)
5360            as_fn_error $? "only yes or no allowed for feature --enable-wks-tools" "$LINENO" 5
5361            ;;
5362    esac
5363
5364
5365
5366
5367
5368
5369
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define PACKAGE "$PACKAGE"
5373 _ACEOF
5374
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define PACKAGE_GT "$PACKAGE_GT"
5378 _ACEOF
5379
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define VERSION "$VERSION"
5383 _ACEOF
5384
5385
5386 cat >>confdefs.h <<_ACEOF
5387 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5388 _ACEOF
5389
5390
5391 cat >>confdefs.h <<_ACEOF
5392 #define NEED_LIBGCRYPT_VERSION "$NEED_LIBGCRYPT_VERSION"
5393 _ACEOF
5394
5395
5396 cat >>confdefs.h <<_ACEOF
5397 #define NEED_KSBA_VERSION "$NEED_KSBA_VERSION"
5398 _ACEOF
5399
5400
5401 cat >>confdefs.h <<_ACEOF
5402 #define NEED_NTBTLS_VERSION "$NEED_NTBTLS_VERSION"
5403 _ACEOF
5404
5405
5406
5407
5408 # The default is to use the modules from this package and the few
5409 # other packages in a standard place; i.e where this package gets
5410 # installed.  With these options it is possible to override these
5411 # ${prefix} depended values with fixed paths, which can't be replaced
5412 # at make time.  See also am/cmacros.am and the defaults in AH_BOTTOM.
5413
5414 # Check whether --with-agent-pgm was given.
5415 if test "${with_agent_pgm+set}" = set; then :
5416   withval=$with_agent_pgm; GNUPG_AGENT_PGM="$withval"
5417 else
5418   GNUPG_AGENT_PGM=""
5419 fi
5420
5421
5422  if test -n "$GNUPG_AGENT_PGM"; then
5423   GNUPG_AGENT_PGM_TRUE=
5424   GNUPG_AGENT_PGM_FALSE='#'
5425 else
5426   GNUPG_AGENT_PGM_TRUE='#'
5427   GNUPG_AGENT_PGM_FALSE=
5428 fi
5429
5430 show_gnupg_agent_pgm="(default)"
5431 test -n "$GNUPG_AGENT_PGM" && show_gnupg_agent_pgm="$GNUPG_AGENT_PGM"
5432
5433
5434 # Check whether --with-pinentry-pgm was given.
5435 if test "${with_pinentry_pgm+set}" = set; then :
5436   withval=$with_pinentry_pgm; GNUPG_PINENTRY_PGM="$withval"
5437 else
5438   GNUPG_PINENTRY_PGM=""
5439 fi
5440
5441
5442  if test -n "$GNUPG_PINENTRY_PGM"; then
5443   GNUPG_PINENTRY_PGM_TRUE=
5444   GNUPG_PINENTRY_PGM_FALSE='#'
5445 else
5446   GNUPG_PINENTRY_PGM_TRUE='#'
5447   GNUPG_PINENTRY_PGM_FALSE=
5448 fi
5449
5450 show_gnupg_pinentry_pgm="(default)"
5451 test -n "$GNUPG_PINENTRY_PGM" && show_gnupg_pinentry_pgm="$GNUPG_PINENTRY_PGM"
5452
5453
5454
5455 # Check whether --with-scdaemon-pgm was given.
5456 if test "${with_scdaemon_pgm+set}" = set; then :
5457   withval=$with_scdaemon_pgm; GNUPG_SCDAEMON_PGM="$withval"
5458 else
5459   GNUPG_SCDAEMON_PGM=""
5460 fi
5461
5462
5463  if test -n "$GNUPG_SCDAEMON_PGM"; then
5464   GNUPG_SCDAEMON_PGM_TRUE=
5465   GNUPG_SCDAEMON_PGM_FALSE='#'
5466 else
5467   GNUPG_SCDAEMON_PGM_TRUE='#'
5468   GNUPG_SCDAEMON_PGM_FALSE=
5469 fi
5470
5471 show_gnupg_scdaemon_pgm="(default)"
5472 test -n "$GNUPG_SCDAEMON_PGM" && show_gnupg_scdaemon_pgm="$GNUPG_SCDAEMON_PGM"
5473
5474
5475
5476 # Check whether --with-tpm2daemon-pgm was given.
5477 if test "${with_tpm2daemon_pgm+set}" = set; then :
5478   withval=$with_tpm2daemon_pgm; GNUPG_TPM2DAEMON_PGM="$withval"
5479 else
5480   GNUPG_TPM2DAEMON_PGM=""
5481 fi
5482
5483
5484  if test -n "$GNUPG_TPM2DAEMON_PGM"; then
5485   GNUPG_TPM2DAEMON_PGM_TRUE=
5486   GNUPG_TPM2DAEMON_PGM_FALSE='#'
5487 else
5488   GNUPG_TPM2DAEMON_PGM_TRUE='#'
5489   GNUPG_TPM2DAEMON_PGM_FALSE=
5490 fi
5491
5492 show_gnupg_tpm2daemon_pgm="(default)"
5493 test -n "$GNUPG_TPM2DAEMON_PGM" && show_gnupg_tpm2daemon_pgm="$GNUPG_TPM2DAEMON_PGM"
5494
5495
5496
5497 # Check whether --with-dirmngr-pgm was given.
5498 if test "${with_dirmngr_pgm+set}" = set; then :
5499   withval=$with_dirmngr_pgm; GNUPG_DIRMNGR_PGM="$withval"
5500 else
5501   GNUPG_DIRMNGR_PGM=""
5502 fi
5503
5504
5505  if test -n "$GNUPG_DIRMNGR_PGM"; then
5506   GNUPG_DIRMNGR_PGM_TRUE=
5507   GNUPG_DIRMNGR_PGM_FALSE='#'
5508 else
5509   GNUPG_DIRMNGR_PGM_TRUE='#'
5510   GNUPG_DIRMNGR_PGM_FALSE=
5511 fi
5512
5513 show_gnupg_dirmngr_pgm="(default)"
5514 test -n "$GNUPG_DIRMNGR_PGM" && show_gnupg_dirmngr_pgm="$GNUPG_DIRMNGR_PGM"
5515
5516
5517 # Check whether --with-keyboxd-pgm was given.
5518 if test "${with_keyboxd_pgm+set}" = set; then :
5519   withval=$with_keyboxd_pgm; GNUPG_KEYBOXD_PGM="$withval"
5520 else
5521   GNUPG_KEYBOXD_PGM=""
5522 fi
5523
5524
5525  if test -n "$GNUPG_KEYBOXD_PGM"; then
5526   GNUPG_KEYBOXD_PGM_TRUE=
5527   GNUPG_KEYBOXD_PGM_FALSE='#'
5528 else
5529   GNUPG_KEYBOXD_PGM_TRUE='#'
5530   GNUPG_KEYBOXD_PGM_FALSE=
5531 fi
5532
5533 show_gnupg_keyboxd_pgm="(default)"
5534 test -n "$GNUPG_KEYBOXD_PGM" && show_gnupg_keyboxd_pgm="$GNUPG_KEYBOXD_PGM"
5535
5536
5537 # Check whether --with-protect-tool-pgm was given.
5538 if test "${with_protect_tool_pgm+set}" = set; then :
5539   withval=$with_protect_tool_pgm; GNUPG_PROTECT_TOOL_PGM="$withval"
5540 else
5541   GNUPG_PROTECT_TOOL_PGM=""
5542 fi
5543
5544
5545  if test -n "$GNUPG_PROTECT_TOOL_PGM"; then
5546   GNUPG_PROTECT_TOOL_PGM_TRUE=
5547   GNUPG_PROTECT_TOOL_PGM_FALSE='#'
5548 else
5549   GNUPG_PROTECT_TOOL_PGM_TRUE='#'
5550   GNUPG_PROTECT_TOOL_PGM_FALSE=
5551 fi
5552
5553 show_gnupg_protect_tool_pgm="(default)"
5554 test -n "$GNUPG_PROTECT_TOOL_PGM" \
5555       && show_gnupg_protect_tool_pgm="$GNUPG_PROTECT_TOOL_PGM"
5556
5557
5558 # Check whether --with-dirmngr-ldap-pgm was given.
5559 if test "${with_dirmngr_ldap_pgm+set}" = set; then :
5560   withval=$with_dirmngr_ldap_pgm; GNUPG_DIRMNGR_LDAP_PGM="$withval"
5561 else
5562   GNUPG_DIRMNGR_LDAP_PGM=""
5563 fi
5564
5565
5566  if test -n "$GNUPG_DIRMNGR_LDAP_PGM"; then
5567   GNUPG_DIRMNGR_LDAP_PGM_TRUE=
5568   GNUPG_DIRMNGR_LDAP_PGM_FALSE='#'
5569 else
5570   GNUPG_DIRMNGR_LDAP_PGM_TRUE='#'
5571   GNUPG_DIRMNGR_LDAP_PGM_FALSE=
5572 fi
5573
5574 show_gnupg_dirmngr_ldap_pgm="(default)"
5575 test -n "$GNUPG_DIRMNGR_LDAP_PGM" \
5576       && show_gnupg_dirmngr_ldap_pgm="$GNUPG_DIRMNGR_LDAP_PGM"
5577
5578
5579 #
5580 # For a long time gpg 2.x was installed as gpg2.  This changed with
5581 # 2.2.  This option can be used to install gpg under the name gpg2.
5582 #
5583 # Check whether --enable-gpg-is-gpg2 was given.
5584 if test "${enable_gpg_is_gpg2+set}" = set; then :
5585   enableval=$enable_gpg_is_gpg2; gpg_is_gpg2=$enableval
5586 fi
5587
5588 if test "$gpg_is_gpg2" = "yes"; then
5589
5590 $as_echo "#define USE_GPG2_HACK 1" >>confdefs.h
5591
5592 fi
5593  if test "$gpg_is_gpg2" = "yes"; then
5594   USE_GPG2_HACK_TRUE=
5595   USE_GPG2_HACK_FALSE='#'
5596 else
5597   USE_GPG2_HACK_TRUE='#'
5598   USE_GPG2_HACK_FALSE=
5599 fi
5600
5601
5602
5603 # SELinux support includes tracking of sensitive files to avoid
5604 # leaking their contents through processing these files by gpg itself
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SELinux support is requested" >&5
5606 $as_echo_n "checking whether SELinux support is requested... " >&6; }
5607 # Check whether --enable-selinux-support was given.
5608 if test "${enable_selinux_support+set}" = set; then :
5609   enableval=$enable_selinux_support; selinux_support=$enableval
5610 else
5611   selinux_support=no
5612 fi
5613
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selinux_support" >&5
5615 $as_echo "$selinux_support" >&6; }
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allocate extra secure memory" >&5
5619 $as_echo_n "checking whether to allocate extra secure memory... " >&6; }
5620 # Check whether --enable-large-secmem was given.
5621 if test "${enable_large_secmem+set}" = set; then :
5622   enableval=$enable_large_secmem; large_secmem=$enableval
5623 else
5624   large_secmem=no
5625 fi
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_secmem" >&5
5628 $as_echo "$large_secmem" >&6; }
5629 if test "$large_secmem" = yes ; then
5630    SECMEM_BUFFER_SIZE=65536
5631 else
5632    SECMEM_BUFFER_SIZE=32768
5633 fi
5634
5635 cat >>confdefs.h <<_ACEOF
5636 #define SECMEM_BUFFER_SIZE $SECMEM_BUFFER_SIZE
5637 _ACEOF
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking calibrated passphrase-stretching (s2k) duration" >&5
5641 $as_echo_n "checking calibrated passphrase-stretching (s2k) duration... " >&6; }
5642
5643 # Check whether --with-agent-s2k-calibration was given.
5644 if test "${with_agent_s2k_calibration+set}" = set; then :
5645   withval=$with_agent_s2k_calibration; agent_s2k_calibration=$withval
5646 else
5647   agent_s2k_calibration=100
5648 fi
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $agent_s2k_calibration milliseconds" >&5
5651 $as_echo "$agent_s2k_calibration milliseconds" >&6; }
5652
5653 cat >>confdefs.h <<_ACEOF
5654 #define AGENT_S2K_CALIBRATION $agent_s2k_calibration
5655 _ACEOF
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trust models" >&5
5659 $as_echo_n "checking whether to enable trust models... " >&6; }
5660 # Check whether --enable-trust-models was given.
5661 if test "${enable_trust_models+set}" = set; then :
5662   enableval=$enable_trust_models; use_trust_models=$enableval
5663 fi
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_trust_models" >&5
5666 $as_echo "$use_trust_models" >&6; }
5667 if test "$use_trust_models" = no ; then
5668
5669 $as_echo "#define NO_TRUST_MODELS 1" >>confdefs.h
5670
5671 fi
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TOFU" >&5
5674 $as_echo_n "checking whether to enable TOFU... " >&6; }
5675 # Check whether --enable-tofu was given.
5676 if test "${enable_tofu+set}" = set; then :
5677   enableval=$enable_tofu; use_tofu=$enableval
5678 else
5679   use_tofu=$use_trust_models
5680 fi
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_tofu" >&5
5683 $as_echo "$use_tofu" >&6; }
5684 if test "$use_trust_models" = no && test "$use_tofu" = yes; then
5685     as_fn_error $? "both --disable-trust-models and --enable-tofu given" "$LINENO" 5
5686 fi
5687
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libdns" >&5
5689 $as_echo_n "checking whether to enable libdns... " >&6; }
5690 # Check whether --enable-libdns was given.
5691 if test "${enable_libdns+set}" = set; then :
5692   enableval=$enable_libdns; use_libdns=$enableval
5693 else
5694   use_libdns=yes
5695 fi
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libdns" >&5
5698 $as_echo "$use_libdns" >&6; }
5699 if test x"$use_libdns" = xyes ; then
5700
5701 $as_echo "#define USE_LIBDNS 1" >>confdefs.h
5702
5703 fi
5704  if test "$use_libdns" = yes; then
5705   USE_LIBDNS_TRUE=
5706   USE_LIBDNS_FALSE='#'
5707 else
5708   USE_LIBDNS_TRUE='#'
5709   USE_LIBDNS_FALSE=
5710 fi
5711
5712
5713
5714 #
5715 # Options to disable algorithm
5716 #
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RSA public key for gpg" >&5
5719 $as_echo_n "checking whether to enable the RSA public key for gpg... " >&6; }
5720    # Check whether --enable-gpg-rsa was given.
5721 if test "${enable_gpg_rsa+set}" = set; then :
5722   enableval=$enable_gpg_rsa;
5723 else
5724   enableval=yes
5725 fi
5726
5727    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5728 $as_echo "$enableval" >&6; }
5729    if test x"$enableval" = xyes ; then
5730
5731 $as_echo "#define GPG_USE_RSA 1" >>confdefs.h
5732
5733    fi
5734
5735 # Elgamal is a MUST algorithm
5736 # DSA is a MUST algorithm
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDH public key for gpg" >&5
5738 $as_echo_n "checking whether to enable the ECDH public key for gpg... " >&6; }
5739    # Check whether --enable-gpg-ecdh was given.
5740 if test "${enable_gpg_ecdh+set}" = set; then :
5741   enableval=$enable_gpg_ecdh;
5742 else
5743   enableval=yes
5744 fi
5745
5746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5747 $as_echo "$enableval" >&6; }
5748    if test x"$enableval" = xyes ; then
5749
5750 $as_echo "#define GPG_USE_ECDH 1" >>confdefs.h
5751
5752    fi
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ECDSA public key for gpg" >&5
5755 $as_echo_n "checking whether to enable the ECDSA public key for gpg... " >&6; }
5756    # Check whether --enable-gpg-ecdsa was given.
5757 if test "${enable_gpg_ecdsa+set}" = set; then :
5758   enableval=$enable_gpg_ecdsa;
5759 else
5760   enableval=yes
5761 fi
5762
5763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5764 $as_echo "$enableval" >&6; }
5765    if test x"$enableval" = xyes ; then
5766
5767 $as_echo "#define GPG_USE_ECDSA 1" >>confdefs.h
5768
5769    fi
5770
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the EdDSA public key for gpg" >&5
5772 $as_echo_n "checking whether to enable the EdDSA public key for gpg... " >&6; }
5773    # Check whether --enable-gpg-eddsa was given.
5774 if test "${enable_gpg_eddsa+set}" = set; then :
5775   enableval=$enable_gpg_eddsa;
5776 else
5777   enableval=yes
5778 fi
5779
5780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5781 $as_echo "$enableval" >&6; }
5782    if test x"$enableval" = xyes ; then
5783
5784 $as_echo "#define GPG_USE_EDDSA 1" >>confdefs.h
5785
5786    fi
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the IDEA cipher for gpg" >&5
5790 $as_echo_n "checking whether to enable the IDEA cipher for gpg... " >&6; }
5791    # Check whether --enable-gpg-idea was given.
5792 if test "${enable_gpg_idea+set}" = set; then :
5793   enableval=$enable_gpg_idea;
5794 else
5795   enableval=yes
5796 fi
5797
5798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5799 $as_echo "$enableval" >&6; }
5800    if test x"$enableval" = xyes ; then
5801
5802 $as_echo "#define GPG_USE_IDEA 1" >>confdefs.h
5803
5804    fi
5805
5806 # 3DES is a MUST algorithm
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAST5 cipher for gpg" >&5
5808 $as_echo_n "checking whether to enable the CAST5 cipher for gpg... " >&6; }
5809    # Check whether --enable-gpg-cast5 was given.
5810 if test "${enable_gpg_cast5+set}" = set; then :
5811   enableval=$enable_gpg_cast5;
5812 else
5813   enableval=yes
5814 fi
5815
5816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5817 $as_echo "$enableval" >&6; }
5818    if test x"$enableval" = xyes ; then
5819
5820 $as_echo "#define GPG_USE_CAST5 1" >>confdefs.h
5821
5822    fi
5823
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BLOWFISH cipher for gpg" >&5
5825 $as_echo_n "checking whether to enable the BLOWFISH cipher for gpg... " >&6; }
5826    # Check whether --enable-gpg-blowfish was given.
5827 if test "${enable_gpg_blowfish+set}" = set; then :
5828   enableval=$enable_gpg_blowfish;
5829 else
5830   enableval=yes
5831 fi
5832
5833    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5834 $as_echo "$enableval" >&6; }
5835    if test x"$enableval" = xyes ; then
5836
5837 $as_echo "#define GPG_USE_BLOWFISH 1" >>confdefs.h
5838
5839    fi
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES128 cipher for gpg" >&5
5842 $as_echo_n "checking whether to enable the AES128 cipher for gpg... " >&6; }
5843    # Check whether --enable-gpg-aes128 was given.
5844 if test "${enable_gpg_aes128+set}" = set; then :
5845   enableval=$enable_gpg_aes128;
5846 else
5847   enableval=yes
5848 fi
5849
5850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5851 $as_echo "$enableval" >&6; }
5852    if test x"$enableval" = xyes ; then
5853
5854 $as_echo "#define GPG_USE_AES128 1" >>confdefs.h
5855
5856    fi
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES192 cipher for gpg" >&5
5859 $as_echo_n "checking whether to enable the AES192 cipher for gpg... " >&6; }
5860    # Check whether --enable-gpg-aes192 was given.
5861 if test "${enable_gpg_aes192+set}" = set; then :
5862   enableval=$enable_gpg_aes192;
5863 else
5864   enableval=yes
5865 fi
5866
5867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5868 $as_echo "$enableval" >&6; }
5869    if test x"$enableval" = xyes ; then
5870
5871 $as_echo "#define GPG_USE_AES192 1" >>confdefs.h
5872
5873    fi
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the AES256 cipher for gpg" >&5
5876 $as_echo_n "checking whether to enable the AES256 cipher for gpg... " >&6; }
5877    # Check whether --enable-gpg-aes256 was given.
5878 if test "${enable_gpg_aes256+set}" = set; then :
5879   enableval=$enable_gpg_aes256;
5880 else
5881   enableval=yes
5882 fi
5883
5884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5885 $as_echo "$enableval" >&6; }
5886    if test x"$enableval" = xyes ; then
5887
5888 $as_echo "#define GPG_USE_AES256 1" >>confdefs.h
5889
5890    fi
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the TWOFISH cipher for gpg" >&5
5893 $as_echo_n "checking whether to enable the TWOFISH cipher for gpg... " >&6; }
5894    # Check whether --enable-gpg-twofish was given.
5895 if test "${enable_gpg_twofish+set}" = set; then :
5896   enableval=$enable_gpg_twofish;
5897 else
5898   enableval=yes
5899 fi
5900
5901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5902 $as_echo "$enableval" >&6; }
5903    if test x"$enableval" = xyes ; then
5904
5905 $as_echo "#define GPG_USE_TWOFISH 1" >>confdefs.h
5906
5907    fi
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA128 cipher for gpg" >&5
5910 $as_echo_n "checking whether to enable the CAMELLIA128 cipher for gpg... " >&6; }
5911    # Check whether --enable-gpg-camellia128 was given.
5912 if test "${enable_gpg_camellia128+set}" = set; then :
5913   enableval=$enable_gpg_camellia128;
5914 else
5915   enableval=yes
5916 fi
5917
5918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5919 $as_echo "$enableval" >&6; }
5920    if test x"$enableval" = xyes ; then
5921
5922 $as_echo "#define GPG_USE_CAMELLIA128 1" >>confdefs.h
5923
5924    fi
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA192 cipher for gpg" >&5
5927 $as_echo_n "checking whether to enable the CAMELLIA192 cipher for gpg... " >&6; }
5928    # Check whether --enable-gpg-camellia192 was given.
5929 if test "${enable_gpg_camellia192+set}" = set; then :
5930   enableval=$enable_gpg_camellia192;
5931 else
5932   enableval=yes
5933 fi
5934
5935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5936 $as_echo "$enableval" >&6; }
5937    if test x"$enableval" = xyes ; then
5938
5939 $as_echo "#define GPG_USE_CAMELLIA192 1" >>confdefs.h
5940
5941    fi
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the CAMELLIA256 cipher for gpg" >&5
5944 $as_echo_n "checking whether to enable the CAMELLIA256 cipher for gpg... " >&6; }
5945    # Check whether --enable-gpg-camellia256 was given.
5946 if test "${enable_gpg_camellia256+set}" = set; then :
5947   enableval=$enable_gpg_camellia256;
5948 else
5949   enableval=yes
5950 fi
5951
5952    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5953 $as_echo "$enableval" >&6; }
5954    if test x"$enableval" = xyes ; then
5955
5956 $as_echo "#define GPG_USE_CAMELLIA256 1" >>confdefs.h
5957
5958    fi
5959
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the MD5 hash for gpg" >&5
5962 $as_echo_n "checking whether to enable the MD5 hash for gpg... " >&6; }
5963    # Check whether --enable-gpg-md5 was given.
5964 if test "${enable_gpg_md5+set}" = set; then :
5965   enableval=$enable_gpg_md5;
5966 else
5967   enableval=yes
5968 fi
5969
5970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5971 $as_echo "$enableval" >&6; }
5972    if test x"$enableval" = xyes ; then
5973
5974 $as_echo "#define GPG_USE_MD5 1" >>confdefs.h
5975
5976    fi
5977
5978 # SHA1 is a MUST algorithm
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the RIPE-MD160 hash for gpg" >&5
5980 $as_echo_n "checking whether to enable the RIPE-MD160 hash for gpg... " >&6; }
5981    # Check whether --enable-gpg-rmd160 was given.
5982 if test "${enable_gpg_rmd160+set}" = set; then :
5983   enableval=$enable_gpg_rmd160;
5984 else
5985   enableval=yes
5986 fi
5987
5988    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
5989 $as_echo "$enableval" >&6; }
5990    if test x"$enableval" = xyes ; then
5991
5992 $as_echo "#define GPG_USE_RMD160 1" >>confdefs.h
5993
5994    fi
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-224 hash for gpg" >&5
5997 $as_echo_n "checking whether to enable the SHA-224 hash for gpg... " >&6; }
5998    # Check whether --enable-gpg-sha224 was given.
5999 if test "${enable_gpg_sha224+set}" = set; then :
6000   enableval=$enable_gpg_sha224;
6001 else
6002   enableval=yes
6003 fi
6004
6005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6006 $as_echo "$enableval" >&6; }
6007    if test x"$enableval" = xyes ; then
6008
6009 $as_echo "#define GPG_USE_SHA224 1" >>confdefs.h
6010
6011    fi
6012
6013 # SHA256 is a MUST algorithm for GnuPG.
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-384 hash for gpg" >&5
6015 $as_echo_n "checking whether to enable the SHA-384 hash for gpg... " >&6; }
6016    # Check whether --enable-gpg-sha384 was given.
6017 if test "${enable_gpg_sha384+set}" = set; then :
6018   enableval=$enable_gpg_sha384;
6019 else
6020   enableval=yes
6021 fi
6022
6023    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6024 $as_echo "$enableval" >&6; }
6025    if test x"$enableval" = xyes ; then
6026
6027 $as_echo "#define GPG_USE_SHA384 1" >>confdefs.h
6028
6029    fi
6030
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SHA-512 hash for gpg" >&5
6032 $as_echo_n "checking whether to enable the SHA-512 hash for gpg... " >&6; }
6033    # Check whether --enable-gpg-sha512 was given.
6034 if test "${enable_gpg_sha512+set}" = set; then :
6035   enableval=$enable_gpg_sha512;
6036 else
6037   enableval=yes
6038 fi
6039
6040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6041 $as_echo "$enableval" >&6; }
6042    if test x"$enableval" = xyes ; then
6043
6044 $as_echo "#define GPG_USE_SHA512 1" >>confdefs.h
6045
6046    fi
6047
6048
6049
6050 # Allow disabling of zip support.
6051 # This is in general not a good idea because according to rfc4880 OpenPGP
6052 # implementations SHOULD support ZLIB.
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the ZIP and ZLIB compression algorithm" >&5
6054 $as_echo_n "checking whether to enable the ZIP and ZLIB compression algorithm... " >&6; }
6055 # Check whether --enable-zip was given.
6056 if test "${enable_zip+set}" = set; then :
6057   enableval=$enable_zip; use_zip=$enableval
6058 fi
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_zip" >&5
6061 $as_echo "$use_zip" >&6; }
6062
6063 # Allow disabling of bzib2 support.
6064 # It is defined only after we confirm the library is available later
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the BZIP2 compression algorithm" >&5
6066 $as_echo_n "checking whether to enable the BZIP2 compression algorithm... " >&6; }
6067 # Check whether --enable-bzip2 was given.
6068 if test "${enable_bzip2+set}" = set; then :
6069   enableval=$enable_bzip2; use_bzip2=$enableval
6070 fi
6071
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_bzip2" >&5
6073 $as_echo "$use_bzip2" >&6; }
6074
6075 # Configure option to allow or disallow execution of external
6076 # programs, like a photo viewer.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external program execution" >&5
6078 $as_echo_n "checking whether to enable external program execution... " >&6; }
6079 # Check whether --enable-exec was given.
6080 if test "${enable_exec+set}" = set; then :
6081   enableval=$enable_exec; use_exec=$enableval
6082 fi
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_exec" >&5
6085 $as_echo "$use_exec" >&6; }
6086 if test "$use_exec" = no ; then
6087
6088 $as_echo "#define NO_EXEC 1" >>confdefs.h
6089
6090 fi
6091
6092 if test "$use_exec" = yes ; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable photo ID viewing" >&5
6094 $as_echo_n "checking whether to enable photo ID viewing... " >&6; }
6095   # Check whether --enable-photo-viewers was given.
6096 if test "${enable_photo_viewers+set}" = set; then :
6097   enableval=$enable_photo_viewers; if test "$enableval" = no ; then
6098
6099 $as_echo "#define DISABLE_PHOTO_VIEWER 1" >>confdefs.h
6100
6101       fi
6102 else
6103   enableval=yes
6104 fi
6105
6106   gnupg_cv_enable_photo_viewers=$enableval
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6108 $as_echo "$enableval" >&6; }
6109
6110   if test "$gnupg_cv_enable_photo_viewers" = yes ; then
6111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a fixed photo ID viewer" >&5
6112 $as_echo_n "checking whether to use a fixed photo ID viewer... " >&6; }
6113
6114 # Check whether --with-photo-viewer was given.
6115 if test "${with_photo_viewer+set}" = set; then :
6116   withval=$with_photo_viewer; if test "$withval" = yes ; then
6117            withval=no
6118         elif test "$withval" != no ; then
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define FIXED_PHOTO_VIEWER "$withval"
6122 _ACEOF
6123
6124         fi
6125 else
6126   withval=no
6127 fi
6128
6129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
6130 $as_echo "$withval" >&6; }
6131   fi
6132 fi
6133
6134
6135 #
6136 # Check for the key/uid cache size.  This can't be zero, but can be
6137 # pretty small on embedded systems.  This is used for the gpg part.
6138 #
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the size of the key and uid cache" >&5
6140 $as_echo_n "checking for the size of the key and uid cache... " >&6; }
6141 # Check whether --enable-key-cache was given.
6142 if test "${enable_key_cache+set}" = set; then :
6143   enableval=$enable_key_cache;
6144 else
6145   enableval=4096
6146 fi
6147
6148 if test "$enableval" = "no"; then
6149    enableval=5
6150 elif test "$enableval" = "yes" || test "$enableval" = ""; then
6151    enableval=4096
6152 fi
6153 key_cache_size=`echo "$enableval" | sed 's/[A-Za-z]//g'`
6154 if test "$enableval" != "$key_cache_size" || test "$key_cache_size" -lt 5; then
6155    as_fn_error $? "invalid key-cache size" "$LINENO" 5
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $key_cache_size" >&5
6158 $as_echo "$key_cache_size" >&6; }
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define PK_UID_CACHE_SIZE $key_cache_size
6162 _ACEOF
6163
6164
6165
6166
6167 #
6168 # Check whether we want to use Linux capabilities
6169 #
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
6171 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
6172
6173 # Check whether --with-capabilities was given.
6174 if test "${with_capabilities+set}" = set; then :
6175   withval=$with_capabilities; use_capabilities="$withval"
6176 else
6177   use_capabilities=no
6178 fi
6179
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
6181 $as_echo "$use_capabilities" >&6; }
6182
6183 #
6184 # Check whether to disable the card support
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether smartcard support is requested" >&5
6186 $as_echo_n "checking whether smartcard support is requested... " >&6; }
6187 # Check whether --enable-card-support was given.
6188 if test "${enable_card_support+set}" = set; then :
6189   enableval=$enable_card_support; card_support=$enableval
6190 fi
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $card_support" >&5
6193 $as_echo "$card_support" >&6; }
6194 if test "$card_support" = yes ; then
6195
6196 $as_echo "#define ENABLE_CARD_SUPPORT 1" >>confdefs.h
6197
6198 else
6199   build_scdaemon=no
6200 fi
6201
6202 #
6203 # Allow disabling of internal CCID support.
6204 # It is defined only after we confirm the library is available later
6205 #
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the internal CCID driver" >&5
6207 $as_echo_n "checking whether to enable the internal CCID driver... " >&6; }
6208 # Check whether --enable-ccid-driver was given.
6209 if test "${enable_ccid_driver+set}" = set; then :
6210   enableval=$enable_ccid_driver; use_ccid_driver=$enableval
6211 fi
6212
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_ccid_driver" >&5
6214 $as_echo "$use_ccid_driver" >&6; }
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to auto start dirmngr" >&5
6217 $as_echo_n "checking whether to auto start dirmngr... " >&6; }
6218 # Check whether --enable-dirmngr-auto-start was given.
6219 if test "${enable_dirmngr_auto_start+set}" = set; then :
6220   enableval=$enable_dirmngr_auto_start; dirmngr_auto_start=$enableval
6221 fi
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dirmngr_auto_start" >&5
6224 $as_echo "$dirmngr_auto_start" >&6; }
6225 if test "$dirmngr_auto_start" = yes ; then
6226
6227 $as_echo "#define USE_DIRMNGR_AUTO_START 1" >>confdefs.h
6228
6229 fi
6230
6231
6232 #
6233 # To avoid double inclusion of config.h which might happen at some
6234 # places, we add the usual double inclusion protection at the top of
6235 # config.h.
6236 #
6237
6238
6239 #
6240 # Stuff which goes at the bottom of config.h.
6241 #
6242
6243
6244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6247 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6248     # Check whether --enable-maintainer-mode was given.
6249 if test "${enable_maintainer_mode+set}" = set; then :
6250   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6251 else
6252   USE_MAINTAINER_MODE=no
6253 fi
6254
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6256 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6257    if test $USE_MAINTAINER_MODE = yes; then
6258   MAINTAINER_MODE_TRUE=
6259   MAINTAINER_MODE_FALSE='#'
6260 else
6261   MAINTAINER_MODE_TRUE='#'
6262   MAINTAINER_MODE_FALSE=
6263 fi
6264
6265   MAINT=$MAINTAINER_MODE_TRUE
6266
6267
6268
6269
6270 # Checks for programs.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for programs" >&5
6272 $as_echo "$as_me: checking for programs" >&6;}
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6274 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6275 set x ${MAKE-make}
6276 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6277 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   cat >conftest.make <<\_ACEOF
6281 SHELL = /bin/sh
6282 all:
6283         @echo '@@@%%%=$(MAKE)=@@@%%%'
6284 _ACEOF
6285 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6286 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6287   *@@@%%%=?*=@@@%%%*)
6288     eval ac_cv_prog_make_${ac_make}_set=yes;;
6289   *)
6290     eval ac_cv_prog_make_${ac_make}_set=no;;
6291 esac
6292 rm -f conftest.make
6293 fi
6294 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6296 $as_echo "yes" >&6; }
6297   SET_MAKE=
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301   SET_MAKE="MAKE=${MAKE-make}"
6302 fi
6303
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6305 $as_echo_n "checking whether build environment is sane... " >&6; }
6306 # Reject unsafe characters in $srcdir or the absolute working directory
6307 # name.  Accept space and tab only in the latter.
6308 am_lf='
6309 '
6310 case `pwd` in
6311   *[\\\"\#\$\&\'\`$am_lf]*)
6312     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
6313 esac
6314 case $srcdir in
6315   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
6316     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
6317 esac
6318
6319 # Do 'set' in a subshell so we don't clobber the current shell's
6320 # arguments.  Must try -L first in case configure is actually a
6321 # symlink; some systems play weird games with the mod time of symlinks
6322 # (eg FreeBSD returns the mod time of the symlink's containing
6323 # directory).
6324 if (
6325    am_has_slept=no
6326    for am_try in 1 2; do
6327      echo "timestamp, slept: $am_has_slept" > conftest.file
6328      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6329      if test "$*" = "X"; then
6330         # -L didn't work.
6331         set X `ls -t "$srcdir/configure" conftest.file`
6332      fi
6333      if test "$*" != "X $srcdir/configure conftest.file" \
6334         && test "$*" != "X conftest.file $srcdir/configure"; then
6335
6336         # If neither matched, then we have a broken ls.  This can happen
6337         # if, for instance, CONFIG_SHELL is bash and it inherits a
6338         # broken ls alias from the environment.  This has actually
6339         # happened.  Such a system could not be considered "sane".
6340         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
6341   alias in your environment" "$LINENO" 5
6342      fi
6343      if test "$2" = conftest.file || test $am_try -eq 2; then
6344        break
6345      fi
6346      # Just in case.
6347      sleep 1
6348      am_has_slept=yes
6349    done
6350    test "$2" = conftest.file
6351    )
6352 then
6353    # Ok.
6354    :
6355 else
6356    as_fn_error $? "newly created file is older than distributed files!
6357 Check your system clock" "$LINENO" 5
6358 fi
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6360 $as_echo "yes" >&6; }
6361 # If we didn't sleep, we still need to ensure time stamps of config.status and
6362 # generated files are strictly newer.
6363 am_sleep_pid=
6364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6365   ( sleep 1 ) &
6366   am_sleep_pid=$!
6367 fi
6368
6369 rm -f conftest.file
6370
6371 missing_dir=`cd $ac_aux_dir && pwd`
6372
6373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
6374
6375
6376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6377
6378
6379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
6380
6381
6382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6383
6384
6385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6386
6387 # Check whether --enable-silent-rules was given.
6388 if test "${enable_silent_rules+set}" = set; then :
6389   enableval=$enable_silent_rules;
6390 fi
6391
6392 case $enable_silent_rules in # (((
6393   yes) AM_DEFAULT_VERBOSITY=0;;
6394    no) AM_DEFAULT_VERBOSITY=1;;
6395     *) AM_DEFAULT_VERBOSITY=1;;
6396 esac
6397 am_make=${MAKE-make}
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6399 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6400 if ${am_cv_make_support_nested_variables+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if $as_echo 'TRUE=$(BAR$(V))
6404 BAR0=false
6405 BAR1=true
6406 V=1
6407 am__doit:
6408         @$(TRUE)
6409 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6410   am_cv_make_support_nested_variables=yes
6411 else
6412   am_cv_make_support_nested_variables=no
6413 fi
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6416 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6417 if test $am_cv_make_support_nested_variables = yes; then
6418     AM_V='$(V)'
6419   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6420 else
6421   AM_V=$AM_DEFAULT_VERBOSITY
6422   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6423 fi
6424 AM_BACKSLASH='\'
6425
6426 for ac_prog in gawk mawk nawk awk
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_AWK+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$AWK"; then
6436   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445     ac_cv_prog_AWK="$ac_prog"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 AWK=$ac_cv_prog_AWK
6456 if test -n "$AWK"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6458 $as_echo "$AWK" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465   test -n "$AWK" && break
6466 done
6467
6468 ac_ext=c
6469 ac_cpp='$CPP $CPPFLAGS'
6470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6473 if test -n "$ac_tool_prefix"; then
6474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_CC+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$CC"; then
6482   ac_cv_prog_CC="$CC" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 CC=$ac_cv_prog_CC
6502 if test -n "$CC"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6504 $as_echo "$CC" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511 fi
6512 if test -z "$ac_cv_prog_CC"; then
6513   ac_ct_CC=$CC
6514   # Extract the first word of "gcc", so it can be a program name with args.
6515 set dummy gcc; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6519   $as_echo_n "(cached) " >&6
6520 else
6521   if test -n "$ac_ct_CC"; then
6522   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6526 do
6527   IFS=$as_save_IFS
6528   test -z "$as_dir" && as_dir=.
6529     for ac_exec_ext in '' $ac_executable_extensions; do
6530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531     ac_cv_prog_ac_ct_CC="gcc"
6532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533     break 2
6534   fi
6535 done
6536   done
6537 IFS=$as_save_IFS
6538
6539 fi
6540 fi
6541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6542 if test -n "$ac_ct_CC"; then
6543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6544 $as_echo "$ac_ct_CC" >&6; }
6545 else
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6548 fi
6549
6550   if test "x$ac_ct_CC" = x; then
6551     CC=""
6552   else
6553     case $cross_compiling:$ac_tool_warned in
6554 yes:)
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6558 esac
6559     CC=$ac_ct_CC
6560   fi
6561 else
6562   CC="$ac_cv_prog_CC"
6563 fi
6564
6565 if test -z "$CC"; then
6566           if test -n "$ac_tool_prefix"; then
6567     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}cc; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_prog_CC+:} false; then :
6572   $as_echo_n "(cached) " >&6
6573 else
6574   if test -n "$CC"; then
6575   ac_cv_prog_CC="$CC" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582     for ac_exec_ext in '' $ac_executable_extensions; do
6583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584     ac_cv_prog_CC="${ac_tool_prefix}cc"
6585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589   done
6590 IFS=$as_save_IFS
6591
6592 fi
6593 fi
6594 CC=$ac_cv_prog_CC
6595 if test -n "$CC"; then
6596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6597 $as_echo "$CC" >&6; }
6598 else
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6600 $as_echo "no" >&6; }
6601 fi
6602
6603
6604   fi
6605 fi
6606 if test -z "$CC"; then
6607   # Extract the first word of "cc", so it can be a program name with args.
6608 set dummy cc; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_CC+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$CC"; then
6615   ac_cv_prog_CC="$CC" # Let the user override the test.
6616 else
6617   ac_prog_rejected=no
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623     for ac_exec_ext in '' $ac_executable_extensions; do
6624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6625     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6626        ac_prog_rejected=yes
6627        continue
6628      fi
6629     ac_cv_prog_CC="cc"
6630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631     break 2
6632   fi
6633 done
6634   done
6635 IFS=$as_save_IFS
6636
6637 if test $ac_prog_rejected = yes; then
6638   # We found a bogon in the path, so make sure we never use it.
6639   set dummy $ac_cv_prog_CC
6640   shift
6641   if test $# != 0; then
6642     # We chose a different compiler from the bogus one.
6643     # However, it has the same basename, so the bogon will be chosen
6644     # first if we set CC to just the basename; use the full file name.
6645     shift
6646     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6647   fi
6648 fi
6649 fi
6650 fi
6651 CC=$ac_cv_prog_CC
6652 if test -n "$CC"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6654 $as_echo "$CC" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$CC"; then
6663   if test -n "$ac_tool_prefix"; then
6664   for ac_prog in cl.exe
6665   do
6666     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_prog_CC+:} false; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   if test -n "$CC"; then
6674   ac_cv_prog_CC="$CC" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679   IFS=$as_save_IFS
6680   test -z "$as_dir" && as_dir=.
6681     for ac_exec_ext in '' $ac_executable_extensions; do
6682   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685     break 2
6686   fi
6687 done
6688   done
6689 IFS=$as_save_IFS
6690
6691 fi
6692 fi
6693 CC=$ac_cv_prog_CC
6694 if test -n "$CC"; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6696 $as_echo "$CC" >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699 $as_echo "no" >&6; }
6700 fi
6701
6702
6703     test -n "$CC" && break
6704   done
6705 fi
6706 if test -z "$CC"; then
6707   ac_ct_CC=$CC
6708   for ac_prog in cl.exe
6709 do
6710   # Extract the first word of "$ac_prog", so it can be a program name with args.
6711 set dummy $ac_prog; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_CC"; then
6718   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_ac_ct_CC="$ac_prog"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6738 if test -n "$ac_ct_CC"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6740 $as_echo "$ac_ct_CC" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746
6747   test -n "$ac_ct_CC" && break
6748 done
6749
6750   if test "x$ac_ct_CC" = x; then
6751     CC=""
6752   else
6753     case $cross_compiling:$ac_tool_warned in
6754 yes:)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6757 ac_tool_warned=yes ;;
6758 esac
6759     CC=$ac_ct_CC
6760   fi
6761 fi
6762
6763 fi
6764
6765
6766 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6768 as_fn_error $? "no acceptable C compiler found in \$PATH
6769 See \`config.log' for more details" "$LINENO" 5; }
6770
6771 # Provide some information about the compiler.
6772 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6773 set X $ac_compile
6774 ac_compiler=$2
6775 for ac_option in --version -v -V -qversion; do
6776   { { ac_try="$ac_compiler $ac_option >&5"
6777 case "(($ac_try" in
6778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779   *) ac_try_echo=$ac_try;;
6780 esac
6781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6782 $as_echo "$ac_try_echo"; } >&5
6783   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6784   ac_status=$?
6785   if test -s conftest.err; then
6786     sed '10a\
6787 ... rest of stderr output deleted ...
6788          10q' conftest.err >conftest.er1
6789     cat conftest.er1 >&5
6790   fi
6791   rm -f conftest.er1 conftest.err
6792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6793   test $ac_status = 0; }
6794 done
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6798 if ${ac_cv_c_compiler_gnu+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803
6804 int
6805 main ()
6806 {
6807 #ifndef __GNUC__
6808        choke me
6809 #endif
6810
6811   ;
6812   return 0;
6813 }
6814 _ACEOF
6815 if ac_fn_c_try_compile "$LINENO"; then :
6816   ac_compiler_gnu=yes
6817 else
6818   ac_compiler_gnu=no
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6822
6823 fi
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6826 if test $ac_compiler_gnu = yes; then
6827   GCC=yes
6828 else
6829   GCC=
6830 fi
6831 ac_test_CFLAGS=${CFLAGS+set}
6832 ac_save_CFLAGS=$CFLAGS
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6835 if ${ac_cv_prog_cc_g+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   ac_save_c_werror_flag=$ac_c_werror_flag
6839    ac_c_werror_flag=yes
6840    ac_cv_prog_cc_g=no
6841    CFLAGS="-g"
6842    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844
6845 int
6846 main ()
6847 {
6848
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 if ac_fn_c_try_compile "$LINENO"; then :
6854   ac_cv_prog_cc_g=yes
6855 else
6856   CFLAGS=""
6857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h.  */
6859
6860 int
6861 main ()
6862 {
6863
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 if ac_fn_c_try_compile "$LINENO"; then :
6869
6870 else
6871   ac_c_werror_flag=$ac_save_c_werror_flag
6872          CFLAGS="-g"
6873          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h.  */
6875
6876 int
6877 main ()
6878 {
6879
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 if ac_fn_c_try_compile "$LINENO"; then :
6885   ac_cv_prog_cc_g=yes
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6890 fi
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892    ac_c_werror_flag=$ac_save_c_werror_flag
6893 fi
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6895 $as_echo "$ac_cv_prog_cc_g" >&6; }
6896 if test "$ac_test_CFLAGS" = set; then
6897   CFLAGS=$ac_save_CFLAGS
6898 elif test $ac_cv_prog_cc_g = yes; then
6899   if test "$GCC" = yes; then
6900     CFLAGS="-g -O2"
6901   else
6902     CFLAGS="-g"
6903   fi
6904 else
6905   if test "$GCC" = yes; then
6906     CFLAGS="-O2"
6907   else
6908     CFLAGS=
6909   fi
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6913 if ${ac_cv_prog_cc_c89+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   ac_cv_prog_cc_c89=no
6917 ac_save_CC=$CC
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h.  */
6920 #include <stdarg.h>
6921 #include <stdio.h>
6922 struct stat;
6923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6924 struct buf { int x; };
6925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6926 static char *e (p, i)
6927      char **p;
6928      int i;
6929 {
6930   return p[i];
6931 }
6932 static char *f (char * (*g) (char **, int), char **p, ...)
6933 {
6934   char *s;
6935   va_list v;
6936   va_start (v,p);
6937   s = g (p, va_arg (v,int));
6938   va_end (v);
6939   return s;
6940 }
6941
6942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6943    function prototypes and stuff, but not '\xHH' hex character constants.
6944    These don't provoke an error unfortunately, instead are silently treated
6945    as 'x'.  The following induces an error, until -std is added to get
6946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6947    array size at least.  It's necessary to write '\x00'==0 to get something
6948    that's true only with -std.  */
6949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6950
6951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6952    inside strings and character constants.  */
6953 #define FOO(x) 'x'
6954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6955
6956 int test (int i, double x);
6957 struct s1 {int (*f) (int a);};
6958 struct s2 {int (*f) (double a);};
6959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6960 int argc;
6961 char **argv;
6962 int
6963 main ()
6964 {
6965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6972 do
6973   CC="$ac_save_CC $ac_arg"
6974   if ac_fn_c_try_compile "$LINENO"; then :
6975   ac_cv_prog_cc_c89=$ac_arg
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext
6978   test "x$ac_cv_prog_cc_c89" != "xno" && break
6979 done
6980 rm -f conftest.$ac_ext
6981 CC=$ac_save_CC
6982
6983 fi
6984 # AC_CACHE_VAL
6985 case "x$ac_cv_prog_cc_c89" in
6986   x)
6987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6988 $as_echo "none needed" >&6; } ;;
6989   xno)
6990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6991 $as_echo "unsupported" >&6; } ;;
6992   *)
6993     CC="$CC $ac_cv_prog_cc_c89"
6994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6996 esac
6997 if test "x$ac_cv_prog_cc_c89" != xno; then :
6998
6999 fi
7000
7001 ac_ext=c
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006
7007 ac_ext=c
7008 ac_cpp='$CPP $CPPFLAGS'
7009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7014 if ${am_cv_prog_cc_c_o+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h.  */
7019
7020 int
7021 main ()
7022 {
7023
7024   ;
7025   return 0;
7026 }
7027 _ACEOF
7028   # Make sure it works both with $CC and with simple cc.
7029   # Following AC_PROG_CC_C_O, we do the test twice because some
7030   # compilers refuse to overwrite an existing .o file with -o,
7031   # though they will create one.
7032   am_cv_prog_cc_c_o=yes
7033   for am_i in 1 2; do
7034     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7035    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7036    ac_status=$?
7037    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038    (exit $ac_status); } \
7039          && test -f conftest2.$ac_objext; then
7040       : OK
7041     else
7042       am_cv_prog_cc_c_o=no
7043       break
7044     fi
7045   done
7046   rm -f core conftest*
7047   unset am_i
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7051 if test "$am_cv_prog_cc_c_o" != yes; then
7052    # Losing compiler, so override with the script.
7053    # FIXME: It is wrong to rewrite CC.
7054    # But if we don't then we get into trouble of one sort or another.
7055    # A longer-term fix would be to have automake use am__CC in this case,
7056    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7057    CC="$am_aux_dir/compile $CC"
7058 fi
7059 ac_ext=c
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064
7065
7066 depcc="$CC"   am_compiler_list=
7067
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7069 $as_echo_n "checking dependency style of $depcc... " >&6; }
7070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7074   # We make a subdir and do the tests there.  Otherwise we can end up
7075   # making bogus files that we don't know about and never remove.  For
7076   # instance it was reported that on HP-UX the gcc test will end up
7077   # making a dummy file named 'D' -- because '-MD' means "put the output
7078   # in D".
7079   rm -rf conftest.dir
7080   mkdir conftest.dir
7081   # Copy depcomp to subdir because otherwise we won't find it if we're
7082   # using a relative directory.
7083   cp "$am_depcomp" conftest.dir
7084   cd conftest.dir
7085   # We will build objects and dependencies in a subdirectory because
7086   # it helps to detect inapplicable dependency modes.  For instance
7087   # both Tru64's cc and ICC support -MD to output dependencies as a
7088   # side effect of compilation, but ICC will put the dependencies in
7089   # the current directory while Tru64 will put them in the object
7090   # directory.
7091   mkdir sub
7092
7093   am_cv_CC_dependencies_compiler_type=none
7094   if test "$am_compiler_list" = ""; then
7095      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7096   fi
7097   am__universal=false
7098   case " $depcc " in #(
7099      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7100      esac
7101
7102   for depmode in $am_compiler_list; do
7103     # Setup a source with many dependencies, because some compilers
7104     # like to wrap large dependency lists on column 80 (with \), and
7105     # we should not choose a depcomp mode which is confused by this.
7106     #
7107     # We need to recreate these files for each test, as the compiler may
7108     # overwrite some of them when testing with obscure command lines.
7109     # This happens at least with the AIX C compiler.
7110     : > sub/conftest.c
7111     for i in 1 2 3 4 5 6; do
7112       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7113       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7114       # Solaris 10 /bin/sh.
7115       echo '/* dummy */' > sub/conftst$i.h
7116     done
7117     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7118
7119     # We check with '-c' and '-o' for the sake of the "dashmstdout"
7120     # mode.  It turns out that the SunPro C++ compiler does not properly
7121     # handle '-M -o', and we need to detect this.  Also, some Intel
7122     # versions had trouble with output in subdirs.
7123     am__obj=sub/conftest.${OBJEXT-o}
7124     am__minus_obj="-o $am__obj"
7125     case $depmode in
7126     gcc)
7127       # This depmode causes a compiler race in universal mode.
7128       test "$am__universal" = false || continue
7129       ;;
7130     nosideeffect)
7131       # After this tag, mechanisms are not by side-effect, so they'll
7132       # only be used when explicitly requested.
7133       if test "x$enable_dependency_tracking" = xyes; then
7134         continue
7135       else
7136         break
7137       fi
7138       ;;
7139     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7140       # This compiler won't grok '-c -o', but also, the minuso test has
7141       # not run yet.  These depmodes are late enough in the game, and
7142       # so weak that their functioning should not be impacted.
7143       am__obj=conftest.${OBJEXT-o}
7144       am__minus_obj=
7145       ;;
7146     none) break ;;
7147     esac
7148     if depmode=$depmode \
7149        source=sub/conftest.c object=$am__obj \
7150        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7151        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7152          >/dev/null 2>conftest.err &&
7153        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7154        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7155        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7156        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7157       # icc doesn't choke on unknown options, it will just issue warnings
7158       # or remarks (even with -Werror).  So we grep stderr for any message
7159       # that says an option was ignored or not supported.
7160       # When given -MP, icc 7.0 and 7.1 complain thusly:
7161       #   icc: Command line warning: ignoring option '-M'; no argument required
7162       # The diagnosis changed in icc 8.0:
7163       #   icc: Command line remark: option '-MP' not supported
7164       if (grep 'ignoring option' conftest.err ||
7165           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7166         am_cv_CC_dependencies_compiler_type=$depmode
7167         break
7168       fi
7169     fi
7170   done
7171
7172   cd ..
7173   rm -rf conftest.dir
7174 else
7175   am_cv_CC_dependencies_compiler_type=none
7176 fi
7177
7178 fi
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7182
7183  if
7184   test "x$enable_dependency_tracking" != xno \
7185   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7186   am__fastdepCC_TRUE=
7187   am__fastdepCC_FALSE='#'
7188 else
7189   am__fastdepCC_TRUE='#'
7190   am__fastdepCC_FALSE=
7191 fi
7192
7193
7194 ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7200 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7201 # On Suns, sometimes $CPP names a directory.
7202 if test -n "$CPP" && test -d "$CPP"; then
7203   CPP=
7204 fi
7205 if test -z "$CPP"; then
7206   if ${ac_cv_prog_CPP+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209       # Double quotes because CPP needs to be expanded
7210     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7211     do
7212       ac_preproc_ok=false
7213 for ac_c_preproc_warn_flag in '' yes
7214 do
7215   # Use a header file that comes with gcc, so configuring glibc
7216   # with a fresh cross-compiler works.
7217   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7218   # <limits.h> exists even on freestanding compilers.
7219   # On the NeXT, cc -E runs the code through the compiler's parser,
7220   # not just through cpp. "Syntax error" is here to catch this case.
7221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h.  */
7223 #ifdef __STDC__
7224 # include <limits.h>
7225 #else
7226 # include <assert.h>
7227 #endif
7228                      Syntax error
7229 _ACEOF
7230 if ac_fn_c_try_cpp "$LINENO"; then :
7231
7232 else
7233   # Broken: fails on valid input.
7234 continue
7235 fi
7236 rm -f conftest.err conftest.i conftest.$ac_ext
7237
7238   # OK, works on sane cases.  Now check whether nonexistent headers
7239   # can be detected and how.
7240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h.  */
7242 #include <ac_nonexistent.h>
7243 _ACEOF
7244 if ac_fn_c_try_cpp "$LINENO"; then :
7245   # Broken: success on invalid input.
7246 continue
7247 else
7248   # Passes both tests.
7249 ac_preproc_ok=:
7250 break
7251 fi
7252 rm -f conftest.err conftest.i conftest.$ac_ext
7253
7254 done
7255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7256 rm -f conftest.i conftest.err conftest.$ac_ext
7257 if $ac_preproc_ok; then :
7258   break
7259 fi
7260
7261     done
7262     ac_cv_prog_CPP=$CPP
7263
7264 fi
7265   CPP=$ac_cv_prog_CPP
7266 else
7267   ac_cv_prog_CPP=$CPP
7268 fi
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7270 $as_echo "$CPP" >&6; }
7271 ac_preproc_ok=false
7272 for ac_c_preproc_warn_flag in '' yes
7273 do
7274   # Use a header file that comes with gcc, so configuring glibc
7275   # with a fresh cross-compiler works.
7276   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277   # <limits.h> exists even on freestanding compilers.
7278   # On the NeXT, cc -E runs the code through the compiler's parser,
7279   # not just through cpp. "Syntax error" is here to catch this case.
7280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7281 /* end confdefs.h.  */
7282 #ifdef __STDC__
7283 # include <limits.h>
7284 #else
7285 # include <assert.h>
7286 #endif
7287                      Syntax error
7288 _ACEOF
7289 if ac_fn_c_try_cpp "$LINENO"; then :
7290
7291 else
7292   # Broken: fails on valid input.
7293 continue
7294 fi
7295 rm -f conftest.err conftest.i conftest.$ac_ext
7296
7297   # OK, works on sane cases.  Now check whether nonexistent headers
7298   # can be detected and how.
7299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301 #include <ac_nonexistent.h>
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7304   # Broken: success on invalid input.
7305 continue
7306 else
7307   # Passes both tests.
7308 ac_preproc_ok=:
7309 break
7310 fi
7311 rm -f conftest.err conftest.i conftest.$ac_ext
7312
7313 done
7314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7315 rm -f conftest.i conftest.err conftest.$ac_ext
7316 if $ac_preproc_ok; then :
7317
7318 else
7319   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7321 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7322 See \`config.log' for more details" "$LINENO" 5; }
7323 fi
7324
7325 ac_ext=c
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330
7331
7332 if test "x$ac_cv_prog_cc_c89" = "xno" ; then
7333   as_fn_error $? "No C-89 compiler found" "$LINENO" 5
7334 fi
7335
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7337 $as_echo_n "checking whether ln -s works... " >&6; }
7338 LN_S=$as_ln_s
7339 if test "$LN_S" = "ln -s"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7344 $as_echo "no, using $LN_S" >&6; }
7345 fi
7346
7347 if test -n "$ac_tool_prefix"; then
7348   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if ${ac_cv_prog_RANLIB+:} false; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$RANLIB"; then
7356   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363     for ac_exec_ext in '' $ac_executable_extensions; do
7364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370   done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 RANLIB=$ac_cv_prog_RANLIB
7376 if test -n "$RANLIB"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7378 $as_echo "$RANLIB" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385 fi
7386 if test -z "$ac_cv_prog_RANLIB"; then
7387   ac_ct_RANLIB=$RANLIB
7388   # Extract the first word of "ranlib", so it can be a program name with args.
7389 set dummy ranlib; ac_word=$2
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391 $as_echo_n "checking for $ac_word... " >&6; }
7392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7393   $as_echo_n "(cached) " >&6
7394 else
7395   if test -n "$ac_ct_RANLIB"; then
7396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403     for ac_exec_ext in '' $ac_executable_extensions; do
7404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405     ac_cv_prog_ac_ct_RANLIB="ranlib"
7406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410   done
7411 IFS=$as_save_IFS
7412
7413 fi
7414 fi
7415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7416 if test -n "$ac_ct_RANLIB"; then
7417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7418 $as_echo "$ac_ct_RANLIB" >&6; }
7419 else
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 $as_echo "no" >&6; }
7422 fi
7423
7424   if test "x$ac_ct_RANLIB" = x; then
7425     RANLIB=":"
7426   else
7427     case $cross_compiling:$ac_tool_warned in
7428 yes:)
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7432 esac
7433     RANLIB=$ac_ct_RANLIB
7434   fi
7435 else
7436   RANLIB="$ac_cv_prog_RANLIB"
7437 fi
7438
7439 if test -n "$ac_tool_prefix"; then
7440   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}ar; ac_word=$2
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 $as_echo_n "checking for $ac_word... " >&6; }
7444 if ${ac_cv_prog_AR+:} false; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   if test -n "$AR"; then
7448   ac_cv_prog_AR="$AR" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455     for ac_exec_ext in '' $ac_executable_extensions; do
7456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457     ac_cv_prog_AR="${ac_tool_prefix}ar"
7458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462   done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 AR=$ac_cv_prog_AR
7468 if test -n "$AR"; then
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7470 $as_echo "$AR" >&6; }
7471 else
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7474 fi
7475
7476
7477 fi
7478 if test -z "$ac_cv_prog_AR"; then
7479   ac_ct_AR=$AR
7480   # Extract the first word of "ar", so it can be a program name with args.
7481 set dummy ar; ac_word=$2
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483 $as_echo_n "checking for $ac_word... " >&6; }
7484 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   if test -n "$ac_ct_AR"; then
7488   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7489 else
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 for as_dir in $PATH
7492 do
7493   IFS=$as_save_IFS
7494   test -z "$as_dir" && as_dir=.
7495     for ac_exec_ext in '' $ac_executable_extensions; do
7496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497     ac_cv_prog_ac_ct_AR="ar"
7498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499     break 2
7500   fi
7501 done
7502   done
7503 IFS=$as_save_IFS
7504
7505 fi
7506 fi
7507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7508 if test -n "$ac_ct_AR"; then
7509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7510 $as_echo "$ac_ct_AR" >&6; }
7511 else
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 fi
7515
7516   if test "x$ac_ct_AR" = x; then
7517     AR=":"
7518   else
7519     case $cross_compiling:$ac_tool_warned in
7520 yes:)
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523 ac_tool_warned=yes ;;
7524 esac
7525     AR=$ac_ct_AR
7526   fi
7527 else
7528   AR="$ac_cv_prog_AR"
7529 fi
7530
7531 # Extract the first word of ""perl"", so it can be a program name with args.
7532 set dummy "perl"; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_path_PERL+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   case $PERL in
7539   [\\/]* | ?:[\\/]*)
7540   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7541   ;;
7542   *)
7543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558   ;;
7559 esac
7560 fi
7561 PERL=$ac_cv_path_PERL
7562 if test -n "$PERL"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7564 $as_echo "$PERL" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571 if test -n "$ac_tool_prefix"; then
7572   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7573 set dummy ${ac_tool_prefix}windres; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_WINDRES+:} false; then :
7577   $as_echo_n "(cached) " >&6
7578 else
7579   if test -n "$WINDRES"; then
7580   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7584 do
7585   IFS=$as_save_IFS
7586   test -z "$as_dir" && as_dir=.
7587     for ac_exec_ext in '' $ac_executable_extensions; do
7588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591     break 2
7592   fi
7593 done
7594   done
7595 IFS=$as_save_IFS
7596
7597 fi
7598 fi
7599 WINDRES=$ac_cv_prog_WINDRES
7600 if test -n "$WINDRES"; then
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7602 $as_echo "$WINDRES" >&6; }
7603 else
7604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7606 fi
7607
7608
7609 fi
7610 if test -z "$ac_cv_prog_WINDRES"; then
7611   ac_ct_WINDRES=$WINDRES
7612   # Extract the first word of "windres", so it can be a program name with args.
7613 set dummy windres; ac_word=$2
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615 $as_echo_n "checking for $ac_word... " >&6; }
7616 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   if test -n "$ac_ct_WINDRES"; then
7620   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625   IFS=$as_save_IFS
7626   test -z "$as_dir" && as_dir=.
7627     for ac_exec_ext in '' $ac_executable_extensions; do
7628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629     ac_cv_prog_ac_ct_WINDRES="windres"
7630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631     break 2
7632   fi
7633 done
7634   done
7635 IFS=$as_save_IFS
7636
7637 fi
7638 fi
7639 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7640 if test -n "$ac_ct_WINDRES"; then
7641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7642 $as_echo "$ac_ct_WINDRES" >&6; }
7643 else
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7646 fi
7647
7648   if test "x$ac_ct_WINDRES" = x; then
7649     WINDRES=":"
7650   else
7651     case $cross_compiling:$ac_tool_warned in
7652 yes:)
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7655 ac_tool_warned=yes ;;
7656 esac
7657     WINDRES=$ac_ct_WINDRES
7658   fi
7659 else
7660   WINDRES="$ac_cv_prog_WINDRES"
7661 fi
7662
7663 # Extract the first word of ""yat2m"", so it can be a program name with args.
7664 set dummy "yat2m"; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_path_YAT2M+:} false; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   case $YAT2M in
7671   [\\/]* | ?:[\\/]*)
7672   ac_cv_path_YAT2M="$YAT2M" # Let the user override the test with a path.
7673   ;;
7674   *)
7675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680     for ac_exec_ext in '' $ac_executable_extensions; do
7681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682     ac_cv_path_YAT2M="$as_dir/$ac_word$ac_exec_ext"
7683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687   done
7688 IFS=$as_save_IFS
7689
7690   test -z "$ac_cv_path_YAT2M" && ac_cv_path_YAT2M=""./yat2m" "
7691   ;;
7692 esac
7693 fi
7694 YAT2M=$ac_cv_path_YAT2M
7695 if test -n "$YAT2M"; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YAT2M" >&5
7697 $as_echo "$YAT2M" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704
7705  if test -n "$ac_cv_path_YAT2M"; then
7706   HAVE_YAT2M_TRUE=
7707   HAVE_YAT2M_FALSE='#'
7708 else
7709   HAVE_YAT2M_TRUE='#'
7710   HAVE_YAT2M_FALSE=
7711 fi
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7714 $as_echo_n "checking for library containing strerror... " >&6; }
7715 if ${ac_cv_search_strerror+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   ac_func_search_save_LIBS=$LIBS
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h.  */
7721
7722 /* Override any GCC internal prototype to avoid an error.
7723    Use char because int might match the return type of a GCC
7724    builtin and then its argument prototype would still apply.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 char strerror ();
7729 int
7730 main ()
7731 {
7732 return strerror ();
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 for ac_lib in '' cposix; do
7738   if test -z "$ac_lib"; then
7739     ac_res="none required"
7740   else
7741     ac_res=-l$ac_lib
7742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7743   fi
7744   if ac_fn_c_try_link "$LINENO"; then :
7745   ac_cv_search_strerror=$ac_res
7746 fi
7747 rm -f core conftest.err conftest.$ac_objext \
7748     conftest$ac_exeext
7749   if ${ac_cv_search_strerror+:} false; then :
7750   break
7751 fi
7752 done
7753 if ${ac_cv_search_strerror+:} false; then :
7754
7755 else
7756   ac_cv_search_strerror=no
7757 fi
7758 rm conftest.$ac_ext
7759 LIBS=$ac_func_search_save_LIBS
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7762 $as_echo "$ac_cv_search_strerror" >&6; }
7763 ac_res=$ac_cv_search_strerror
7764 if test "$ac_res" != no; then :
7765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7766
7767 fi
7768
7769 # Check whether --enable-largefile was given.
7770 if test "${enable_largefile+set}" = set; then :
7771   enableval=$enable_largefile;
7772 fi
7773
7774 if test "$enable_largefile" != no; then
7775
7776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7778 if ${ac_cv_sys_largefile_CC+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   ac_cv_sys_largefile_CC=no
7782      if test "$GCC" != yes; then
7783        ac_save_CC=$CC
7784        while :; do
7785          # IRIX 6.2 and later do not support large files by default,
7786          # so use the C compiler's -n32 option if that helps.
7787          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h.  */
7789 #include <sys/types.h>
7790  /* Check that off_t can represent 2**63 - 1 correctly.
7791     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7792     since some C++ compilers masquerading as C compilers
7793     incorrectly reject 9223372036854775807.  */
7794 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7795   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7796                        && LARGE_OFF_T % 2147483647 == 1)
7797                       ? 1 : -1];
7798 int
7799 main ()
7800 {
7801
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806          if ac_fn_c_try_compile "$LINENO"; then :
7807   break
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext
7810          CC="$CC -n32"
7811          if ac_fn_c_try_compile "$LINENO"; then :
7812   ac_cv_sys_largefile_CC=' -n32'; break
7813 fi
7814 rm -f core conftest.err conftest.$ac_objext
7815          break
7816        done
7817        CC=$ac_save_CC
7818        rm -f conftest.$ac_ext
7819     fi
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7822 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7823   if test "$ac_cv_sys_largefile_CC" != no; then
7824     CC=$CC$ac_cv_sys_largefile_CC
7825   fi
7826
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7828 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7829 if ${ac_cv_sys_file_offset_bits+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   while :; do
7833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835 #include <sys/types.h>
7836  /* Check that off_t can represent 2**63 - 1 correctly.
7837     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7838     since some C++ compilers masquerading as C compilers
7839     incorrectly reject 9223372036854775807.  */
7840 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7841   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7842                        && LARGE_OFF_T % 2147483647 == 1)
7843                       ? 1 : -1];
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"; then :
7853   ac_cv_sys_file_offset_bits=no; break
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h.  */
7858 #define _FILE_OFFSET_BITS 64
7859 #include <sys/types.h>
7860  /* Check that off_t can represent 2**63 - 1 correctly.
7861     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7862     since some C++ compilers masquerading as C compilers
7863     incorrectly reject 9223372036854775807.  */
7864 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7865   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7866                        && LARGE_OFF_T % 2147483647 == 1)
7867                       ? 1 : -1];
7868 int
7869 main ()
7870 {
7871
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_compile "$LINENO"; then :
7877   ac_cv_sys_file_offset_bits=64; break
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880   ac_cv_sys_file_offset_bits=unknown
7881   break
7882 done
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7885 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7886 case $ac_cv_sys_file_offset_bits in #(
7887   no | unknown) ;;
7888   *)
7889 cat >>confdefs.h <<_ACEOF
7890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7891 _ACEOF
7892 ;;
7893 esac
7894 rm -rf conftest*
7895   if test $ac_cv_sys_file_offset_bits = unknown; then
7896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7897 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7898 if ${ac_cv_sys_large_files+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   while :; do
7902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904 #include <sys/types.h>
7905  /* Check that off_t can represent 2**63 - 1 correctly.
7906     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7907     since some C++ compilers masquerading as C compilers
7908     incorrectly reject 9223372036854775807.  */
7909 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7910   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7911                        && LARGE_OFF_T % 2147483647 == 1)
7912                       ? 1 : -1];
7913 int
7914 main ()
7915 {
7916
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_compile "$LINENO"; then :
7922   ac_cv_sys_large_files=no; break
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h.  */
7927 #define _LARGE_FILES 1
7928 #include <sys/types.h>
7929  /* Check that off_t can represent 2**63 - 1 correctly.
7930     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7931     since some C++ compilers masquerading as C compilers
7932     incorrectly reject 9223372036854775807.  */
7933 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7934   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7935                        && LARGE_OFF_T % 2147483647 == 1)
7936                       ? 1 : -1];
7937 int
7938 main ()
7939 {
7940
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"; then :
7946   ac_cv_sys_large_files=1; break
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949   ac_cv_sys_large_files=unknown
7950   break
7951 done
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7954 $as_echo "$ac_cv_sys_large_files" >&6; }
7955 case $ac_cv_sys_large_files in #(
7956   no | unknown) ;;
7957   *)
7958 cat >>confdefs.h <<_ACEOF
7959 #define _LARGE_FILES $ac_cv_sys_large_files
7960 _ACEOF
7961 ;;
7962 esac
7963 rm -rf conftest*
7964   fi
7965
7966
7967 fi
7968
7969
7970
7971 # GNU AWK requires -n option to interpret "0xHH" as a number
7972 if $AWK 'BEGIN { if (PROCINFO["version"]) exit 1 }'; then
7973   AWK_HEX_NUMBER_OPTION=''
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with no option for hexadecimal" >&5
7975 $as_echo "$as_me: awk with no option for hexadecimal" >&6;}
7976 else
7977   AWK_HEX_NUMBER_OPTION='-n'
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: awk with an option -n for hexadecimal" >&5
7979 $as_echo "$as_me: awk with an option -n for hexadecimal" >&6;}
7980 fi
7981
7982
7983 # We need to compile and run a program on the build machine.  A
7984 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
7985 # the AC archive is broken for autoconf 2.57.  Given that there is no
7986 # newer version of that macro, we assume that it is also broken for
7987 # autoconf 2.61 and thus we use a simple but usually sufficient
7988 # approach.
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
7990 $as_echo_n "checking for cc for build... " >&6; }
7991 if test "$cross_compiling" = "yes"; then
7992   CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
7993 else
7994   CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
7997 $as_echo "$CC_FOR_BUILD" >&6; }
7998
7999
8000 # We need to call this macro because other pkg-config macros are
8001 # not always used.
8002
8003
8004
8005
8006
8007
8008
8009 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8010         if test -n "$ac_tool_prefix"; then
8011   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if ${ac_cv_path_PKG_CONFIG+:} false; then :
8016   $as_echo_n "(cached) " >&6
8017 else
8018   case $PKG_CONFIG in
8019   [\\/]* | ?:[\\/]*)
8020   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8021   ;;
8022   *)
8023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028     for ac_exec_ext in '' $ac_executable_extensions; do
8029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035   done
8036 IFS=$as_save_IFS
8037
8038   ;;
8039 esac
8040 fi
8041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8042 if test -n "$PKG_CONFIG"; then
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8044 $as_echo "$PKG_CONFIG" >&6; }
8045 else
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051 fi
8052 if test -z "$ac_cv_path_PKG_CONFIG"; then
8053   ac_pt_PKG_CONFIG=$PKG_CONFIG
8054   # Extract the first word of "pkg-config", so it can be a program name with args.
8055 set dummy pkg-config; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   case $ac_pt_PKG_CONFIG in
8062   [\\/]* | ?:[\\/]*)
8063   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8064   ;;
8065   *)
8066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071     for ac_exec_ext in '' $ac_executable_extensions; do
8072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078   done
8079 IFS=$as_save_IFS
8080
8081   ;;
8082 esac
8083 fi
8084 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8085 if test -n "$ac_pt_PKG_CONFIG"; then
8086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8087 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8088 else
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093   if test "x$ac_pt_PKG_CONFIG" = x; then
8094     PKG_CONFIG=""
8095   else
8096     case $cross_compiling:$ac_tool_warned in
8097 yes:)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8101 esac
8102     PKG_CONFIG=$ac_pt_PKG_CONFIG
8103   fi
8104 else
8105   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8106 fi
8107
8108 fi
8109 if test -n "$PKG_CONFIG"; then
8110         _pkg_min_version=0.9.0
8111         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8112 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8113         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8114                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8115 $as_echo "yes" >&6; }
8116         else
8117                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119                 PKG_CONFIG=""
8120         fi
8121 fi
8122
8123
8124 try_gettext=yes
8125 require_iconv=yes
8126 have_dosish_system=no
8127 have_w32_system=no
8128 have_w32ce_system=no
8129 have_android_system=no
8130 use_simple_gettext=no
8131 mmap_needed=yes
8132 require_pipe_to_unblock_pselect=yes
8133 case "${host}" in
8134     *-mingw32*)
8135         # special stuff for Windoze NT
8136         ac_cv_have_dev_random=no
8137
8138 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
8139
8140
8141 $as_echo "#define USE_SIMPLE_GETTEXT 1" >>confdefs.h
8142
8143         have_dosish_system=yes
8144         have_w32_system=yes
8145         require_iconv=no
8146         require_pipe_to_unblock_pselect=no
8147         case "${host}" in
8148           *-mingw32ce*)
8149             have_w32ce_system=yes
8150             ;;
8151           *)
8152
8153 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8154
8155             ;;
8156         esac
8157         try_gettext="no"
8158         use_simple_gettext=yes
8159         mmap_needed=no
8160         build_wks_tools=no
8161         ;;
8162     i?86-emx-os2 | i?86-*-os2*emx )
8163         # OS/2 with the EMX environment
8164         ac_cv_have_dev_random=no
8165         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8166
8167         have_dosish_system=yes
8168         try_gettext="no"
8169         build_wks_tools=no
8170         ;;
8171
8172     i?86-*-msdosdjgpp*)
8173         # DOS with the DJGPP environment
8174         ac_cv_have_dev_random=no
8175         $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
8176
8177         have_dosish_system=yes
8178         try_gettext="no"
8179         build_wks_tools=no
8180         ;;
8181
8182     *-*-hpux*)
8183         if test -z "$GCC" ; then
8184             CFLAGS="-Ae -D_HPUX_SOURCE $CFLAGS"
8185         fi
8186         ;;
8187     *-dec-osf4*)
8188         if test -z "$GCC" ; then
8189             # Suppress all warnings
8190             # to get rid of the unsigned/signed char mismatch warnings.
8191             CFLAGS="-w $CFLAGS"
8192         fi
8193         ;;
8194     *-dec-osf5*)
8195         if test -z "$GCC" ; then
8196             # Use the newer compiler `-msg_disable ptrmismatch1' to
8197             # get rid of the unsigned/signed char mismatch warnings.
8198             # Using this may hide other pointer mismatch warnings, but
8199             # it at least lets other warning classes through
8200             CFLAGS="-msg_disable ptrmismatch1 $CFLAGS"
8201         fi
8202         ;;
8203     m68k-atari-mint)
8204         ;;
8205     *-linux-android*)
8206         have_android_system=yes
8207         # Android is fully utf-8 and we do not want to use iconv to
8208         # keeps things simple
8209         require_iconv=no
8210         build_wks_tools=no
8211         ;;
8212     *-apple-darwin*)
8213
8214 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
8215
8216         ;;
8217     *-*-netbsd*)
8218         require_pipe_to_unblock_pselect=yes
8219         ;;
8220     *)
8221         ;;
8222 esac
8223
8224 if test "$require_pipe_to_unblock_pselect" = yes; then
8225
8226 $as_echo "#define HAVE_PSELECT_NO_EINTR 1" >>confdefs.h
8227
8228 fi
8229
8230 if test "$have_dosish_system" = yes; then
8231
8232 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
8233
8234 fi
8235  if test "$have_dosish_system" = yes; then
8236   HAVE_DOSISH_SYSTEM_TRUE=
8237   HAVE_DOSISH_SYSTEM_FALSE='#'
8238 else
8239   HAVE_DOSISH_SYSTEM_TRUE='#'
8240   HAVE_DOSISH_SYSTEM_FALSE=
8241 fi
8242
8243
8244  if test x"$use_simple_gettext" = xyes; then
8245   USE_SIMPLE_GETTEXT_TRUE=
8246   USE_SIMPLE_GETTEXT_FALSE='#'
8247 else
8248   USE_SIMPLE_GETTEXT_TRUE='#'
8249   USE_SIMPLE_GETTEXT_FALSE=
8250 fi
8251
8252
8253 if test "$have_w32_system" = yes; then
8254
8255 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
8256
8257    if test "$have_w32ce_system" = yes; then
8258
8259 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
8260
8261    fi
8262 fi
8263  if test "$have_w32_system" = yes; then
8264   HAVE_W32_SYSTEM_TRUE=
8265   HAVE_W32_SYSTEM_FALSE='#'
8266 else
8267   HAVE_W32_SYSTEM_TRUE='#'
8268   HAVE_W32_SYSTEM_FALSE=
8269 fi
8270
8271  if test "$have_w32ce_system" = yes; then
8272   HAVE_W32CE_SYSTEM_TRUE=
8273   HAVE_W32CE_SYSTEM_FALSE='#'
8274 else
8275   HAVE_W32CE_SYSTEM_TRUE='#'
8276   HAVE_W32CE_SYSTEM_FALSE=
8277 fi
8278
8279
8280 if test "$have_android_system" = yes; then
8281
8282 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
8283
8284 fi
8285  if test "$have_android_system" = yes; then
8286   HAVE_ANDROID_SYSTEM_TRUE=
8287   HAVE_ANDROID_SYSTEM_FALSE='#'
8288 else
8289   HAVE_ANDROID_SYSTEM_TRUE='#'
8290   HAVE_ANDROID_SYSTEM_FALSE=
8291 fi
8292
8293
8294
8295 # (These need to go after AC_PROG_CC so that $EXEEXT is defined)
8296
8297 cat >>confdefs.h <<_ACEOF
8298 #define EXEEXT "$EXEEXT"
8299 _ACEOF
8300
8301
8302
8303 #
8304 # Checks for libraries.
8305 #
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
8307 $as_echo "$as_me: checking for libraries" >&6;}
8308
8309
8310 #
8311 # gpgrt (aka libgpg-error) is a library with error codes shared
8312 # between GnuPG related projects.
8313 #
8314
8315   gpg_error_config_prefix=""
8316
8317 # Check whether --with-libgpg-error-prefix was given.
8318 if test "${with_libgpg_error_prefix+set}" = set; then :
8319   withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
8320 fi
8321
8322
8323
8324 # Check whether --with-gpg-error-prefix was given.
8325 if test "${with_gpg_error_prefix+set}" = set; then :
8326   withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
8327 fi
8328
8329
8330   if test x"${GPG_ERROR_CONFIG}" = x ; then
8331      if test x"${gpg_error_config_prefix}" != x ; then
8332         GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
8333      else
8334        case "${SYSROOT}" in
8335          /*)
8336            if test -x "${SYSROOT}/bin/gpg-error-config" ; then
8337              GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
8338            fi
8339            ;;
8340          '')
8341            ;;
8342           *)
8343            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8344 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8345            ;;
8346        esac
8347      fi
8348   fi
8349
8350   # Extract the first word of "gpg-error-config", so it can be a program name with args.
8351 set dummy gpg-error-config; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   case $GPG_ERROR_CONFIG in
8358   [\\/]* | ?:[\\/]*)
8359   ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
8360   ;;
8361   *)
8362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369     ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376
8377   test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
8378   ;;
8379 esac
8380 fi
8381 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
8382 if test -n "$GPG_ERROR_CONFIG"; then
8383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
8384 $as_echo "$GPG_ERROR_CONFIG" >&6; }
8385 else
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8388 fi
8389
8390
8391   min_gpg_error_version="$NEED_GPGRT_VERSION"
8392   ok=no
8393
8394   # Extract the first word of "gpgrt-config", so it can be a program name with args.
8395 set dummy gpgrt-config; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
8399   $as_echo_n "(cached) " >&6
8400 else
8401   case $GPGRT_CONFIG in
8402   [\\/]* | ?:[\\/]*)
8403   ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
8404   ;;
8405   *)
8406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 as_dummy="$prefix/bin:$PATH"
8408 for as_dir in $as_dummy
8409 do
8410   IFS=$as_save_IFS
8411   test -z "$as_dir" && as_dir=.
8412     for ac_exec_ext in '' $ac_executable_extensions; do
8413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414     ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416     break 2
8417   fi
8418 done
8419   done
8420 IFS=$as_save_IFS
8421
8422   test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
8423   ;;
8424 esac
8425 fi
8426 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
8427 if test -n "$GPGRT_CONFIG"; then
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
8429 $as_echo "$GPGRT_CONFIG" >&6; }
8430 else
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8433 fi
8434
8435
8436   if test "$GPGRT_CONFIG" != "no"; then
8437     # Determine gpgrt_libdir
8438     #
8439     # Get the prefix of gpgrt-config assuming it's something like:
8440     #   <PREFIX>/bin/gpgrt-config
8441     gpgrt_prefix=${GPGRT_CONFIG%/*/*}
8442     possible_libdir1=${gpgrt_prefix}/lib
8443     # Determine by using system libdir-format with CC, it's like:
8444     #   Normal style: /usr/lib
8445     #   GNU cross style: /usr/<triplet>/lib
8446     #   Debian style: /usr/lib/<multiarch-name>
8447     #   Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
8448     # It is assumed that CC is specified to the one of host on cross build.
8449     if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
8450           sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
8451 /g;p;}"); then
8452       # From the output of -print-search-dirs, select valid pkgconfig dirs.
8453       libdir_candidates=$(for dir in $libdir_candidates; do
8454         if p=$(cd $dir 2>/dev/null && pwd); then
8455           test -d "$p/pkgconfig" && echo $p;
8456         fi
8457       done)
8458
8459       for possible_libdir0 in $libdir_candidates; do
8460         # possible_libdir0:
8461         #   Fallback candidate, the one of system-installed (by $CC)
8462         #   (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
8463         # possible_libdir1:
8464         #   Another candidate, user-locally-installed
8465         #   (<gpgrt_prefix>/lib)
8466         # possible_libdir2
8467         #   Most preferred
8468         #   (<gpgrt_prefix>/<triplet>/lib,
8469         #    <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
8470         if test "${possible_libdir0##*/}" = "lib"; then
8471           possible_prefix0=${possible_libdir0%/lib}
8472           possible_prefix0_triplet=${possible_prefix0##*/}
8473           if test -z "$possible_prefix0_triplet"; then
8474             continue
8475           fi
8476           possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
8477         else
8478           possible_prefix0=${possible_libdir0%%/lib*}
8479           possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
8480         fi
8481         if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
8482           gpgrt_libdir=${possible_libdir2}
8483         elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
8484           gpgrt_libdir=${possible_libdir1}
8485         elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
8486           gpgrt_libdir=${possible_libdir0}
8487         fi
8488         if test -n "$gpgrt_libdir"; then break; fi
8489       done
8490     else
8491       # When we cannot determine system libdir-format, use this:
8492       gpgrt_libdir=${possible_libdir1}
8493     fi
8494   else
8495     unset GPGRT_CONFIG
8496   fi
8497
8498   if test -n "$gpgrt_libdir"; then
8499     GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
8500     if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
8501       GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
8502       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
8503 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
8504       gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
8505     else
8506       unset GPGRT_CONFIG
8507     fi
8508   elif test "$GPG_ERROR_CONFIG" != "no"; then
8509     gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
8510   fi
8511   if test "$GPG_ERROR_CONFIG" != "no"; then
8512     req_major=`echo $min_gpg_error_version | \
8513                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
8514     req_minor=`echo $min_gpg_error_version | \
8515                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
8516     major=`echo $gpg_error_config_version | \
8517                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
8518     minor=`echo $gpg_error_config_version | \
8519                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
8520     if test "$major" -gt "$req_major"; then
8521         ok=yes
8522     else
8523         if test "$major" -eq "$req_major"; then
8524             if test "$minor" -ge "$req_minor"; then
8525                ok=yes
8526             fi
8527         fi
8528     fi
8529   fi
8530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
8531 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
8532   if test $ok = yes; then
8533     GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
8534     GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
8535     if test -z "$GPGRT_CONFIG"; then
8536       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
8537       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
8538     else
8539       GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
8540       GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
8541       GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
8542       GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
8543     fi
8544     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
8545 $as_echo "yes ($gpg_error_config_version)" >&6; }
8546     have_gpg_error=yes
8547     if test -z "$GPGRT_CONFIG"; then
8548       gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
8549     else
8550       gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
8551     fi
8552     if test x"$gpg_error_config_host" != xnone ; then
8553       if test x"$gpg_error_config_host" != x"$host" ; then
8554   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8555 ***
8556 *** The config script \"$GPG_ERROR_CONFIG\" was
8557 *** built for $gpg_error_config_host and thus may not match the
8558 *** used host $host.
8559 *** You may want to use the configure option --with-libgpg-error-prefix
8560 *** to specify a matching config script or use \$SYSROOT.
8561 ***" >&5
8562 $as_echo "$as_me: WARNING:
8563 ***
8564 *** The config script \"$GPG_ERROR_CONFIG\" was
8565 *** built for $gpg_error_config_host and thus may not match the
8566 *** used host $host.
8567 *** You may want to use the configure option --with-libgpg-error-prefix
8568 *** to specify a matching config script or use \$SYSROOT.
8569 ***" >&2;}
8570         gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
8571       fi
8572     fi
8573   else
8574     GPG_ERROR_CFLAGS=""
8575     GPG_ERROR_LIBS=""
8576     GPG_ERROR_MT_CFLAGS=""
8577     GPG_ERROR_MT_LIBS=""
8578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8580     have_gpg_error=no
8581   fi
8582
8583
8584
8585
8586
8587
8588
8589 #
8590 # Libgcrypt is our generic crypto library
8591 #
8592
8593
8594 # Check whether --with-libgcrypt-prefix was given.
8595 if test "${with_libgcrypt_prefix+set}" = set; then :
8596   withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
8597 else
8598   libgcrypt_config_prefix=""
8599 fi
8600
8601   if test x"${LIBGCRYPT_CONFIG}" = x ; then
8602      if test x"${libgcrypt_config_prefix}" != x ; then
8603         LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
8604      fi
8605   fi
8606
8607   use_gpgrt_config=""
8608   if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8609     if $GPGRT_CONFIG libgcrypt --exists; then
8610       LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
8611       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
8612 $as_echo "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
8613       use_gpgrt_config=yes
8614     fi
8615   fi
8616   if test -z "$use_gpgrt_config"; then
8617     if test x"${LIBGCRYPT_CONFIG}" = x ; then
8618       case "${SYSROOT}" in
8619          /*)
8620            if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
8621              LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
8622            fi
8623            ;;
8624          '')
8625            ;;
8626           *)
8627            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
8628 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
8629            ;;
8630       esac
8631     fi
8632     # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8633 set dummy libgcrypt-config; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   case $LIBGCRYPT_CONFIG in
8640   [\\/]* | ?:[\\/]*)
8641   ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
8642   ;;
8643   *)
8644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8646 do
8647   IFS=$as_save_IFS
8648   test -z "$as_dir" && as_dir=.
8649     for ac_exec_ext in '' $ac_executable_extensions; do
8650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651     ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653     break 2
8654   fi
8655 done
8656   done
8657 IFS=$as_save_IFS
8658
8659   test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
8660   ;;
8661 esac
8662 fi
8663 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
8664 if test -n "$LIBGCRYPT_CONFIG"; then
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
8666 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
8667 else
8668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8670 fi
8671
8672
8673   fi
8674
8675   tmp="$NEED_LIBGCRYPT_API:$NEED_LIBGCRYPT_VERSION"
8676   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8677      req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8678      min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8679   else
8680      req_libgcrypt_api=0
8681      min_libgcrypt_version="$tmp"
8682   fi
8683
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
8685 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
8686   ok=no
8687   if test "$LIBGCRYPT_CONFIG" != "no" ; then
8688     req_major=`echo $min_libgcrypt_version | \
8689                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8690     req_minor=`echo $min_libgcrypt_version | \
8691                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8692     req_micro=`echo $min_libgcrypt_version | \
8693                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8694     if test -z "$use_gpgrt_config"; then
8695       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
8696     else
8697       libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
8698     fi
8699     major=`echo $libgcrypt_config_version | \
8700                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8701     minor=`echo $libgcrypt_config_version | \
8702                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8703     micro=`echo $libgcrypt_config_version | \
8704                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8705     if test "$major" -gt "$req_major"; then
8706         ok=yes
8707     else
8708         if test "$major" -eq "$req_major"; then
8709             if test "$minor" -gt "$req_minor"; then
8710                ok=yes
8711             else
8712                if test "$minor" -eq "$req_minor"; then
8713                    if test "$micro" -ge "$req_micro"; then
8714                      ok=yes
8715                    fi
8716                fi
8717             fi
8718         fi
8719     fi
8720   fi
8721   if test $ok = yes; then
8722     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
8723 $as_echo "yes ($libgcrypt_config_version)" >&6; }
8724   else
8725     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8727   fi
8728   if test $ok = yes; then
8729      # If we have a recent libgcrypt, we should also check that the
8730      # API is compatible
8731      if test "$req_libgcrypt_api" -gt 0 ; then
8732         if test -z "$use_gpgrt_config"; then
8733            tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
8734         else
8735            tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
8736         fi
8737         if test "$tmp" -gt 0 ; then
8738            { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
8739 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
8740            if test "$req_libgcrypt_api" -eq "$tmp" ; then
8741              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8742 $as_echo "okay" >&6; }
8743            else
8744              ok=no
8745              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
8746 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
8747            fi
8748         fi
8749      fi
8750   fi
8751   if test $ok = yes; then
8752     LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
8753     LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
8754     have_libgcrypt=yes
8755     if test -z "$use_gpgrt_config"; then
8756       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
8757     else
8758       libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
8759     fi
8760     if test x"$libgcrypt_config_host" != xnone ; then
8761       if test x"$libgcrypt_config_host" != x"$host" ; then
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8763 ***
8764 *** The config script \"$LIBGCRYPT_CONFIG\" was
8765 *** built for $libgcrypt_config_host and thus may not match the
8766 *** used host $host.
8767 *** You may want to use the configure option --with-libgcrypt-prefix
8768 *** to specify a matching config script or use \$SYSROOT.
8769 ***" >&5
8770 $as_echo "$as_me: WARNING:
8771 ***
8772 *** The config script \"$LIBGCRYPT_CONFIG\" was
8773 *** built for $libgcrypt_config_host and thus may not match the
8774 *** used host $host.
8775 *** You may want to use the configure option --with-libgcrypt-prefix
8776 *** to specify a matching config script or use \$SYSROOT.
8777 ***" >&2;}
8778         gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
8779       fi
8780     fi
8781   else
8782     LIBGCRYPT_CFLAGS=""
8783     LIBGCRYPT_LIBS=""
8784     have_libgcrypt=no
8785   fi
8786
8787
8788
8789 # And, then, check if it's newer than 1.9.0 so that we can
8790 # conditionally build some programs.
8791 # Note: This is not anymore needed but keep the code commented in case
8792 # we need it again with some future libgcrypt.
8793 #have_libgcrypt_newer=no
8794 #if test $ok = yes; then
8795 #    if test "$major" -gt 1; then
8796 #        have_libgcrypt_newer=yes
8797 #    else
8798 #        if test "$major" -eq 1; then
8799 #            if test "$minor" -gt 9; then
8800 #               have_libgcrypt_newer=yes
8801 #            else
8802 #               if test "$minor" -eq 9; then
8803 #                   if test "$micro" -ge 0; then
8804 #                     have_libgcrypt_newer=yes
8805 #                   fi
8806 #               fi
8807 #            fi
8808 #        fi
8809 #    fiy
8810 #fi
8811 #AM_CONDITIONAL(HAVE_NEWER_LIBGCRYPT, [test $have_libgcrypt_newer = yes])
8812
8813 #
8814 # libassuan is used for IPC
8815 #
8816
8817
8818 # Check whether --with-libassuan-prefix was given.
8819 if test "${with_libassuan_prefix+set}" = set; then :
8820   withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
8821 else
8822   libassuan_config_prefix=""
8823 fi
8824
8825   if test x$libassuan_config_prefix != x ; then
8826     if test x${LIBASSUAN_CONFIG+set} != xset ; then
8827       LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
8828     fi
8829   fi
8830
8831   use_gpgrt_config=""
8832   if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
8833     if $GPGRT_CONFIG libassuan --exists; then
8834       LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
8835       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
8836 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
8837       use_gpgrt_config=yes
8838     fi
8839   fi
8840   if test -z "$use_gpgrt_config"; then
8841     # Extract the first word of "libassuan-config", so it can be a program name with args.
8842 set dummy libassuan-config; ac_word=$2
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8844 $as_echo_n "checking for $ac_word... " >&6; }
8845 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   case $LIBASSUAN_CONFIG in
8849   [\\/]* | ?:[\\/]*)
8850   ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
8851   ;;
8852   *)
8853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 for as_dir in $PATH
8855 do
8856   IFS=$as_save_IFS
8857   test -z "$as_dir" && as_dir=.
8858     for ac_exec_ext in '' $ac_executable_extensions; do
8859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8860     ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862     break 2
8863   fi
8864 done
8865   done
8866 IFS=$as_save_IFS
8867
8868   test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
8869   ;;
8870 esac
8871 fi
8872 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
8873 if test -n "$LIBASSUAN_CONFIG"; then
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
8875 $as_echo "$LIBASSUAN_CONFIG" >&6; }
8876 else
8877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 $as_echo "no" >&6; }
8879 fi
8880
8881
8882   fi
8883
8884   tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
8885   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
8886     req_libassuan_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
8887     min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
8888   else
8889     req_libassuan_api=0
8890     min_libassuan_version="$tmp"
8891   fi
8892
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
8894 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
8895   ok=no
8896   if test "$LIBASSUAN_CONFIG" != "no"; then
8897     req_major=`echo $min_libassuan_version | \
8898                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8899     req_minor=`echo $min_libassuan_version | \
8900                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8901     req_micro=`echo $min_libassuan_version | \
8902                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8903
8904     if test -z "$use_gpgrt_config"; then
8905       libassuan_config_version=`$LIBASSUAN_CONFIG --version`
8906     else
8907       libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
8908     fi
8909     major=`echo $libassuan_config_version | \
8910                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
8911     minor=`echo $libassuan_config_version | \
8912                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
8913     micro=`echo $libassuan_config_version | \
8914                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
8915
8916     if test "$major" -gt "$req_major"; then
8917         ok=yes
8918     else
8919         if test "$major" -eq "$req_major"; then
8920             if test "$minor" -gt "$req_minor"; then
8921                ok=yes
8922             else
8923                if test "$minor" -eq "$req_minor"; then
8924                    if test "$micro" -ge "$req_micro"; then
8925                      ok=yes
8926                    fi
8927                fi
8928             fi
8929         fi
8930     fi
8931   fi
8932
8933   if test $ok = yes; then
8934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
8935 $as_echo "yes ($libassuan_config_version)" >&6; }
8936   else
8937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8939   fi
8940
8941   if test $ok = yes; then
8942     if test "$req_libassuan_api" -gt 0 ; then
8943       if test -z "$use_gpgrt_config"; then
8944         tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
8945       else
8946         tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
8947       fi
8948       if test "$tmp" -gt 0 ; then
8949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
8950 $as_echo_n "checking LIBASSUAN API version... " >&6; }
8951         if test "$req_libassuan_api" -eq "$tmp" ; then
8952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
8953 $as_echo "okay" >&6; }
8954         else
8955           ok=no
8956           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_libassuan_api got=$tmp." >&5
8957 $as_echo "does not match.  want=$req_libassuan_api got=$tmp." >&6; }
8958         fi
8959       fi
8960     fi
8961   fi
8962
8963   if test $ok = yes; then
8964     if test x"$host" != x ; then
8965       if test -z "$use_gpgrt_config"; then
8966         libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
8967       else
8968         libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
8969       fi
8970       if test x"$libassuan_config_host" != xnone ; then
8971         if test x"$libassuan_config_host" != x"$host" ; then
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8973 ***
8974 *** The config script \"$LIBASSUAN_CONFIG\" was
8975 *** built for $libassuan_config_host and thus may not match the
8976 *** used host $host.
8977 *** You may want to use the configure option --with-libassuan-prefix
8978 *** to specify a matching config script.
8979 ***" >&5
8980 $as_echo "$as_me: WARNING:
8981 ***
8982 *** The config script \"$LIBASSUAN_CONFIG\" was
8983 *** built for $libassuan_config_host and thus may not match the
8984 *** used host $host.
8985 *** You may want to use the configure option --with-libassuan-prefix
8986 *** to specify a matching config script.
8987 ***" >&2;}
8988         fi
8989       fi
8990     fi
8991   fi
8992
8993   if test $ok = yes; then
8994     LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
8995     LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
8996     have_libassuan=yes
8997   else
8998     LIBASSUAN_CFLAGS=""
8999     LIBASSUAN_LIBS=""
9000     have_libassuan=no
9001   fi
9002
9003
9004
9005 if test "$have_libassuan" = "yes"; then
9006
9007 cat >>confdefs.h <<_ACEOF
9008 #define GNUPG_LIBASSUAN_VERSION "$libassuan_version"
9009 _ACEOF
9010
9011   show_tor_support="only .onion"
9012 fi
9013
9014
9015 #
9016 # libksba is our X.509 support library
9017 #
9018
9019
9020 # Check whether --with-libksba-prefix was given.
9021 if test "${with_libksba_prefix+set}" = set; then :
9022   withval=$with_libksba_prefix; ksba_config_prefix="$withval"
9023 else
9024   ksba_config_prefix=""
9025 fi
9026
9027
9028
9029 # Check whether --with-ksba-prefix was given.
9030 if test "${with_ksba_prefix+set}" = set; then :
9031   withval=$with_ksba_prefix; ksba_config_prefix="$withval"
9032 else
9033   ksba_config_prefix=""
9034 fi
9035
9036
9037   if test x$ksba_config_prefix != x ; then
9038     if test x${KSBA_CONFIG+set} != xset ; then
9039       KSBA_CONFIG=$ksba_config_prefix/bin/ksba-config
9040     fi
9041   fi
9042
9043   use_gpgrt_config=""
9044   if test x"$KSBA_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9045     if $GPGRT_CONFIG ksba --exists; then
9046       KSBA_CONFIG="$GPGRT_CONFIG ksba"
9047       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ksba-config" >&5
9048 $as_echo "$as_me: Use gpgrt-config as ksba-config" >&6;}
9049       use_gpgrt_config=yes
9050     fi
9051   fi
9052   if test -z "$use_gpgrt_config"; then
9053     # Extract the first word of "ksba-config", so it can be a program name with args.
9054 set dummy ksba-config; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_path_KSBA_CONFIG+:} false; then :
9058   $as_echo_n "(cached) " >&6
9059 else
9060   case $KSBA_CONFIG in
9061   [\\/]* | ?:[\\/]*)
9062   ac_cv_path_KSBA_CONFIG="$KSBA_CONFIG" # Let the user override the test with a path.
9063   ;;
9064   *)
9065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066 for as_dir in $PATH
9067 do
9068   IFS=$as_save_IFS
9069   test -z "$as_dir" && as_dir=.
9070     for ac_exec_ext in '' $ac_executable_extensions; do
9071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072     ac_cv_path_KSBA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9074     break 2
9075   fi
9076 done
9077   done
9078 IFS=$as_save_IFS
9079
9080   test -z "$ac_cv_path_KSBA_CONFIG" && ac_cv_path_KSBA_CONFIG="no"
9081   ;;
9082 esac
9083 fi
9084 KSBA_CONFIG=$ac_cv_path_KSBA_CONFIG
9085 if test -n "$KSBA_CONFIG"; then
9086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSBA_CONFIG" >&5
9087 $as_echo "$KSBA_CONFIG" >&6; }
9088 else
9089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9091 fi
9092
9093
9094   fi
9095
9096   tmp="$NEED_KSBA_API:$NEED_KSBA_VERSION"
9097   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9098      req_ksba_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9099      min_ksba_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9100   else
9101      req_ksba_api=0
9102      min_ksba_version="$tmp"
9103   fi
9104
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KSBA - version >= $min_ksba_version" >&5
9106 $as_echo_n "checking for KSBA - version >= $min_ksba_version... " >&6; }
9107   ok=no
9108   if test "$KSBA_CONFIG" != "no" ; then
9109     req_major=`echo $min_ksba_version | \
9110                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9111     req_minor=`echo $min_ksba_version | \
9112                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9113     req_micro=`echo $min_ksba_version | \
9114                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9115     if test -z "$use_gpgrt_config"; then
9116       ksba_config_version=`$KSBA_CONFIG --version`
9117     else
9118       ksba_config_version=`$KSBA_CONFIG --modversion`
9119     fi
9120     major=`echo $ksba_config_version | \
9121                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9122     minor=`echo $ksba_config_version | \
9123                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9124     micro=`echo $ksba_config_version | \
9125                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9126     if test "$major" -gt "$req_major"; then
9127         ok=yes
9128     else
9129         if test "$major" -eq "$req_major"; then
9130             if test "$minor" -gt "$req_minor"; then
9131                ok=yes
9132             else
9133                if test "$minor" -eq "$req_minor"; then
9134                    if test "$micro" -ge "$req_micro"; then
9135                      ok=yes
9136                    fi
9137                fi
9138             fi
9139         fi
9140     fi
9141   fi
9142   if test $ok = yes; then
9143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ksba_config_version)" >&5
9144 $as_echo "yes ($ksba_config_version)" >&6; }
9145   else
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9148   fi
9149   if test $ok = yes; then
9150      # Even if we have a recent libksba, we should check that the
9151      # API is compatible.
9152      if test "$req_ksba_api" -gt 0 ; then
9153         if test -z "$use_gpgrt_config"; then
9154           tmp=`$KSBA_CONFIG --api-version 2>/dev/null || echo 0`
9155         else
9156           tmp=`$KSBA_CONFIG --variable=api_version 2>/dev/null || echo 0`
9157         fi
9158         if test "$tmp" -gt 0 ; then
9159            { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSBA API version" >&5
9160 $as_echo_n "checking KSBA API version... " >&6; }
9161            if test "$req_ksba_api" -eq "$tmp" ; then
9162              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9163 $as_echo "okay" >&6; }
9164            else
9165              ok=no
9166              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match.  want=$req_ksba_api got=$tmp." >&5
9167 $as_echo "does not match.  want=$req_ksba_api got=$tmp." >&6; }
9168            fi
9169         fi
9170      fi
9171   fi
9172   if test $ok = yes; then
9173     KSBA_CFLAGS=`$KSBA_CONFIG --cflags`
9174     KSBA_LIBS=`$KSBA_CONFIG --libs`
9175     have_ksba=yes
9176     if test -z "$use_gpgrt_config"; then
9177       libksba_config_host=`$KSBA_CONFIG --host 2>/dev/null || echo none`
9178     else
9179       libksba_config_host=`$KSBA_CONFIG --variable=host 2>/dev/null || echo none`
9180     fi
9181     if test x"$libksba_config_host" != xnone ; then
9182       if test x"$libksba_config_host" != x"$host" ; then
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9184 ***
9185 *** The config script \"$KSBA_CONFIG\" was
9186 *** built for $libksba_config_host and thus may not match the
9187 *** used host $host.
9188 *** You may want to use the configure option --with-libksba-prefix
9189 *** to specify a matching config script.
9190 ***" >&5
9191 $as_echo "$as_me: WARNING:
9192 ***
9193 *** The config script \"$KSBA_CONFIG\" was
9194 *** built for $libksba_config_host and thus may not match the
9195 *** used host $host.
9196 *** You may want to use the configure option --with-libksba-prefix
9197 *** to specify a matching config script.
9198 ***" >&2;}
9199       fi
9200     fi
9201   else
9202     KSBA_CFLAGS=""
9203     KSBA_LIBS=""
9204     have_ksba=no
9205   fi
9206
9207
9208
9209
9210
9211 #
9212 # libusb allows us to use the integrated CCID smartcard reader driver.
9213 #
9214 # FiXME: Use GNUPG_CHECK_LIBUSB and modify to use separate AC_SUBSTs.
9215 if test "$use_ccid_driver" = auto || test "$use_ccid_driver" = yes; then
9216    case "${host}" in
9217      *-mingw32*)
9218        LIBUSB_NAME=
9219        LIBUSB_LIBS=
9220        LIBUSB_CPPFLAGS=
9221        ;;
9222      *-*-darwin*)
9223        LIBUSB_NAME=usb-1.0
9224        LIBUSB_LIBS="-Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
9225        ;;
9226      *-*-freebsd*)
9227        # FreeBSD has a native 1.0 compatible library by -lusb.
9228        LIBUSB_NAME=usb
9229        LIBUSB_LIBS=
9230        ;;
9231      *)
9232        LIBUSB_NAME=usb-1.0
9233        LIBUSB_LIBS=
9234        ;;
9235    esac
9236 fi
9237 if test x"$LIBUSB_NAME" != x ; then
9238    as_ac_Lib=`$as_echo "ac_cv_lib_$LIBUSB_NAME''_libusb_init" | $as_tr_sh`
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init in -l$LIBUSB_NAME" >&5
9240 $as_echo_n "checking for libusb_init in -l$LIBUSB_NAME... " >&6; }
9241 if eval \${$as_ac_Lib+:} false; then :
9242   $as_echo_n "(cached) " >&6
9243 else
9244   ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-l$LIBUSB_NAME  $LIBS"
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h.  */
9248
9249 /* Override any GCC internal prototype to avoid an error.
9250    Use char because int might match the return type of a GCC
9251    builtin and then its argument prototype would still apply.  */
9252 #ifdef __cplusplus
9253 extern "C"
9254 #endif
9255 char libusb_init ();
9256 int
9257 main ()
9258 {
9259 return libusb_init ();
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 if ac_fn_c_try_link "$LINENO"; then :
9265   eval "$as_ac_Lib=yes"
9266 else
9267   eval "$as_ac_Lib=no"
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext \
9270     conftest$ac_exeext conftest.$ac_ext
9271 LIBS=$ac_check_lib_save_LIBS
9272 fi
9273 eval ac_res=\$$as_ac_Lib
9274                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9275 $as_echo "$ac_res" >&6; }
9276 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
9277    LIBUSB_LIBS="-l$LIBUSB_NAME $LIBUSB_LIBS"
9278                   have_libusb=yes
9279 fi
9280
9281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libusb include dir" >&5
9282 $as_echo_n "checking libusb include dir... " >&6; }
9283    usb_incdir_found="no"
9284    for _incdir in "" "/usr/include/libusb-1.0" \
9285        "/usr/local/include/libusb-1.0" "/usr/pkg/include/libusb-1.0"; do
9286      _libusb_save_cppflags=$CPPFLAGS
9287      if test -n "${_incdir}"; then
9288        CPPFLAGS="-I${_incdir} ${CPPFLAGS}"
9289      fi
9290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h.  */
9292 #include <libusb.h>
9293 _ACEOF
9294 if ac_fn_c_try_cpp "$LINENO"; then :
9295   usb_incdir=${_incdir}; usb_incdir_found="yes"
9296 fi
9297 rm -f conftest.err conftest.i conftest.$ac_ext
9298      CPPFLAGS=${_libusb_save_cppflags}
9299      if test "$usb_incdir_found" = "yes"; then
9300        break
9301      fi
9302    done
9303    if test "$usb_incdir_found" = "yes"; then
9304      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${usb_incdir}" >&5
9305 $as_echo "${usb_incdir}" >&6; }
9306    else
9307      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9308 $as_echo "not found" >&6; }
9309      usb_incdir=""
9310      have_libusb=no
9311      if test "$use_ccid_driver" != yes; then
9312        use_ccid_driver=no
9313      fi
9314      LIBUSB_LIBS=""
9315    fi
9316
9317    if test "$have_libusb" = yes; then
9318
9319 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
9320
9321    fi
9322    if test x"$usb_incdir" = x; then
9323      LIBUSB_CPPFLAGS=""
9324    else
9325      LIBUSB_CPPFLAGS="-I${usb_incdir}"
9326    fi
9327 fi
9328
9329
9330
9331 #
9332 # Check whether it is necessary to link against libdl.
9333 # (For example to load libpcsclite)
9334 #
9335 gnupg_dlopen_save_libs="$LIBS"
9336 LIBS=""
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9338 $as_echo_n "checking for library containing dlopen... " >&6; }
9339 if ${ac_cv_search_dlopen+:} false; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   ac_func_search_save_LIBS=$LIBS
9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9344 /* end confdefs.h.  */
9345
9346 /* Override any GCC internal prototype to avoid an error.
9347    Use char because int might match the return type of a GCC
9348    builtin and then its argument prototype would still apply.  */
9349 #ifdef __cplusplus
9350 extern "C"
9351 #endif
9352 char dlopen ();
9353 int
9354 main ()
9355 {
9356 return dlopen ();
9357   ;
9358   return 0;
9359 }
9360 _ACEOF
9361 for ac_lib in '' c dl; do
9362   if test -z "$ac_lib"; then
9363     ac_res="none required"
9364   else
9365     ac_res=-l$ac_lib
9366     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9367   fi
9368   if ac_fn_c_try_link "$LINENO"; then :
9369   ac_cv_search_dlopen=$ac_res
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext \
9372     conftest$ac_exeext
9373   if ${ac_cv_search_dlopen+:} false; then :
9374   break
9375 fi
9376 done
9377 if ${ac_cv_search_dlopen+:} false; then :
9378
9379 else
9380   ac_cv_search_dlopen=no
9381 fi
9382 rm conftest.$ac_ext
9383 LIBS=$ac_func_search_save_LIBS
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9386 $as_echo "$ac_cv_search_dlopen" >&6; }
9387 ac_res=$ac_cv_search_dlopen
9388 if test "$ac_res" != no; then :
9389   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9390
9391 fi
9392
9393 DL_LIBS=$LIBS
9394
9395 LIBS="$gnupg_dlopen_save_libs"
9396
9397
9398 # Checks for g10
9399
9400 # Check whether --enable-sqlite was given.
9401 if test "${enable_sqlite+set}" = set; then :
9402   enableval=$enable_sqlite; try_sqlite=$enableval
9403 else
9404   try_sqlite=yes
9405 fi
9406
9407
9408 if test x"$use_tofu" = xyes ; then
9409   if test x"$try_sqlite" = xyes ; then
9410
9411 pkg_failed=no
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE3" >&5
9413 $as_echo_n "checking for SQLITE3... " >&6; }
9414
9415 if test -n "$SQLITE3_CFLAGS"; then
9416     pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
9417  elif test -n "$PKG_CONFIG"; then
9418     if test -n "$PKG_CONFIG" && \
9419     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9420   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9421   ac_status=$?
9422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423   test $ac_status = 0; }; then
9424   pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9425                       test "x$?" != "x0" && pkg_failed=yes
9426 else
9427   pkg_failed=yes
9428 fi
9429  else
9430     pkg_failed=untried
9431 fi
9432 if test -n "$SQLITE3_LIBS"; then
9433     pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
9434  elif test -n "$PKG_CONFIG"; then
9435     if test -n "$PKG_CONFIG" && \
9436     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= \$NEED_SQLITE_VERSION\""; } >&5
9437   ($PKG_CONFIG --exists --print-errors "sqlite3 >= $NEED_SQLITE_VERSION") 2>&5
9438   ac_status=$?
9439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9440   test $ac_status = 0; }; then
9441   pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>/dev/null`
9442                       test "x$?" != "x0" && pkg_failed=yes
9443 else
9444   pkg_failed=yes
9445 fi
9446  else
9447     pkg_failed=untried
9448 fi
9449
9450
9451
9452 if test $pkg_failed = yes; then
9453         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454 $as_echo "no" >&6; }
9455
9456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9457         _pkg_short_errors_supported=yes
9458 else
9459         _pkg_short_errors_supported=no
9460 fi
9461         if test $_pkg_short_errors_supported = yes; then
9462                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9463         else
9464                 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= $NEED_SQLITE_VERSION" 2>&1`
9465         fi
9466         # Put the nasty error message in config.log where it belongs
9467         echo "$SQLITE3_PKG_ERRORS" >&5
9468
9469         have_sqlite=no
9470 elif test $pkg_failed = untried; then
9471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9473         have_sqlite=no
9474 else
9475         SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
9476         SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
9477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9478 $as_echo "yes" >&6; }
9479         have_sqlite=yes
9480 fi
9481   fi
9482   if test "$have_sqlite" = "yes"; then
9483     :
9484
9485
9486   else
9487     use_tofu=no
9488     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9489     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9490 ***
9491 *** Building without SQLite support - TOFU and Keyboxd disabled
9492 ***
9493 *** $tmp" >&5
9494 $as_echo "$as_me: WARNING:
9495 ***
9496 *** Building without SQLite support - TOFU and Keyboxd disabled
9497 ***
9498 *** $tmp" >&2;}
9499   fi
9500 fi
9501 if test "$have_sqlite" != "yes"; then
9502     build_keyboxd=no
9503 fi
9504
9505
9506  if test "$have_sqlite" = "yes"; then
9507   SQLITE3_TRUE=
9508   SQLITE3_FALSE='#'
9509 else
9510   SQLITE3_TRUE='#'
9511   SQLITE3_FALSE=
9512 fi
9513
9514
9515 if test x"$use_tofu" = xyes ; then
9516
9517 $as_echo "#define USE_TOFU 1" >>confdefs.h
9518
9519 fi
9520
9521
9522 # Checks for g13
9523
9524 # Extract the first word of "encfs", so it can be a program name with args.
9525 set dummy encfs; ac_word=$2
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527 $as_echo_n "checking for $ac_word... " >&6; }
9528 if ${ac_cv_path_ENCFS+:} false; then :
9529   $as_echo_n "(cached) " >&6
9530 else
9531   case $ENCFS in
9532   [\\/]* | ?:[\\/]*)
9533   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9534   ;;
9535   *)
9536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 for as_dir in $PATH
9538 do
9539   IFS=$as_save_IFS
9540   test -z "$as_dir" && as_dir=.
9541     for ac_exec_ext in '' $ac_executable_extensions; do
9542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9543     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9545     break 2
9546   fi
9547 done
9548   done
9549 IFS=$as_save_IFS
9550
9551   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9552   ;;
9553 esac
9554 fi
9555 ENCFS=$ac_cv_path_ENCFS
9556 if test -n "$ENCFS"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9558 $as_echo "$ENCFS" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563
9564
9565
9566 cat >>confdefs.h <<_ACEOF
9567 #define ENCFS "${ENCFS}"
9568 _ACEOF
9569
9570
9571 # Extract the first word of "fusermount", so it can be a program name with args.
9572 set dummy fusermount; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9576   $as_echo_n "(cached) " >&6
9577 else
9578   case $FUSERMOUNT in
9579   [\\/]* | ?:[\\/]*)
9580   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9581   ;;
9582   *)
9583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in $PATH
9585 do
9586   IFS=$as_save_IFS
9587   test -z "$as_dir" && as_dir=.
9588     for ac_exec_ext in '' $ac_executable_extensions; do
9589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9590     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592     break 2
9593   fi
9594 done
9595   done
9596 IFS=$as_save_IFS
9597
9598   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9599   ;;
9600 esac
9601 fi
9602 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9603 if test -n "$FUSERMOUNT"; then
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9605 $as_echo "$FUSERMOUNT" >&6; }
9606 else
9607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9608 $as_echo "no" >&6; }
9609 fi
9610
9611
9612
9613 cat >>confdefs.h <<_ACEOF
9614 #define FUSERMOUNT "${FUSERMOUNT}"
9615 _ACEOF
9616
9617
9618
9619
9620 #
9621 # Check whether the nPth library is available
9622 #
9623
9624 # Check whether --with-npth-prefix was given.
9625 if test "${with_npth_prefix+set}" = set; then :
9626   withval=$with_npth_prefix; npth_config_prefix="$withval"
9627 else
9628   npth_config_prefix=""
9629 fi
9630
9631   if test "x$npth_config_prefix" != x ; then
9632       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9633   fi
9634
9635   use_gpgrt_config=""
9636   if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9637     if $GPGRT_CONFIG npth --exists; then
9638       NPTH_CONFIG="$GPGRT_CONFIG npth"
9639       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9640 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9641       use_gpgrt_config=yes
9642     fi
9643   fi
9644   if test -z "$use_gpgrt_config"; then
9645     # Extract the first word of "npth-config", so it can be a program name with args.
9646 set dummy npth-config; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9650   $as_echo_n "(cached) " >&6
9651 else
9652   case $NPTH_CONFIG in
9653   [\\/]* | ?:[\\/]*)
9654   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9655   ;;
9656   *)
9657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
9660   IFS=$as_save_IFS
9661   test -z "$as_dir" && as_dir=.
9662     for ac_exec_ext in '' $ac_executable_extensions; do
9663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9664     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666     break 2
9667   fi
9668 done
9669   done
9670 IFS=$as_save_IFS
9671
9672   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9673   ;;
9674 esac
9675 fi
9676 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9677 if test -n "$NPTH_CONFIG"; then
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9679 $as_echo "$NPTH_CONFIG" >&6; }
9680 else
9681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686   fi
9687
9688   if test "$NPTH_CONFIG" != "no" ; then
9689     if test -z "$use_gpgrt_config"; then
9690       npth_version=`$NPTH_CONFIG --version`
9691     else
9692       npth_version=`$NPTH_CONFIG --modversion`
9693     fi
9694   fi
9695   npth_version_major=`echo $npth_version | \
9696                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9697   npth_version_minor=`echo $npth_version | \
9698                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9699
9700    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9701   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9702      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9703      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9704   else
9705      req_npth_api=1
9706      min_npth_version="$tmp"
9707   fi
9708
9709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9710 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9711   ok=no
9712   if test "$NPTH_CONFIG" != "no" ; then
9713     req_major=`echo $min_npth_version | \
9714                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9715     req_minor=`echo $min_npth_version | \
9716                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9717     if test "$npth_version_major" -gt "$req_major"; then
9718         ok=yes
9719     else
9720         if test "$npth_version_major" -eq "$req_major"; then
9721             if test "$npth_version_minor" -gt "$req_minor"; then
9722                ok=yes
9723             else
9724                if test "$npth_version_minor" -eq "$req_minor"; then
9725                   ok=yes
9726                fi
9727             fi
9728         fi
9729     fi
9730   fi
9731   if test $ok = yes; then
9732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9733 $as_echo "yes ($npth_version)" >&6; }
9734   else
9735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9736 $as_echo "no" >&6; }
9737   fi
9738   if test $ok = yes; then
9739     # If we have a recent NPTH, we should also check that the
9740     # API is compatible.
9741     if test "$req_npth_api" -gt 0 ; then
9742       if test -z "$use_gpgrt_config"; then
9743         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9744       else
9745         tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9746       fi
9747       if test "$tmp" -gt 0 ; then
9748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9749 $as_echo_n "checking NPTH API version... " >&6; }
9750         if test "$req_npth_api" -eq "$tmp" ; then
9751           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9752 $as_echo "okay" >&6; }
9753         else
9754           ok=no
9755           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9756 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9757         fi
9758       fi
9759     fi
9760   fi
9761   if test $ok = yes; then
9762     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9763     NPTH_LIBS=`$NPTH_CONFIG --libs`
9764     have_npth=yes
9765     if test -z "$use_gpgrt_config"; then
9766       npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9767     else
9768       npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9769     fi
9770     if test x"$npth_config_host" != xnone ; then
9771       if test x"$npth_config_host" != x"$host" ; then
9772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9773 ***
9774 *** The config script \"$NPTH_CONFIG\" was
9775 *** built for $npth_config_host and thus may not match the
9776 *** used host $host.
9777 *** You may want to use the configure option --with-npth-prefix
9778 *** to specify a matching config script.
9779 ***" >&5
9780 $as_echo "$as_me: WARNING:
9781 ***
9782 *** The config script \"$NPTH_CONFIG\" was
9783 *** built for $npth_config_host and thus may not match the
9784 *** used host $host.
9785 *** You may want to use the configure option --with-npth-prefix
9786 *** to specify a matching config script.
9787 ***" >&2;}
9788       fi
9789     fi
9790   else
9791     NPTH_CFLAGS=""
9792     NPTH_LIBS=""
9793     have_npth=no
9794   fi
9795
9796
9797
9798 if test "$have_npth" = "yes"; then
9799
9800 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9801
9802
9803 $as_echo "#define USE_NPTH 1" >>confdefs.h
9804
9805 else
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9807 ***
9808 *** To support concurrent access for example in gpg-agent and the SCdaemon
9809 *** we need the support of the New Portable Threads Library.
9810 ***" >&5
9811 $as_echo "$as_me: WARNING:
9812 ***
9813 *** To support concurrent access for example in gpg-agent and the SCdaemon
9814 *** we need the support of the New Portable Threads Library.
9815 ***" >&2;}
9816 fi
9817 #
9818 # Enable debugging of nPth
9819 #
9820 # Check whether --enable-npth-debug was given.
9821 if test "${enable_npth_debug+set}" = set; then :
9822   enableval=$enable_npth_debug; if test $enableval = yes ; then
9823
9824 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9825
9826                   fi
9827 fi
9828
9829
9830
9831
9832 #
9833 # NTBTLS is our TLS library.  If it is not available we fall back to
9834 # GNUTLS.
9835 #
9836 # Check whether --enable-ntbtls was given.
9837 if test "${enable_ntbtls+set}" = set; then :
9838   enableval=$enable_ntbtls; try_ntbtls=$enableval
9839 else
9840   try_ntbtls=yes
9841 fi
9842
9843 if test x"$try_ntbtls" = xyes ; then
9844
9845
9846 # Check whether --with-ntbtls-prefix was given.
9847 if test "${with_ntbtls_prefix+set}" = set; then :
9848   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9849 else
9850   ntbtls_config_prefix=""
9851 fi
9852
9853   if test x"${NTBTLS_CONFIG}" = x ; then
9854      if test x"${ntbtls_config_prefix}" != x ; then
9855         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9856      fi
9857   fi
9858
9859   use_gpgrt_config=""
9860   if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9861     if $GPGRT_CONFIG ntbtls --exists; then
9862       NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9863       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9864 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9865       use_gpgrt_config=yes
9866     fi
9867   fi
9868   if test -z "$use_gpgrt_config"; then
9869     if test x"${NTBTLS_CONFIG}" = x ; then
9870       case "${SYSROOT}" in
9871         /*)
9872           if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9873             NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9874           fi
9875           ;;
9876         '')
9877           ;;
9878          *)
9879           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9880 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9881           ;;
9882       esac
9883     fi
9884     # Extract the first word of "ntbtls-config", so it can be a program name with args.
9885 set dummy ntbtls-config; ac_word=$2
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9887 $as_echo_n "checking for $ac_word... " >&6; }
9888 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9889   $as_echo_n "(cached) " >&6
9890 else
9891   case $NTBTLS_CONFIG in
9892   [\\/]* | ?:[\\/]*)
9893   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9894   ;;
9895   *)
9896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897 for as_dir in $PATH
9898 do
9899   IFS=$as_save_IFS
9900   test -z "$as_dir" && as_dir=.
9901     for ac_exec_ext in '' $ac_executable_extensions; do
9902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9903     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905     break 2
9906   fi
9907 done
9908   done
9909 IFS=$as_save_IFS
9910
9911   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9912   ;;
9913 esac
9914 fi
9915 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9916 if test -n "$NTBTLS_CONFIG"; then
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9918 $as_echo "$NTBTLS_CONFIG" >&6; }
9919 else
9920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9922 fi
9923
9924
9925   fi
9926
9927   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9928   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9929      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9930      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9931   else
9932      req_ntbtls_api=0
9933      min_ntbtls_version="$tmp"
9934   fi
9935
9936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9937 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9938   ok=no
9939   if test "$NTBTLS_CONFIG" != "no" ; then
9940     req_major=`echo $min_ntbtls_version | \
9941                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9942     req_minor=`echo $min_ntbtls_version | \
9943                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9944     req_micro=`echo $min_ntbtls_version | \
9945                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9946     if test -z "$use_gpgrt_config"; then
9947       ntbtls_config_version=`$NTBTLS_CONFIG --version`
9948     else
9949       ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9950     fi
9951     major=`echo $ntbtls_config_version | \
9952                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9953     minor=`echo $ntbtls_config_version | \
9954                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9955     micro=`echo $ntbtls_config_version | \
9956                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9957     if test "$major" -gt "$req_major"; then
9958         ok=yes
9959     else
9960         if test "$major" -eq "$req_major"; then
9961             if test "$minor" -gt "$req_minor"; then
9962                ok=yes
9963             else
9964                if test "$minor" -eq "$req_minor"; then
9965                    if test "$micro" -ge "$req_micro"; then
9966                      ok=yes
9967                    fi
9968                fi
9969             fi
9970         fi
9971     fi
9972   fi
9973   if test $ok = yes; then
9974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9975 $as_echo "yes ($ntbtls_config_version)" >&6; }
9976   else
9977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9979   fi
9980   if test $ok = yes; then
9981      # If we have a recent ntbtls, we should also check that the
9982      # API is compatible
9983      if test "$req_ntbtls_api" -gt 0 ; then
9984         if test -z "$use_gpgrt_config"; then
9985           tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9986         else
9987           tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9988         fi
9989         if test "$tmp" -gt 0 ; then
9990            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9991 $as_echo_n "checking NTBTLS API version... " >&6; }
9992            if test "$req_ntbtls_api" -eq "$tmp" ; then
9993              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9994 $as_echo "okay" >&6; }
9995            else
9996              ok=no
9997              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9998 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9999            fi
10000         fi
10001      fi
10002   fi
10003   if test $ok = yes; then
10004     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10005     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10006     have_ntbtls=yes
10007     if test -z "$use_gpgrt_config"; then
10008       ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10009     else
10010       ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10011     fi
10012     if test x"$ntbtls_config_host" != xnone ; then
10013       if test x"$ntbtls_config_host" != x"$host" ; then
10014   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10015 ***
10016 *** The config script \"$NTBTLS_CONFIG\" was
10017 *** built for $ntbtls_config_host and thus may not match the
10018 *** used host $host.
10019 *** You may want to use the configure option --with-ntbtls-prefix
10020 *** to specify a matching config script or use \$SYSROOT.
10021 ***" >&5
10022 $as_echo "$as_me: WARNING:
10023 ***
10024 *** The config script \"$NTBTLS_CONFIG\" was
10025 *** built for $ntbtls_config_host and thus may not match the
10026 *** used host $host.
10027 *** You may want to use the configure option --with-ntbtls-prefix
10028 *** to specify a matching config script or use \$SYSROOT.
10029 ***" >&2;}
10030         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10031       fi
10032     fi
10033   else
10034     NTBTLS_CFLAGS=""
10035     NTBTLS_LIBS=""
10036     have_ntbtls=no
10037   fi
10038
10039
10040
10041 fi
10042 if test "$have_ntbtls" = yes ; then
10043    use_tls_library=ntbtls
10044
10045 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10046
10047 else
10048   # Check whether --enable-gnutls was given.
10049 if test "${enable_gnutls+set}" = set; then :
10050   enableval=$enable_gnutls; try_gnutls=$enableval
10051 else
10052   try_gnutls=yes
10053 fi
10054
10055   if test x"$try_gnutls" = xyes ; then
10056
10057 pkg_failed=no
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10059 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10060
10061 if test -n "$LIBGNUTLS_CFLAGS"; then
10062     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10063  elif test -n "$PKG_CONFIG"; then
10064     if test -n "$PKG_CONFIG" && \
10065     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10066   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10067   ac_status=$?
10068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10069   test $ac_status = 0; }; then
10070   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10071                       test "x$?" != "x0" && pkg_failed=yes
10072 else
10073   pkg_failed=yes
10074 fi
10075  else
10076     pkg_failed=untried
10077 fi
10078 if test -n "$LIBGNUTLS_LIBS"; then
10079     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10080  elif test -n "$PKG_CONFIG"; then
10081     if test -n "$PKG_CONFIG" && \
10082     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10083   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10084   ac_status=$?
10085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10086   test $ac_status = 0; }; then
10087   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10088                       test "x$?" != "x0" && pkg_failed=yes
10089 else
10090   pkg_failed=yes
10091 fi
10092  else
10093     pkg_failed=untried
10094 fi
10095
10096
10097
10098 if test $pkg_failed = yes; then
10099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 $as_echo "no" >&6; }
10101
10102 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10103         _pkg_short_errors_supported=yes
10104 else
10105         _pkg_short_errors_supported=no
10106 fi
10107         if test $_pkg_short_errors_supported = yes; then
10108                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10109         else
10110                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10111         fi
10112         # Put the nasty error message in config.log where it belongs
10113         echo "$LIBGNUTLS_PKG_ERRORS" >&5
10114
10115         have_gnutls=no
10116 elif test $pkg_failed = untried; then
10117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10119         have_gnutls=no
10120 else
10121         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10122         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124 $as_echo "yes" >&6; }
10125         have_gnutls=yes
10126 fi
10127   fi
10128   if test "$have_gnutls" = "yes"; then
10129
10130
10131     use_tls_library=gnutls
10132
10133 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10134
10135   else
10136     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10137     build_dirmngr=no
10138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10139 ***
10140 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10141 ***
10142 *** $tmp" >&5
10143 $as_echo "$as_me: WARNING:
10144 ***
10145 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10146 ***
10147 *** $tmp" >&2;}
10148   fi
10149 fi
10150
10151 #
10152 # Allow to set a fixed trust store file for system provided certificates.
10153 #
10154
10155 # Check whether --with-default-trust-store-file was given.
10156 if test "${with_default_trust_store_file+set}" = set; then :
10157   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10158 else
10159   default_trust_store_file=""
10160 fi
10161
10162 if test x"$default_trust_store_file" = xno;then
10163   default_trust_store_file=""
10164 fi
10165 if test x"$default_trust_store_file" != x ; then
10166
10167 cat >>confdefs.h <<_ACEOF
10168 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10169 _ACEOF
10170
10171 fi
10172
10173
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10175 $as_echo "$as_me: checking for networking options" >&6;}
10176
10177 #
10178 # Must check for network library requirements before doing link tests
10179 # for ldap, for example. If ldap libs are static (or dynamic and without
10180 # ELF runtime link paths), then link will fail and LDAP support won't
10181 # be detected.
10182 #
10183 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10184 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10185
10186 else
10187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10188 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10189 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10190   $as_echo_n "(cached) " >&6
10191 else
10192   ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lnsl  $LIBS"
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h.  */
10196
10197 /* Override any GCC internal prototype to avoid an error.
10198    Use char because int might match the return type of a GCC
10199    builtin and then its argument prototype would still apply.  */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char gethostbyname ();
10204 int
10205 main ()
10206 {
10207 return gethostbyname ();
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_c_try_link "$LINENO"; then :
10213   ac_cv_lib_nsl_gethostbyname=yes
10214 else
10215   ac_cv_lib_nsl_gethostbyname=no
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_lib_save_LIBS
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10222 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10223 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10224   NETLIBS="-lnsl $NETLIBS"
10225 fi
10226
10227 fi
10228
10229 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10230 if test "x$ac_cv_func_setsockopt" = xyes; then :
10231
10232 else
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10234 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10235 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10236   $as_echo_n "(cached) " >&6
10237 else
10238   ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-lsocket  $LIBS"
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h.  */
10242
10243 /* Override any GCC internal prototype to avoid an error.
10244    Use char because int might match the return type of a GCC
10245    builtin and then its argument prototype would still apply.  */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char setsockopt ();
10250 int
10251 main ()
10252 {
10253 return setsockopt ();
10254   ;
10255   return 0;
10256 }
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"; then :
10259   ac_cv_lib_socket_setsockopt=yes
10260 else
10261   ac_cv_lib_socket_setsockopt=no
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264     conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10268 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10269 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10270   NETLIBS="-lsocket $NETLIBS"
10271 fi
10272
10273 fi
10274
10275
10276
10277 #
10278 # Check standard resolver functions.
10279 #
10280 if test "$build_dirmngr" = "yes"; then
10281   _dns_save_libs=$LIBS
10282   LIBS=""
10283
10284   # Find the system resolver which can always be enabled with
10285   # the dirmngr option --standard-resolver.
10286
10287   # the double underscore thing is a glibc-ism?
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10289 $as_echo_n "checking for library containing res_query... " >&6; }
10290 if ${ac_cv_search_res_query+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   ac_func_search_save_LIBS=$LIBS
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h.  */
10296
10297 /* Override any GCC internal prototype to avoid an error.
10298    Use char because int might match the return type of a GCC
10299    builtin and then its argument prototype would still apply.  */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char res_query ();
10304 int
10305 main ()
10306 {
10307 return res_query ();
10308   ;
10309   return 0;
10310 }
10311 _ACEOF
10312 for ac_lib in '' resolv bind; do
10313   if test -z "$ac_lib"; then
10314     ac_res="none required"
10315   else
10316     ac_res=-l$ac_lib
10317     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10318   fi
10319   if ac_fn_c_try_link "$LINENO"; then :
10320   ac_cv_search_res_query=$ac_res
10321 fi
10322 rm -f core conftest.err conftest.$ac_objext \
10323     conftest$ac_exeext
10324   if ${ac_cv_search_res_query+:} false; then :
10325   break
10326 fi
10327 done
10328 if ${ac_cv_search_res_query+:} false; then :
10329
10330 else
10331   ac_cv_search_res_query=no
10332 fi
10333 rm conftest.$ac_ext
10334 LIBS=$ac_func_search_save_LIBS
10335 fi
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10337 $as_echo "$ac_cv_search_res_query" >&6; }
10338 ac_res=$ac_cv_search_res_query
10339 if test "$ac_res" != no; then :
10340   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10341
10342 else
10343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10344 $as_echo_n "checking for library containing __res_query... " >&6; }
10345 if ${ac_cv_search___res_query+:} false; then :
10346   $as_echo_n "(cached) " >&6
10347 else
10348   ac_func_search_save_LIBS=$LIBS
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h.  */
10351
10352 /* Override any GCC internal prototype to avoid an error.
10353    Use char because int might match the return type of a GCC
10354    builtin and then its argument prototype would still apply.  */
10355 #ifdef __cplusplus
10356 extern "C"
10357 #endif
10358 char __res_query ();
10359 int
10360 main ()
10361 {
10362 return __res_query ();
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 for ac_lib in '' resolv bind; do
10368   if test -z "$ac_lib"; then
10369     ac_res="none required"
10370   else
10371     ac_res=-l$ac_lib
10372     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10373   fi
10374   if ac_fn_c_try_link "$LINENO"; then :
10375   ac_cv_search___res_query=$ac_res
10376 fi
10377 rm -f core conftest.err conftest.$ac_objext \
10378     conftest$ac_exeext
10379   if ${ac_cv_search___res_query+:} false; then :
10380   break
10381 fi
10382 done
10383 if ${ac_cv_search___res_query+:} false; then :
10384
10385 else
10386   ac_cv_search___res_query=no
10387 fi
10388 rm conftest.$ac_ext
10389 LIBS=$ac_func_search_save_LIBS
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10392 $as_echo "$ac_cv_search___res_query" >&6; }
10393 ac_res=$ac_cv_search___res_query
10394 if test "$ac_res" != no; then :
10395   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10396
10397 else
10398   have_resolver=no
10399 fi
10400
10401 fi
10402
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10404 $as_echo_n "checking for library containing dn_expand... " >&6; }
10405 if ${ac_cv_search_dn_expand+:} false; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408   ac_func_search_save_LIBS=$LIBS
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411
10412 /* Override any GCC internal prototype to avoid an error.
10413    Use char because int might match the return type of a GCC
10414    builtin and then its argument prototype would still apply.  */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char dn_expand ();
10419 int
10420 main ()
10421 {
10422 return dn_expand ();
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 for ac_lib in '' resolv bind; do
10428   if test -z "$ac_lib"; then
10429     ac_res="none required"
10430   else
10431     ac_res=-l$ac_lib
10432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10433   fi
10434   if ac_fn_c_try_link "$LINENO"; then :
10435   ac_cv_search_dn_expand=$ac_res
10436 fi
10437 rm -f core conftest.err conftest.$ac_objext \
10438     conftest$ac_exeext
10439   if ${ac_cv_search_dn_expand+:} false; then :
10440   break
10441 fi
10442 done
10443 if ${ac_cv_search_dn_expand+:} false; then :
10444
10445 else
10446   ac_cv_search_dn_expand=no
10447 fi
10448 rm conftest.$ac_ext
10449 LIBS=$ac_func_search_save_LIBS
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10452 $as_echo "$ac_cv_search_dn_expand" >&6; }
10453 ac_res=$ac_cv_search_dn_expand
10454 if test "$ac_res" != no; then :
10455   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10456
10457 else
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10459 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10460 if ${ac_cv_search___dn_expand+:} false; then :
10461   $as_echo_n "(cached) " >&6
10462 else
10463   ac_func_search_save_LIBS=$LIBS
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h.  */
10466
10467 /* Override any GCC internal prototype to avoid an error.
10468    Use char because int might match the return type of a GCC
10469    builtin and then its argument prototype would still apply.  */
10470 #ifdef __cplusplus
10471 extern "C"
10472 #endif
10473 char __dn_expand ();
10474 int
10475 main ()
10476 {
10477 return __dn_expand ();
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 for ac_lib in '' resolv bind; do
10483   if test -z "$ac_lib"; then
10484     ac_res="none required"
10485   else
10486     ac_res=-l$ac_lib
10487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10488   fi
10489   if ac_fn_c_try_link "$LINENO"; then :
10490   ac_cv_search___dn_expand=$ac_res
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext \
10493     conftest$ac_exeext
10494   if ${ac_cv_search___dn_expand+:} false; then :
10495   break
10496 fi
10497 done
10498 if ${ac_cv_search___dn_expand+:} false; then :
10499
10500 else
10501   ac_cv_search___dn_expand=no
10502 fi
10503 rm conftest.$ac_ext
10504 LIBS=$ac_func_search_save_LIBS
10505 fi
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10507 $as_echo "$ac_cv_search___dn_expand" >&6; }
10508 ac_res=$ac_cv_search___dn_expand
10509 if test "$ac_res" != no; then :
10510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10511
10512 else
10513   have_resolver=no
10514 fi
10515
10516 fi
10517
10518
10519   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10520   # and for some reason fools us into believing we don't need
10521   # -lresolv even if we do.  Since the test program checking for the
10522   # symbol does not include <resolv.h>, we need to check for the
10523   # renamed symbol explicitly.
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10525 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10526 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10527   $as_echo_n "(cached) " >&6
10528 else
10529   ac_func_search_save_LIBS=$LIBS
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h.  */
10532
10533 /* Override any GCC internal prototype to avoid an error.
10534    Use char because int might match the return type of a GCC
10535    builtin and then its argument prototype would still apply.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char res_9_dn_skipname ();
10540 int
10541 main ()
10542 {
10543 return res_9_dn_skipname ();
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 for ac_lib in '' resolv bind; do
10549   if test -z "$ac_lib"; then
10550     ac_res="none required"
10551   else
10552     ac_res=-l$ac_lib
10553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10554   fi
10555   if ac_fn_c_try_link "$LINENO"; then :
10556   ac_cv_search_res_9_dn_skipname=$ac_res
10557 fi
10558 rm -f core conftest.err conftest.$ac_objext \
10559     conftest$ac_exeext
10560   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10561   break
10562 fi
10563 done
10564 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10565
10566 else
10567   ac_cv_search_res_9_dn_skipname=no
10568 fi
10569 rm conftest.$ac_ext
10570 LIBS=$ac_func_search_save_LIBS
10571 fi
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10573 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10574 ac_res=$ac_cv_search_res_9_dn_skipname
10575 if test "$ac_res" != no; then :
10576   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10577
10578 else
10579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10580 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10581 if ${ac_cv_search_dn_skipname+:} false; then :
10582   $as_echo_n "(cached) " >&6
10583 else
10584   ac_func_search_save_LIBS=$LIBS
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h.  */
10587
10588 /* Override any GCC internal prototype to avoid an error.
10589    Use char because int might match the return type of a GCC
10590    builtin and then its argument prototype would still apply.  */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char dn_skipname ();
10595 int
10596 main ()
10597 {
10598 return dn_skipname ();
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 for ac_lib in '' resolv bind; do
10604   if test -z "$ac_lib"; then
10605     ac_res="none required"
10606   else
10607     ac_res=-l$ac_lib
10608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10609   fi
10610   if ac_fn_c_try_link "$LINENO"; then :
10611   ac_cv_search_dn_skipname=$ac_res
10612 fi
10613 rm -f core conftest.err conftest.$ac_objext \
10614     conftest$ac_exeext
10615   if ${ac_cv_search_dn_skipname+:} false; then :
10616   break
10617 fi
10618 done
10619 if ${ac_cv_search_dn_skipname+:} false; then :
10620
10621 else
10622   ac_cv_search_dn_skipname=no
10623 fi
10624 rm conftest.$ac_ext
10625 LIBS=$ac_func_search_save_LIBS
10626 fi
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10628 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10629 ac_res=$ac_cv_search_dn_skipname
10630 if test "$ac_res" != no; then :
10631   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10632
10633 else
10634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10635 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10636 if ${ac_cv_search___dn_skipname+:} false; then :
10637   $as_echo_n "(cached) " >&6
10638 else
10639   ac_func_search_save_LIBS=$LIBS
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h.  */
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644    Use char because int might match the return type of a GCC
10645    builtin and then its argument prototype would still apply.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char __dn_skipname ();
10650 int
10651 main ()
10652 {
10653 return __dn_skipname ();
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 for ac_lib in '' resolv bind; do
10659   if test -z "$ac_lib"; then
10660     ac_res="none required"
10661   else
10662     ac_res=-l$ac_lib
10663     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10664   fi
10665   if ac_fn_c_try_link "$LINENO"; then :
10666   ac_cv_search___dn_skipname=$ac_res
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext \
10669     conftest$ac_exeext
10670   if ${ac_cv_search___dn_skipname+:} false; then :
10671   break
10672 fi
10673 done
10674 if ${ac_cv_search___dn_skipname+:} false; then :
10675
10676 else
10677   ac_cv_search___dn_skipname=no
10678 fi
10679 rm conftest.$ac_ext
10680 LIBS=$ac_func_search_save_LIBS
10681 fi
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10683 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10684 ac_res=$ac_cv_search___dn_skipname
10685 if test "$ac_res" != no; then :
10686   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10687
10688 else
10689   have_resolver=no
10690 fi
10691
10692 fi
10693
10694 fi
10695
10696
10697   if test x"$have_resolver" != xno ; then
10698
10699       # Make sure that the BIND 4 resolver interface is workable before
10700       # enabling any code that calls it.  At some point I'll rewrite the
10701       # code to use the BIND 8 resolver API.
10702       # We might also want to use libdns instead.
10703
10704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10705 $as_echo_n "checking whether the resolver is usable... " >&6; }
10706     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708 #include <sys/types.h>
10709 #include <netinet/in.h>
10710 #include <arpa/nameser.h>
10711 #include <resolv.h>
10712 int
10713 main ()
10714 {
10715 unsigned char answer[PACKETSZ];
10716   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10717   dn_skipname(0,0);
10718   dn_expand(0,0,0,0,0);
10719
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725   have_resolver=yes
10726 else
10727   have_resolver=no
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext \
10730     conftest$ac_exeext conftest.$ac_ext
10731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10732 $as_echo "$have_resolver" >&6; }
10733
10734     # This is Apple-specific and somewhat bizarre as they changed the
10735     # define in bind 8 for some reason.
10736
10737     if test x"$have_resolver" != xyes ; then
10738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10739 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h.  */
10742 #define BIND_8_COMPAT
10743 #include <sys/types.h>
10744 #include <netinet/in.h>
10745 #include <arpa/nameser.h>
10746 #include <resolv.h>
10747 int
10748 main ()
10749 {
10750 unsigned char answer[PACKETSZ];
10751   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10752   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10753
10754   ;
10755   return 0;
10756 }
10757 _ACEOF
10758 if ac_fn_c_try_link "$LINENO"; then :
10759   have_resolver=yes ; need_compat=yes
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext \
10762     conftest$ac_exeext conftest.$ac_ext
10763       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10764 $as_echo "$have_resolver" >&6; }
10765     fi
10766   fi
10767
10768   if test x"$have_resolver" = xyes ; then
10769
10770 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10771
10772     DNSLIBS="$DNSLIBS $LIBS"
10773     if test x"$need_compat" = xyes ; then
10774
10775 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10776
10777     fi
10778     if test "$use_libdns" = yes; then
10779      show_tor_support=yes
10780     fi
10781   elif test "$use_libdns" = yes; then
10782     show_tor_support=yes
10783   else
10784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10785 ***
10786 *** The system's DNS resolver is not usable.
10787 *** Dirmngr functionality is limited.
10788 ***" >&5
10789 $as_echo "$as_me: WARNING:
10790 ***
10791 *** The system's DNS resolver is not usable.
10792 *** Dirmngr functionality is limited.
10793 ***" >&2;}
10794     show_tor_support="${show_tor_support} (no system resolver)"
10795   fi
10796
10797   if test "$have_w32_system" = yes; then
10798     if test "$use_libdns" = yes; then
10799       DNSLIBS="$DNSLIBS -liphlpapi"
10800     fi
10801   fi
10802
10803   LIBS=$_dns_save_libs
10804 fi
10805
10806
10807
10808
10809 #
10810 # Check for LDAP
10811 #
10812 # Note that running the check changes the variable
10813 # gnupg_have_ldap from "n/a" to "no" or "yes".
10814
10815 # Check whether --enable-ldap was given.
10816 if test "${enable_ldap+set}" = set; then :
10817   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10818 fi
10819
10820
10821 if test "$gnupg_have_ldap" != "no" ; then
10822   if test "$build_dirmngr" = "yes" ; then
10823
10824 # Try and link a LDAP test program to weed out unusable LDAP
10825 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10826 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10827 # If all else fails, the user can play guess-the-dependency by using
10828 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10829 gnupg_have_ldap=no
10830
10831 # Check whether --with-ldap was given.
10832 if test "${with_ldap+set}" = set; then :
10833   withval=$with_ldap; _ldap_with=$withval
10834 fi
10835
10836
10837 if test x$_ldap_with != xno ; then
10838
10839   if test -d "$withval" ; then
10840      LDAP_CPPFLAGS="-I$withval/include"
10841      LDAP_LDFLAGS="-L$withval/lib"
10842   fi
10843
10844   _ldap_save_cppflags=$CPPFLAGS
10845   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10846   _ldap_save_ldflags=$LDFLAGS
10847   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10848
10849   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10850     _ldap_save_libs=$LIBS
10851     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10852
10853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10854 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10855     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h.  */
10857
10858 #ifdef _WIN32
10859 #include <winsock2.h>
10860 #include <winldap.h>
10861 #else
10862 #include <ldap.h>
10863 #endif
10864
10865 int
10866 main ()
10867 {
10868 ldap_open("foobar",1234);
10869   ;
10870   return 0;
10871 }
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874   gnupg_cv_func_ldap_init=yes
10875 else
10876   gnupg_cv_func_ldap_init=no
10877 fi
10878 rm -f core conftest.err conftest.$ac_objext \
10879     conftest$ac_exeext conftest.$ac_ext
10880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10881 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10882
10883     if test $gnupg_cv_func_ldap_init = no; then
10884       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10885 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10886       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h.  */
10888 #include <lber.h>
10889 #include <ldap.h>
10890 int
10891 main ()
10892 {
10893 ldap_open("foobar",1234);
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899   gnupg_cv_func_ldaplber_init=yes
10900 else
10901   gnupg_cv_func_ldaplber_init=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904     conftest$ac_exeext conftest.$ac_ext
10905       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10906 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10907     fi
10908
10909     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10910
10911 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10912
10913     fi
10914
10915     if test "$gnupg_cv_func_ldap_init" = yes || \
10916         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10917        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10918        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10919        gnupg_have_ldap=yes
10920
10921        for ac_func in ldap_get_option ldap_set_option
10922 do :
10923   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10926   cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 _ACEOF
10929
10930 fi
10931 done
10932
10933        # The extra test for ldap_start_tls_sA is for W32 because
10934        # that is the actual function in the library.
10935        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10936 do :
10937   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10940   cat >>confdefs.h <<_ACEOF
10941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10942 _ACEOF
10943
10944 fi
10945 done
10946
10947
10948        if test "$ac_cv_func_ldap_get_option" != yes ; then
10949           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10950 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10951           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h.  */
10953 #include <ldap.h>
10954 int
10955 main ()
10956 {
10957 LDAP *ldap; ldap->ld_errno;
10958   ;
10959   return 0;
10960 }
10961 _ACEOF
10962 if ac_fn_c_try_link "$LINENO"; then :
10963   gnupg_cv_func_ldap_ld_errno=yes
10964 else
10965   gnupg_cv_func_ldap_ld_errno=no
10966 fi
10967 rm -f core conftest.err conftest.$ac_objext \
10968     conftest$ac_exeext conftest.$ac_ext
10969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10970 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10971
10972           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10973
10974 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10975
10976           fi
10977        fi
10978     fi
10979
10980     LIBS=$_ldap_save_libs
10981
10982     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10983   done
10984
10985
10986
10987
10988
10989   CPPFLAGS=$_ldap_save_cppflags
10990   LDFLAGS=$_ldap_save_ldflags
10991 fi
10992
10993      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10994 $as_echo_n "checking for ber_free in -llber... " >&6; }
10995 if ${ac_cv_lib_lber_ber_free+:} false; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-llber  $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h.  */
11002
11003 /* Override any GCC internal prototype to avoid an error.
11004    Use char because int might match the return type of a GCC
11005    builtin and then its argument prototype would still apply.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 #endif
11009 char ber_free ();
11010 int
11011 main ()
11012 {
11013 return ber_free ();
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 if ac_fn_c_try_link "$LINENO"; then :
11019   ac_cv_lib_lber_ber_free=yes
11020 else
11021   ac_cv_lib_lber_ber_free=no
11022 fi
11023 rm -f core conftest.err conftest.$ac_objext \
11024     conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11026 fi
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11028 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11029 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11030    LBER_LIBS="$LBER_LIBS -llber"
11031
11032 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11033
11034                     have_lber=yes
11035
11036 fi
11037
11038   fi
11039 fi
11040
11041 if test "$gnupg_have_ldap" = "no"; then
11042     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11043 ***
11044 *** Building without LDAP support.
11045 *** No CRL access or X.509 certificate search available.
11046 ***" >&5
11047 $as_echo "$as_me: WARNING:
11048 ***
11049 *** Building without LDAP support.
11050 *** No CRL access or X.509 certificate search available.
11051 ***" >&2;}
11052 fi
11053
11054  if test "$gnupg_have_ldap" = yes; then
11055   USE_LDAP_TRUE=
11056   USE_LDAP_FALSE='#'
11057 else
11058   USE_LDAP_TRUE='#'
11059   USE_LDAP_FALSE=
11060 fi
11061
11062 if test "$gnupg_have_ldap" = yes ; then
11063
11064 $as_echo "#define USE_LDAP 1" >>confdefs.h
11065
11066 fi
11067
11068
11069
11070 #
11071 # Check for sendmail
11072 #
11073 # This isn't necessarily sendmail itself, but anything that gives a
11074 # sendmail-ish interface to the outside world.  That includes Exim,
11075 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
11076
11077 # Check whether --with-mailprog was given.
11078 if test "${with_mailprog+set}" = set; then :
11079   withval=$with_mailprog;
11080 else
11081   with_mailprog=yes
11082 fi
11083
11084 if test x"$with_mailprog" = xyes ; then
11085     # Extract the first word of "sendmail", so it can be a program name with args.
11086 set dummy sendmail; ac_word=$2
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088 $as_echo_n "checking for $ac_word... " >&6; }
11089 if ${ac_cv_path_SENDMAIL+:} false; then :
11090   $as_echo_n "(cached) " >&6
11091 else
11092   case $SENDMAIL in
11093   [\\/]* | ?:[\\/]*)
11094   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11095   ;;
11096   *)
11097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11099 for as_dir in $as_dummy
11100 do
11101   IFS=$as_save_IFS
11102   test -z "$as_dir" && as_dir=.
11103     for ac_exec_ext in '' $ac_executable_extensions; do
11104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11105     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11107     break 2
11108   fi
11109 done
11110   done
11111 IFS=$as_save_IFS
11112
11113   ;;
11114 esac
11115 fi
11116 SENDMAIL=$ac_cv_path_SENDMAIL
11117 if test -n "$SENDMAIL"; then
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11119 $as_echo "$SENDMAIL" >&6; }
11120 else
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11123 fi
11124
11125
11126 elif test x"$with_mailprog" != xno ; then
11127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11128 $as_echo_n "checking for a mail transport program... " >&6; }
11129     SENDMAIL=$with_mailprog
11130
11131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11132 $as_echo "$with_mailprog" >&6; }
11133 fi
11134
11135 cat >>confdefs.h <<_ACEOF
11136 #define NAME_OF_SENDMAIL "$SENDMAIL"
11137 _ACEOF
11138
11139
11140
11141 #
11142 # Construct a printable name of the OS
11143 #
11144 case "${host}" in
11145     *-mingw32ce*)
11146         PRINTABLE_OS_NAME="W32CE"
11147         ;;
11148     *-mingw32*)
11149         PRINTABLE_OS_NAME="MingW32"
11150         ;;
11151     *-*-cygwin*)
11152         PRINTABLE_OS_NAME="Cygwin"
11153         ;;
11154     i?86-emx-os2 | i?86-*-os2*emx )
11155         PRINTABLE_OS_NAME="OS/2"
11156         ;;
11157     i?86-*-msdosdjgpp*)
11158         PRINTABLE_OS_NAME="MSDOS/DJGPP"
11159         try_dynload=no
11160         ;;
11161     *-linux*)
11162         PRINTABLE_OS_NAME="GNU/Linux"
11163         ;;
11164     *)
11165         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11166         ;;
11167 esac
11168
11169 cat >>confdefs.h <<_ACEOF
11170 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11171 _ACEOF
11172
11173
11174
11175 #
11176 # Checking for iconv
11177 #
11178 if test "$require_iconv" = yes; then
11179
11180       if test "X$prefix" = "XNONE"; then
11181     acl_final_prefix="$ac_default_prefix"
11182   else
11183     acl_final_prefix="$prefix"
11184   fi
11185   if test "X$exec_prefix" = "XNONE"; then
11186     acl_final_exec_prefix='${prefix}'
11187   else
11188     acl_final_exec_prefix="$exec_prefix"
11189   fi
11190   acl_save_prefix="$prefix"
11191   prefix="$acl_final_prefix"
11192   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11193   prefix="$acl_save_prefix"
11194
11195
11196 # Check whether --with-gnu-ld was given.
11197 if test "${with_gnu_ld+set}" = set; then :
11198   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11199 else
11200   with_gnu_ld=no
11201 fi
11202
11203 # Prepare PATH_SEPARATOR.
11204 # The user is always right.
11205 if test "${PATH_SEPARATOR+set}" != set; then
11206   echo "#! /bin/sh" >conf$$.sh
11207   echo  "exit 0"   >>conf$$.sh
11208   chmod +x conf$$.sh
11209   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11210     PATH_SEPARATOR=';'
11211   else
11212     PATH_SEPARATOR=:
11213   fi
11214   rm -f conf$$.sh
11215 fi
11216 ac_prog=ld
11217 if test "$GCC" = yes; then
11218   # Check if gcc -print-prog-name=ld gives a path.
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11220 $as_echo_n "checking for ld used by GCC... " >&6; }
11221   case $host in
11222   *-*-mingw*)
11223     # gcc leaves a trailing carriage return which upsets mingw
11224     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11225   *)
11226     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11227   esac
11228   case $ac_prog in
11229     # Accept absolute paths.
11230     [\\/]* | [A-Za-z]:[\\/]*)
11231       re_direlt='/[^/][^/]*/\.\./'
11232       # Canonicalize the path of ld
11233       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11234       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11235         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11236       done
11237       test -z "$LD" && LD="$ac_prog"
11238       ;;
11239   "")
11240     # If it fails, then pretend we aren't using GCC.
11241     ac_prog=ld
11242     ;;
11243   *)
11244     # If it is relative, then search for the first ld in PATH.
11245     with_gnu_ld=unknown
11246     ;;
11247   esac
11248 elif test "$with_gnu_ld" = yes; then
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11250 $as_echo_n "checking for GNU ld... " >&6; }
11251 else
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11253 $as_echo_n "checking for non-GNU ld... " >&6; }
11254 fi
11255 if ${acl_cv_path_LD+:} false; then :
11256   $as_echo_n "(cached) " >&6
11257 else
11258   if test -z "$LD"; then
11259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11260   for ac_dir in $PATH; do
11261     test -z "$ac_dir" && ac_dir=.
11262     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11263       acl_cv_path_LD="$ac_dir/$ac_prog"
11264       # Check to see if the program is GNU ld.  I'd rather use --version,
11265       # but apparently some GNU ld's only accept -v.
11266       # Break only if it was the GNU/non-GNU ld that we prefer.
11267       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11268       *GNU* | *'with BFD'*)
11269         test "$with_gnu_ld" != no && break ;;
11270       *)
11271         test "$with_gnu_ld" != yes && break ;;
11272       esac
11273     fi
11274   done
11275   IFS="$ac_save_ifs"
11276 else
11277   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11278 fi
11279 fi
11280
11281 LD="$acl_cv_path_LD"
11282 if test -n "$LD"; then
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11284 $as_echo "$LD" >&6; }
11285 else
11286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11288 fi
11289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11292 if ${acl_cv_prog_gnu_ld+:} false; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11296 case `$LD -v 2>&1 </dev/null` in
11297 *GNU* | *'with BFD'*)
11298   acl_cv_prog_gnu_ld=yes ;;
11299 *)
11300   acl_cv_prog_gnu_ld=no ;;
11301 esac
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11304 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11305 with_gnu_ld=$acl_cv_prog_gnu_ld
11306
11307
11308
11309
11310                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11311 $as_echo_n "checking for shared library run path origin... " >&6; }
11312 if ${acl_cv_rpath+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315
11316     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11317     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11318     . ./conftest.sh
11319     rm -f ./conftest.sh
11320     acl_cv_rpath=done
11321
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11324 $as_echo "$acl_cv_rpath" >&6; }
11325   wl="$acl_cv_wl"
11326   acl_libext="$acl_cv_libext"
11327   acl_shlibext="$acl_cv_shlibext"
11328   acl_libname_spec="$acl_cv_libname_spec"
11329   acl_library_names_spec="$acl_cv_library_names_spec"
11330   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11331   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11332   acl_hardcode_direct="$acl_cv_hardcode_direct"
11333   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11334     # Check whether --enable-rpath was given.
11335 if test "${enable_rpath+set}" = set; then :
11336   enableval=$enable_rpath; :
11337 else
11338   enable_rpath=yes
11339 fi
11340
11341
11342
11343                   acl_libdirstem=lib
11344   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11345   if test -n "$searchpath"; then
11346     acl_save_IFS="${IFS=        }"; IFS=":"
11347     for searchdir in $searchpath; do
11348       if test -d "$searchdir"; then
11349         case "$searchdir" in
11350           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11351           *) searchdir=`cd "$searchdir" && pwd`
11352              case "$searchdir" in
11353                */lib64 ) acl_libdirstem=lib64 ;;
11354              esac ;;
11355         esac
11356       fi
11357     done
11358     IFS="$acl_save_IFS"
11359   fi
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369     use_additional=yes
11370
11371   acl_save_prefix="$prefix"
11372   prefix="$acl_final_prefix"
11373   acl_save_exec_prefix="$exec_prefix"
11374   exec_prefix="$acl_final_exec_prefix"
11375
11376     eval additional_includedir=\"$includedir\"
11377     eval additional_libdir=\"$libdir\"
11378
11379   exec_prefix="$acl_save_exec_prefix"
11380   prefix="$acl_save_prefix"
11381
11382
11383 # Check whether --with-libiconv-prefix was given.
11384 if test "${with_libiconv_prefix+set}" = set; then :
11385   withval=$with_libiconv_prefix;
11386     if test "X$withval" = "Xno"; then
11387       use_additional=no
11388     else
11389       if test "X$withval" = "X"; then
11390
11391   acl_save_prefix="$prefix"
11392   prefix="$acl_final_prefix"
11393   acl_save_exec_prefix="$exec_prefix"
11394   exec_prefix="$acl_final_exec_prefix"
11395
11396           eval additional_includedir=\"$includedir\"
11397           eval additional_libdir=\"$libdir\"
11398
11399   exec_prefix="$acl_save_exec_prefix"
11400   prefix="$acl_save_prefix"
11401
11402       else
11403         additional_includedir="$withval/include"
11404         additional_libdir="$withval/$acl_libdirstem"
11405       fi
11406     fi
11407
11408 fi
11409
11410       LIBICONV=
11411   LTLIBICONV=
11412   INCICONV=
11413   LIBICONV_PREFIX=
11414   rpathdirs=
11415   ltrpathdirs=
11416   names_already_handled=
11417   names_next_round='iconv '
11418   while test -n "$names_next_round"; do
11419     names_this_round="$names_next_round"
11420     names_next_round=
11421     for name in $names_this_round; do
11422       already_handled=
11423       for n in $names_already_handled; do
11424         if test "$n" = "$name"; then
11425           already_handled=yes
11426           break
11427         fi
11428       done
11429       if test -z "$already_handled"; then
11430         names_already_handled="$names_already_handled $name"
11431                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11432         eval value=\"\$HAVE_LIB$uppername\"
11433         if test -n "$value"; then
11434           if test "$value" = yes; then
11435             eval value=\"\$LIB$uppername\"
11436             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11437             eval value=\"\$LTLIB$uppername\"
11438             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11439           else
11440                                     :
11441           fi
11442         else
11443                               found_dir=
11444           found_la=
11445           found_so=
11446           found_a=
11447           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11448           if test -n "$acl_shlibext"; then
11449             shrext=".$acl_shlibext"             # typically: shrext=.so
11450           else
11451             shrext=
11452           fi
11453           if test $use_additional = yes; then
11454             dir="$additional_libdir"
11455                                     if test -n "$acl_shlibext"; then
11456               if test -f "$dir/$libname$shrext"; then
11457                 found_dir="$dir"
11458                 found_so="$dir/$libname$shrext"
11459               else
11460                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11461                   ver=`(cd "$dir" && \
11462                         for f in "$libname$shrext".*; do echo "$f"; done \
11463                         | sed -e "s,^$libname$shrext\\\\.,," \
11464                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11465                         | sed 1q ) 2>/dev/null`
11466                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11467                     found_dir="$dir"
11468                     found_so="$dir/$libname$shrext.$ver"
11469                   fi
11470                 else
11471                   eval library_names=\"$acl_library_names_spec\"
11472                   for f in $library_names; do
11473                     if test -f "$dir/$f"; then
11474                       found_dir="$dir"
11475                       found_so="$dir/$f"
11476                       break
11477                     fi
11478                   done
11479                 fi
11480               fi
11481             fi
11482                         if test "X$found_dir" = "X"; then
11483               if test -f "$dir/$libname.$acl_libext"; then
11484                 found_dir="$dir"
11485                 found_a="$dir/$libname.$acl_libext"
11486               fi
11487             fi
11488             if test "X$found_dir" != "X"; then
11489               if test -f "$dir/$libname.la"; then
11490                 found_la="$dir/$libname.la"
11491               fi
11492             fi
11493           fi
11494           if test "X$found_dir" = "X"; then
11495             for x in $LDFLAGS $LTLIBICONV; do
11496
11497   acl_save_prefix="$prefix"
11498   prefix="$acl_final_prefix"
11499   acl_save_exec_prefix="$exec_prefix"
11500   exec_prefix="$acl_final_exec_prefix"
11501   eval x=\"$x\"
11502   exec_prefix="$acl_save_exec_prefix"
11503   prefix="$acl_save_prefix"
11504
11505               case "$x" in
11506                 -L*)
11507                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11508                                     if test -n "$acl_shlibext"; then
11509                     if test -f "$dir/$libname$shrext"; then
11510                       found_dir="$dir"
11511                       found_so="$dir/$libname$shrext"
11512                     else
11513                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11514                         ver=`(cd "$dir" && \
11515                               for f in "$libname$shrext".*; do echo "$f"; done \
11516                               | sed -e "s,^$libname$shrext\\\\.,," \
11517                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11518                               | sed 1q ) 2>/dev/null`
11519                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11520                           found_dir="$dir"
11521                           found_so="$dir/$libname$shrext.$ver"
11522                         fi
11523                       else
11524                         eval library_names=\"$acl_library_names_spec\"
11525                         for f in $library_names; do
11526                           if test -f "$dir/$f"; then
11527                             found_dir="$dir"
11528                             found_so="$dir/$f"
11529                             break
11530                           fi
11531                         done
11532                       fi
11533                     fi
11534                   fi
11535                                     if test "X$found_dir" = "X"; then
11536                     if test -f "$dir/$libname.$acl_libext"; then
11537                       found_dir="$dir"
11538                       found_a="$dir/$libname.$acl_libext"
11539                     fi
11540                   fi
11541                   if test "X$found_dir" != "X"; then
11542                     if test -f "$dir/$libname.la"; then
11543                       found_la="$dir/$libname.la"
11544                     fi
11545                   fi
11546                   ;;
11547               esac
11548               if test "X$found_dir" != "X"; then
11549                 break
11550               fi
11551             done
11552           fi
11553           if test "X$found_dir" != "X"; then
11554                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11555             if test "X$found_so" != "X"; then
11556                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11557                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11558               else
11559                                                                                 haveit=
11560                 for x in $ltrpathdirs; do
11561                   if test "X$x" = "X$found_dir"; then
11562                     haveit=yes
11563                     break
11564                   fi
11565                 done
11566                 if test -z "$haveit"; then
11567                   ltrpathdirs="$ltrpathdirs $found_dir"
11568                 fi
11569                                 if test "$acl_hardcode_direct" = yes; then
11570                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11571                 else
11572                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11573                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11574                                                             haveit=
11575                     for x in $rpathdirs; do
11576                       if test "X$x" = "X$found_dir"; then
11577                         haveit=yes
11578                         break
11579                       fi
11580                     done
11581                     if test -z "$haveit"; then
11582                       rpathdirs="$rpathdirs $found_dir"
11583                     fi
11584                   else
11585                                                                                 haveit=
11586                     for x in $LDFLAGS $LIBICONV; do
11587
11588   acl_save_prefix="$prefix"
11589   prefix="$acl_final_prefix"
11590   acl_save_exec_prefix="$exec_prefix"
11591   exec_prefix="$acl_final_exec_prefix"
11592   eval x=\"$x\"
11593   exec_prefix="$acl_save_exec_prefix"
11594   prefix="$acl_save_prefix"
11595
11596                       if test "X$x" = "X-L$found_dir"; then
11597                         haveit=yes
11598                         break
11599                       fi
11600                     done
11601                     if test -z "$haveit"; then
11602                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11603                     fi
11604                     if test "$acl_hardcode_minus_L" != no; then
11605                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11606                     else
11607                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11608                     fi
11609                   fi
11610                 fi
11611               fi
11612             else
11613               if test "X$found_a" != "X"; then
11614                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11615               else
11616                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11617               fi
11618             fi
11619                         additional_includedir=
11620             case "$found_dir" in
11621               */$acl_libdirstem | */$acl_libdirstem/)
11622                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11623                 LIBICONV_PREFIX="$basedir"
11624                 additional_includedir="$basedir/include"
11625                 ;;
11626             esac
11627             if test "X$additional_includedir" != "X"; then
11628                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11629                 haveit=
11630                 if test "X$additional_includedir" = "X/usr/local/include"; then
11631                   if test -n "$GCC"; then
11632                     case $host_os in
11633                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11634                     esac
11635                   fi
11636                 fi
11637                 if test -z "$haveit"; then
11638                   for x in $CPPFLAGS $INCICONV; do
11639
11640   acl_save_prefix="$prefix"
11641   prefix="$acl_final_prefix"
11642   acl_save_exec_prefix="$exec_prefix"
11643   exec_prefix="$acl_final_exec_prefix"
11644   eval x=\"$x\"
11645   exec_prefix="$acl_save_exec_prefix"
11646   prefix="$acl_save_prefix"
11647
11648                     if test "X$x" = "X-I$additional_includedir"; then
11649                       haveit=yes
11650                       break
11651                     fi
11652                   done
11653                   if test -z "$haveit"; then
11654                     if test -d "$additional_includedir"; then
11655                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11656                     fi
11657                   fi
11658                 fi
11659               fi
11660             fi
11661                         if test -n "$found_la"; then
11662                                                         save_libdir="$libdir"
11663               case "$found_la" in
11664                 */* | *\\*) . "$found_la" ;;
11665                 *) . "./$found_la" ;;
11666               esac
11667               libdir="$save_libdir"
11668                             for dep in $dependency_libs; do
11669                 case "$dep" in
11670                   -L*)
11671                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11672                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11673                       haveit=
11674                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11675                         if test -n "$GCC"; then
11676                           case $host_os in
11677                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11678                           esac
11679                         fi
11680                       fi
11681                       if test -z "$haveit"; then
11682                         haveit=
11683                         for x in $LDFLAGS $LIBICONV; do
11684
11685   acl_save_prefix="$prefix"
11686   prefix="$acl_final_prefix"
11687   acl_save_exec_prefix="$exec_prefix"
11688   exec_prefix="$acl_final_exec_prefix"
11689   eval x=\"$x\"
11690   exec_prefix="$acl_save_exec_prefix"
11691   prefix="$acl_save_prefix"
11692
11693                           if test "X$x" = "X-L$additional_libdir"; then
11694                             haveit=yes
11695                             break
11696                           fi
11697                         done
11698                         if test -z "$haveit"; then
11699                           if test -d "$additional_libdir"; then
11700                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11701                           fi
11702                         fi
11703                         haveit=
11704                         for x in $LDFLAGS $LTLIBICONV; do
11705
11706   acl_save_prefix="$prefix"
11707   prefix="$acl_final_prefix"
11708   acl_save_exec_prefix="$exec_prefix"
11709   exec_prefix="$acl_final_exec_prefix"
11710   eval x=\"$x\"
11711   exec_prefix="$acl_save_exec_prefix"
11712   prefix="$acl_save_prefix"
11713
11714                           if test "X$x" = "X-L$additional_libdir"; then
11715                             haveit=yes
11716                             break
11717                           fi
11718                         done
11719                         if test -z "$haveit"; then
11720                           if test -d "$additional_libdir"; then
11721                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11722                           fi
11723                         fi
11724                       fi
11725                     fi
11726                     ;;
11727                   -R*)
11728                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11729                     if test "$enable_rpath" != no; then
11730                                                                   haveit=
11731                       for x in $rpathdirs; do
11732                         if test "X$x" = "X$dir"; then
11733                           haveit=yes
11734                           break
11735                         fi
11736                       done
11737                       if test -z "$haveit"; then
11738                         rpathdirs="$rpathdirs $dir"
11739                       fi
11740                                                                   haveit=
11741                       for x in $ltrpathdirs; do
11742                         if test "X$x" = "X$dir"; then
11743                           haveit=yes
11744                           break
11745                         fi
11746                       done
11747                       if test -z "$haveit"; then
11748                         ltrpathdirs="$ltrpathdirs $dir"
11749                       fi
11750                     fi
11751                     ;;
11752                   -l*)
11753                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11754                     ;;
11755                   *.la)
11756                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11757                     ;;
11758                   *)
11759                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11760                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11761                     ;;
11762                 esac
11763               done
11764             fi
11765           else
11766                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11767             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11768           fi
11769         fi
11770       fi
11771     done
11772   done
11773   if test "X$rpathdirs" != "X"; then
11774     if test -n "$acl_hardcode_libdir_separator"; then
11775                         alldirs=
11776       for found_dir in $rpathdirs; do
11777         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11778       done
11779             acl_save_libdir="$libdir"
11780       libdir="$alldirs"
11781       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11782       libdir="$acl_save_libdir"
11783       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11784     else
11785             for found_dir in $rpathdirs; do
11786         acl_save_libdir="$libdir"
11787         libdir="$found_dir"
11788         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11789         libdir="$acl_save_libdir"
11790         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11791       done
11792     fi
11793   fi
11794   if test "X$ltrpathdirs" != "X"; then
11795             for found_dir in $ltrpathdirs; do
11796       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11797     done
11798   fi
11799
11800
11801
11802
11803
11804
11805
11806           am_save_CPPFLAGS="$CPPFLAGS"
11807
11808   for element in $INCICONV; do
11809     haveit=
11810     for x in $CPPFLAGS; do
11811
11812   acl_save_prefix="$prefix"
11813   prefix="$acl_final_prefix"
11814   acl_save_exec_prefix="$exec_prefix"
11815   exec_prefix="$acl_final_exec_prefix"
11816   eval x=\"$x\"
11817   exec_prefix="$acl_save_exec_prefix"
11818   prefix="$acl_save_prefix"
11819
11820       if test "X$x" = "X$element"; then
11821         haveit=yes
11822         break
11823       fi
11824     done
11825     if test -z "$haveit"; then
11826       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11827     fi
11828   done
11829
11830
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11832 $as_echo_n "checking for iconv... " >&6; }
11833 if ${am_cv_func_iconv+:} false; then :
11834   $as_echo_n "(cached) " >&6
11835 else
11836
11837     am_cv_func_iconv="no, consider installing GNU libiconv"
11838     am_cv_lib_iconv=no
11839     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h.  */
11841
11842 #include <stdlib.h>
11843 #include <iconv.h>
11844
11845 int
11846 main ()
11847 {
11848 iconv_t cd = iconv_open("","");
11849            iconv(cd,NULL,NULL,NULL,NULL);
11850            iconv_close(cd);
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_link "$LINENO"; then :
11856   am_cv_func_iconv=yes
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext \
11859     conftest$ac_exeext conftest.$ac_ext
11860     if test "$am_cv_func_iconv" != yes; then
11861       am_save_LIBS="$LIBS"
11862       LIBS="$LIBS $LIBICONV"
11863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h.  */
11865
11866 #include <stdlib.h>
11867 #include <iconv.h>
11868
11869 int
11870 main ()
11871 {
11872 iconv_t cd = iconv_open("","");
11873              iconv(cd,NULL,NULL,NULL,NULL);
11874              iconv_close(cd);
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_c_try_link "$LINENO"; then :
11880   am_cv_lib_iconv=yes
11881         am_cv_func_iconv=yes
11882 fi
11883 rm -f core conftest.err conftest.$ac_objext \
11884     conftest$ac_exeext conftest.$ac_ext
11885       LIBS="$am_save_LIBS"
11886     fi
11887
11888 fi
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11890 $as_echo "$am_cv_func_iconv" >&6; }
11891   if test "$am_cv_func_iconv" = yes; then
11892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11893 $as_echo_n "checking for working iconv... " >&6; }
11894 if ${am_cv_func_iconv_works+:} false; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897
11898                   am_save_LIBS="$LIBS"
11899       if test $am_cv_lib_iconv = yes; then
11900         LIBS="$LIBS $LIBICONV"
11901       fi
11902       am_cv_func_iconv_works=no
11903       for ac_iconv_const in '' 'const'; do
11904         if test "$cross_compiling" = yes; then :
11905   case "$host_os" in
11906              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11907              *)            am_cv_func_iconv_works="guessing yes" ;;
11908            esac
11909 else
11910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h.  */
11912
11913 #include <iconv.h>
11914 #include <string.h>
11915
11916 #ifndef ICONV_CONST
11917 # define ICONV_CONST $ac_iconv_const
11918 #endif
11919
11920 int
11921 main ()
11922 {
11923 int result = 0;
11924   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11925      returns.  */
11926   {
11927     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11928     if (cd_utf8_to_88591 != (iconv_t)(-1))
11929       {
11930         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11931         char buf[10];
11932         ICONV_CONST char *inptr = input;
11933         size_t inbytesleft = strlen (input);
11934         char *outptr = buf;
11935         size_t outbytesleft = sizeof (buf);
11936         size_t res = iconv (cd_utf8_to_88591,
11937                             &inptr, &inbytesleft,
11938                             &outptr, &outbytesleft);
11939         if (res == 0)
11940           result |= 1;
11941         iconv_close (cd_utf8_to_88591);
11942       }
11943   }
11944   /* Test against Solaris 10 bug: Failures are not distinguishable from
11945      successful returns.  */
11946   {
11947     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11948     if (cd_ascii_to_88591 != (iconv_t)(-1))
11949       {
11950         static ICONV_CONST char input[] = "\263";
11951         char buf[10];
11952         ICONV_CONST char *inptr = input;
11953         size_t inbytesleft = strlen (input);
11954         char *outptr = buf;
11955         size_t outbytesleft = sizeof (buf);
11956         size_t res = iconv (cd_ascii_to_88591,
11957                             &inptr, &inbytesleft,
11958                             &outptr, &outbytesleft);
11959         if (res == 0)
11960           result |= 2;
11961         iconv_close (cd_ascii_to_88591);
11962       }
11963   }
11964   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11965   {
11966     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11967     if (cd_88591_to_utf8 != (iconv_t)(-1))
11968       {
11969         static ICONV_CONST char input[] = "\304";
11970         static char buf[2] = { (char)0xDE, (char)0xAD };
11971         ICONV_CONST char *inptr = input;
11972         size_t inbytesleft = 1;
11973         char *outptr = buf;
11974         size_t outbytesleft = 1;
11975         size_t res = iconv (cd_88591_to_utf8,
11976                             &inptr, &inbytesleft,
11977                             &outptr, &outbytesleft);
11978         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11979           result |= 4;
11980         iconv_close (cd_88591_to_utf8);
11981       }
11982   }
11983 #if 0 /* This bug could be worked around by the caller.  */
11984   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11985   {
11986     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11987     if (cd_88591_to_utf8 != (iconv_t)(-1))
11988       {
11989         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11990         char buf[50];
11991         ICONV_CONST char *inptr = input;
11992         size_t inbytesleft = strlen (input);
11993         char *outptr = buf;
11994         size_t outbytesleft = sizeof (buf);
11995         size_t res = iconv (cd_88591_to_utf8,
11996                             &inptr, &inbytesleft,
11997                             &outptr, &outbytesleft);
11998         if ((int)res > 0)
11999           result |= 8;
12000         iconv_close (cd_88591_to_utf8);
12001       }
12002   }
12003 #endif
12004   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12005      provided.  */
12006   {
12007     /* Try standardized names.  */
12008     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12009     /* Try IRIX, OSF/1 names.  */
12010     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12011     /* Try AIX names.  */
12012     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12013     /* Try HP-UX names.  */
12014     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12015     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12016         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12017       result |= 16;
12018     if (cd1 != (iconv_t)(-1))
12019       iconv_close (cd1);
12020     if (cd2 != (iconv_t)(-1))
12021       iconv_close (cd2);
12022     if (cd3 != (iconv_t)(-1))
12023       iconv_close (cd3);
12024     if (cd4 != (iconv_t)(-1))
12025       iconv_close (cd4);
12026   }
12027   return result;
12028
12029   ;
12030   return 0;
12031 }
12032 _ACEOF
12033 if ac_fn_c_try_run "$LINENO"; then :
12034   am_cv_func_iconv_works=yes
12035 fi
12036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12037   conftest.$ac_objext conftest.beam conftest.$ac_ext
12038 fi
12039
12040         test "$am_cv_func_iconv_works" = no || break
12041       done
12042       LIBS="$am_save_LIBS"
12043
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12046 $as_echo "$am_cv_func_iconv_works" >&6; }
12047     case "$am_cv_func_iconv_works" in
12048       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12049       *)   am_func_iconv=yes ;;
12050     esac
12051   else
12052     am_func_iconv=no am_cv_lib_iconv=no
12053   fi
12054   if test "$am_func_iconv" = yes; then
12055
12056 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12057
12058   fi
12059   if test "$am_cv_lib_iconv" = yes; then
12060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12061 $as_echo_n "checking how to link with libiconv... " >&6; }
12062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12063 $as_echo "$LIBICONV" >&6; }
12064   else
12065             CPPFLAGS="$am_save_CPPFLAGS"
12066     LIBICONV=
12067     LTLIBICONV=
12068   fi
12069
12070
12071
12072   if test "$am_cv_func_iconv" = yes; then
12073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12074 $as_echo_n "checking for iconv declaration... " >&6; }
12075     if ${am_cv_proto_iconv+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078
12079       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081
12082 #include <stdlib.h>
12083 #include <iconv.h>
12084 extern
12085 #ifdef __cplusplus
12086 "C"
12087 #endif
12088 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12089 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12090 #else
12091 size_t iconv();
12092 #endif
12093
12094 int
12095 main ()
12096 {
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103   am_cv_proto_iconv_arg1=""
12104 else
12105   am_cv_proto_iconv_arg1="const"
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12109 fi
12110
12111     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12112     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12113          $am_cv_proto_iconv" >&5
12114 $as_echo "
12115          $am_cv_proto_iconv" >&6; }
12116   else
12117             am_cv_proto_iconv_arg1=""
12118   fi
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define ICONV_CONST $am_cv_proto_iconv_arg1
12122 _ACEOF
12123
12124
12125
12126 else
12127   LIBICONV=
12128   LTLIBICONV=
12129
12130
12131 fi
12132
12133
12134 #
12135 # Check for gettext
12136 #
12137 # This is "GNU gnupg" - The project-id script from gettext
12138 #                       needs this string
12139 #
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12141 $as_echo "$as_me: checking for gettext" >&6;}
12142
12143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12144 $as_echo_n "checking whether NLS is requested... " >&6; }
12145     # Check whether --enable-nls was given.
12146 if test "${enable_nls+set}" = set; then :
12147   enableval=$enable_nls; USE_NLS=$enableval
12148 else
12149   USE_NLS=yes
12150 fi
12151
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12153 $as_echo "$USE_NLS" >&6; }
12154
12155
12156
12157
12158       GETTEXT_MACRO_VERSION=0.17
12159
12160
12161
12162
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
12168   chmod +x conf$$.sh
12169   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12170     PATH_SEPARATOR=';'
12171   else
12172     PATH_SEPARATOR=:
12173   fi
12174   rm -f conf$$.sh
12175 fi
12176
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
12180 #! /bin/sh
12181 exit 0
12182 _ASEOF
12183 chmod +x conf$$.file
12184 if test -x conf$$.file >/dev/null 2>&1; then
12185   ac_executable_p="test -x"
12186 else
12187   ac_executable_p="test -f"
12188 fi
12189 rm -f conf$$.file
12190
12191 # Extract the first word of "msgfmt", so it can be a program name with args.
12192 set dummy msgfmt; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12194 $as_echo_n "checking for $ac_word... " >&6; }
12195 if ${ac_cv_path_MSGFMT+:} false; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   case "$MSGFMT" in
12199   [\\/]* | ?:[\\/]*)
12200     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12201     ;;
12202   *)
12203     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12204     for ac_dir in $PATH; do
12205       IFS="$ac_save_IFS"
12206       test -z "$ac_dir" && ac_dir=.
12207       for ac_exec_ext in '' $ac_executable_extensions; do
12208         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12209           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12210           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12211      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12212             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12213             break 2
12214           fi
12215         fi
12216       done
12217     done
12218     IFS="$ac_save_IFS"
12219   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12220     ;;
12221 esac
12222 fi
12223 MSGFMT="$ac_cv_path_MSGFMT"
12224 if test "$MSGFMT" != ":"; then
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12226 $as_echo "$MSGFMT" >&6; }
12227 else
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229 $as_echo "no" >&6; }
12230 fi
12231
12232   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12233 set dummy gmsgfmt; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_path_GMSGFMT+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   case $GMSGFMT in
12240   [\\/]* | ?:[\\/]*)
12241   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12242   ;;
12243   *)
12244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12246 do
12247   IFS=$as_save_IFS
12248   test -z "$as_dir" && as_dir=.
12249     for ac_exec_ext in '' $ac_executable_extensions; do
12250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253     break 2
12254   fi
12255 done
12256   done
12257 IFS=$as_save_IFS
12258
12259   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12260   ;;
12261 esac
12262 fi
12263 GMSGFMT=$ac_cv_path_GMSGFMT
12264 if test -n "$GMSGFMT"; then
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12266 $as_echo "$GMSGFMT" >&6; }
12267 else
12268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269 $as_echo "no" >&6; }
12270 fi
12271
12272
12273
12274     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12275     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12276     *) MSGFMT_015=$MSGFMT ;;
12277   esac
12278
12279   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12280     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12281     *) GMSGFMT_015=$GMSGFMT ;;
12282   esac
12283
12284
12285
12286 # Prepare PATH_SEPARATOR.
12287 # The user is always right.
12288 if test "${PATH_SEPARATOR+set}" != set; then
12289   echo "#! /bin/sh" >conf$$.sh
12290   echo  "exit 0"   >>conf$$.sh
12291   chmod +x conf$$.sh
12292   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12293     PATH_SEPARATOR=';'
12294   else
12295     PATH_SEPARATOR=:
12296   fi
12297   rm -f conf$$.sh
12298 fi
12299
12300 # Find out how to test for executable files. Don't use a zero-byte file,
12301 # as systems may use methods other than mode bits to determine executability.
12302 cat >conf$$.file <<_ASEOF
12303 #! /bin/sh
12304 exit 0
12305 _ASEOF
12306 chmod +x conf$$.file
12307 if test -x conf$$.file >/dev/null 2>&1; then
12308   ac_executable_p="test -x"
12309 else
12310   ac_executable_p="test -f"
12311 fi
12312 rm -f conf$$.file
12313
12314 # Extract the first word of "xgettext", so it can be a program name with args.
12315 set dummy xgettext; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317 $as_echo_n "checking for $ac_word... " >&6; }
12318 if ${ac_cv_path_XGETTEXT+:} false; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321   case "$XGETTEXT" in
12322   [\\/]* | ?:[\\/]*)
12323     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12324     ;;
12325   *)
12326     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12327     for ac_dir in $PATH; do
12328       IFS="$ac_save_IFS"
12329       test -z "$ac_dir" && ac_dir=.
12330       for ac_exec_ext in '' $ac_executable_extensions; do
12331         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12332           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12333           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12334      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12335             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12336             break 2
12337           fi
12338         fi
12339       done
12340     done
12341     IFS="$ac_save_IFS"
12342   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12343     ;;
12344 esac
12345 fi
12346 XGETTEXT="$ac_cv_path_XGETTEXT"
12347 if test "$XGETTEXT" != ":"; then
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12349 $as_echo "$XGETTEXT" >&6; }
12350 else
12351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12353 fi
12354
12355     rm -f messages.po
12356
12357     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12358     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12359     *) XGETTEXT_015=$XGETTEXT ;;
12360   esac
12361
12362
12363
12364 # Prepare PATH_SEPARATOR.
12365 # The user is always right.
12366 if test "${PATH_SEPARATOR+set}" != set; then
12367   echo "#! /bin/sh" >conf$$.sh
12368   echo  "exit 0"   >>conf$$.sh
12369   chmod +x conf$$.sh
12370   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12371     PATH_SEPARATOR=';'
12372   else
12373     PATH_SEPARATOR=:
12374   fi
12375   rm -f conf$$.sh
12376 fi
12377
12378 # Find out how to test for executable files. Don't use a zero-byte file,
12379 # as systems may use methods other than mode bits to determine executability.
12380 cat >conf$$.file <<_ASEOF
12381 #! /bin/sh
12382 exit 0
12383 _ASEOF
12384 chmod +x conf$$.file
12385 if test -x conf$$.file >/dev/null 2>&1; then
12386   ac_executable_p="test -x"
12387 else
12388   ac_executable_p="test -f"
12389 fi
12390 rm -f conf$$.file
12391
12392 # Extract the first word of "msgmerge", so it can be a program name with args.
12393 set dummy msgmerge; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if ${ac_cv_path_MSGMERGE+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   case "$MSGMERGE" in
12400   [\\/]* | ?:[\\/]*)
12401     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12402     ;;
12403   *)
12404     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12405     for ac_dir in $PATH; do
12406       IFS="$ac_save_IFS"
12407       test -z "$ac_dir" && ac_dir=.
12408       for ac_exec_ext in '' $ac_executable_extensions; do
12409         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12410           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12411           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12412             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12413             break 2
12414           fi
12415         fi
12416       done
12417     done
12418     IFS="$ac_save_IFS"
12419   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12420     ;;
12421 esac
12422 fi
12423 MSGMERGE="$ac_cv_path_MSGMERGE"
12424 if test "$MSGMERGE" != ":"; then
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12426 $as_echo "$MSGMERGE" >&6; }
12427 else
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12430 fi
12431
12432
12433         test -n "$localedir" || localedir='${datadir}/locale'
12434
12435
12436     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12437
12438
12439   ac_config_commands="$ac_config_commands po-directories"
12440
12441
12442
12443 if test "$try_gettext" = yes; then
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12468 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12469 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12470   $as_echo_n "(cached) " >&6
12471 else
12472   gt_save_LIBS="$LIBS"
12473      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h.  */
12476 #include <CoreFoundation/CFPreferences.h>
12477 int
12478 main ()
12479 {
12480 CFPreferencesCopyAppValue(NULL, NULL)
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486   gt_cv_func_CFPreferencesCopyAppValue=yes
12487 else
12488   gt_cv_func_CFPreferencesCopyAppValue=no
12489 fi
12490 rm -f core conftest.err conftest.$ac_objext \
12491     conftest$ac_exeext conftest.$ac_ext
12492      LIBS="$gt_save_LIBS"
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12495 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12496   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12497
12498 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12499
12500   fi
12501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12502 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12503 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12504   $as_echo_n "(cached) " >&6
12505 else
12506   gt_save_LIBS="$LIBS"
12507      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12508      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h.  */
12510 #include <CoreFoundation/CFLocale.h>
12511 int
12512 main ()
12513 {
12514 CFLocaleCopyCurrent();
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_link "$LINENO"; then :
12520   gt_cv_func_CFLocaleCopyCurrent=yes
12521 else
12522   gt_cv_func_CFLocaleCopyCurrent=no
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext \
12525     conftest$ac_exeext conftest.$ac_ext
12526      LIBS="$gt_save_LIBS"
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12529 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12530   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12531
12532 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12533
12534   fi
12535   INTL_MACOSX_LIBS=
12536   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12537     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12538   fi
12539
12540
12541
12542
12543
12544
12545   LIBINTL=
12546   LTLIBINTL=
12547   POSUB=
12548
12549     case " $gt_needs " in
12550     *" need-formatstring-macros "*) gt_api_version=3 ;;
12551     *" need-ngettext "*) gt_api_version=2 ;;
12552     *) gt_api_version=1 ;;
12553   esac
12554   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12555   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12556
12557     if test "$USE_NLS" = "yes"; then
12558     gt_use_preinstalled_gnugettext=no
12559
12560
12561         if test $gt_api_version -ge 3; then
12562           gt_revision_test_code='
12563 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12564 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12565 #endif
12566 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12567 '
12568         else
12569           gt_revision_test_code=
12570         fi
12571         if test $gt_api_version -ge 2; then
12572           gt_expression_test_code=' + * ngettext ("", "", 0)'
12573         else
12574           gt_expression_test_code=
12575         fi
12576
12577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12578 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12579 if eval \${$gt_func_gnugettext_libc+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h.  */
12584
12585 #include <libintl.h>
12586 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12587 extern int _nl_msg_cat_cntr;
12588 extern int *_nl_domain_bindings;
12589 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12590 #else
12591 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12592 #endif
12593 $gt_revision_test_code
12594
12595 int
12596 main ()
12597 {
12598
12599 bindtextdomain ("", "");
12600 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12601
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607   eval "$gt_func_gnugettext_libc=yes"
12608 else
12609   eval "$gt_func_gnugettext_libc=no"
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext \
12612     conftest$ac_exeext conftest.$ac_ext
12613 fi
12614 eval ac_res=\$$gt_func_gnugettext_libc
12615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12616 $as_echo "$ac_res" >&6; }
12617
12618         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12619
12620
12621
12622
12623
12624           am_save_CPPFLAGS="$CPPFLAGS"
12625
12626   for element in $INCICONV; do
12627     haveit=
12628     for x in $CPPFLAGS; do
12629
12630   acl_save_prefix="$prefix"
12631   prefix="$acl_final_prefix"
12632   acl_save_exec_prefix="$exec_prefix"
12633   exec_prefix="$acl_final_exec_prefix"
12634   eval x=\"$x\"
12635   exec_prefix="$acl_save_exec_prefix"
12636   prefix="$acl_save_prefix"
12637
12638       if test "X$x" = "X$element"; then
12639         haveit=yes
12640         break
12641       fi
12642     done
12643     if test -z "$haveit"; then
12644       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12645     fi
12646   done
12647
12648
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12650 $as_echo_n "checking for iconv... " >&6; }
12651 if ${am_cv_func_iconv+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654
12655     am_cv_func_iconv="no, consider installing GNU libiconv"
12656     am_cv_lib_iconv=no
12657     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h.  */
12659
12660 #include <stdlib.h>
12661 #include <iconv.h>
12662
12663 int
12664 main ()
12665 {
12666 iconv_t cd = iconv_open("","");
12667            iconv(cd,NULL,NULL,NULL,NULL);
12668            iconv_close(cd);
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 if ac_fn_c_try_link "$LINENO"; then :
12674   am_cv_func_iconv=yes
12675 fi
12676 rm -f core conftest.err conftest.$ac_objext \
12677     conftest$ac_exeext conftest.$ac_ext
12678     if test "$am_cv_func_iconv" != yes; then
12679       am_save_LIBS="$LIBS"
12680       LIBS="$LIBS $LIBICONV"
12681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683
12684 #include <stdlib.h>
12685 #include <iconv.h>
12686
12687 int
12688 main ()
12689 {
12690 iconv_t cd = iconv_open("","");
12691              iconv(cd,NULL,NULL,NULL,NULL);
12692              iconv_close(cd);
12693   ;
12694   return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698   am_cv_lib_iconv=yes
12699         am_cv_func_iconv=yes
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702     conftest$ac_exeext conftest.$ac_ext
12703       LIBS="$am_save_LIBS"
12704     fi
12705
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12708 $as_echo "$am_cv_func_iconv" >&6; }
12709   if test "$am_cv_func_iconv" = yes; then
12710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12711 $as_echo_n "checking for working iconv... " >&6; }
12712 if ${am_cv_func_iconv_works+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715
12716                   am_save_LIBS="$LIBS"
12717       if test $am_cv_lib_iconv = yes; then
12718         LIBS="$LIBS $LIBICONV"
12719       fi
12720       am_cv_func_iconv_works=no
12721       for ac_iconv_const in '' 'const'; do
12722         if test "$cross_compiling" = yes; then :
12723   case "$host_os" in
12724              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12725              *)            am_cv_func_iconv_works="guessing yes" ;;
12726            esac
12727 else
12728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h.  */
12730
12731 #include <iconv.h>
12732 #include <string.h>
12733
12734 #ifndef ICONV_CONST
12735 # define ICONV_CONST $ac_iconv_const
12736 #endif
12737
12738 int
12739 main ()
12740 {
12741 int result = 0;
12742   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12743      returns.  */
12744   {
12745     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12746     if (cd_utf8_to_88591 != (iconv_t)(-1))
12747       {
12748         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12749         char buf[10];
12750         ICONV_CONST char *inptr = input;
12751         size_t inbytesleft = strlen (input);
12752         char *outptr = buf;
12753         size_t outbytesleft = sizeof (buf);
12754         size_t res = iconv (cd_utf8_to_88591,
12755                             &inptr, &inbytesleft,
12756                             &outptr, &outbytesleft);
12757         if (res == 0)
12758           result |= 1;
12759         iconv_close (cd_utf8_to_88591);
12760       }
12761   }
12762   /* Test against Solaris 10 bug: Failures are not distinguishable from
12763      successful returns.  */
12764   {
12765     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12766     if (cd_ascii_to_88591 != (iconv_t)(-1))
12767       {
12768         static ICONV_CONST char input[] = "\263";
12769         char buf[10];
12770         ICONV_CONST char *inptr = input;
12771         size_t inbytesleft = strlen (input);
12772         char *outptr = buf;
12773         size_t outbytesleft = sizeof (buf);
12774         size_t res = iconv (cd_ascii_to_88591,
12775                             &inptr, &inbytesleft,
12776                             &outptr, &outbytesleft);
12777         if (res == 0)
12778           result |= 2;
12779         iconv_close (cd_ascii_to_88591);
12780       }
12781   }
12782   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12783   {
12784     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12785     if (cd_88591_to_utf8 != (iconv_t)(-1))
12786       {
12787         static ICONV_CONST char input[] = "\304";
12788         static char buf[2] = { (char)0xDE, (char)0xAD };
12789         ICONV_CONST char *inptr = input;
12790         size_t inbytesleft = 1;
12791         char *outptr = buf;
12792         size_t outbytesleft = 1;
12793         size_t res = iconv (cd_88591_to_utf8,
12794                             &inptr, &inbytesleft,
12795                             &outptr, &outbytesleft);
12796         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12797           result |= 4;
12798         iconv_close (cd_88591_to_utf8);
12799       }
12800   }
12801 #if 0 /* This bug could be worked around by the caller.  */
12802   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12803   {
12804     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12805     if (cd_88591_to_utf8 != (iconv_t)(-1))
12806       {
12807         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12808         char buf[50];
12809         ICONV_CONST char *inptr = input;
12810         size_t inbytesleft = strlen (input);
12811         char *outptr = buf;
12812         size_t outbytesleft = sizeof (buf);
12813         size_t res = iconv (cd_88591_to_utf8,
12814                             &inptr, &inbytesleft,
12815                             &outptr, &outbytesleft);
12816         if ((int)res > 0)
12817           result |= 8;
12818         iconv_close (cd_88591_to_utf8);
12819       }
12820   }
12821 #endif
12822   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12823      provided.  */
12824   {
12825     /* Try standardized names.  */
12826     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12827     /* Try IRIX, OSF/1 names.  */
12828     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12829     /* Try AIX names.  */
12830     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12831     /* Try HP-UX names.  */
12832     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12833     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12834         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12835       result |= 16;
12836     if (cd1 != (iconv_t)(-1))
12837       iconv_close (cd1);
12838     if (cd2 != (iconv_t)(-1))
12839       iconv_close (cd2);
12840     if (cd3 != (iconv_t)(-1))
12841       iconv_close (cd3);
12842     if (cd4 != (iconv_t)(-1))
12843       iconv_close (cd4);
12844   }
12845   return result;
12846
12847   ;
12848   return 0;
12849 }
12850 _ACEOF
12851 if ac_fn_c_try_run "$LINENO"; then :
12852   am_cv_func_iconv_works=yes
12853 fi
12854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12855   conftest.$ac_objext conftest.beam conftest.$ac_ext
12856 fi
12857
12858         test "$am_cv_func_iconv_works" = no || break
12859       done
12860       LIBS="$am_save_LIBS"
12861
12862 fi
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12864 $as_echo "$am_cv_func_iconv_works" >&6; }
12865     case "$am_cv_func_iconv_works" in
12866       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12867       *)   am_func_iconv=yes ;;
12868     esac
12869   else
12870     am_func_iconv=no am_cv_lib_iconv=no
12871   fi
12872   if test "$am_func_iconv" = yes; then
12873
12874 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12875
12876   fi
12877   if test "$am_cv_lib_iconv" = yes; then
12878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12879 $as_echo_n "checking how to link with libiconv... " >&6; }
12880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12881 $as_echo "$LIBICONV" >&6; }
12882   else
12883             CPPFLAGS="$am_save_CPPFLAGS"
12884     LIBICONV=
12885     LTLIBICONV=
12886   fi
12887
12888
12889
12890
12891
12892
12893
12894
12895     use_additional=yes
12896
12897   acl_save_prefix="$prefix"
12898   prefix="$acl_final_prefix"
12899   acl_save_exec_prefix="$exec_prefix"
12900   exec_prefix="$acl_final_exec_prefix"
12901
12902     eval additional_includedir=\"$includedir\"
12903     eval additional_libdir=\"$libdir\"
12904
12905   exec_prefix="$acl_save_exec_prefix"
12906   prefix="$acl_save_prefix"
12907
12908
12909 # Check whether --with-libintl-prefix was given.
12910 if test "${with_libintl_prefix+set}" = set; then :
12911   withval=$with_libintl_prefix;
12912     if test "X$withval" = "Xno"; then
12913       use_additional=no
12914     else
12915       if test "X$withval" = "X"; then
12916
12917   acl_save_prefix="$prefix"
12918   prefix="$acl_final_prefix"
12919   acl_save_exec_prefix="$exec_prefix"
12920   exec_prefix="$acl_final_exec_prefix"
12921
12922           eval additional_includedir=\"$includedir\"
12923           eval additional_libdir=\"$libdir\"
12924
12925   exec_prefix="$acl_save_exec_prefix"
12926   prefix="$acl_save_prefix"
12927
12928       else
12929         additional_includedir="$withval/include"
12930         additional_libdir="$withval/$acl_libdirstem"
12931       fi
12932     fi
12933
12934 fi
12935
12936       LIBINTL=
12937   LTLIBINTL=
12938   INCINTL=
12939   LIBINTL_PREFIX=
12940   rpathdirs=
12941   ltrpathdirs=
12942   names_already_handled=
12943   names_next_round='intl '
12944   while test -n "$names_next_round"; do
12945     names_this_round="$names_next_round"
12946     names_next_round=
12947     for name in $names_this_round; do
12948       already_handled=
12949       for n in $names_already_handled; do
12950         if test "$n" = "$name"; then
12951           already_handled=yes
12952           break
12953         fi
12954       done
12955       if test -z "$already_handled"; then
12956         names_already_handled="$names_already_handled $name"
12957                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12958         eval value=\"\$HAVE_LIB$uppername\"
12959         if test -n "$value"; then
12960           if test "$value" = yes; then
12961             eval value=\"\$LIB$uppername\"
12962             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12963             eval value=\"\$LTLIB$uppername\"
12964             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12965           else
12966                                     :
12967           fi
12968         else
12969                               found_dir=
12970           found_la=
12971           found_so=
12972           found_a=
12973           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12974           if test -n "$acl_shlibext"; then
12975             shrext=".$acl_shlibext"             # typically: shrext=.so
12976           else
12977             shrext=
12978           fi
12979           if test $use_additional = yes; then
12980             dir="$additional_libdir"
12981                                     if test -n "$acl_shlibext"; then
12982               if test -f "$dir/$libname$shrext"; then
12983                 found_dir="$dir"
12984                 found_so="$dir/$libname$shrext"
12985               else
12986                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12987                   ver=`(cd "$dir" && \
12988                         for f in "$libname$shrext".*; do echo "$f"; done \
12989                         | sed -e "s,^$libname$shrext\\\\.,," \
12990                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12991                         | sed 1q ) 2>/dev/null`
12992                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12993                     found_dir="$dir"
12994                     found_so="$dir/$libname$shrext.$ver"
12995                   fi
12996                 else
12997                   eval library_names=\"$acl_library_names_spec\"
12998                   for f in $library_names; do
12999                     if test -f "$dir/$f"; then
13000                       found_dir="$dir"
13001                       found_so="$dir/$f"
13002                       break
13003                     fi
13004                   done
13005                 fi
13006               fi
13007             fi
13008                         if test "X$found_dir" = "X"; then
13009               if test -f "$dir/$libname.$acl_libext"; then
13010                 found_dir="$dir"
13011                 found_a="$dir/$libname.$acl_libext"
13012               fi
13013             fi
13014             if test "X$found_dir" != "X"; then
13015               if test -f "$dir/$libname.la"; then
13016                 found_la="$dir/$libname.la"
13017               fi
13018             fi
13019           fi
13020           if test "X$found_dir" = "X"; then
13021             for x in $LDFLAGS $LTLIBINTL; do
13022
13023   acl_save_prefix="$prefix"
13024   prefix="$acl_final_prefix"
13025   acl_save_exec_prefix="$exec_prefix"
13026   exec_prefix="$acl_final_exec_prefix"
13027   eval x=\"$x\"
13028   exec_prefix="$acl_save_exec_prefix"
13029   prefix="$acl_save_prefix"
13030
13031               case "$x" in
13032                 -L*)
13033                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13034                                     if test -n "$acl_shlibext"; then
13035                     if test -f "$dir/$libname$shrext"; then
13036                       found_dir="$dir"
13037                       found_so="$dir/$libname$shrext"
13038                     else
13039                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13040                         ver=`(cd "$dir" && \
13041                               for f in "$libname$shrext".*; do echo "$f"; done \
13042                               | sed -e "s,^$libname$shrext\\\\.,," \
13043                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13044                               | sed 1q ) 2>/dev/null`
13045                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13046                           found_dir="$dir"
13047                           found_so="$dir/$libname$shrext.$ver"
13048                         fi
13049                       else
13050                         eval library_names=\"$acl_library_names_spec\"
13051                         for f in $library_names; do
13052                           if test -f "$dir/$f"; then
13053                             found_dir="$dir"
13054                             found_so="$dir/$f"
13055                             break
13056                           fi
13057                         done
13058                       fi
13059                     fi
13060                   fi
13061                                     if test "X$found_dir" = "X"; then
13062                     if test -f "$dir/$libname.$acl_libext"; then
13063                       found_dir="$dir"
13064                       found_a="$dir/$libname.$acl_libext"
13065                     fi
13066                   fi
13067                   if test "X$found_dir" != "X"; then
13068                     if test -f "$dir/$libname.la"; then
13069                       found_la="$dir/$libname.la"
13070                     fi
13071                   fi
13072                   ;;
13073               esac
13074               if test "X$found_dir" != "X"; then
13075                 break
13076               fi
13077             done
13078           fi
13079           if test "X$found_dir" != "X"; then
13080                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13081             if test "X$found_so" != "X"; then
13082                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13083                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13084               else
13085                                                                                 haveit=
13086                 for x in $ltrpathdirs; do
13087                   if test "X$x" = "X$found_dir"; then
13088                     haveit=yes
13089                     break
13090                   fi
13091                 done
13092                 if test -z "$haveit"; then
13093                   ltrpathdirs="$ltrpathdirs $found_dir"
13094                 fi
13095                                 if test "$acl_hardcode_direct" = yes; then
13096                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13097                 else
13098                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13099                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13100                                                             haveit=
13101                     for x in $rpathdirs; do
13102                       if test "X$x" = "X$found_dir"; then
13103                         haveit=yes
13104                         break
13105                       fi
13106                     done
13107                     if test -z "$haveit"; then
13108                       rpathdirs="$rpathdirs $found_dir"
13109                     fi
13110                   else
13111                                                                                 haveit=
13112                     for x in $LDFLAGS $LIBINTL; do
13113
13114   acl_save_prefix="$prefix"
13115   prefix="$acl_final_prefix"
13116   acl_save_exec_prefix="$exec_prefix"
13117   exec_prefix="$acl_final_exec_prefix"
13118   eval x=\"$x\"
13119   exec_prefix="$acl_save_exec_prefix"
13120   prefix="$acl_save_prefix"
13121
13122                       if test "X$x" = "X-L$found_dir"; then
13123                         haveit=yes
13124                         break
13125                       fi
13126                     done
13127                     if test -z "$haveit"; then
13128                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13129                     fi
13130                     if test "$acl_hardcode_minus_L" != no; then
13131                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13132                     else
13133                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13134                     fi
13135                   fi
13136                 fi
13137               fi
13138             else
13139               if test "X$found_a" != "X"; then
13140                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13141               else
13142                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13143               fi
13144             fi
13145                         additional_includedir=
13146             case "$found_dir" in
13147               */$acl_libdirstem | */$acl_libdirstem/)
13148                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13149                 LIBINTL_PREFIX="$basedir"
13150                 additional_includedir="$basedir/include"
13151                 ;;
13152             esac
13153             if test "X$additional_includedir" != "X"; then
13154                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13155                 haveit=
13156                 if test "X$additional_includedir" = "X/usr/local/include"; then
13157                   if test -n "$GCC"; then
13158                     case $host_os in
13159                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13160                     esac
13161                   fi
13162                 fi
13163                 if test -z "$haveit"; then
13164                   for x in $CPPFLAGS $INCINTL; do
13165
13166   acl_save_prefix="$prefix"
13167   prefix="$acl_final_prefix"
13168   acl_save_exec_prefix="$exec_prefix"
13169   exec_prefix="$acl_final_exec_prefix"
13170   eval x=\"$x\"
13171   exec_prefix="$acl_save_exec_prefix"
13172   prefix="$acl_save_prefix"
13173
13174                     if test "X$x" = "X-I$additional_includedir"; then
13175                       haveit=yes
13176                       break
13177                     fi
13178                   done
13179                   if test -z "$haveit"; then
13180                     if test -d "$additional_includedir"; then
13181                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13182                     fi
13183                   fi
13184                 fi
13185               fi
13186             fi
13187                         if test -n "$found_la"; then
13188                                                         save_libdir="$libdir"
13189               case "$found_la" in
13190                 */* | *\\*) . "$found_la" ;;
13191                 *) . "./$found_la" ;;
13192               esac
13193               libdir="$save_libdir"
13194                             for dep in $dependency_libs; do
13195                 case "$dep" in
13196                   -L*)
13197                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13198                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13199                       haveit=
13200                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13201                         if test -n "$GCC"; then
13202                           case $host_os in
13203                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13204                           esac
13205                         fi
13206                       fi
13207                       if test -z "$haveit"; then
13208                         haveit=
13209                         for x in $LDFLAGS $LIBINTL; do
13210
13211   acl_save_prefix="$prefix"
13212   prefix="$acl_final_prefix"
13213   acl_save_exec_prefix="$exec_prefix"
13214   exec_prefix="$acl_final_exec_prefix"
13215   eval x=\"$x\"
13216   exec_prefix="$acl_save_exec_prefix"
13217   prefix="$acl_save_prefix"
13218
13219                           if test "X$x" = "X-L$additional_libdir"; then
13220                             haveit=yes
13221                             break
13222                           fi
13223                         done
13224                         if test -z "$haveit"; then
13225                           if test -d "$additional_libdir"; then
13226                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13227                           fi
13228                         fi
13229                         haveit=
13230                         for x in $LDFLAGS $LTLIBINTL; do
13231
13232   acl_save_prefix="$prefix"
13233   prefix="$acl_final_prefix"
13234   acl_save_exec_prefix="$exec_prefix"
13235   exec_prefix="$acl_final_exec_prefix"
13236   eval x=\"$x\"
13237   exec_prefix="$acl_save_exec_prefix"
13238   prefix="$acl_save_prefix"
13239
13240                           if test "X$x" = "X-L$additional_libdir"; then
13241                             haveit=yes
13242                             break
13243                           fi
13244                         done
13245                         if test -z "$haveit"; then
13246                           if test -d "$additional_libdir"; then
13247                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13248                           fi
13249                         fi
13250                       fi
13251                     fi
13252                     ;;
13253                   -R*)
13254                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13255                     if test "$enable_rpath" != no; then
13256                                                                   haveit=
13257                       for x in $rpathdirs; do
13258                         if test "X$x" = "X$dir"; then
13259                           haveit=yes
13260                           break
13261                         fi
13262                       done
13263                       if test -z "$haveit"; then
13264                         rpathdirs="$rpathdirs $dir"
13265                       fi
13266                                                                   haveit=
13267                       for x in $ltrpathdirs; do
13268                         if test "X$x" = "X$dir"; then
13269                           haveit=yes
13270                           break
13271                         fi
13272                       done
13273                       if test -z "$haveit"; then
13274                         ltrpathdirs="$ltrpathdirs $dir"
13275                       fi
13276                     fi
13277                     ;;
13278                   -l*)
13279                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13280                     ;;
13281                   *.la)
13282                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13283                     ;;
13284                   *)
13285                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13286                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13287                     ;;
13288                 esac
13289               done
13290             fi
13291           else
13292                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13293             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13294           fi
13295         fi
13296       fi
13297     done
13298   done
13299   if test "X$rpathdirs" != "X"; then
13300     if test -n "$acl_hardcode_libdir_separator"; then
13301                         alldirs=
13302       for found_dir in $rpathdirs; do
13303         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13304       done
13305             acl_save_libdir="$libdir"
13306       libdir="$alldirs"
13307       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13308       libdir="$acl_save_libdir"
13309       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13310     else
13311             for found_dir in $rpathdirs; do
13312         acl_save_libdir="$libdir"
13313         libdir="$found_dir"
13314         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13315         libdir="$acl_save_libdir"
13316         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13317       done
13318     fi
13319   fi
13320   if test "X$ltrpathdirs" != "X"; then
13321             for found_dir in $ltrpathdirs; do
13322       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13323     done
13324   fi
13325
13326           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13327 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13328 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13329   $as_echo_n "(cached) " >&6
13330 else
13331   gt_save_CPPFLAGS="$CPPFLAGS"
13332             CPPFLAGS="$CPPFLAGS $INCINTL"
13333             gt_save_LIBS="$LIBS"
13334             LIBS="$LIBS $LIBINTL"
13335                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337
13338 #include <libintl.h>
13339 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13340 extern int _nl_msg_cat_cntr;
13341 extern
13342 #ifdef __cplusplus
13343 "C"
13344 #endif
13345 const char *_nl_expand_alias (const char *);
13346 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13347 #else
13348 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13349 #endif
13350 $gt_revision_test_code
13351
13352 int
13353 main ()
13354 {
13355
13356 bindtextdomain ("", "");
13357 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13358
13359   ;
13360   return 0;
13361 }
13362 _ACEOF
13363 if ac_fn_c_try_link "$LINENO"; then :
13364   eval "$gt_func_gnugettext_libintl=yes"
13365 else
13366   eval "$gt_func_gnugettext_libintl=no"
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext \
13369     conftest$ac_exeext conftest.$ac_ext
13370                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13371               LIBS="$LIBS $LIBICONV"
13372               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h.  */
13374
13375 #include <libintl.h>
13376 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13377 extern int _nl_msg_cat_cntr;
13378 extern
13379 #ifdef __cplusplus
13380 "C"
13381 #endif
13382 const char *_nl_expand_alias (const char *);
13383 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13384 #else
13385 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13386 #endif
13387 $gt_revision_test_code
13388
13389 int
13390 main ()
13391 {
13392
13393 bindtextdomain ("", "");
13394 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13395
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_link "$LINENO"; then :
13401   LIBINTL="$LIBINTL $LIBICONV"
13402                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13403                  eval "$gt_func_gnugettext_libintl=yes"
13404
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407     conftest$ac_exeext conftest.$ac_ext
13408             fi
13409             CPPFLAGS="$gt_save_CPPFLAGS"
13410             LIBS="$gt_save_LIBS"
13411 fi
13412 eval ac_res=\$$gt_func_gnugettext_libintl
13413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13414 $as_echo "$ac_res" >&6; }
13415         fi
13416
13417                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13418            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13419                 && test "$PACKAGE" != gettext-runtime \
13420                 && test "$PACKAGE" != gettext-tools; }; then
13421           gt_use_preinstalled_gnugettext=yes
13422         else
13423                     LIBINTL=
13424           LTLIBINTL=
13425           INCINTL=
13426         fi
13427
13428
13429
13430     if test -n "$INTL_MACOSX_LIBS"; then
13431       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13432          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13433                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13434         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13435       fi
13436     fi
13437
13438     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13439        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13440
13441 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13442
13443     else
13444       USE_NLS=no
13445     fi
13446   fi
13447
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13449 $as_echo_n "checking whether to use NLS... " >&6; }
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13451 $as_echo "$USE_NLS" >&6; }
13452   if test "$USE_NLS" = "yes"; then
13453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13454 $as_echo_n "checking where the gettext function comes from... " >&6; }
13455     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13456       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13457         gt_source="external libintl"
13458       else
13459         gt_source="libc"
13460       fi
13461     else
13462       gt_source="included intl directory"
13463     fi
13464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13465 $as_echo "$gt_source" >&6; }
13466   fi
13467
13468   if test "$USE_NLS" = "yes"; then
13469
13470     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13471       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13473 $as_echo_n "checking how to link with libintl... " >&6; }
13474         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13475 $as_echo "$LIBINTL" >&6; }
13476
13477   for element in $INCINTL; do
13478     haveit=
13479     for x in $CPPFLAGS; do
13480
13481   acl_save_prefix="$prefix"
13482   prefix="$acl_final_prefix"
13483   acl_save_exec_prefix="$exec_prefix"
13484   exec_prefix="$acl_final_exec_prefix"
13485   eval x=\"$x\"
13486   exec_prefix="$acl_save_exec_prefix"
13487   prefix="$acl_save_prefix"
13488
13489       if test "X$x" = "X$element"; then
13490         haveit=yes
13491         break
13492       fi
13493     done
13494     if test -z "$haveit"; then
13495       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13496     fi
13497   done
13498
13499       fi
13500
13501
13502 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13503
13504
13505 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13506
13507     fi
13508
13509         POSUB=po
13510   fi
13511
13512
13513
13514     INTLLIBS="$LIBINTL"
13515
13516
13517
13518
13519
13520
13521
13522   # gettext requires some extra checks.  These really should be part of
13523   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13524   # function checks to here.
13525
13526   for ac_func in strchr
13527 do :
13528   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13529 if test "x$ac_cv_func_strchr" = xyes; then :
13530   cat >>confdefs.h <<_ACEOF
13531 #define HAVE_STRCHR 1
13532 _ACEOF
13533
13534 fi
13535 done
13536
13537 else
13538   USE_NLS=no
13539   USE_INCLUDED_LIBINTL=no
13540   BUILD_INCLUDED_LIBINTL=no
13541   POSUB=po
13542
13543
13544
13545
13546 fi
13547
13548 # We use HAVE_LANGINFO_CODESET in a couple of places.
13549
13550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13551 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13552 if ${am_cv_langinfo_codeset+:} false; then :
13553   $as_echo_n "(cached) " >&6
13554 else
13555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557 #include <langinfo.h>
13558 int
13559 main ()
13560 {
13561 char* cs = nl_langinfo(CODESET); return !cs;
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567   am_cv_langinfo_codeset=yes
13568 else
13569   am_cv_langinfo_codeset=no
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext \
13572     conftest$ac_exeext conftest.$ac_ext
13573
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13576 $as_echo "$am_cv_langinfo_codeset" >&6; }
13577   if test $am_cv_langinfo_codeset = yes; then
13578
13579 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13580
13581   fi
13582
13583
13584 # Checks required for our use of locales
13585
13586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13587 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13588 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h.  */
13593 #include <locale.h>
13594 int
13595 main ()
13596 {
13597 return LC_MESSAGES
13598   ;
13599   return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"; then :
13603   gt_cv_val_LC_MESSAGES=yes
13604 else
13605   gt_cv_val_LC_MESSAGES=no
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext \
13608     conftest$ac_exeext conftest.$ac_ext
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13611 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13612   if test $gt_cv_val_LC_MESSAGES = yes; then
13613
13614 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13615
13616   fi
13617
13618
13619
13620 #
13621 # SELinux support
13622 #
13623 if test "$selinux_support" = yes ; then
13624
13625 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13626
13627 fi
13628
13629
13630 #
13631 # Checks for header files.
13632 #
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13634 $as_echo "$as_me: checking for header files" >&6;}
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13636 $as_echo_n "checking for ANSI C header files... " >&6; }
13637 if ${ac_cv_header_stdc+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641 /* end confdefs.h.  */
13642 #include <stdlib.h>
13643 #include <stdarg.h>
13644 #include <string.h>
13645 #include <float.h>
13646
13647 int
13648 main ()
13649 {
13650
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 if ac_fn_c_try_compile "$LINENO"; then :
13656   ac_cv_header_stdc=yes
13657 else
13658   ac_cv_header_stdc=no
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661
13662 if test $ac_cv_header_stdc = yes; then
13663   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h.  */
13666 #include <string.h>
13667
13668 _ACEOF
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670   $EGREP "memchr" >/dev/null 2>&1; then :
13671
13672 else
13673   ac_cv_header_stdc=no
13674 fi
13675 rm -f conftest*
13676
13677 fi
13678
13679 if test $ac_cv_header_stdc = yes; then
13680   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h.  */
13683 #include <stdlib.h>
13684
13685 _ACEOF
13686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13687   $EGREP "free" >/dev/null 2>&1; then :
13688
13689 else
13690   ac_cv_header_stdc=no
13691 fi
13692 rm -f conftest*
13693
13694 fi
13695
13696 if test $ac_cv_header_stdc = yes; then
13697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13698   if test "$cross_compiling" = yes; then :
13699   :
13700 else
13701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703 #include <ctype.h>
13704 #include <stdlib.h>
13705 #if ((' ' & 0x0FF) == 0x020)
13706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13708 #else
13709 # define ISLOWER(c) \
13710                    (('a' <= (c) && (c) <= 'i') \
13711                      || ('j' <= (c) && (c) <= 'r') \
13712                      || ('s' <= (c) && (c) <= 'z'))
13713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13714 #endif
13715
13716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13717 int
13718 main ()
13719 {
13720   int i;
13721   for (i = 0; i < 256; i++)
13722     if (XOR (islower (i), ISLOWER (i))
13723         || toupper (i) != TOUPPER (i))
13724       return 2;
13725   return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_run "$LINENO"; then :
13729
13730 else
13731   ac_cv_header_stdc=no
13732 fi
13733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13734   conftest.$ac_objext conftest.beam conftest.$ac_ext
13735 fi
13736
13737 fi
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13740 $as_echo "$ac_cv_header_stdc" >&6; }
13741 if test $ac_cv_header_stdc = yes; then
13742
13743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13744
13745 fi
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13748 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13749 if ${ac_cv_header_time+:} false; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h.  */
13754 #include <sys/types.h>
13755 #include <sys/time.h>
13756 #include <time.h>
13757
13758 int
13759 main ()
13760 {
13761 if ((struct tm *) 0)
13762 return 0;
13763   ;
13764   return 0;
13765 }
13766 _ACEOF
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768   ac_cv_header_time=yes
13769 else
13770   ac_cv_header_time=no
13771 fi
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13773 fi
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13775 $as_echo "$ac_cv_header_time" >&6; }
13776 if test $ac_cv_header_time = yes; then
13777
13778 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13779
13780 fi
13781
13782 for ac_header in unistd.h langinfo.h termio.h locale.h \
13783                   pwd.h inttypes.h signal.h sys/select.h     \
13784                   stdint.h signal.h termios.h \
13785                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13786 do :
13787   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13790   cat >>confdefs.h <<_ACEOF
13791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13792 _ACEOF
13793
13794 fi
13795
13796 done
13797
13798
13799
13800 #
13801 # Checks for typedefs, structures, and compiler characteristics.
13802 #
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13804 $as_echo "$as_me: checking for system characteristics" >&6;}
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13806 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13807 if ${ac_cv_c_const+:} false; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13811 /* end confdefs.h.  */
13812
13813 int
13814 main ()
13815 {
13816
13817 #ifndef __cplusplus
13818   /* Ultrix mips cc rejects this sort of thing.  */
13819   typedef int charset[2];
13820   const charset cs = { 0, 0 };
13821   /* SunOS 4.1.1 cc rejects this.  */
13822   char const *const *pcpcc;
13823   char **ppc;
13824   /* NEC SVR4.0.2 mips cc rejects this.  */
13825   struct point {int x, y;};
13826   static struct point const zero = {0,0};
13827   /* AIX XL C 1.02.0.0 rejects this.
13828      It does not let you subtract one const X* pointer from another in
13829      an arm of an if-expression whose if-part is not a constant
13830      expression */
13831   const char *g = "string";
13832   pcpcc = &g + (g ? g-g : 0);
13833   /* HPUX 7.0 cc rejects these. */
13834   ++pcpcc;
13835   ppc = (char**) pcpcc;
13836   pcpcc = (char const *const *) ppc;
13837   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13838     char tx;
13839     char *t = &tx;
13840     char const *s = 0 ? (char *) 0 : (char const *) 0;
13841
13842     *t++ = 0;
13843     if (s) return 0;
13844   }
13845   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13846     int x[] = {25, 17};
13847     const int *foo = &x[0];
13848     ++foo;
13849   }
13850   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13851     typedef const int *iptr;
13852     iptr p = 0;
13853     ++p;
13854   }
13855   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13856        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13857     struct s { int j; const int *ap[3]; } bx;
13858     struct s *b = &bx; b->j = 5;
13859   }
13860   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13861     const int foo = 10;
13862     if (!foo) return 0;
13863   }
13864   return !cs[0] && !zero.x;
13865 #endif
13866
13867   ;
13868   return 0;
13869 }
13870 _ACEOF
13871 if ac_fn_c_try_compile "$LINENO"; then :
13872   ac_cv_c_const=yes
13873 else
13874   ac_cv_c_const=no
13875 fi
13876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13877 fi
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13879 $as_echo "$ac_cv_c_const" >&6; }
13880 if test $ac_cv_c_const = no; then
13881
13882 $as_echo "#define const /**/" >>confdefs.h
13883
13884 fi
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13887 $as_echo_n "checking for inline... " >&6; }
13888 if ${ac_cv_c_inline+:} false; then :
13889   $as_echo_n "(cached) " >&6
13890 else
13891   ac_cv_c_inline=no
13892 for ac_kw in inline __inline__ __inline; do
13893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895 #ifndef __cplusplus
13896 typedef int foo_t;
13897 static $ac_kw foo_t static_foo () {return 0; }
13898 $ac_kw foo_t foo () {return 0; }
13899 #endif
13900
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903   ac_cv_c_inline=$ac_kw
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906   test "$ac_cv_c_inline" != no && break
13907 done
13908
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13911 $as_echo "$ac_cv_c_inline" >&6; }
13912
13913 case $ac_cv_c_inline in
13914   inline | yes) ;;
13915   *)
13916     case $ac_cv_c_inline in
13917       no) ac_val=;;
13918       *) ac_val=$ac_cv_c_inline;;
13919     esac
13920     cat >>confdefs.h <<_ACEOF
13921 #ifndef __cplusplus
13922 #define inline $ac_val
13923 #endif
13924 _ACEOF
13925     ;;
13926 esac
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13929 $as_echo_n "checking for working volatile... " >&6; }
13930 if ${ac_cv_c_volatile+:} false; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h.  */
13935
13936 int
13937 main ()
13938 {
13939
13940 volatile int x;
13941 int * volatile y = (int *) 0;
13942 return !x && !y;
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_c_try_compile "$LINENO"; then :
13948   ac_cv_c_volatile=yes
13949 else
13950   ac_cv_c_volatile=no
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 fi
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13955 $as_echo "$ac_cv_c_volatile" >&6; }
13956 if test $ac_cv_c_volatile = no; then
13957
13958 $as_echo "#define volatile /**/" >>confdefs.h
13959
13960 fi
13961
13962 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13963 if test "x$ac_cv_type_size_t" = xyes; then :
13964
13965 else
13966
13967 cat >>confdefs.h <<_ACEOF
13968 #define size_t unsigned int
13969 _ACEOF
13970
13971 fi
13972
13973 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13974 if test "x$ac_cv_type_mode_t" = xyes; then :
13975
13976 else
13977
13978 cat >>confdefs.h <<_ACEOF
13979 #define mode_t int
13980 _ACEOF
13981
13982 fi
13983
13984 for ac_func in sigdescr_np
13985 do :
13986   ac_fn_c_check_func "$LINENO" "sigdescr_np" "ac_cv_func_sigdescr_np"
13987 if test "x$ac_cv_func_sigdescr_np" = xyes; then :
13988   cat >>confdefs.h <<_ACEOF
13989 #define HAVE_SIGDESCR_NP 1
13990 _ACEOF
13991
13992 fi
13993 done
13994
13995 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13996 /* NetBSD declares sys_siglist in unistd.h.  */
13997 #ifdef HAVE_UNISTD_H
13998 # include <unistd.h>
13999 #endif
14000
14001 "
14002 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
14003   ac_have_decl=1
14004 else
14005   ac_have_decl=0
14006 fi
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
14010 _ACEOF
14011
14012
14013
14014
14015
14016
14017   for ac_header in $ac_header_list
14018 do :
14019   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14021 "
14022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14023   cat >>confdefs.h <<_ACEOF
14024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14025 _ACEOF
14026
14027 fi
14028
14029 done
14030
14031
14032
14033
14034
14035   if test $ac_cv_header_sys_socket_h = yes; then
14036     SYS_SOCKET_H=''
14037   else
14038                     for ac_header in winsock2.h ws2tcpip.h
14039 do :
14040   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14043   cat >>confdefs.h <<_ACEOF
14044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045 _ACEOF
14046
14047 fi
14048
14049 done
14050
14051     SYS_SOCKET_H='sys/socket.h'
14052   fi
14053
14054
14055
14056    if test $ac_cv_header_sys_socket_h = no; then
14057                          for ac_header in ws2tcpip.h
14058 do :
14059   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14060 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14061   cat >>confdefs.h <<_ACEOF
14062 #define HAVE_WS2TCPIP_H 1
14063 _ACEOF
14064
14065 fi
14066
14067 done
14068
14069    fi
14070
14071    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14072 /* <sys/types.h> is not needed according to POSIX, but the
14073    <sys/socket.h> in i386-unknown-freebsd4.10 and
14074    powerpc-apple-darwin5.5 required it. */
14075 #include <sys/types.h>
14076 #if HAVE_SYS_SOCKET_H
14077 # include <sys/socket.h>
14078 #elif HAVE_WS2TCPIP_H
14079 # include <ws2tcpip.h>
14080 #endif
14081
14082 "
14083 if test "x$ac_cv_type_socklen_t" = xyes; then :
14084
14085 else
14086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14087 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14088 if ${gl_cv_socklen_t_equiv+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   # Systems have either "struct sockaddr *" or
14092          # "void *" as the second argument to getpeername
14093          gl_cv_socklen_t_equiv=
14094          for arg2 in "struct sockaddr" void; do
14095            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14096              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h.  */
14098 #include <sys/types.h>
14099                    #include <sys/socket.h>
14100
14101                    int getpeername (int, $arg2 *, $t *);
14102 int
14103 main ()
14104 {
14105 $t len;
14106                   getpeername (0, 0, &len);
14107   ;
14108   return 0;
14109 }
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112   gl_cv_socklen_t_equiv="$t"
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115              test "$gl_cv_socklen_t_equiv" != "" && break
14116            done
14117            test "$gl_cv_socklen_t_equiv" != "" && break
14118          done
14119          if test "$gl_cv_socklen_t_equiv" = ""; then
14120            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14121          fi
14122
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14125 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14126
14127 cat >>confdefs.h <<_ACEOF
14128 #define socklen_t $gl_cv_socklen_t_equiv
14129 _ACEOF
14130
14131 fi
14132
14133
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14135 $as_echo_n "checking for library containing inet_addr... " >&6; }
14136 if ${ac_cv_search_inet_addr+:} false; then :
14137   $as_echo_n "(cached) " >&6
14138 else
14139   ac_func_search_save_LIBS=$LIBS
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h.  */
14142
14143 /* Override any GCC internal prototype to avoid an error.
14144    Use char because int might match the return type of a GCC
14145    builtin and then its argument prototype would still apply.  */
14146 #ifdef __cplusplus
14147 extern "C"
14148 #endif
14149 char inet_addr ();
14150 int
14151 main ()
14152 {
14153 return inet_addr ();
14154   ;
14155   return 0;
14156 }
14157 _ACEOF
14158 for ac_lib in '' nsl; do
14159   if test -z "$ac_lib"; then
14160     ac_res="none required"
14161   else
14162     ac_res=-l$ac_lib
14163     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14164   fi
14165   if ac_fn_c_try_link "$LINENO"; then :
14166   ac_cv_search_inet_addr=$ac_res
14167 fi
14168 rm -f core conftest.err conftest.$ac_objext \
14169     conftest$ac_exeext
14170   if ${ac_cv_search_inet_addr+:} false; then :
14171   break
14172 fi
14173 done
14174 if ${ac_cv_search_inet_addr+:} false; then :
14175
14176 else
14177   ac_cv_search_inet_addr=no
14178 fi
14179 rm conftest.$ac_ext
14180 LIBS=$ac_func_search_save_LIBS
14181 fi
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14183 $as_echo "$ac_cv_search_inet_addr" >&6; }
14184 ac_res=$ac_cv_search_inet_addr
14185 if test "$ac_res" != no; then :
14186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14187
14188 fi
14189
14190
14191 # Check whether --enable-endian-check was given.
14192 if test "${enable_endian_check+set}" = set; then :
14193   enableval=$enable_endian_check; endiancheck=$enableval
14194 else
14195   endiancheck=yes
14196 fi
14197
14198
14199 if test x"$endiancheck" = xyes ; then
14200
14201     tmp_assumed_endian=big
14202     tmp_assume_warn=""
14203     if test "$cross_compiling" = yes; then
14204       case "$host_cpu" in
14205          i[345678]* )
14206             tmp_assumed_endian=little
14207             ;;
14208          *)
14209             ;;
14210       esac
14211     fi
14212     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14213 $as_echo_n "checking endianness... " >&6; }
14214     if ${gnupg_cv_c_endian+:} false; then :
14215   $as_echo_n "(cached) " >&6
14216 else
14217    gnupg_cv_c_endian=unknown
14218         # See if sys/param.h defines the BYTE_ORDER macro.
14219         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221 #include <sys/types.h>
14222         #include <sys/param.h>
14223 int
14224 main ()
14225 {
14226
14227         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14228          bogus endian macros
14229         #endif
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_compile "$LINENO"; then :
14235   # It does; now see whether it defined to BIG_ENDIAN or not.
14236         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h.  */
14238 #include <sys/types.h>
14239         #include <sys/param.h>
14240 int
14241 main ()
14242 {
14243
14244         #if BYTE_ORDER != BIG_ENDIAN
14245          not big endian
14246         #endif
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252   gnupg_cv_c_endian=big
14253 else
14254   gnupg_cv_c_endian=little
14255 fi
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259         if test "$gnupg_cv_c_endian" = unknown; then
14260             if test "$cross_compiling" = yes; then :
14261   gnupg_cv_c_endian=$tmp_assumed_endian
14262               tmp_assumed_warn=" (assumed)"
14263
14264 else
14265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h.  */
14267 main () {
14268               /* Are we little or big endian?  From Harbison&Steele.  */
14269               union
14270               {
14271                 long l;
14272                 char c[sizeof (long)];
14273               } u;
14274               u.l = 1;
14275               exit (u.c[sizeof (long) - 1] == 1);
14276               }
14277 _ACEOF
14278 if ac_fn_c_try_run "$LINENO"; then :
14279   gnupg_cv_c_endian=little
14280 else
14281   gnupg_cv_c_endian=big
14282 fi
14283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14284   conftest.$ac_objext conftest.beam conftest.$ac_ext
14285 fi
14286
14287         fi
14288
14289 fi
14290
14291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14292 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14293     if test "$gnupg_cv_c_endian" = little; then
14294
14295 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14296
14297     else
14298
14299 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14300
14301     fi
14302
14303 fi
14304
14305 # fixme: we should get rid of the byte type
14306 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14307 if test "x$ac_cv_type_byte" = xyes; then :
14308
14309 cat >>confdefs.h <<_ACEOF
14310 #define HAVE_BYTE 1
14311 _ACEOF
14312
14313
14314 fi
14315 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14316 if test "x$ac_cv_type_ushort" = xyes; then :
14317
14318 cat >>confdefs.h <<_ACEOF
14319 #define HAVE_USHORT 1
14320 _ACEOF
14321
14322
14323 fi
14324 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14325 if test "x$ac_cv_type_ulong" = xyes; then :
14326
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_ULONG 1
14329 _ACEOF
14330
14331
14332 fi
14333 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14334 if test "x$ac_cv_type_u16" = xyes; then :
14335
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_U16 1
14338 _ACEOF
14339
14340
14341 fi
14342 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14343 if test "x$ac_cv_type_u32" = xyes; then :
14344
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_U32 1
14347 _ACEOF
14348
14349
14350 fi
14351
14352 # The cast to long int works around a bug in the HP C Compiler
14353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14355 # This bug is HP SR number 8606223364.
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14357 $as_echo_n "checking size of unsigned short... " >&6; }
14358 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14359   $as_echo_n "(cached) " >&6
14360 else
14361   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14362
14363 else
14364   if test "$ac_cv_type_unsigned_short" = yes; then
14365      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14367 as_fn_error 77 "cannot compute sizeof (unsigned short)
14368 See \`config.log' for more details" "$LINENO" 5; }
14369    else
14370      ac_cv_sizeof_unsigned_short=0
14371    fi
14372 fi
14373
14374 fi
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14376 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14377
14378
14379
14380 cat >>confdefs.h <<_ACEOF
14381 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14382 _ACEOF
14383
14384
14385 # The cast to long int works around a bug in the HP C Compiler
14386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14388 # This bug is HP SR number 8606223364.
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14390 $as_echo_n "checking size of unsigned int... " >&6; }
14391 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14392   $as_echo_n "(cached) " >&6
14393 else
14394   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14395
14396 else
14397   if test "$ac_cv_type_unsigned_int" = yes; then
14398      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14400 as_fn_error 77 "cannot compute sizeof (unsigned int)
14401 See \`config.log' for more details" "$LINENO" 5; }
14402    else
14403      ac_cv_sizeof_unsigned_int=0
14404    fi
14405 fi
14406
14407 fi
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14409 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14410
14411
14412
14413 cat >>confdefs.h <<_ACEOF
14414 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14415 _ACEOF
14416
14417
14418 # The cast to long int works around a bug in the HP C Compiler
14419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14421 # This bug is HP SR number 8606223364.
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14423 $as_echo_n "checking size of unsigned long... " >&6; }
14424 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14425   $as_echo_n "(cached) " >&6
14426 else
14427   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14428
14429 else
14430   if test "$ac_cv_type_unsigned_long" = yes; then
14431      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14433 as_fn_error 77 "cannot compute sizeof (unsigned long)
14434 See \`config.log' for more details" "$LINENO" 5; }
14435    else
14436      ac_cv_sizeof_unsigned_long=0
14437    fi
14438 fi
14439
14440 fi
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14442 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14443
14444
14445
14446 cat >>confdefs.h <<_ACEOF
14447 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14448 _ACEOF
14449
14450
14451 # The cast to long int works around a bug in the HP C Compiler
14452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14454 # This bug is HP SR number 8606223364.
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14456 $as_echo_n "checking size of unsigned long long... " >&6; }
14457 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14458   $as_echo_n "(cached) " >&6
14459 else
14460   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14461
14462 else
14463   if test "$ac_cv_type_unsigned_long_long" = yes; then
14464      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14466 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14467 See \`config.log' for more details" "$LINENO" 5; }
14468    else
14469      ac_cv_sizeof_unsigned_long_long=0
14470    fi
14471 fi
14472
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14475 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14476
14477
14478
14479 cat >>confdefs.h <<_ACEOF
14480 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14481 _ACEOF
14482
14483
14484 # The cast to long int works around a bug in the HP C Compiler
14485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14487 # This bug is HP SR number 8606223364.
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14489 $as_echo_n "checking size of size_t... " >&6; }
14490 if ${ac_cv_sizeof_size_t+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14494
14495 else
14496   if test "$ac_cv_type_size_t" = yes; then
14497      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14499 as_fn_error 77 "cannot compute sizeof (size_t)
14500 See \`config.log' for more details" "$LINENO" 5; }
14501    else
14502      ac_cv_sizeof_size_t=0
14503    fi
14504 fi
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14508 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14509
14510
14511
14512 cat >>confdefs.h <<_ACEOF
14513 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14514 _ACEOF
14515
14516
14517 # The cast to long int works around a bug in the HP C Compiler
14518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14520 # This bug is HP SR number 8606223364.
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14522 $as_echo_n "checking size of time_t... " >&6; }
14523 if ${ac_cv_sizeof_time_t+:} false; then :
14524   $as_echo_n "(cached) " >&6
14525 else
14526   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14527 #include <stdio.h>
14528 #if TIME_WITH_SYS_TIME
14529 # include <sys/time.h>
14530 # include <time.h>
14531 #else
14532 # if HAVE_SYS_TIME_H
14533 #  include <sys/time.h>
14534 # else
14535 #  include <time.h>
14536 # endif
14537 #endif
14538
14539 "; then :
14540
14541 else
14542   if test "$ac_cv_type_time_t" = yes; then
14543      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14545 as_fn_error 77 "cannot compute sizeof (time_t)
14546 See \`config.log' for more details" "$LINENO" 5; }
14547    else
14548      ac_cv_sizeof_time_t=0
14549    fi
14550 fi
14551
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14554 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14555
14556
14557
14558 cat >>confdefs.h <<_ACEOF
14559 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14560 _ACEOF
14561
14562
14563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14564 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14565 if ${gnupg_cv_time_t_unsigned+:} false; then :
14566   $as_echo_n "(cached) " >&6
14567 else
14568         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569 /* end confdefs.h.  */
14570 $ac_includes_default
14571 #if TIME_WITH_SYS_TIME
14572 # include <sys/time.h>
14573 # include <time.h>
14574 #else
14575 # if HAVE_SYS_TIME_H
14576 #  include <sys/time.h>
14577 # else
14578 #  include <time.h>
14579 # endif
14580 #endif
14581
14582 int
14583 main ()
14584 {
14585 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14586 test_array [0] = 0;
14587 return test_array [0];
14588
14589   ;
14590   return 0;
14591 }
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594   gnupg_cv_time_t_unsigned=no
14595 else
14596   gnupg_cv_time_t_unsigned=yes
14597 fi
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 fi
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14601 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14602     if test $gnupg_cv_time_t_unsigned = yes; then
14603
14604 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14605
14606     fi
14607
14608
14609
14610 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14611    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14612    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14614 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14615 fi
14616
14617
14618 #
14619 # Checks for library functions.
14620 #
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14622 $as_echo "$as_me: checking for library functions" >&6;}
14623 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14624 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14625   ac_have_decl=1
14626 else
14627   ac_have_decl=0
14628 fi
14629
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14632 _ACEOF
14633
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14635 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14636 if ${ac_cv_sys_largefile_source+:} false; then :
14637   $as_echo_n "(cached) " >&6
14638 else
14639   while :; do
14640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h.  */
14642 #include <sys/types.h> /* for off_t */
14643      #include <stdio.h>
14644 int
14645 main ()
14646 {
14647 int (*fp) (FILE *, off_t, int) = fseeko;
14648      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_link "$LINENO"; then :
14654   ac_cv_sys_largefile_source=no; break
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext \
14657     conftest$ac_exeext conftest.$ac_ext
14658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h.  */
14660 #define _LARGEFILE_SOURCE 1
14661 #include <sys/types.h> /* for off_t */
14662      #include <stdio.h>
14663 int
14664 main ()
14665 {
14666 int (*fp) (FILE *, off_t, int) = fseeko;
14667      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14668   ;
14669   return 0;
14670 }
14671 _ACEOF
14672 if ac_fn_c_try_link "$LINENO"; then :
14673   ac_cv_sys_largefile_source=1; break
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext \
14676     conftest$ac_exeext conftest.$ac_ext
14677   ac_cv_sys_largefile_source=unknown
14678   break
14679 done
14680 fi
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14682 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14683 case $ac_cv_sys_largefile_source in #(
14684   no | unknown) ;;
14685   *)
14686 cat >>confdefs.h <<_ACEOF
14687 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14688 _ACEOF
14689 ;;
14690 esac
14691 rm -rf conftest*
14692
14693 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14694 # in glibc 2.1.3, but that breaks too many other things.
14695 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14696 if test $ac_cv_sys_largefile_source != unknown; then
14697
14698 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14699
14700 fi
14701
14702 for ac_func in vprintf
14703 do :
14704   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14705 if test "x$ac_cv_func_vprintf" = xyes; then :
14706   cat >>confdefs.h <<_ACEOF
14707 #define HAVE_VPRINTF 1
14708 _ACEOF
14709
14710 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14711 if test "x$ac_cv_func__doprnt" = xyes; then :
14712
14713 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14714
14715 fi
14716
14717 fi
14718 done
14719
14720
14721 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14722 if test "x$ac_cv_type_pid_t" = xyes; then :
14723
14724 else
14725
14726 cat >>confdefs.h <<_ACEOF
14727 #define pid_t int
14728 _ACEOF
14729
14730 fi
14731
14732 for ac_header in vfork.h
14733 do :
14734   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14735 if test "x$ac_cv_header_vfork_h" = xyes; then :
14736   cat >>confdefs.h <<_ACEOF
14737 #define HAVE_VFORK_H 1
14738 _ACEOF
14739
14740 fi
14741
14742 done
14743
14744 for ac_func in fork vfork
14745 do :
14746   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14747 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14748 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14749   cat >>confdefs.h <<_ACEOF
14750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14751 _ACEOF
14752
14753 fi
14754 done
14755
14756 if test "x$ac_cv_func_fork" = xyes; then
14757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14758 $as_echo_n "checking for working fork... " >&6; }
14759 if ${ac_cv_func_fork_works+:} false; then :
14760   $as_echo_n "(cached) " >&6
14761 else
14762   if test "$cross_compiling" = yes; then :
14763   ac_cv_func_fork_works=cross
14764 else
14765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h.  */
14767 $ac_includes_default
14768 int
14769 main ()
14770 {
14771
14772           /* By Ruediger Kuhlmann. */
14773           return fork () < 0;
14774
14775   ;
14776   return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_run "$LINENO"; then :
14780   ac_cv_func_fork_works=yes
14781 else
14782   ac_cv_func_fork_works=no
14783 fi
14784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14785   conftest.$ac_objext conftest.beam conftest.$ac_ext
14786 fi
14787
14788 fi
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14790 $as_echo "$ac_cv_func_fork_works" >&6; }
14791
14792 else
14793   ac_cv_func_fork_works=$ac_cv_func_fork
14794 fi
14795 if test "x$ac_cv_func_fork_works" = xcross; then
14796   case $host in
14797     *-*-amigaos* | *-*-msdosdjgpp*)
14798       # Override, as these systems have only a dummy fork() stub
14799       ac_cv_func_fork_works=no
14800       ;;
14801     *)
14802       ac_cv_func_fork_works=yes
14803       ;;
14804   esac
14805   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14806 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14807 fi
14808 ac_cv_func_vfork_works=$ac_cv_func_vfork
14809 if test "x$ac_cv_func_vfork" = xyes; then
14810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14811 $as_echo_n "checking for working vfork... " >&6; }
14812 if ${ac_cv_func_vfork_works+:} false; then :
14813   $as_echo_n "(cached) " >&6
14814 else
14815   if test "$cross_compiling" = yes; then :
14816   ac_cv_func_vfork_works=cross
14817 else
14818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h.  */
14820 /* Thanks to Paul Eggert for this test.  */
14821 $ac_includes_default
14822 #include <sys/wait.h>
14823 #ifdef HAVE_VFORK_H
14824 # include <vfork.h>
14825 #endif
14826 /* On some sparc systems, changes by the child to local and incoming
14827    argument registers are propagated back to the parent.  The compiler
14828    is told about this with #include <vfork.h>, but some compilers
14829    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14830    static variable whose address is put into a register that is
14831    clobbered by the vfork.  */
14832 static void
14833 #ifdef __cplusplus
14834 sparc_address_test (int arg)
14835 # else
14836 sparc_address_test (arg) int arg;
14837 #endif
14838 {
14839   static pid_t child;
14840   if (!child) {
14841     child = vfork ();
14842     if (child < 0) {
14843       perror ("vfork");
14844       _exit(2);
14845     }
14846     if (!child) {
14847       arg = getpid();
14848       write(-1, "", 0);
14849       _exit (arg);
14850     }
14851   }
14852 }
14853
14854 int
14855 main ()
14856 {
14857   pid_t parent = getpid ();
14858   pid_t child;
14859
14860   sparc_address_test (0);
14861
14862   child = vfork ();
14863
14864   if (child == 0) {
14865     /* Here is another test for sparc vfork register problems.  This
14866        test uses lots of local variables, at least as many local
14867        variables as main has allocated so far including compiler
14868        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14869        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14870        reuse the register of parent for one of the local variables,
14871        since it will think that parent can't possibly be used any more
14872        in this routine.  Assigning to the local variable will thus
14873        munge parent in the parent process.  */
14874     pid_t
14875       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14876       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14877     /* Convince the compiler that p..p7 are live; otherwise, it might
14878        use the same hardware register for all 8 local variables.  */
14879     if (p != p1 || p != p2 || p != p3 || p != p4
14880         || p != p5 || p != p6 || p != p7)
14881       _exit(1);
14882
14883     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14884        from child file descriptors.  If the child closes a descriptor
14885        before it execs or exits, this munges the parent's descriptor
14886        as well.  Test for this by closing stdout in the child.  */
14887     _exit(close(fileno(stdout)) != 0);
14888   } else {
14889     int status;
14890     struct stat st;
14891
14892     while (wait(&status) != child)
14893       ;
14894     return (
14895          /* Was there some problem with vforking?  */
14896          child < 0
14897
14898          /* Did the child fail?  (This shouldn't happen.)  */
14899          || status
14900
14901          /* Did the vfork/compiler bug occur?  */
14902          || parent != getpid()
14903
14904          /* Did the file descriptor bug occur?  */
14905          || fstat(fileno(stdout), &st) != 0
14906          );
14907   }
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_run "$LINENO"; then :
14911   ac_cv_func_vfork_works=yes
14912 else
14913   ac_cv_func_vfork_works=no
14914 fi
14915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14916   conftest.$ac_objext conftest.beam conftest.$ac_ext
14917 fi
14918
14919 fi
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14921 $as_echo "$ac_cv_func_vfork_works" >&6; }
14922
14923 fi;
14924 if test "x$ac_cv_func_fork_works" = xcross; then
14925   ac_cv_func_vfork_works=$ac_cv_func_vfork
14926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14927 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14928 fi
14929
14930 if test "x$ac_cv_func_vfork_works" = xyes; then
14931
14932 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14933
14934 else
14935
14936 $as_echo "#define vfork fork" >>confdefs.h
14937
14938 fi
14939 if test "x$ac_cv_func_fork_works" = xyes; then
14940
14941 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14942
14943 fi
14944
14945 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14946                 explicit_bzero fcntl flockfile fsync ftello          \
14947                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14948                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14949                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14950                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14951                 setenv setlocale setrlimit sigaction sigprocmask     \
14952                 stat stpcpy strcasecmp strerror strftime stricmp     \
14953                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14954                 strtoull tcgetattr timegm times ttyname unsetenv     \
14955                 wait4 waitpid
14956 do :
14957   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14960   cat >>confdefs.h <<_ACEOF
14961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962 _ACEOF
14963
14964 fi
14965 done
14966
14967
14968 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14969 # Given that we use nanosleep only as an optimization over a select
14970 # based wait function we want it only if it is available in libc.
14971 _save_libs="$LIBS"
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14973 $as_echo_n "checking for library containing nanosleep... " >&6; }
14974 if ${ac_cv_search_nanosleep+:} false; then :
14975   $as_echo_n "(cached) " >&6
14976 else
14977   ac_func_search_save_LIBS=$LIBS
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h.  */
14980
14981 /* Override any GCC internal prototype to avoid an error.
14982    Use char because int might match the return type of a GCC
14983    builtin and then its argument prototype would still apply.  */
14984 #ifdef __cplusplus
14985 extern "C"
14986 #endif
14987 char nanosleep ();
14988 int
14989 main ()
14990 {
14991 return nanosleep ();
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 for ac_lib in '' ; do
14997   if test -z "$ac_lib"; then
14998     ac_res="none required"
14999   else
15000     ac_res=-l$ac_lib
15001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15002   fi
15003   if ac_fn_c_try_link "$LINENO"; then :
15004   ac_cv_search_nanosleep=$ac_res
15005 fi
15006 rm -f core conftest.err conftest.$ac_objext \
15007     conftest$ac_exeext
15008   if ${ac_cv_search_nanosleep+:} false; then :
15009   break
15010 fi
15011 done
15012 if ${ac_cv_search_nanosleep+:} false; then :
15013
15014 else
15015   ac_cv_search_nanosleep=no
15016 fi
15017 rm conftest.$ac_ext
15018 LIBS=$ac_func_search_save_LIBS
15019 fi
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15021 $as_echo "$ac_cv_search_nanosleep" >&6; }
15022 ac_res=$ac_cv_search_nanosleep
15023 if test "$ac_res" != no; then :
15024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15025
15026 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15027
15028 fi
15029
15030 LIBS="$_save_libs"
15031
15032
15033 # See whether libc supports the Linux inotify interface
15034 case "${host}" in
15035     *-*-linux*)
15036         for ac_func in inotify_init
15037 do :
15038   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15039 if test "x$ac_cv_func_inotify_init" = xyes; then :
15040   cat >>confdefs.h <<_ACEOF
15041 #define HAVE_INOTIFY_INIT 1
15042 _ACEOF
15043
15044 fi
15045 done
15046
15047         ;;
15048 esac
15049
15050
15051 if test "$have_android_system" = yes; then
15052    # On Android ttyname is a stub but prints an error message.
15053
15054 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15055
15056 fi
15057
15058 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15059 "
15060 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15061
15062 cat >>confdefs.h <<_ACEOF
15063 #define HAVE_STRUCT_SIGACTION 1
15064 _ACEOF
15065
15066
15067 fi
15068 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15069 "
15070 if test "x$ac_cv_type_sigset_t" = xyes; then :
15071
15072 cat >>confdefs.h <<_ACEOF
15073 #define HAVE_SIGSET_T 1
15074 _ACEOF
15075
15076
15077 fi
15078
15079
15080 # Dirmngr requires mmap on Unix systems.
15081 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15082   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15083 fi
15084
15085
15086 #
15087 # Check for the getsockopt SO_PEERCRED, etc.
15088 #
15089 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15090 #include <sys/socket.h>
15091 "
15092 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15093
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_STRUCT_UCRED_PID 1
15096 _ACEOF
15097
15098
15099 fi
15100 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15101 #include <sys/socket.h>
15102 "
15103 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15104
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_STRUCT_UCRED_CR_PID 1
15107 _ACEOF
15108
15109
15110 fi
15111 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15112 #include <sys/socket.h>
15113 "
15114 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15115
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15118 _ACEOF
15119
15120
15121 fi
15122
15123
15124 # (Open)Solaris
15125 for ac_func in getpeerucred
15126 do :
15127   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15128 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15129   cat >>confdefs.h <<_ACEOF
15130 #define HAVE_GETPEERUCRED 1
15131 _ACEOF
15132
15133 fi
15134 done
15135
15136
15137
15138 #
15139 # W32 specific test
15140 #
15141
15142
15143 #
15144 # Do we have zlib? Must do it here because Solaris failed
15145 # when compiling a conftest (due to the "-lz" from LIBS).
15146 # Note that we combine zlib and bzlib2 in ZLIBS.
15147 #
15148 if test "$use_zip" = yes ; then
15149   _cppflags="${CPPFLAGS}"
15150   _ldflags="${LDFLAGS}"
15151
15152 # Check whether --with-zlib was given.
15153 if test "${with_zlib+set}" = set; then :
15154   withval=$with_zlib;
15155       if test -d "$withval"; then
15156         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15157         LDFLAGS="${LDFLAGS} -L$withval/lib"
15158       fi
15159
15160 fi
15161
15162
15163   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15164 if test "x$ac_cv_header_zlib_h" = xyes; then :
15165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15166 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15167 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15168   $as_echo_n "(cached) " >&6
15169 else
15170   ac_check_lib_save_LIBS=$LIBS
15171 LIBS="-lz  $LIBS"
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h.  */
15174
15175 /* Override any GCC internal prototype to avoid an error.
15176    Use char because int might match the return type of a GCC
15177    builtin and then its argument prototype would still apply.  */
15178 #ifdef __cplusplus
15179 extern "C"
15180 #endif
15181 char deflateInit2_ ();
15182 int
15183 main ()
15184 {
15185 return deflateInit2_ ();
15186   ;
15187   return 0;
15188 }
15189 _ACEOF
15190 if ac_fn_c_try_link "$LINENO"; then :
15191   ac_cv_lib_z_deflateInit2_=yes
15192 else
15193   ac_cv_lib_z_deflateInit2_=no
15194 fi
15195 rm -f core conftest.err conftest.$ac_objext \
15196     conftest$ac_exeext conftest.$ac_ext
15197 LIBS=$ac_check_lib_save_LIBS
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15200 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15201 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15202
15203        ZLIBS="-lz"
15204
15205 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15206
15207
15208 else
15209   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15210 fi
15211
15212 else
15213   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15214 fi
15215
15216
15217 fi
15218
15219
15220 #
15221 # Check whether we can support bzip2
15222 #
15223 if test "$use_bzip2" = yes ; then
15224   _cppflags="${CPPFLAGS}"
15225   _ldflags="${LDFLAGS}"
15226
15227 # Check whether --with-bzip2 was given.
15228 if test "${with_bzip2+set}" = set; then :
15229   withval=$with_bzip2;
15230       if test -d "$withval" ; then
15231         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15232         LDFLAGS="${LDFLAGS} -L$withval/lib"
15233       fi
15234
15235 else
15236   withval=""
15237 fi
15238
15239
15240   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15241   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15242   # woefully out of date.
15243   if test "$withval" != no ; then
15244      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15245 "
15246 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15248 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15249 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15250   $as_echo_n "(cached) " >&6
15251 else
15252   ac_check_lib_save_LIBS=$LIBS
15253 LIBS="-lbz2  $LIBS"
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h.  */
15256
15257 /* Override any GCC internal prototype to avoid an error.
15258    Use char because int might match the return type of a GCC
15259    builtin and then its argument prototype would still apply.  */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char BZ2_bzCompressInit ();
15264 int
15265 main ()
15266 {
15267 return BZ2_bzCompressInit ();
15268   ;
15269   return 0;
15270 }
15271 _ACEOF
15272 if ac_fn_c_try_link "$LINENO"; then :
15273   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15274 else
15275   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15276 fi
15277 rm -f core conftest.err conftest.$ac_objext \
15278     conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15282 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15283 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15284
15285           have_bz2=yes
15286           ZLIBS="$ZLIBS -lbz2"
15287
15288 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15289
15290
15291 else
15292   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15293 fi
15294
15295 else
15296   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15297 fi
15298
15299
15300   fi
15301 fi
15302  if test x"$have_bz2" = "xyes"; then
15303   ENABLE_BZIP2_SUPPORT_TRUE=
15304   ENABLE_BZIP2_SUPPORT_FALSE='#'
15305 else
15306   ENABLE_BZIP2_SUPPORT_TRUE='#'
15307   ENABLE_BZIP2_SUPPORT_FALSE=
15308 fi
15309
15310
15311
15312
15313 # Check for readline support
15314
15315
15316 # Check whether --with-readline was given.
15317 if test "${with_readline+set}" = set; then :
15318   withval=$with_readline; _do_readline=$withval
15319 else
15320   _do_readline=yes
15321 fi
15322
15323
15324   gnupg_cv_have_readline=no
15325   if test "$_do_readline" != "no" ; then
15326      if test -d "$withval" ; then
15327         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15328         LDFLAGS="${LDFLAGS} -L$withval/lib"
15329      fi
15330
15331      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15332         _readline_save_libs=$LIBS
15333         _combo="-lreadline${_termcap:+ $_termcap}"
15334         LIBS="$LIBS $_combo"
15335
15336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15337 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15338
15339         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h.  */
15341
15342 #include <stdio.h>
15343 #include <readline/readline.h>
15344 #include <readline/history.h>
15345
15346 int
15347 main ()
15348 {
15349
15350 rl_completion_func_t *completer;
15351 add_history("foobar");
15352 rl_catch_signals=0;
15353 rl_inhibit_completion=0;
15354 rl_attempted_completion_function=NULL;
15355 rl_completion_matches(NULL,NULL);
15356
15357   ;
15358   return 0;
15359 }
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362   _found_readline=yes
15363 else
15364   _found_readline=no
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext \
15367     conftest$ac_exeext conftest.$ac_ext
15368
15369         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15370 $as_echo "$_found_readline" >&6; }
15371
15372         LIBS=$_readline_save_libs
15373
15374         if test $_found_readline = yes ; then
15375
15376 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15377
15378            LIBREADLINE=$_combo
15379
15380            gnupg_cv_have_readline=yes
15381            break
15382         fi
15383      done
15384
15385      unset _termcap
15386      unset _readline_save_libs
15387      unset _combo
15388      unset _found_readline
15389   fi
15390
15391
15392
15393 if test "$development_version" = yes; then
15394
15395 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15396
15397 fi
15398
15399 if test "$USE_MAINTAINER_MODE" = "yes"; then
15400
15401 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15402
15403 fi
15404
15405  if test x$cross_compiling = xyes; then
15406   CROSS_COMPILING_TRUE=
15407   CROSS_COMPILING_FALSE='#'
15408 else
15409   CROSS_COMPILING_TRUE='#'
15410   CROSS_COMPILING_FALSE=
15411 fi
15412
15413
15414
15415     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15416         :
15417     else
15418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15419 ***
15420 *** It seems that you are not using GNU make.  Some make tools have serious
15421 *** flaws and you may not be able to build this software at all. Before you
15422 *** complain, please try GNU make:  GNU make is easy to build and available
15423 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15424 ***" >&5
15425 $as_echo "$as_me: WARNING:
15426 ***
15427 *** It seems that you are not using GNU make.  Some make tools have serious
15428 *** flaws and you may not be able to build this software at all. Before you
15429 *** complain, please try GNU make:  GNU make is easy to build and available
15430 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15431 ***" >&2;}
15432     fi
15433
15434
15435 # Add some extra libs here so that previous tests don't fail for
15436 # mysterious reasons - the final link step should bail out.
15437 # W32SOCKLIBS is also defined so that if can be used for tools not
15438 # requiring any network stuff but linking to code in libcommon which
15439 # tracks in winsock stuff (e.g. init_common_subsystems).
15440 if test "$have_w32_system" = yes; then
15441    if test "$have_w32ce_system" = yes; then
15442      W32SOCKLIBS="-lws2"
15443    else
15444      W32SOCKLIBS="-lws2_32"
15445    fi
15446    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15447 fi
15448
15449
15450
15451
15452 #
15453 # TPM libtss library .. don't compile TPM support if we don't have it
15454 #
15455
15456 # Check whether --with-tss was given.
15457 if test "${with_tss+set}" = set; then :
15458   withval=$with_tss; with_tss=$withval
15459 else
15460   with_tss=autodetect
15461 fi
15462
15463 LIBTSS_LIBS=
15464 LIBTSS_CFLAGS=
15465 if test "$build_tpm2d" = "yes"; then
15466   _save_libs="$LIBS"
15467   _save_cflags="$CFLAGS"
15468   LIBS=""
15469   if test "$with_tss" = autodetect; then
15470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15471 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15472 if ${ac_cv_search_TSS_Create+:} false; then :
15473   $as_echo_n "(cached) " >&6
15474 else
15475   ac_func_search_save_LIBS=$LIBS
15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15477 /* end confdefs.h.  */
15478
15479 /* Override any GCC internal prototype to avoid an error.
15480    Use char because int might match the return type of a GCC
15481    builtin and then its argument prototype would still apply.  */
15482 #ifdef __cplusplus
15483 extern "C"
15484 #endif
15485 char TSS_Create ();
15486 int
15487 main ()
15488 {
15489 return TSS_Create ();
15490   ;
15491   return 0;
15492 }
15493 _ACEOF
15494 for ac_lib in '' tss ibmtss; do
15495   if test -z "$ac_lib"; then
15496     ac_res="none required"
15497   else
15498     ac_res=-l$ac_lib
15499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15500   fi
15501   if ac_fn_c_try_link "$LINENO"; then :
15502   ac_cv_search_TSS_Create=$ac_res
15503 fi
15504 rm -f core conftest.err conftest.$ac_objext \
15505     conftest$ac_exeext
15506   if ${ac_cv_search_TSS_Create+:} false; then :
15507   break
15508 fi
15509 done
15510 if ${ac_cv_search_TSS_Create+:} false; then :
15511
15512 else
15513   ac_cv_search_TSS_Create=no
15514 fi
15515 rm conftest.$ac_ext
15516 LIBS=$ac_func_search_save_LIBS
15517 fi
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15519 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15520 ac_res=$ac_cv_search_TSS_Create
15521 if test "$ac_res" != no; then :
15522   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15523   have_libtss=IBM
15524 else
15525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15526 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15527 if ${ac_cv_search_Esys_Initialize+:} false; then :
15528   $as_echo_n "(cached) " >&6
15529 else
15530   ac_func_search_save_LIBS=$LIBS
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h.  */
15533
15534 /* Override any GCC internal prototype to avoid an error.
15535    Use char because int might match the return type of a GCC
15536    builtin and then its argument prototype would still apply.  */
15537 #ifdef __cplusplus
15538 extern "C"
15539 #endif
15540 char Esys_Initialize ();
15541 int
15542 main ()
15543 {
15544 return Esys_Initialize ();
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 for ac_lib in '' tss2-esys; do
15550   if test -z "$ac_lib"; then
15551     ac_res="none required"
15552   else
15553     ac_res=-l$ac_lib
15554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15555   fi
15556   if ac_fn_c_try_link "$LINENO"; then :
15557   ac_cv_search_Esys_Initialize=$ac_res
15558 fi
15559 rm -f core conftest.err conftest.$ac_objext \
15560     conftest$ac_exeext
15561   if ${ac_cv_search_Esys_Initialize+:} false; then :
15562   break
15563 fi
15564 done
15565 if ${ac_cv_search_Esys_Initialize+:} false; then :
15566
15567 else
15568   ac_cv_search_Esys_Initialize=no
15569 fi
15570 rm conftest.$ac_ext
15571 LIBS=$ac_func_search_save_LIBS
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15574 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15575 ac_res=$ac_cv_search_Esys_Initialize
15576 if test "$ac_res" != no; then :
15577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15578   have_libtss=Intel
15579 else
15580   have_libtss=no
15581 fi
15582
15583 fi
15584
15585   elif test "$with_tss" = ibm; then
15586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15587 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15588 if ${ac_cv_search_TSS_Create+:} false; then :
15589   $as_echo_n "(cached) " >&6
15590 else
15591   ac_func_search_save_LIBS=$LIBS
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h.  */
15594
15595 /* Override any GCC internal prototype to avoid an error.
15596    Use char because int might match the return type of a GCC
15597    builtin and then its argument prototype would still apply.  */
15598 #ifdef __cplusplus
15599 extern "C"
15600 #endif
15601 char TSS_Create ();
15602 int
15603 main ()
15604 {
15605 return TSS_Create ();
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 for ac_lib in '' tss ibmtss; do
15611   if test -z "$ac_lib"; then
15612     ac_res="none required"
15613   else
15614     ac_res=-l$ac_lib
15615     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15616   fi
15617   if ac_fn_c_try_link "$LINENO"; then :
15618   ac_cv_search_TSS_Create=$ac_res
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext \
15621     conftest$ac_exeext
15622   if ${ac_cv_search_TSS_Create+:} false; then :
15623   break
15624 fi
15625 done
15626 if ${ac_cv_search_TSS_Create+:} false; then :
15627
15628 else
15629   ac_cv_search_TSS_Create=no
15630 fi
15631 rm conftest.$ac_ext
15632 LIBS=$ac_func_search_save_LIBS
15633 fi
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15635 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15636 ac_res=$ac_cv_search_TSS_Create
15637 if test "$ac_res" != no; then :
15638   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15639   have_libtss=IBM
15640 else
15641   as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15642 fi
15643
15644   elif test "$with_tss" = intel; then
15645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15646 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15647 if ${ac_cv_search_Esys_Initialize+:} false; then :
15648   $as_echo_n "(cached) " >&6
15649 else
15650   ac_func_search_save_LIBS=$LIBS
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h.  */
15653
15654 /* Override any GCC internal prototype to avoid an error.
15655    Use char because int might match the return type of a GCC
15656    builtin and then its argument prototype would still apply.  */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 char Esys_Initialize ();
15661 int
15662 main ()
15663 {
15664 return Esys_Initialize ();
15665   ;
15666   return 0;
15667 }
15668 _ACEOF
15669 for ac_lib in '' tss2-esys; do
15670   if test -z "$ac_lib"; then
15671     ac_res="none required"
15672   else
15673     ac_res=-l$ac_lib
15674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15675   fi
15676   if ac_fn_c_try_link "$LINENO"; then :
15677   ac_cv_search_Esys_Initialize=$ac_res
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext \
15680     conftest$ac_exeext
15681   if ${ac_cv_search_Esys_Initialize+:} false; then :
15682   break
15683 fi
15684 done
15685 if ${ac_cv_search_Esys_Initialize+:} false; then :
15686
15687 else
15688   ac_cv_search_Esys_Initialize=no
15689 fi
15690 rm conftest.$ac_ext
15691 LIBS=$ac_func_search_save_LIBS
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15694 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15695 ac_res=$ac_cv_search_Esys_Initialize
15696 if test "$ac_res" != no; then :
15697   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15698   have_libtss=Intel
15699 else
15700   as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15701 fi
15702
15703   else
15704     as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15705   fi
15706
15707   if test "$have_libtss" = IBM; then
15708     LIBTSS_CFLAGS="-DTPM_POSIX"
15709     CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15710     ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15711 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15712
15713 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15714
15715 else
15716
15717       ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15718 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15719
15720 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15721
15722 else
15723
15724         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15725 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15726         have_libtss=no
15727
15728 fi
15729
15730
15731
15732 fi
15733
15734
15735     LIBTSS_LIBS=$LIBS
15736
15737   elif test "$have_libtss" = Intel; then
15738     ##
15739     # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15740     # until version 2.4.0.
15741     #
15742     # Note: the missing API is fairly serious and is also easily backportable
15743     # so keep the check below as is intead of going by library version number.
15744     ##
15745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15746 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15747 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15748   $as_echo_n "(cached) " >&6
15749 else
15750   ac_check_lib_save_LIBS=$LIBS
15751 LIBS="-ltss2-esys  $LIBS"
15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h.  */
15754
15755 /* Override any GCC internal prototype to avoid an error.
15756    Use char because int might match the return type of a GCC
15757    builtin and then its argument prototype would still apply.  */
15758 #ifdef __cplusplus
15759 extern "C"
15760 #endif
15761 char Esys_TR_GetTpmHandle ();
15762 int
15763 main ()
15764 {
15765 return Esys_TR_GetTpmHandle ();
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 if ac_fn_c_try_link "$LINENO"; then :
15771   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15772 else
15773   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15774 fi
15775 rm -f core conftest.err conftest.$ac_objext \
15776     conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15778 fi
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15780 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15781 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15782   cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBTSS2_ESYS 1
15784 _ACEOF
15785
15786   LIBS="-ltss2-esys $LIBS"
15787
15788 else
15789
15790         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&5
15791 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15792         have_libtss=no
15793
15794 fi
15795
15796     LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15797
15798 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15799
15800   fi
15801   LIBS="$_save_libs"
15802   CFLAGS="$_save_cflags"
15803   if test "$have_libtss" != no; then
15804
15805 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15806
15807     # look for a TPM emulator for testing
15808     # Extract the first word of "tpm_server", so it can be a program name with args.
15809 set dummy tpm_server; ac_word=$2
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811 $as_echo_n "checking for $ac_word... " >&6; }
15812 if ${ac_cv_path_TPMSERVER+:} false; then :
15813   $as_echo_n "(cached) " >&6
15814 else
15815   case $TPMSERVER in
15816   [\\/]* | ?:[\\/]*)
15817   ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15818   ;;
15819   *)
15820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15822 for as_dir in $as_dummy
15823 do
15824   IFS=$as_save_IFS
15825   test -z "$as_dir" && as_dir=.
15826     for ac_exec_ext in '' $ac_executable_extensions; do
15827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828     ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15830     break 2
15831   fi
15832 done
15833   done
15834 IFS=$as_save_IFS
15835
15836   ;;
15837 esac
15838 fi
15839 TPMSERVER=$ac_cv_path_TPMSERVER
15840 if test -n "$TPMSERVER"; then
15841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15842 $as_echo "$TPMSERVER" >&6; }
15843 else
15844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15845 $as_echo "no" >&6; }
15846 fi
15847
15848
15849     # Extract the first word of "swtpm", so it can be a program name with args.
15850 set dummy swtpm; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15852 $as_echo_n "checking for $ac_word... " >&6; }
15853 if ${ac_cv_path_SWTPM+:} false; then :
15854   $as_echo_n "(cached) " >&6
15855 else
15856   case $SWTPM in
15857   [\\/]* | ?:[\\/]*)
15858   ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15859   ;;
15860   *)
15861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15862 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15863 for as_dir in $as_dummy
15864 do
15865   IFS=$as_save_IFS
15866   test -z "$as_dir" && as_dir=.
15867     for ac_exec_ext in '' $ac_executable_extensions; do
15868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869     ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15871     break 2
15872   fi
15873 done
15874   done
15875 IFS=$as_save_IFS
15876
15877   ;;
15878 esac
15879 fi
15880 SWTPM=$ac_cv_path_SWTPM
15881 if test -n "$SWTPM"; then
15882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15883 $as_echo "$SWTPM" >&6; }
15884 else
15885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 $as_echo "no" >&6; }
15887 fi
15888
15889
15890     # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15891 set dummy swtpm_ioctl; ac_word=$2
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15893 $as_echo_n "checking for $ac_word... " >&6; }
15894 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15895   $as_echo_n "(cached) " >&6
15896 else
15897   case $SWTPM_IOCTL in
15898   [\\/]* | ?:[\\/]*)
15899   ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15900   ;;
15901   *)
15902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15903 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15904 for as_dir in $as_dummy
15905 do
15906   IFS=$as_save_IFS
15907   test -z "$as_dir" && as_dir=.
15908     for ac_exec_ext in '' $ac_executable_extensions; do
15909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15910     ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15912     break 2
15913   fi
15914 done
15915   done
15916 IFS=$as_save_IFS
15917
15918   ;;
15919 esac
15920 fi
15921 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15922 if test -n "$SWTPM_IOCTL"; then
15923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15924 $as_echo "$SWTPM_IOCTL" >&6; }
15925 else
15926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927 $as_echo "no" >&6; }
15928 fi
15929
15930
15931     # Extract the first word of "tssstartup", so it can be a program name with args.
15932 set dummy tssstartup; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15934 $as_echo_n "checking for $ac_word... " >&6; }
15935 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15936   $as_echo_n "(cached) " >&6
15937 else
15938   case $TSSSTARTUP in
15939   [\\/]* | ?:[\\/]*)
15940   ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15941   ;;
15942   *)
15943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15945 for as_dir in $as_dummy
15946 do
15947   IFS=$as_save_IFS
15948   test -z "$as_dir" && as_dir=.
15949     for ac_exec_ext in '' $ac_executable_extensions; do
15950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15951     ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15953     break 2
15954   fi
15955 done
15956   done
15957 IFS=$as_save_IFS
15958
15959   ;;
15960 esac
15961 fi
15962 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15963 if test -n "$TSSSTARTUP"; then
15964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15965 $as_echo "$TSSSTARTUP" >&6; }
15966 else
15967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15969 fi
15970
15971
15972   fi
15973 fi
15974 if test "$have_libtss" = no; then
15975   build_tpm2d=no
15976 fi
15977
15978
15979  if test "$have_libtss" != no; then
15980   HAVE_LIBTSS_TRUE=
15981   HAVE_LIBTSS_FALSE='#'
15982 else
15983   HAVE_LIBTSS_TRUE='#'
15984   HAVE_LIBTSS_FALSE=
15985 fi
15986
15987  if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
15988   TEST_LIBTSS_TRUE=
15989   TEST_LIBTSS_FALSE='#'
15990 else
15991   TEST_LIBTSS_TRUE='#'
15992   TEST_LIBTSS_FALSE=
15993 fi
15994
15995
15996
15997 #
15998 # Setup gcc specific options
15999 #
16000 USE_C99_CFLAGS=
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
16002 $as_echo "$as_me: checking for cc features" >&6;}
16003 if test "$GCC" = yes; then
16004     mycflags=
16005     mycflags_save=$CFLAGS
16006
16007     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
16008     # options.  This is the case for gcc >= 4.6
16009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
16010 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
16011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h.  */
16013
16014 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
16015 #kickerror
16016 #endif
16017 int
16018 main ()
16019 {
16020
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_compile "$LINENO"; then :
16026   _gcc_silent_wno=yes
16027 else
16028   _gcc_silent_wno=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
16032 $as_echo "$_gcc_silent_wno" >&6; }
16033
16034     # Note that it is okay to use CFLAGS here because these are just
16035     # warning options and the user should have a chance of overriding
16036     # them.
16037     if test "$USE_MAINTAINER_MODE" = "yes"; then
16038         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
16039         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
16040         if test x"$_gcc_silent_wno" = xyes ; then
16041           _gcc_wopt=yes
16042         else
16043           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
16044 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
16045           CFLAGS="-Wno-missing-field-initializers"
16046           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h.  */
16048
16049 int
16050 main ()
16051 {
16052
16053   ;
16054   return 0;
16055 }
16056 _ACEOF
16057 if ac_fn_c_try_compile "$LINENO"; then :
16058   _gcc_wopt=yes
16059 else
16060   _gcc_wopt=no
16061 fi
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16064 $as_echo "$_gcc_wopt" >&6; }
16065         fi
16066         if test x"$_gcc_wopt" = xyes ; then
16067           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
16068           mycflags="$mycflags -Wno-missing-field-initializers"
16069         fi
16070
16071         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
16072 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
16073         CFLAGS="-Wdeclaration-after-statement"
16074         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h.  */
16076
16077 int
16078 main ()
16079 {
16080
16081   ;
16082   return 0;
16083 }
16084 _ACEOF
16085 if ac_fn_c_try_compile "$LINENO"; then :
16086   _gcc_wopt=yes
16087 else
16088   _gcc_wopt=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16092 $as_echo "$_gcc_wopt" >&6; }
16093         if test x"$_gcc_wopt" = xyes ; then
16094           mycflags="$mycflags -Wdeclaration-after-statement"
16095         fi
16096
16097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
16098 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
16099         CFLAGS="-Wlogical-op -Werror"
16100         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h.  */
16102
16103 int
16104 main ()
16105 {
16106
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 if ac_fn_c_try_compile "$LINENO"; then :
16112   _gcc_wopt=yes
16113 else
16114   _gcc_wopt=no
16115 fi
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16118 $as_echo "$_gcc_wopt" >&6; }
16119         if test x"$_gcc_wopt" = xyes ; then
16120           mycflags="$mycflags -Wlogical-op"
16121         fi
16122
16123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16124 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16125         CFLAGS="-Wvla"
16126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h.  */
16128
16129 int
16130 main ()
16131 {
16132
16133   ;
16134   return 0;
16135 }
16136 _ACEOF
16137 if ac_fn_c_try_compile "$LINENO"; then :
16138   _gcc_wopt=yes
16139 else
16140   _gcc_wopt=no
16141 fi
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16144 $as_echo "$_gcc_wopt" >&6; }
16145         if test x"$_gcc_wopt" = xyes ; then
16146           mycflags="$mycflags -Wvla"
16147         fi
16148
16149     else
16150         mycflags="$mycflags -Wall"
16151         if test x"$_gcc_silent_wno" = xyes ; then
16152           mycflags="$mycflags -Wno-format-zero-length"
16153         fi
16154     fi
16155
16156     if test x"$_gcc_silent_wno" = xyes ; then
16157       _gcc_psign=yes
16158     else
16159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16160 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16161       CFLAGS="-Wno-pointer-sign"
16162       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163 /* end confdefs.h.  */
16164
16165 int
16166 main ()
16167 {
16168
16169   ;
16170   return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_compile "$LINENO"; then :
16174   _gcc_psign=yes
16175 else
16176   _gcc_psign=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16180 $as_echo "$_gcc_psign" >&6; }
16181     fi
16182     if test x"$_gcc_psign" = xyes ; then
16183        mycflags="$mycflags -Wno-pointer-sign"
16184     fi
16185
16186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16187 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16188     CFLAGS="-Wpointer-arith"
16189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h.  */
16191
16192 int
16193 main ()
16194 {
16195
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 if ac_fn_c_try_compile "$LINENO"; then :
16201   _gcc_psign=yes
16202 else
16203   _gcc_psign=no
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16207 $as_echo "$_gcc_psign" >&6; }
16208     if test x"$_gcc_psign" = xyes ; then
16209        mycflags="$mycflags -Wpointer-arith"
16210     fi
16211
16212     CFLAGS="$mycflags $mycflags_save"
16213     if test "$use_libdns" = yes; then
16214        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
16215        USE_C99_CFLAGS="-std=gnu99"
16216     fi
16217 fi
16218
16219
16220
16221
16222 #
16223 # This is handy for debugging so the compiler doesn't rearrange
16224 # things and eliminate variables.
16225 #
16226 # Check whether --enable-optimization was given.
16227 if test "${enable_optimization+set}" = set; then :
16228   enableval=$enable_optimization; if test $enableval = no ; then
16229                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16230                    fi
16231 fi
16232
16233
16234 #
16235 # log_debug has certain requirements which might hamper portability.
16236 # Thus we use an option to enable it.
16237 #
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16239 $as_echo_n "checking whether to enable log_clock... " >&6; }
16240 # Check whether --enable-log_clock was given.
16241 if test "${enable_log_clock+set}" = set; then :
16242   enableval=$enable_log_clock; enable_log_clock=$enableval
16243 else
16244   enable_log_clock=no
16245 fi
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16248 $as_echo "$enable_log_clock" >&6; }
16249 if test "$enable_log_clock" = yes ; then
16250
16251 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16252
16253 fi
16254
16255 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
16256 # misbehaving autoconf tests in case the user supplied -Werror.
16257 #
16258 # Check whether --enable-werror was given.
16259 if test "${enable_werror+set}" = set; then :
16260   enableval=$enable_werror; if test $enableval = yes ; then
16261                       CFLAGS="$CFLAGS -Werror"
16262                    fi
16263 fi
16264
16265
16266 #
16267 # Configure option --enable-all-tests
16268 #
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16270 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16271 # Check whether --enable-all-tests was given.
16272 if test "${enable_all_tests+set}" = set; then :
16273   enableval=$enable_all_tests; run_all_tests=$enableval
16274 else
16275   run_all_tests=no
16276 fi
16277
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16279 $as_echo "$run_all_tests" >&6; }
16280 if test "$run_all_tests" = "yes"; then
16281
16282 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16283
16284 fi
16285
16286 #
16287 # Configure option --disable-tests
16288 #
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16290 $as_echo_n "checking whether tests should be run... " >&6; }
16291 # Check whether --enable-tests was given.
16292 if test "${enable_tests+set}" = set; then :
16293   enableval=$enable_tests; run_tests=$enableval
16294 else
16295   run_tests=yes
16296 fi
16297
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16299 $as_echo "$run_tests" >&6; }
16300
16301 #
16302 # We do not want support for the GNUPG_BUILDDIR environment variable
16303 # in a released version.  However, our regression tests suite requires
16304 # this and thus we build with support for it during "make distcheck".
16305 # This configure option implements this along with the top Makefile's
16306 # AM_DISTCHECK_CONFIGURE_FLAGS.
16307 #
16308 gnupg_builddir_envvar=no
16309 # Check whether --enable-gnupg-builddir-envvar was given.
16310 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16311   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16312 fi
16313
16314 if test x"$gnupg_builddir_envvar" = x"yes"; then
16315
16316 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16317
16318 fi
16319
16320
16321 #
16322 # To avoid problems with systemd cleaning up the /run/user directory,
16323 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16324 # before /run/user
16325 #
16326 # Check whether --enable-run-gnupg-user-socket was given.
16327 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16328   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16329 fi
16330
16331 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16332
16333 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16334
16335 fi
16336
16337
16338 #
16339 # Decide what to build
16340 #
16341
16342 build_scdaemon_extra=""
16343 if test "$build_scdaemon" = "yes"; then
16344   if test $have_libusb = no; then
16345      build_scdaemon_extra="without internal CCID driver"
16346   fi
16347   if test -n "$build_scdaemon_extra"; then
16348      build_scdaemon_extra="(${build_scdaemon_extra})"
16349   fi
16350 fi
16351
16352
16353 #
16354 # Set variables for use by automake makefiles.
16355 #
16356  if test "$build_gpg" = "yes"; then
16357   BUILD_GPG_TRUE=
16358   BUILD_GPG_FALSE='#'
16359 else
16360   BUILD_GPG_TRUE='#'
16361   BUILD_GPG_FALSE=
16362 fi
16363
16364  if test "$build_gpgsm" = "yes"; then
16365   BUILD_GPGSM_TRUE=
16366   BUILD_GPGSM_FALSE='#'
16367 else
16368   BUILD_GPGSM_TRUE='#'
16369   BUILD_GPGSM_FALSE=
16370 fi
16371
16372  if test "$build_agent" = "yes"; then
16373   BUILD_AGENT_TRUE=
16374   BUILD_AGENT_FALSE='#'
16375 else
16376   BUILD_AGENT_TRUE='#'
16377   BUILD_AGENT_FALSE=
16378 fi
16379
16380  if test "$build_scdaemon" = "yes"; then
16381   BUILD_SCDAEMON_TRUE=
16382   BUILD_SCDAEMON_FALSE='#'
16383 else
16384   BUILD_SCDAEMON_TRUE='#'
16385   BUILD_SCDAEMON_FALSE=
16386 fi
16387
16388  if test "$build_g13" = "yes"; then
16389   BUILD_G13_TRUE=
16390   BUILD_G13_FALSE='#'
16391 else
16392   BUILD_G13_TRUE='#'
16393   BUILD_G13_FALSE=
16394 fi
16395
16396  if test "$build_dirmngr" = "yes"; then
16397   BUILD_DIRMNGR_TRUE=
16398   BUILD_DIRMNGR_FALSE='#'
16399 else
16400   BUILD_DIRMNGR_TRUE='#'
16401   BUILD_DIRMNGR_FALSE=
16402 fi
16403
16404  if test "$build_keyboxd" = "yes"; then
16405   BUILD_KEYBOXD_TRUE=
16406   BUILD_KEYBOXD_FALSE='#'
16407 else
16408   BUILD_KEYBOXD_TRUE='#'
16409   BUILD_KEYBOXD_FALSE=
16410 fi
16411
16412  if test "$build_tpm2d" = "yes"; then
16413   BUILD_TPM2D_TRUE=
16414   BUILD_TPM2D_FALSE='#'
16415 else
16416   BUILD_TPM2D_TRUE='#'
16417   BUILD_TPM2D_FALSE=
16418 fi
16419
16420  if test "$build_doc" = "yes"; then
16421   BUILD_DOC_TRUE=
16422   BUILD_DOC_FALSE='#'
16423 else
16424   BUILD_DOC_TRUE='#'
16425   BUILD_DOC_FALSE=
16426 fi
16427
16428  if test "$build_gpgtar" = "yes"; then
16429   BUILD_GPGTAR_TRUE=
16430   BUILD_GPGTAR_FALSE='#'
16431 else
16432   BUILD_GPGTAR_TRUE='#'
16433   BUILD_GPGTAR_FALSE=
16434 fi
16435
16436  if test "$build_wks_tools" = "yes"; then
16437   BUILD_WKS_TOOLS_TRUE=
16438   BUILD_WKS_TOOLS_FALSE='#'
16439 else
16440   BUILD_WKS_TOOLS_TRUE='#'
16441   BUILD_WKS_TOOLS_FALSE=
16442 fi
16443
16444
16445  if test "$run_tests" != yes; then
16446   DISABLE_TESTS_TRUE=
16447   DISABLE_TESTS_FALSE='#'
16448 else
16449   DISABLE_TESTS_TRUE='#'
16450   DISABLE_TESTS_FALSE=
16451 fi
16452
16453  if test "$card_support" = yes; then
16454   ENABLE_CARD_SUPPORT_TRUE=
16455   ENABLE_CARD_SUPPORT_FALSE='#'
16456 else
16457   ENABLE_CARD_SUPPORT_TRUE='#'
16458   ENABLE_CARD_SUPPORT_FALSE=
16459 fi
16460
16461  if test "$use_trust_models" = no; then
16462   NO_TRUST_MODELS_TRUE=
16463   NO_TRUST_MODELS_FALSE='#'
16464 else
16465   NO_TRUST_MODELS_TRUE='#'
16466   NO_TRUST_MODELS_FALSE=
16467 fi
16468
16469  if test "$use_tofu" = yes; then
16470   USE_TOFU_TRUE=
16471   USE_TOFU_FALSE='#'
16472 else
16473   USE_TOFU_TRUE='#'
16474   USE_TOFU_FALSE=
16475 fi
16476
16477
16478 #
16479 # Set some defines for use gpgconf.
16480 #
16481 if test "$build_gpg" = yes ; then
16482
16483 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16484
16485 fi
16486 if test "$build_gpgsm" = yes ; then
16487
16488 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16489
16490 fi
16491 if test "$build_agent" = yes ; then
16492
16493 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16494
16495 fi
16496 if test "$build_scdaemon" = yes ; then
16497
16498 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16499
16500 fi
16501 if test "$build_dirmngr" = yes ; then
16502
16503 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16504
16505 fi
16506 if test "$build_keyboxd" = yes ; then
16507
16508 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16509
16510 fi
16511 if test "$build_tpm2d" = yes ; then
16512
16513 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16514
16515 fi
16516 if test "$build_g13" = yes ; then
16517
16518 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16519
16520 fi
16521
16522
16523 #
16524 # Define Name strings
16525 #
16526
16527 cat >>confdefs.h <<_ACEOF
16528 #define GNUPG_NAME "GnuPG"
16529 _ACEOF
16530
16531
16532
16533 cat >>confdefs.h <<_ACEOF
16534 #define GPG_NAME "gpg"
16535 _ACEOF
16536
16537
16538 cat >>confdefs.h <<_ACEOF
16539 #define GPG_DISP_NAME "GnuPG"
16540 _ACEOF
16541
16542
16543
16544 cat >>confdefs.h <<_ACEOF
16545 #define GPGSM_NAME "gpgsm"
16546 _ACEOF
16547
16548
16549 cat >>confdefs.h <<_ACEOF
16550 #define GPGSM_DISP_NAME "GPGSM"
16551 _ACEOF
16552
16553
16554
16555 cat >>confdefs.h <<_ACEOF
16556 #define GPG_AGENT_NAME "gpg-agent"
16557 _ACEOF
16558
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define GPG_AGENT_DISP_NAME "GPG Agent"
16562 _ACEOF
16563
16564
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define TPM2DAEMON_NAME "tpm2daemon"
16568 _ACEOF
16569
16570
16571 cat >>confdefs.h <<_ACEOF
16572 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16573 _ACEOF
16574
16575
16576
16577 cat >>confdefs.h <<_ACEOF
16578 #define SCDAEMON_NAME "scdaemon"
16579 _ACEOF
16580
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define SCDAEMON_DISP_NAME "SCDaemon"
16584 _ACEOF
16585
16586
16587
16588 cat >>confdefs.h <<_ACEOF
16589 #define DIRMNGR_NAME "dirmngr"
16590 _ACEOF
16591
16592
16593 cat >>confdefs.h <<_ACEOF
16594 #define DIRMNGR_DISP_NAME "DirMngr"
16595 _ACEOF
16596
16597
16598
16599 cat >>confdefs.h <<_ACEOF
16600 #define KEYBOXD_NAME "keyboxd"
16601 _ACEOF
16602
16603
16604 cat >>confdefs.h <<_ACEOF
16605 #define KEYBOXD_DISP_NAME "Keyboxd"
16606 _ACEOF
16607
16608
16609
16610 cat >>confdefs.h <<_ACEOF
16611 #define G13_NAME "g13"
16612 _ACEOF
16613
16614
16615 cat >>confdefs.h <<_ACEOF
16616 #define G13_DISP_NAME "G13"
16617 _ACEOF
16618
16619
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define GPGCONF_NAME "gpgconf"
16623 _ACEOF
16624
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define GPGCONF_DISP_NAME "GPGConf"
16628 _ACEOF
16629
16630
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define GPGTAR_NAME "gpgtar"
16634 _ACEOF
16635
16636
16637
16638 cat >>confdefs.h <<_ACEOF
16639 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16640 _ACEOF
16641
16642
16643 cat >>confdefs.h <<_ACEOF
16644 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16645 _ACEOF
16646
16647
16648 cat >>confdefs.h <<_ACEOF
16649 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16650 _ACEOF
16651
16652
16653 cat >>confdefs.h <<_ACEOF
16654 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16655 _ACEOF
16656
16657
16658 cat >>confdefs.h <<_ACEOF
16659 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16660 _ACEOF
16661
16662
16663 cat >>confdefs.h <<_ACEOF
16664 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16665 _ACEOF
16666
16667
16668 cat >>confdefs.h <<_ACEOF
16669 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16670 _ACEOF
16671
16672
16673 cat >>confdefs.h <<_ACEOF
16674 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16675 _ACEOF
16676
16677
16678 cat >>confdefs.h <<_ACEOF
16679 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16680 _ACEOF
16681
16682
16683 cat >>confdefs.h <<_ACEOF
16684 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://keyserver.ubuntu.com"
16685 _ACEOF
16686
16687
16688
16689 cat >>confdefs.h <<_ACEOF
16690 #define GPGEXT_GPG "gpg"
16691 _ACEOF
16692
16693
16694 if test "$have_w32_system" = yes; then
16695
16696 cat >>confdefs.h <<_ACEOF
16697 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16698 _ACEOF
16699
16700 fi
16701
16702
16703 #
16704 # Provide information about the build.
16705 #
16706 BUILD_REVISION="9470d0338"
16707
16708
16709 cat >>confdefs.h <<_ACEOF
16710 #define BUILD_REVISION "$BUILD_REVISION"
16711 _ACEOF
16712
16713
16714 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16715 BUILD_VERSION="${BUILD_VERSION}38000"
16716 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16717
16718
16719
16720 # Check whether --enable-build-timestamp was given.
16721 if test "${enable_build_timestamp+set}" = set; then :
16722   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16723         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16724       else
16725         BUILD_TIMESTAMP="$enableval"
16726       fi
16727       BUILD_HOSTNAME="$ac_hostname"
16728 else
16729   BUILD_TIMESTAMP="<none>"
16730       BUILD_HOSTNAME="<anon>"
16731 fi
16732
16733
16734
16735 cat >>confdefs.h <<_ACEOF
16736 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16737 _ACEOF
16738
16739
16740
16741
16742 #
16743 # Print errors here so that they are visible all
16744 # together and the user can acquire them all together.
16745 #
16746 die=no
16747 if test "$have_gpg_error" = "no"; then
16748    die=yes
16749    { $as_echo "$as_me:${as_lineno-$LINENO}:
16750 ***
16751 *** You need libgpg-error to build this program.
16752 **  This library is for example available at
16753 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16754 *** (at least version $NEED_GPGRT_VERSION is required.)
16755 ***" >&5
16756 $as_echo "$as_me:
16757 ***
16758 *** You need libgpg-error to build this program.
16759 **  This library is for example available at
16760 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16761 *** (at least version $NEED_GPGRT_VERSION is required.)
16762 ***" >&6;}
16763 fi
16764 if test "$have_libgcrypt" = "no"; then
16765    die=yes
16766    { $as_echo "$as_me:${as_lineno-$LINENO}:
16767 ***
16768 *** You need libgcrypt to build this program.
16769 **  This library is for example available at
16770 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16771 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16772 ***" >&5
16773 $as_echo "$as_me:
16774 ***
16775 *** You need libgcrypt to build this program.
16776 **  This library is for example available at
16777 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16778 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16779 ***" >&6;}
16780 fi
16781 if test "$have_libassuan" = "no"; then
16782    die=yes
16783    { $as_echo "$as_me:${as_lineno-$LINENO}:
16784 ***
16785 *** You need libassuan to build this program.
16786 *** This library is for example available at
16787 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16788 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16789 ***" >&5
16790 $as_echo "$as_me:
16791 ***
16792 *** You need libassuan to build this program.
16793 *** This library is for example available at
16794 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16795 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16796 ***" >&6;}
16797 fi
16798 if test "$have_ksba" = "no"; then
16799     die=yes
16800     { $as_echo "$as_me:${as_lineno-$LINENO}:
16801 ***
16802 *** You need libksba to build this program.
16803 *** This library is for example available at
16804 ***   https://gnupg.org/ftp/gcrypt/libksba/
16805 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16806 ***" >&5
16807 $as_echo "$as_me:
16808 ***
16809 *** You need libksba to build this program.
16810 *** This library is for example available at
16811 ***   https://gnupg.org/ftp/gcrypt/libksba/
16812 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16813 ***" >&6;}
16814 fi
16815 if test "$gnupg_have_ldap" = yes; then
16816   if test "$have_w32ce_system" = yes; then
16817     { $as_echo "$as_me:${as_lineno-$LINENO}:
16818 *** Note that CeGCC might be broken, a package fixing this is:
16819 ***    http://files.kolab.org/local/windows-ce/
16820 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16821 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16822 ***" >&5
16823 $as_echo "$as_me:
16824 *** Note that CeGCC might be broken, a package fixing this is:
16825 ***    http://files.kolab.org/local/windows-ce/
16826 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16827 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16828 ***" >&6;}
16829    fi
16830 fi
16831 if test "$have_npth" = "no"; then
16832     die=yes
16833     { $as_echo "$as_me:${as_lineno-$LINENO}:
16834 ***
16835 *** It is now required to build with support for the
16836 *** New Portable Threads Library (nPth). Please install this
16837 *** library first.  The library is for example available at
16838 ***   https://gnupg.org/ftp/gcrypt/npth/
16839 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16840 ***" >&5
16841 $as_echo "$as_me:
16842 ***
16843 *** It is now required to build with support for the
16844 *** New Portable Threads Library (nPth). Please install this
16845 *** library first.  The library is for example available at
16846 ***   https://gnupg.org/ftp/gcrypt/npth/
16847 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16848 ***" >&6;}
16849 fi
16850
16851 if test "$require_iconv" = yes; then
16852   if test "$am_func_iconv" != yes; then
16853     die=yes
16854     { $as_echo "$as_me:${as_lineno-$LINENO}:
16855 ***
16856 *** The system does not provide a working iconv function.  Please
16857 *** install a suitable library; for example GNU Libiconv which is
16858 *** available at:
16859 ***   https://ftp.gnu.org/gnu/libiconv/
16860 ***" >&5
16861 $as_echo "$as_me:
16862 ***
16863 *** The system does not provide a working iconv function.  Please
16864 *** install a suitable library; for example GNU Libiconv which is
16865 *** available at:
16866 ***   https://ftp.gnu.org/gnu/libiconv/
16867 ***" >&6;}
16868   fi
16869 fi
16870
16871 if test "$use_ccid_driver" = yes; then
16872   if test "$have_libusb" != yes; then
16873     die=yes
16874     { $as_echo "$as_me:${as_lineno-$LINENO}:
16875 ***
16876 *** You need libusb to build the internal ccid driver.  Please
16877 *** install a libusb suitable for your system.
16878 ***" >&5
16879 $as_echo "$as_me:
16880 ***
16881 *** You need libusb to build the internal ccid driver.  Please
16882 *** install a libusb suitable for your system.
16883 ***" >&6;}
16884   fi
16885 fi
16886
16887 if test "$die" = "yes"; then
16888     as_fn_error $? "
16889 ***
16890 *** Required libraries not found. Please consult the above messages
16891 *** and install them before running configure again.
16892 ***" "$LINENO" 5
16893 fi
16894
16895
16896
16897 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/cms/Makefile tests/migrations/Makefile tests/tpm2dtests/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16898
16899
16900
16901 cat >confcache <<\_ACEOF
16902 # This file is a shell script that caches the results of configure
16903 # tests run on this system so they can be shared between configure
16904 # scripts and configure runs, see configure's option --config-cache.
16905 # It is not useful on other systems.  If it contains results you don't
16906 # want to keep, you may remove or edit it.
16907 #
16908 # config.status only pays attention to the cache file if you give it
16909 # the --recheck option to rerun configure.
16910 #
16911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16913 # following values.
16914
16915 _ACEOF
16916
16917 # The following way of writing the cache mishandles newlines in values,
16918 # but we know of no workaround that is simple, portable, and efficient.
16919 # So, we kill variables containing newlines.
16920 # Ultrix sh set writes to stderr and can't be redirected directly,
16921 # and sets the high bit in the cache file unless we assign to the vars.
16922 (
16923   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16924     eval ac_val=\$$ac_var
16925     case $ac_val in #(
16926     *${as_nl}*)
16927       case $ac_var in #(
16928       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16930       esac
16931       case $ac_var in #(
16932       _ | IFS | as_nl) ;; #(
16933       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16934       *) { eval $ac_var=; unset $ac_var;} ;;
16935       esac ;;
16936     esac
16937   done
16938
16939   (set) 2>&1 |
16940     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16941     *${as_nl}ac_space=\ *)
16942       # `set' does not quote correctly, so add quotes: double-quote
16943       # substitution turns \\\\ into \\, and sed turns \\ into \.
16944       sed -n \
16945         "s/'/'\\\\''/g;
16946           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16947       ;; #(
16948     *)
16949       # `set' quotes correctly as required by POSIX, so do not add quotes.
16950       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16951       ;;
16952     esac |
16953     sort
16954 ) |
16955   sed '
16956      /^ac_cv_env_/b end
16957      t clear
16958      :clear
16959      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16960      t end
16961      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16962      :end' >>confcache
16963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16964   if test -w "$cache_file"; then
16965     if test "x$cache_file" != "x/dev/null"; then
16966       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16967 $as_echo "$as_me: updating cache $cache_file" >&6;}
16968       if test ! -f "$cache_file" || test -h "$cache_file"; then
16969         cat confcache >"$cache_file"
16970       else
16971         case $cache_file in #(
16972         */* | ?:*)
16973           mv -f confcache "$cache_file"$$ &&
16974           mv -f "$cache_file"$$ "$cache_file" ;; #(
16975         *)
16976           mv -f confcache "$cache_file" ;;
16977         esac
16978       fi
16979     fi
16980   else
16981     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16983   fi
16984 fi
16985 rm -f confcache
16986
16987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16988 # Let make expand exec_prefix.
16989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16990
16991 DEFS=-DHAVE_CONFIG_H
16992
16993 ac_libobjs=
16994 ac_ltlibobjs=
16995 U=
16996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16997   # 1. Remove the extension, and $U if already installed.
16998   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16999   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17000   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17001   #    will be set to the directory where LIBOBJS objects are built.
17002   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17003   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17004 done
17005 LIBOBJS=$ac_libobjs
17006
17007 LTLIBOBJS=$ac_ltlibobjs
17008
17009
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17011 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17012    if test -n "$am_sleep_pid"; then
17013      # Hide warnings about reused PIDs.
17014      wait $am_sleep_pid 2>/dev/null
17015    fi
17016    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17017 $as_echo "done" >&6; }
17018  if test -n "$EXEEXT"; then
17019   am__EXEEXT_TRUE=
17020   am__EXEEXT_FALSE='#'
17021 else
17022   am__EXEEXT_TRUE='#'
17023   am__EXEEXT_FALSE=
17024 fi
17025
17026 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17027   as_fn_error $? "conditional \"AMDEP\" was never defined.
17028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029 fi
17030 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17031   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17033 fi
17034 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
17035   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
17036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17037 fi
17038 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
17039   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
17040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 fi
17042 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
17043   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
17044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 fi
17046 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
17047   as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
17048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17049 fi
17050 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
17051   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
17052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17053 fi
17054 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
17055   as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
17056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17057 fi
17058 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
17059   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
17060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17061 fi
17062 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
17063   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
17064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17065 fi
17066 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
17067   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
17068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17069 fi
17070 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
17071   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
17072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17073 fi
17074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17075   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 fi
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17079 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17080    if test -n "$am_sleep_pid"; then
17081      # Hide warnings about reused PIDs.
17082      wait $am_sleep_pid 2>/dev/null
17083    fi
17084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17085 $as_echo "done" >&6; }
17086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17087   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089 fi
17090 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
17091   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
17092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093 fi
17094 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
17095   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
17096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 fi
17098 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
17099   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
17100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101 fi
17102 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
17103   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
17104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17105 fi
17106 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
17107   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
17108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17109 fi
17110 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
17111   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
17112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17113 fi
17114 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17115   as_fn_error $? "conditional \"SQLITE3\" was never defined.
17116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17117 fi
17118 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17119   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17121 fi
17122 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17123   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17125 fi
17126 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17127   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17129 fi
17130 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17131   as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17133 fi
17134 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17135   as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17137 fi
17138 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17139   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17141 fi
17142 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17143   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17145 fi
17146 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17147   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17149 fi
17150 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17151   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17153 fi
17154 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17155   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17157 fi
17158 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17159   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17161 fi
17162 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17163   as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17165 fi
17166 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17167   as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17169 fi
17170 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17171   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17173 fi
17174 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17175   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17177 fi
17178 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17179   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17181 fi
17182 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17183   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17185 fi
17186 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17187   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17189 fi
17190 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17191   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17193 fi
17194 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17195   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17197 fi
17198
17199 : "${CONFIG_STATUS=./config.status}"
17200 ac_write_fail=0
17201 ac_clean_files_save=$ac_clean_files
17202 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17204 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17205 as_write_fail=0
17206 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17207 #! $SHELL
17208 # Generated by $as_me.
17209 # Run this file to recreate the current configuration.
17210 # Compiler output produced by configure, useful for debugging
17211 # configure, is in config.log if it exists.
17212
17213 debug=false
17214 ac_cs_recheck=false
17215 ac_cs_silent=false
17216
17217 SHELL=\${CONFIG_SHELL-$SHELL}
17218 export SHELL
17219 _ASEOF
17220 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17221 ## -------------------- ##
17222 ## M4sh Initialization. ##
17223 ## -------------------- ##
17224
17225 # Be more Bourne compatible
17226 DUALCASE=1; export DUALCASE # for MKS sh
17227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17228   emulate sh
17229   NULLCMD=:
17230   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17231   # is contrary to our usage.  Disable this feature.
17232   alias -g '${1+"$@"}'='"$@"'
17233   setopt NO_GLOB_SUBST
17234 else
17235   case `(set -o) 2>/dev/null` in #(
17236   *posix*) :
17237     set -o posix ;; #(
17238   *) :
17239      ;;
17240 esac
17241 fi
17242
17243
17244 as_nl='
17245 '
17246 export as_nl
17247 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17248 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17251 # Prefer a ksh shell builtin over an external printf program on Solaris,
17252 # but without wasting forks for bash or zsh.
17253 if test -z "$BASH_VERSION$ZSH_VERSION" \
17254     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17255   as_echo='print -r --'
17256   as_echo_n='print -rn --'
17257 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17258   as_echo='printf %s\n'
17259   as_echo_n='printf %s'
17260 else
17261   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17262     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17263     as_echo_n='/usr/ucb/echo -n'
17264   else
17265     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17266     as_echo_n_body='eval
17267       arg=$1;
17268       case $arg in #(
17269       *"$as_nl"*)
17270         expr "X$arg" : "X\\(.*\\)$as_nl";
17271         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17272       esac;
17273       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17274     '
17275     export as_echo_n_body
17276     as_echo_n='sh -c $as_echo_n_body as_echo'
17277   fi
17278   export as_echo_body
17279   as_echo='sh -c $as_echo_body as_echo'
17280 fi
17281
17282 # The user is always right.
17283 if test "${PATH_SEPARATOR+set}" != set; then
17284   PATH_SEPARATOR=:
17285   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17286     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17287       PATH_SEPARATOR=';'
17288   }
17289 fi
17290
17291
17292 # IFS
17293 # We need space, tab and new line, in precisely that order.  Quoting is
17294 # there to prevent editors from complaining about space-tab.
17295 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17296 # splitting by setting IFS to empty value.)
17297 IFS=" ""        $as_nl"
17298
17299 # Find who we are.  Look in the path if we contain no directory separator.
17300 as_myself=
17301 case $0 in #((
17302   *[\\/]* ) as_myself=$0 ;;
17303   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304 for as_dir in $PATH
17305 do
17306   IFS=$as_save_IFS
17307   test -z "$as_dir" && as_dir=.
17308     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17309   done
17310 IFS=$as_save_IFS
17311
17312      ;;
17313 esac
17314 # We did not find ourselves, most probably we were run as `sh COMMAND'
17315 # in which case we are not to be found in the path.
17316 if test "x$as_myself" = x; then
17317   as_myself=$0
17318 fi
17319 if test ! -f "$as_myself"; then
17320   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17321   exit 1
17322 fi
17323
17324 # Unset variables that we do not need and which cause bugs (e.g. in
17325 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17326 # suppresses any "Segmentation fault" message there.  '((' could
17327 # trigger a bug in pdksh 5.2.14.
17328 for as_var in BASH_ENV ENV MAIL MAILPATH
17329 do eval test x\${$as_var+set} = xset \
17330   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17331 done
17332 PS1='$ '
17333 PS2='> '
17334 PS4='+ '
17335
17336 # NLS nuisances.
17337 LC_ALL=C
17338 export LC_ALL
17339 LANGUAGE=C
17340 export LANGUAGE
17341
17342 # CDPATH.
17343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17344
17345
17346 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17347 # ----------------------------------------
17348 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17349 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17350 # script with STATUS, using 1 if that was 0.
17351 as_fn_error ()
17352 {
17353   as_status=$1; test $as_status -eq 0 && as_status=1
17354   if test "$4"; then
17355     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17356     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17357   fi
17358   $as_echo "$as_me: error: $2" >&2
17359   as_fn_exit $as_status
17360 } # as_fn_error
17361
17362
17363 # as_fn_set_status STATUS
17364 # -----------------------
17365 # Set $? to STATUS, without forking.
17366 as_fn_set_status ()
17367 {
17368   return $1
17369 } # as_fn_set_status
17370
17371 # as_fn_exit STATUS
17372 # -----------------
17373 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17374 as_fn_exit ()
17375 {
17376   set +e
17377   as_fn_set_status $1
17378   exit $1
17379 } # as_fn_exit
17380
17381 # as_fn_unset VAR
17382 # ---------------
17383 # Portably unset VAR.
17384 as_fn_unset ()
17385 {
17386   { eval $1=; unset $1;}
17387 }
17388 as_unset=as_fn_unset
17389 # as_fn_append VAR VALUE
17390 # ----------------------
17391 # Append the text in VALUE to the end of the definition contained in VAR. Take
17392 # advantage of any shell optimizations that allow amortized linear growth over
17393 # repeated appends, instead of the typical quadratic growth present in naive
17394 # implementations.
17395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17396   eval 'as_fn_append ()
17397   {
17398     eval $1+=\$2
17399   }'
17400 else
17401   as_fn_append ()
17402   {
17403     eval $1=\$$1\$2
17404   }
17405 fi # as_fn_append
17406
17407 # as_fn_arith ARG...
17408 # ------------------
17409 # Perform arithmetic evaluation on the ARGs, and store the result in the
17410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17411 # must be portable across $(()) and expr.
17412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17413   eval 'as_fn_arith ()
17414   {
17415     as_val=$(( $* ))
17416   }'
17417 else
17418   as_fn_arith ()
17419   {
17420     as_val=`expr "$@" || test $? -eq 1`
17421   }
17422 fi # as_fn_arith
17423
17424
17425 if expr a : '\(a\)' >/dev/null 2>&1 &&
17426    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17427   as_expr=expr
17428 else
17429   as_expr=false
17430 fi
17431
17432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17433   as_basename=basename
17434 else
17435   as_basename=false
17436 fi
17437
17438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17439   as_dirname=dirname
17440 else
17441   as_dirname=false
17442 fi
17443
17444 as_me=`$as_basename -- "$0" ||
17445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17446          X"$0" : 'X\(//\)$' \| \
17447          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17448 $as_echo X/"$0" |
17449     sed '/^.*\/\([^/][^/]*\)\/*$/{
17450             s//\1/
17451             q
17452           }
17453           /^X\/\(\/\/\)$/{
17454             s//\1/
17455             q
17456           }
17457           /^X\/\(\/\).*/{
17458             s//\1/
17459             q
17460           }
17461           s/.*/./; q'`
17462
17463 # Avoid depending upon Character Ranges.
17464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17467 as_cr_digits='0123456789'
17468 as_cr_alnum=$as_cr_Letters$as_cr_digits
17469
17470 ECHO_C= ECHO_N= ECHO_T=
17471 case `echo -n x` in #(((((
17472 -n*)
17473   case `echo 'xy\c'` in
17474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17475   xy)  ECHO_C='\c';;
17476   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17477        ECHO_T=' ';;
17478   esac;;
17479 *)
17480   ECHO_N='-n';;
17481 esac
17482
17483 rm -f conf$$ conf$$.exe conf$$.file
17484 if test -d conf$$.dir; then
17485   rm -f conf$$.dir/conf$$.file
17486 else
17487   rm -f conf$$.dir
17488   mkdir conf$$.dir 2>/dev/null
17489 fi
17490 if (echo >conf$$.file) 2>/dev/null; then
17491   if ln -s conf$$.file conf$$ 2>/dev/null; then
17492     as_ln_s='ln -s'
17493     # ... but there are two gotchas:
17494     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17495     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17496     # In both cases, we have to default to `cp -pR'.
17497     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17498       as_ln_s='cp -pR'
17499   elif ln conf$$.file conf$$ 2>/dev/null; then
17500     as_ln_s=ln
17501   else
17502     as_ln_s='cp -pR'
17503   fi
17504 else
17505   as_ln_s='cp -pR'
17506 fi
17507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17508 rmdir conf$$.dir 2>/dev/null
17509
17510
17511 # as_fn_mkdir_p
17512 # -------------
17513 # Create "$as_dir" as a directory, including parents if necessary.
17514 as_fn_mkdir_p ()
17515 {
17516
17517   case $as_dir in #(
17518   -*) as_dir=./$as_dir;;
17519   esac
17520   test -d "$as_dir" || eval $as_mkdir_p || {
17521     as_dirs=
17522     while :; do
17523       case $as_dir in #(
17524       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17525       *) as_qdir=$as_dir;;
17526       esac
17527       as_dirs="'$as_qdir' $as_dirs"
17528       as_dir=`$as_dirname -- "$as_dir" ||
17529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17530          X"$as_dir" : 'X\(//\)[^/]' \| \
17531          X"$as_dir" : 'X\(//\)$' \| \
17532          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17533 $as_echo X"$as_dir" |
17534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17535             s//\1/
17536             q
17537           }
17538           /^X\(\/\/\)[^/].*/{
17539             s//\1/
17540             q
17541           }
17542           /^X\(\/\/\)$/{
17543             s//\1/
17544             q
17545           }
17546           /^X\(\/\).*/{
17547             s//\1/
17548             q
17549           }
17550           s/.*/./; q'`
17551       test -d "$as_dir" && break
17552     done
17553     test -z "$as_dirs" || eval "mkdir $as_dirs"
17554   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17555
17556
17557 } # as_fn_mkdir_p
17558 if mkdir -p . 2>/dev/null; then
17559   as_mkdir_p='mkdir -p "$as_dir"'
17560 else
17561   test -d ./-p && rmdir ./-p
17562   as_mkdir_p=false
17563 fi
17564
17565
17566 # as_fn_executable_p FILE
17567 # -----------------------
17568 # Test if FILE is an executable regular file.
17569 as_fn_executable_p ()
17570 {
17571   test -f "$1" && test -x "$1"
17572 } # as_fn_executable_p
17573 as_test_x='test -x'
17574 as_executable_p=as_fn_executable_p
17575
17576 # Sed expression to map a string onto a valid CPP name.
17577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17578
17579 # Sed expression to map a string onto a valid variable name.
17580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17581
17582
17583 exec 6>&1
17584 ## ----------------------------------- ##
17585 ## Main body of $CONFIG_STATUS script. ##
17586 ## ----------------------------------- ##
17587 _ASEOF
17588 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17589
17590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17591 # Save the log message, to keep $0 and so on meaningful, and to
17592 # report actual input values of CONFIG_FILES etc. instead of their
17593 # values after options handling.
17594 ac_log="
17595 This file was extended by gnupg $as_me 2.3.3, which was
17596 generated by GNU Autoconf 2.69.  Invocation command line was
17597
17598   CONFIG_FILES    = $CONFIG_FILES
17599   CONFIG_HEADERS  = $CONFIG_HEADERS
17600   CONFIG_LINKS    = $CONFIG_LINKS
17601   CONFIG_COMMANDS = $CONFIG_COMMANDS
17602   $ $0 $@
17603
17604 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17605 "
17606
17607 _ACEOF
17608
17609 case $ac_config_files in *"
17610 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17611 esac
17612
17613 case $ac_config_headers in *"
17614 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17615 esac
17616
17617
17618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17619 # Files that config.status was made for.
17620 config_files="$ac_config_files"
17621 config_headers="$ac_config_headers"
17622 config_commands="$ac_config_commands"
17623
17624 _ACEOF
17625
17626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17627 ac_cs_usage="\
17628 \`$as_me' instantiates files and other configuration actions
17629 from templates according to the current configuration.  Unless the files
17630 and actions are specified as TAGs, all are instantiated by default.
17631
17632 Usage: $0 [OPTION]... [TAG]...
17633
17634   -h, --help       print this help, then exit
17635   -V, --version    print version number and configuration settings, then exit
17636       --config     print configuration, then exit
17637   -q, --quiet, --silent
17638                    do not print progress messages
17639   -d, --debug      don't remove temporary files
17640       --recheck    update $as_me by reconfiguring in the same conditions
17641       --file=FILE[:TEMPLATE]
17642                    instantiate the configuration file FILE
17643       --header=FILE[:TEMPLATE]
17644                    instantiate the configuration header FILE
17645
17646 Configuration files:
17647 $config_files
17648
17649 Configuration headers:
17650 $config_headers
17651
17652 Configuration commands:
17653 $config_commands
17654
17655 Report bugs to <https://bugs.gnupg.org>."
17656
17657 _ACEOF
17658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17660 ac_cs_version="\\
17661 gnupg config.status 2.3.3
17662 configured by $0, generated by GNU Autoconf 2.69,
17663   with options \\"\$ac_cs_config\\"
17664
17665 Copyright (C) 2012 Free Software Foundation, Inc.
17666 This config.status script is free software; the Free Software Foundation
17667 gives unlimited permission to copy, distribute and modify it."
17668
17669 ac_pwd='$ac_pwd'
17670 srcdir='$srcdir'
17671 INSTALL='$INSTALL'
17672 MKDIR_P='$MKDIR_P'
17673 AWK='$AWK'
17674 test -n "\$AWK" || AWK=awk
17675 _ACEOF
17676
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # The default lists apply if the user does not specify any file.
17679 ac_need_defaults=:
17680 while test $# != 0
17681 do
17682   case $1 in
17683   --*=?*)
17684     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17685     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17686     ac_shift=:
17687     ;;
17688   --*=)
17689     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17690     ac_optarg=
17691     ac_shift=:
17692     ;;
17693   *)
17694     ac_option=$1
17695     ac_optarg=$2
17696     ac_shift=shift
17697     ;;
17698   esac
17699
17700   case $ac_option in
17701   # Handling of the options.
17702   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17703     ac_cs_recheck=: ;;
17704   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17705     $as_echo "$ac_cs_version"; exit ;;
17706   --config | --confi | --conf | --con | --co | --c )
17707     $as_echo "$ac_cs_config"; exit ;;
17708   --debug | --debu | --deb | --de | --d | -d )
17709     debug=: ;;
17710   --file | --fil | --fi | --f )
17711     $ac_shift
17712     case $ac_optarg in
17713     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17714     '') as_fn_error $? "missing file argument" ;;
17715     esac
17716     as_fn_append CONFIG_FILES " '$ac_optarg'"
17717     ac_need_defaults=false;;
17718   --header | --heade | --head | --hea )
17719     $ac_shift
17720     case $ac_optarg in
17721     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17722     esac
17723     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17724     ac_need_defaults=false;;
17725   --he | --h)
17726     # Conflict between --help and --header
17727     as_fn_error $? "ambiguous option: \`$1'
17728 Try \`$0 --help' for more information.";;
17729   --help | --hel | -h )
17730     $as_echo "$ac_cs_usage"; exit ;;
17731   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17732   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17733     ac_cs_silent=: ;;
17734
17735   # This is an error.
17736   -*) as_fn_error $? "unrecognized option: \`$1'
17737 Try \`$0 --help' for more information." ;;
17738
17739   *) as_fn_append ac_config_targets " $1"
17740      ac_need_defaults=false ;;
17741
17742   esac
17743   shift
17744 done
17745
17746 ac_configure_extra_args=
17747
17748 if $ac_cs_silent; then
17749   exec 6>/dev/null
17750   ac_configure_extra_args="$ac_configure_extra_args --silent"
17751 fi
17752
17753 _ACEOF
17754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17755 if \$ac_cs_recheck; then
17756   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17757   shift
17758   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17759   CONFIG_SHELL='$SHELL'
17760   export CONFIG_SHELL
17761   exec "\$@"
17762 fi
17763
17764 _ACEOF
17765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17766 exec 5>>config.log
17767 {
17768   echo
17769   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17770 ## Running $as_me. ##
17771 _ASBOX
17772   $as_echo "$ac_log"
17773 } >&5
17774
17775 _ACEOF
17776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17777 #
17778 # INIT-COMMANDS
17779 #
17780 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17781 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17782     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17783     # from automake < 1.5.
17784     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17785     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17786     LINGUAS="${LINGUAS-%UNSET%}"
17787
17788
17789 _ACEOF
17790
17791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17792
17793 # Handling of arguments.
17794 for ac_config_target in $ac_config_targets
17795 do
17796   case $ac_config_target in
17797     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17798     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17799     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17800     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17801     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17802     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17803     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17804     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17805     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17806     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17807     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17808     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17809     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17810     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17811     "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17812     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17813     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17814     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17815     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17816     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17817     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17818     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17819     "tests/cms/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cms/Makefile" ;;
17820     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17821     "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17822     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17823     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17824     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17825     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17826     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17827     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17828     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17829     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17830     "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17831
17832   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17833   esac
17834 done
17835
17836
17837 # If the user did not use the arguments to specify the items to instantiate,
17838 # then the envvar interface is used.  Set only those that are not.
17839 # We use the long form for the default assignment because of an extremely
17840 # bizarre bug on SunOS 4.1.3.
17841 if $ac_need_defaults; then
17842   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17843   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17844   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17845 fi
17846
17847 # Have a temporary directory for convenience.  Make it in the build tree
17848 # simply because there is no reason against having it here, and in addition,
17849 # creating and moving files from /tmp can sometimes cause problems.
17850 # Hook for its removal unless debugging.
17851 # Note that there is a small window in which the directory will not be cleaned:
17852 # after its creation but before its name has been assigned to `$tmp'.
17853 $debug ||
17854 {
17855   tmp= ac_tmp=
17856   trap 'exit_status=$?
17857   : "${ac_tmp:=$tmp}"
17858   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17859 ' 0
17860   trap 'as_fn_exit 1' 1 2 13 15
17861 }
17862 # Create a (secure) tmp directory for tmp files.
17863
17864 {
17865   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17866   test -d "$tmp"
17867 }  ||
17868 {
17869   tmp=./conf$$-$RANDOM
17870   (umask 077 && mkdir "$tmp")
17871 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17872 ac_tmp=$tmp
17873
17874 # Set up the scripts for CONFIG_FILES section.
17875 # No need to generate them if there are no CONFIG_FILES.
17876 # This happens for instance with `./config.status config.h'.
17877 if test -n "$CONFIG_FILES"; then
17878
17879
17880 ac_cr=`echo X | tr X '\015'`
17881 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17882 # But we know of no other shell where ac_cr would be empty at this
17883 # point, so we can use a bashism as a fallback.
17884 if test "x$ac_cr" = x; then
17885   eval ac_cr=\$\'\\r\'
17886 fi
17887 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17888 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17889   ac_cs_awk_cr='\\r'
17890 else
17891   ac_cs_awk_cr=$ac_cr
17892 fi
17893
17894 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17895 _ACEOF
17896
17897
17898 {
17899   echo "cat >conf$$subs.awk <<_ACEOF" &&
17900   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17901   echo "_ACEOF"
17902 } >conf$$subs.sh ||
17903   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17904 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17905 ac_delim='%!_!# '
17906 for ac_last_try in false false false false false :; do
17907   . ./conf$$subs.sh ||
17908     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17909
17910   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17911   if test $ac_delim_n = $ac_delim_num; then
17912     break
17913   elif $ac_last_try; then
17914     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17915   else
17916     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17917   fi
17918 done
17919 rm -f conf$$subs.sh
17920
17921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17922 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17923 _ACEOF
17924 sed -n '
17925 h
17926 s/^/S["/; s/!.*/"]=/
17927 p
17928 g
17929 s/^[^!]*!//
17930 :repl
17931 t repl
17932 s/'"$ac_delim"'$//
17933 t delim
17934 :nl
17935 h
17936 s/\(.\{148\}\)..*/\1/
17937 t more1
17938 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17939 p
17940 n
17941 b repl
17942 :more1
17943 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17944 p
17945 g
17946 s/.\{148\}//
17947 t nl
17948 :delim
17949 h
17950 s/\(.\{148\}\)..*/\1/
17951 t more2
17952 s/["\\]/\\&/g; s/^/"/; s/$/"/
17953 p
17954 b
17955 :more2
17956 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17957 p
17958 g
17959 s/.\{148\}//
17960 t delim
17961 ' <conf$$subs.awk | sed '
17962 /^[^""]/{
17963   N
17964   s/\n//
17965 }
17966 ' >>$CONFIG_STATUS || ac_write_fail=1
17967 rm -f conf$$subs.awk
17968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17969 _ACAWK
17970 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17971   for (key in S) S_is_set[key] = 1
17972   FS = "\a"
17973
17974 }
17975 {
17976   line = $ 0
17977   nfields = split(line, field, "@")
17978   substed = 0
17979   len = length(field[1])
17980   for (i = 2; i < nfields; i++) {
17981     key = field[i]
17982     keylen = length(key)
17983     if (S_is_set[key]) {
17984       value = S[key]
17985       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17986       len += length(value) + length(field[++i])
17987       substed = 1
17988     } else
17989       len += 1 + keylen
17990   }
17991
17992   print line
17993 }
17994
17995 _ACAWK
17996 _ACEOF
17997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17999   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18000 else
18001   cat
18002 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18003   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18004 _ACEOF
18005
18006 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18007 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18008 # trailing colons and then remove the whole line if VPATH becomes empty
18009 # (actually we leave an empty line to preserve line numbers).
18010 if test "x$srcdir" = x.; then
18011   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18012 h
18013 s///
18014 s/^/:/
18015 s/[      ]*$/:/
18016 s/:\$(srcdir):/:/g
18017 s/:\${srcdir}:/:/g
18018 s/:@srcdir@:/:/g
18019 s/^:*//
18020 s/:*$//
18021 x
18022 s/\(=[   ]*\).*/\1/
18023 G
18024 s/\n//
18025 s/^[^=]*=[       ]*$//
18026 }'
18027 fi
18028
18029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030 fi # test -n "$CONFIG_FILES"
18031
18032 # Set up the scripts for CONFIG_HEADERS section.
18033 # No need to generate them if there are no CONFIG_HEADERS.
18034 # This happens for instance with `./config.status Makefile'.
18035 if test -n "$CONFIG_HEADERS"; then
18036 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18037 BEGIN {
18038 _ACEOF
18039
18040 # Transform confdefs.h into an awk script `defines.awk', embedded as
18041 # here-document in config.status, that substitutes the proper values into
18042 # config.h.in to produce config.h.
18043
18044 # Create a delimiter string that does not exist in confdefs.h, to ease
18045 # handling of long lines.
18046 ac_delim='%!_!# '
18047 for ac_last_try in false false :; do
18048   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18049   if test -z "$ac_tt"; then
18050     break
18051   elif $ac_last_try; then
18052     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18053   else
18054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18055   fi
18056 done
18057
18058 # For the awk script, D is an array of macro values keyed by name,
18059 # likewise P contains macro parameters if any.  Preserve backslash
18060 # newline sequences.
18061
18062 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18063 sed -n '
18064 s/.\{148\}/&'"$ac_delim"'/g
18065 t rset
18066 :rset
18067 s/^[     ]*#[    ]*define[       ][      ]*/ /
18068 t def
18069 d
18070 :def
18071 s/\\$//
18072 t bsnl
18073 s/["\\]/\\&/g
18074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18075 D["\1"]=" \3"/p
18076 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18077 d
18078 :bsnl
18079 s/["\\]/\\&/g
18080 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18081 D["\1"]=" \3\\\\\\n"\\/p
18082 t cont
18083 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18084 t cont
18085 d
18086 :cont
18087 n
18088 s/.\{148\}/&'"$ac_delim"'/g
18089 t clear
18090 :clear
18091 s/\\$//
18092 t bsnlc
18093 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18094 d
18095 :bsnlc
18096 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18097 b cont
18098 ' <confdefs.h | sed '
18099 s/'"$ac_delim"'/"\\\
18100 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18101
18102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18103   for (key in D) D_is_set[key] = 1
18104   FS = "\a"
18105 }
18106 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18107   line = \$ 0
18108   split(line, arg, " ")
18109   if (arg[1] == "#") {
18110     defundef = arg[2]
18111     mac1 = arg[3]
18112   } else {
18113     defundef = substr(arg[1], 2)
18114     mac1 = arg[2]
18115   }
18116   split(mac1, mac2, "(") #)
18117   macro = mac2[1]
18118   prefix = substr(line, 1, index(line, defundef) - 1)
18119   if (D_is_set[macro]) {
18120     # Preserve the white space surrounding the "#".
18121     print prefix "define", macro P[macro] D[macro]
18122     next
18123   } else {
18124     # Replace #undef with comments.  This is necessary, for example,
18125     # in the case of _POSIX_SOURCE, which is predefined and required
18126     # on some systems where configure will not decide to define it.
18127     if (defundef == "undef") {
18128       print "/*", prefix defundef, macro, "*/"
18129       next
18130     }
18131   }
18132 }
18133 { print }
18134 _ACAWK
18135 _ACEOF
18136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18137   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18138 fi # test -n "$CONFIG_HEADERS"
18139
18140
18141 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18142 shift
18143 for ac_tag
18144 do
18145   case $ac_tag in
18146   :[FHLC]) ac_mode=$ac_tag; continue;;
18147   esac
18148   case $ac_mode$ac_tag in
18149   :[FHL]*:*);;
18150   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18151   :[FH]-) ac_tag=-:-;;
18152   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18153   esac
18154   ac_save_IFS=$IFS
18155   IFS=:
18156   set x $ac_tag
18157   IFS=$ac_save_IFS
18158   shift
18159   ac_file=$1
18160   shift
18161
18162   case $ac_mode in
18163   :L) ac_source=$1;;
18164   :[FH])
18165     ac_file_inputs=
18166     for ac_f
18167     do
18168       case $ac_f in
18169       -) ac_f="$ac_tmp/stdin";;
18170       *) # Look for the file first in the build tree, then in the source tree
18171          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18172          # because $ac_f cannot contain `:'.
18173          test -f "$ac_f" ||
18174            case $ac_f in
18175            [\\/$]*) false;;
18176            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18177            esac ||
18178            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18179       esac
18180       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18181       as_fn_append ac_file_inputs " '$ac_f'"
18182     done
18183
18184     # Let's still pretend it is `configure' which instantiates (i.e., don't
18185     # use $as_me), people would be surprised to read:
18186     #    /* config.h.  Generated by config.status.  */
18187     configure_input='Generated from '`
18188           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18189         `' by configure.'
18190     if test x"$ac_file" != x-; then
18191       configure_input="$ac_file.  $configure_input"
18192       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18193 $as_echo "$as_me: creating $ac_file" >&6;}
18194     fi
18195     # Neutralize special characters interpreted by sed in replacement strings.
18196     case $configure_input in #(
18197     *\&* | *\|* | *\\* )
18198        ac_sed_conf_input=`$as_echo "$configure_input" |
18199        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18200     *) ac_sed_conf_input=$configure_input;;
18201     esac
18202
18203     case $ac_tag in
18204     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18205       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18206     esac
18207     ;;
18208   esac
18209
18210   ac_dir=`$as_dirname -- "$ac_file" ||
18211 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18212          X"$ac_file" : 'X\(//\)[^/]' \| \
18213          X"$ac_file" : 'X\(//\)$' \| \
18214          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18215 $as_echo X"$ac_file" |
18216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18217             s//\1/
18218             q
18219           }
18220           /^X\(\/\/\)[^/].*/{
18221             s//\1/
18222             q
18223           }
18224           /^X\(\/\/\)$/{
18225             s//\1/
18226             q
18227           }
18228           /^X\(\/\).*/{
18229             s//\1/
18230             q
18231           }
18232           s/.*/./; q'`
18233   as_dir="$ac_dir"; as_fn_mkdir_p
18234   ac_builddir=.
18235
18236 case "$ac_dir" in
18237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18238 *)
18239   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18240   # A ".." for each directory in $ac_dir_suffix.
18241   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18242   case $ac_top_builddir_sub in
18243   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18244   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18245   esac ;;
18246 esac
18247 ac_abs_top_builddir=$ac_pwd
18248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18249 # for backward compatibility:
18250 ac_top_builddir=$ac_top_build_prefix
18251
18252 case $srcdir in
18253   .)  # We are building in place.
18254     ac_srcdir=.
18255     ac_top_srcdir=$ac_top_builddir_sub
18256     ac_abs_top_srcdir=$ac_pwd ;;
18257   [\\/]* | ?:[\\/]* )  # Absolute name.
18258     ac_srcdir=$srcdir$ac_dir_suffix;
18259     ac_top_srcdir=$srcdir
18260     ac_abs_top_srcdir=$srcdir ;;
18261   *) # Relative name.
18262     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18263     ac_top_srcdir=$ac_top_build_prefix$srcdir
18264     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18265 esac
18266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18267
18268
18269   case $ac_mode in
18270   :F)
18271   #
18272   # CONFIG_FILE
18273   #
18274
18275   case $INSTALL in
18276   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18277   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18278   esac
18279   ac_MKDIR_P=$MKDIR_P
18280   case $MKDIR_P in
18281   [\\/$]* | ?:[\\/]* ) ;;
18282   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18283   esac
18284 _ACEOF
18285
18286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18287 # If the template does not know about datarootdir, expand it.
18288 # FIXME: This hack should be removed a few years after 2.60.
18289 ac_datarootdir_hack=; ac_datarootdir_seen=
18290 ac_sed_dataroot='
18291 /datarootdir/ {
18292   p
18293   q
18294 }
18295 /@datadir@/p
18296 /@docdir@/p
18297 /@infodir@/p
18298 /@localedir@/p
18299 /@mandir@/p'
18300 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18301 *datarootdir*) ac_datarootdir_seen=yes;;
18302 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18303   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18304 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18305 _ACEOF
18306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18307   ac_datarootdir_hack='
18308   s&@datadir@&$datadir&g
18309   s&@docdir@&$docdir&g
18310   s&@infodir@&$infodir&g
18311   s&@localedir@&$localedir&g
18312   s&@mandir@&$mandir&g
18313   s&\\\${datarootdir}&$datarootdir&g' ;;
18314 esac
18315 _ACEOF
18316
18317 # Neutralize VPATH when `$srcdir' = `.'.
18318 # Shell code in configure.ac might set extrasub.
18319 # FIXME: do we really want to maintain this feature?
18320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18321 ac_sed_extra="$ac_vpsub
18322 $extrasub
18323 _ACEOF
18324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18325 :t
18326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18327 s|@configure_input@|$ac_sed_conf_input|;t t
18328 s&@top_builddir@&$ac_top_builddir_sub&;t t
18329 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18330 s&@srcdir@&$ac_srcdir&;t t
18331 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18332 s&@top_srcdir@&$ac_top_srcdir&;t t
18333 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18334 s&@builddir@&$ac_builddir&;t t
18335 s&@abs_builddir@&$ac_abs_builddir&;t t
18336 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18337 s&@INSTALL@&$ac_INSTALL&;t t
18338 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18339 $ac_datarootdir_hack
18340 "
18341 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18342   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18343
18344 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18345   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18346   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18347       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18349 which seems to be undefined.  Please make sure it is defined" >&5
18350 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18351 which seems to be undefined.  Please make sure it is defined" >&2;}
18352
18353   rm -f "$ac_tmp/stdin"
18354   case $ac_file in
18355   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18356   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18357   esac \
18358   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18359  ;;
18360   :H)
18361   #
18362   # CONFIG_HEADER
18363   #
18364   if test x"$ac_file" != x-; then
18365     {
18366       $as_echo "/* $configure_input  */" \
18367       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18368     } >"$ac_tmp/config.h" \
18369       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18370     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18371       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18372 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18373     else
18374       rm -f "$ac_file"
18375       mv "$ac_tmp/config.h" "$ac_file" \
18376         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18377     fi
18378   else
18379     $as_echo "/* $configure_input  */" \
18380       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18381       || as_fn_error $? "could not create -" "$LINENO" 5
18382   fi
18383 # Compute "$ac_file"'s index in $config_headers.
18384 _am_arg="$ac_file"
18385 _am_stamp_count=1
18386 for _am_header in $config_headers :; do
18387   case $_am_header in
18388     $_am_arg | $_am_arg:* )
18389       break ;;
18390     * )
18391       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18392   esac
18393 done
18394 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18395 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18396          X"$_am_arg" : 'X\(//\)[^/]' \| \
18397          X"$_am_arg" : 'X\(//\)$' \| \
18398          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18399 $as_echo X"$_am_arg" |
18400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18401             s//\1/
18402             q
18403           }
18404           /^X\(\/\/\)[^/].*/{
18405             s//\1/
18406             q
18407           }
18408           /^X\(\/\/\)$/{
18409             s//\1/
18410             q
18411           }
18412           /^X\(\/\).*/{
18413             s//\1/
18414             q
18415           }
18416           s/.*/./; q'`/stamp-h$_am_stamp_count
18417  ;;
18418
18419   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18420 $as_echo "$as_me: executing $ac_file commands" >&6;}
18421  ;;
18422   esac
18423
18424
18425   case $ac_file$ac_mode in
18426     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18427   # Older Autoconf quotes --file arguments for eval, but not when files
18428   # are listed without --file.  Let's play safe and only enable the eval
18429   # if we detect the quoting.
18430   # TODO: see whether this extra hack can be removed once we start
18431   # requiring Autoconf 2.70 or later.
18432   case $CONFIG_FILES in #(
18433   *\'*) :
18434     eval set x "$CONFIG_FILES" ;; #(
18435   *) :
18436     set x $CONFIG_FILES ;; #(
18437   *) :
18438      ;;
18439 esac
18440   shift
18441   # Used to flag and report bootstrapping failures.
18442   am_rc=0
18443   for am_mf
18444   do
18445     # Strip MF so we end up with the name of the file.
18446     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18447     # Check whether this is an Automake generated Makefile which includes
18448     # dependency-tracking related rules and includes.
18449     # Grep'ing the whole file directly is not great: AIX grep has a line
18450     # limit of 2048, but all sed's we know have understand at least 4000.
18451     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18452       || continue
18453     am_dirpart=`$as_dirname -- "$am_mf" ||
18454 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18455          X"$am_mf" : 'X\(//\)[^/]' \| \
18456          X"$am_mf" : 'X\(//\)$' \| \
18457          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18458 $as_echo X"$am_mf" |
18459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18460             s//\1/
18461             q
18462           }
18463           /^X\(\/\/\)[^/].*/{
18464             s//\1/
18465             q
18466           }
18467           /^X\(\/\/\)$/{
18468             s//\1/
18469             q
18470           }
18471           /^X\(\/\).*/{
18472             s//\1/
18473             q
18474           }
18475           s/.*/./; q'`
18476     am_filepart=`$as_basename -- "$am_mf" ||
18477 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18478          X"$am_mf" : 'X\(//\)$' \| \
18479          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18480 $as_echo X/"$am_mf" |
18481     sed '/^.*\/\([^/][^/]*\)\/*$/{
18482             s//\1/
18483             q
18484           }
18485           /^X\/\(\/\/\)$/{
18486             s//\1/
18487             q
18488           }
18489           /^X\/\(\/\).*/{
18490             s//\1/
18491             q
18492           }
18493           s/.*/./; q'`
18494     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18495       && sed -e '/# am--include-marker/d' "$am_filepart" \
18496         | $MAKE -f - am--depfiles" >&5
18497    (cd "$am_dirpart" \
18498       && sed -e '/# am--include-marker/d' "$am_filepart" \
18499         | $MAKE -f - am--depfiles) >&5 2>&5
18500    ac_status=$?
18501    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502    (exit $ac_status); } || am_rc=$?
18503   done
18504   if test $am_rc -ne 0; then
18505     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18507 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18508     for automatic dependency tracking.  If GNU make was not used, consider
18509     re-running the configure script with MAKE=\"gmake\" (or whatever is
18510     necessary).  You can also try re-running configure with the
18511     '--disable-dependency-tracking' option to at least be able to build
18512     the package (albeit without support for automatic dependency tracking).
18513 See \`config.log' for more details" "$LINENO" 5; }
18514   fi
18515   { am_dirpart=; unset am_dirpart;}
18516   { am_filepart=; unset am_filepart;}
18517   { am_mf=; unset am_mf;}
18518   { am_rc=; unset am_rc;}
18519   rm -f conftest-deps.mk
18520 }
18521  ;;
18522     "po-directories":C)
18523     for ac_file in $CONFIG_FILES; do
18524       # Support "outfile[:infile[:infile...]]"
18525       case "$ac_file" in
18526         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18527       esac
18528       # PO directories have a Makefile.in generated from Makefile.in.in.
18529       case "$ac_file" in */Makefile.in)
18530         # Adjust a relative srcdir.
18531         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18532         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18533         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18534         # In autoconf-2.13 it is called $ac_given_srcdir.
18535         # In autoconf-2.50 it is called $srcdir.
18536         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18537         case "$ac_given_srcdir" in
18538           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18539           /*) top_srcdir="$ac_given_srcdir" ;;
18540           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18541         esac
18542         # Treat a directory as a PO directory if and only if it has a
18543         # POTFILES.in file. This allows packages to have multiple PO
18544         # directories under different names or in different locations.
18545         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18546           rm -f "$ac_dir/POTFILES"
18547           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18548           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18549           POMAKEFILEDEPS="POTFILES.in"
18550           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18551           # on $ac_dir but don't depend on user-specified configuration
18552           # parameters.
18553           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18554             # The LINGUAS file contains the set of available languages.
18555             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18556               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18557             fi
18558             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18559             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18560             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18561             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18562           else
18563             # The set of available languages was given in configure.in.
18564             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18565             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18566           fi
18567           # Compute POFILES
18568           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18569           # Compute UPDATEPOFILES
18570           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18571           # Compute DUMMYPOFILES
18572           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18573           # Compute GMOFILES
18574           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18575           case "$ac_given_srcdir" in
18576             .) srcdirpre= ;;
18577             *) srcdirpre='$(srcdir)/' ;;
18578           esac
18579           POFILES=
18580           UPDATEPOFILES=
18581           DUMMYPOFILES=
18582           GMOFILES=
18583           for lang in $ALL_LINGUAS; do
18584             POFILES="$POFILES $srcdirpre$lang.po"
18585             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18586             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18587             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18588           done
18589           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18590           # environment variable.
18591           INST_LINGUAS=
18592           if test -n "$ALL_LINGUAS"; then
18593             for presentlang in $ALL_LINGUAS; do
18594               useit=no
18595               if test "%UNSET%" != "$LINGUAS"; then
18596                 desiredlanguages="$LINGUAS"
18597               else
18598                 desiredlanguages="$ALL_LINGUAS"
18599               fi
18600               for desiredlang in $desiredlanguages; do
18601                 # Use the presentlang catalog if desiredlang is
18602                 #   a. equal to presentlang, or
18603                 #   b. a variant of presentlang (because in this case,
18604                 #      presentlang can be used as a fallback for messages
18605                 #      which are not translated in the desiredlang catalog).
18606                 case "$desiredlang" in
18607                   "$presentlang"*) useit=yes;;
18608                 esac
18609               done
18610               if test $useit = yes; then
18611                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18612               fi
18613             done
18614           fi
18615           CATALOGS=
18616           if test -n "$INST_LINGUAS"; then
18617             for lang in $INST_LINGUAS; do
18618               CATALOGS="$CATALOGS $lang.gmo"
18619             done
18620           fi
18621           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18622           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18623           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18624             if test -f "$f"; then
18625               case "$f" in
18626                 *.orig | *.bak | *~) ;;
18627                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18628               esac
18629             fi
18630           done
18631         fi
18632         ;;
18633       esac
18634     done ;;
18635
18636   esac
18637 done # for ac_tag
18638
18639
18640 as_fn_exit 0
18641 _ACEOF
18642 ac_clean_files=$ac_clean_files_save
18643
18644 test $ac_write_fail = 0 ||
18645   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18646
18647
18648 # configure is writing to config.log, and then calls config.status.
18649 # config.status does its own redirection, appending to config.log.
18650 # Unfortunately, on DOS this fails, as config.log is still kept open
18651 # by configure, so config.status won't be able to write to it; its
18652 # output is simply discarded.  So we exec the FD to /dev/null,
18653 # effectively closing config.log, so it can be properly (re)opened and
18654 # appended to by config.status.  When coming back to configure, we
18655 # need to make the FD available again.
18656 if test "$no_create" != yes; then
18657   ac_cs_success=:
18658   ac_config_status_args=
18659   test "$silent" = yes &&
18660     ac_config_status_args="$ac_config_status_args --quiet"
18661   exec 5>/dev/null
18662   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18663   exec 5>>config.log
18664   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18665   # would make configure fail if this is the last instruction.
18666   $ac_cs_success || as_fn_exit 1
18667 fi
18668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18669   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18671 fi
18672
18673
18674 show_tss_type=
18675 if test "$build_tpm2d" = "yes"; then
18676   show_tss_type="($have_libtss)"
18677 fi
18678
18679 echo "
18680         GnuPG v${VERSION} has been configured as follows:
18681
18682         Revision:  9470d0338  (38000)
18683         Platform:  $PRINTABLE_OS_NAME ($host)
18684
18685         OpenPGP:   $build_gpg
18686         S/MIME:    $build_gpgsm
18687         Agent:     $build_agent
18688         Smartcard: $build_scdaemon $build_scdaemon_extra
18689         TPM:       $build_tpm2d $show_tss_type
18690         G13:       $build_g13
18691         Dirmngr:   $build_dirmngr
18692         Keyboxd:   $build_keyboxd
18693         Gpgtar:    $build_gpgtar
18694         WKS tools: $build_wks_tools
18695
18696         Protect tool:       $show_gnupg_protect_tool_pgm
18697         LDAP wrapper:       $show_gnupg_dirmngr_ldap_pgm
18698         Default agent:      $show_gnupg_agent_pgm
18699         Default pinentry:   $show_gnupg_pinentry_pgm
18700         Default scdaemon:   $show_gnupg_scdaemon_pgm
18701         Default keyboxd:    $show_gnupg_keyboxd_pgm
18702         Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18703         Default dirmngr:    $show_gnupg_dirmngr_pgm
18704
18705         Dirmngr auto start:  $dirmngr_auto_start
18706         Readline support:    $gnupg_cv_have_readline
18707         LDAP support:        $gnupg_have_ldap
18708         TLS support:         $use_tls_library
18709         TOFU support:        $use_tofu
18710         Tor support:         $show_tor_support
18711 "
18712 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18713 cat <<G10EOF
18714         Warning: TPM support is compiled in but no software TPM
18715                  for testing was discovered. TPM tests are disabled
18716
18717 G10EOF
18718 fi
18719 if test "x${gpg_config_script_warn}" != x; then
18720 cat <<G10EOF
18721         Warning: Mismatches between the target platform and the
18722                  to be used libraries have been detected for:
18723                   ${gpg_config_script_warn}
18724                  Please check above for more warning messages.
18725
18726 G10EOF
18727 fi
18728 if test "${build_gpg}" != "yes"; then
18729 cat <<G10EOF
18730         Warning: The component "gpg" is used by other components as
18731                  well as for the test suite.  You have disabled
18732                  this component and thus other things won't work.
18733
18734 G10EOF
18735 fi
18736 if test "${run_tests}" != "yes"; then
18737 cat <<G10EOF
18738         Warning: The use of the test suite has been disabled!
18739                  This is in almost all cases a bad idea.  Take care.
18740
18741 G10EOF
18742 fi