Imported Upstream version 2.3.1
[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.1.
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.1'
584 PACKAGE_STRING='gnupg 2.3.1'
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.1 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.1:";;
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.1
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.1, 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.1'
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 900000L" >>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     build_keyboxd=no
9489     tmp=$(echo "$SQLITE3_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
9490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9491 ***
9492 *** Building without SQLite support - TOFU and Keyboxd disabled
9493 ***
9494 *** $tmp" >&5
9495 $as_echo "$as_me: WARNING:
9496 ***
9497 *** Building without SQLite support - TOFU and Keyboxd disabled
9498 ***
9499 *** $tmp" >&2;}
9500   fi
9501 fi
9502
9503  if test "$have_sqlite" = "yes"; then
9504   SQLITE3_TRUE=
9505   SQLITE3_FALSE='#'
9506 else
9507   SQLITE3_TRUE='#'
9508   SQLITE3_FALSE=
9509 fi
9510
9511
9512 if test x"$use_tofu" = xyes ; then
9513
9514 $as_echo "#define USE_TOFU 1" >>confdefs.h
9515
9516 fi
9517
9518
9519 # Checks for g13
9520
9521 # Extract the first word of "encfs", so it can be a program name with args.
9522 set dummy encfs; ac_word=$2
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9524 $as_echo_n "checking for $ac_word... " >&6; }
9525 if ${ac_cv_path_ENCFS+:} false; then :
9526   $as_echo_n "(cached) " >&6
9527 else
9528   case $ENCFS in
9529   [\\/]* | ?:[\\/]*)
9530   ac_cv_path_ENCFS="$ENCFS" # Let the user override the test with a path.
9531   ;;
9532   *)
9533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH
9535 do
9536   IFS=$as_save_IFS
9537   test -z "$as_dir" && as_dir=.
9538     for ac_exec_ext in '' $ac_executable_extensions; do
9539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9540     ac_cv_path_ENCFS="$as_dir/$ac_word$ac_exec_ext"
9541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9542     break 2
9543   fi
9544 done
9545   done
9546 IFS=$as_save_IFS
9547
9548   test -z "$ac_cv_path_ENCFS" && ac_cv_path_ENCFS="/usr/bin/encfs"
9549   ;;
9550 esac
9551 fi
9552 ENCFS=$ac_cv_path_ENCFS
9553 if test -n "$ENCFS"; then
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENCFS" >&5
9555 $as_echo "$ENCFS" >&6; }
9556 else
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558 $as_echo "no" >&6; }
9559 fi
9560
9561
9562
9563 cat >>confdefs.h <<_ACEOF
9564 #define ENCFS "${ENCFS}"
9565 _ACEOF
9566
9567
9568 # Extract the first word of "fusermount", so it can be a program name with args.
9569 set dummy fusermount; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_path_FUSERMOUNT+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   case $FUSERMOUNT in
9576   [\\/]* | ?:[\\/]*)
9577   ac_cv_path_FUSERMOUNT="$FUSERMOUNT" # Let the user override the test with a path.
9578   ;;
9579   *)
9580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583   IFS=$as_save_IFS
9584   test -z "$as_dir" && as_dir=.
9585     for ac_exec_ext in '' $ac_executable_extensions; do
9586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587     ac_cv_path_FUSERMOUNT="$as_dir/$ac_word$ac_exec_ext"
9588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589     break 2
9590   fi
9591 done
9592   done
9593 IFS=$as_save_IFS
9594
9595   test -z "$ac_cv_path_FUSERMOUNT" && ac_cv_path_FUSERMOUNT="/usr/bin/fusermount"
9596   ;;
9597 esac
9598 fi
9599 FUSERMOUNT=$ac_cv_path_FUSERMOUNT
9600 if test -n "$FUSERMOUNT"; then
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FUSERMOUNT" >&5
9602 $as_echo "$FUSERMOUNT" >&6; }
9603 else
9604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 fi
9607
9608
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define FUSERMOUNT "${FUSERMOUNT}"
9612 _ACEOF
9613
9614
9615
9616
9617 #
9618 # Check whether the nPth library is available
9619 #
9620
9621 # Check whether --with-npth-prefix was given.
9622 if test "${with_npth_prefix+set}" = set; then :
9623   withval=$with_npth_prefix; npth_config_prefix="$withval"
9624 else
9625   npth_config_prefix=""
9626 fi
9627
9628   if test "x$npth_config_prefix" != x ; then
9629       NPTH_CONFIG="$npth_config_prefix/bin/npth-config"
9630   fi
9631
9632   use_gpgrt_config=""
9633   if test x"$NPTH_CONFIG" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9634     if $GPGRT_CONFIG npth --exists; then
9635       NPTH_CONFIG="$GPGRT_CONFIG npth"
9636       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as npth-config" >&5
9637 $as_echo "$as_me: Use gpgrt-config as npth-config" >&6;}
9638       use_gpgrt_config=yes
9639     fi
9640   fi
9641   if test -z "$use_gpgrt_config"; then
9642     # Extract the first word of "npth-config", so it can be a program name with args.
9643 set dummy npth-config; ac_word=$2
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 $as_echo_n "checking for $ac_word... " >&6; }
9646 if ${ac_cv_path_NPTH_CONFIG+:} false; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649   case $NPTH_CONFIG in
9650   [\\/]* | ?:[\\/]*)
9651   ac_cv_path_NPTH_CONFIG="$NPTH_CONFIG" # Let the user override the test with a path.
9652   ;;
9653   *)
9654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655 for as_dir in $PATH
9656 do
9657   IFS=$as_save_IFS
9658   test -z "$as_dir" && as_dir=.
9659     for ac_exec_ext in '' $ac_executable_extensions; do
9660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661     ac_cv_path_NPTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663     break 2
9664   fi
9665 done
9666   done
9667 IFS=$as_save_IFS
9668
9669   test -z "$ac_cv_path_NPTH_CONFIG" && ac_cv_path_NPTH_CONFIG="no"
9670   ;;
9671 esac
9672 fi
9673 NPTH_CONFIG=$ac_cv_path_NPTH_CONFIG
9674 if test -n "$NPTH_CONFIG"; then
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NPTH_CONFIG" >&5
9676 $as_echo "$NPTH_CONFIG" >&6; }
9677 else
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9679 $as_echo "no" >&6; }
9680 fi
9681
9682
9683   fi
9684
9685   if test "$NPTH_CONFIG" != "no" ; then
9686     if test -z "$use_gpgrt_config"; then
9687       npth_version=`$NPTH_CONFIG --version`
9688     else
9689       npth_version=`$NPTH_CONFIG --modversion`
9690     fi
9691   fi
9692   npth_version_major=`echo $npth_version | \
9693                sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
9694   npth_version_minor=`echo $npth_version | \
9695                sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
9696
9697    tmp="$NEED_NPTH_API:$NEED_NPTH_VERSION"
9698   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9699      req_npth_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9700      min_npth_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9701   else
9702      req_npth_api=1
9703      min_npth_version="$tmp"
9704   fi
9705
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NPTH - version >= $min_npth_version" >&5
9707 $as_echo_n "checking for NPTH - version >= $min_npth_version... " >&6; }
9708   ok=no
9709   if test "$NPTH_CONFIG" != "no" ; then
9710     req_major=`echo $min_npth_version | \
9711                sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
9712     req_minor=`echo $min_npth_version | \
9713                sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
9714     if test "$npth_version_major" -gt "$req_major"; then
9715         ok=yes
9716     else
9717         if test "$npth_version_major" -eq "$req_major"; then
9718             if test "$npth_version_minor" -gt "$req_minor"; then
9719                ok=yes
9720             else
9721                if test "$npth_version_minor" -eq "$req_minor"; then
9722                   ok=yes
9723                fi
9724             fi
9725         fi
9726     fi
9727   fi
9728   if test $ok = yes; then
9729     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($npth_version)" >&5
9730 $as_echo "yes ($npth_version)" >&6; }
9731   else
9732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734   fi
9735   if test $ok = yes; then
9736     # If we have a recent NPTH, we should also check that the
9737     # API is compatible.
9738     if test "$req_npth_api" -gt 0 ; then
9739       if test -z "$use_gpgrt_config"; then
9740         tmp=`$NPTH_CONFIG --api-version 2>/dev/null || echo 0`
9741       else
9742         tmp=`$NPTH_CONFIG --variable=api_version 2>/dev/null || echo 0`
9743       fi
9744       if test "$tmp" -gt 0 ; then
9745         { $as_echo "$as_me:${as_lineno-$LINENO}: checking NPTH API version" >&5
9746 $as_echo_n "checking NPTH API version... " >&6; }
9747         if test "$req_npth_api" -eq "$tmp" ; then
9748           { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9749 $as_echo "okay" >&6; }
9750         else
9751           ok=no
9752           { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_npth_api got=$tmp" >&5
9753 $as_echo "does not match. want=$req_npth_api got=$tmp" >&6; }
9754         fi
9755       fi
9756     fi
9757   fi
9758   if test $ok = yes; then
9759     NPTH_CFLAGS=`$NPTH_CONFIG --cflags`
9760     NPTH_LIBS=`$NPTH_CONFIG --libs`
9761     have_npth=yes
9762     if test -z "$use_gpgrt_config"; then
9763       npth_config_host=`$NPTH_CONFIG --host 2>/dev/null || echo none`
9764     else
9765       npth_config_host=`$NPTH_CONFIG --variable=host 2>/dev/null || echo none`
9766     fi
9767     if test x"$npth_config_host" != xnone ; then
9768       if test x"$npth_config_host" != x"$host" ; then
9769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9770 ***
9771 *** The config script \"$NPTH_CONFIG\" was
9772 *** built for $npth_config_host and thus may not match the
9773 *** used host $host.
9774 *** You may want to use the configure option --with-npth-prefix
9775 *** to specify a matching config script.
9776 ***" >&5
9777 $as_echo "$as_me: WARNING:
9778 ***
9779 *** The config script \"$NPTH_CONFIG\" was
9780 *** built for $npth_config_host and thus may not match the
9781 *** used host $host.
9782 *** You may want to use the configure option --with-npth-prefix
9783 *** to specify a matching config script.
9784 ***" >&2;}
9785       fi
9786     fi
9787   else
9788     NPTH_CFLAGS=""
9789     NPTH_LIBS=""
9790     have_npth=no
9791   fi
9792
9793
9794
9795 if test "$have_npth" = "yes"; then
9796
9797 $as_echo "#define HAVE_NPTH 1" >>confdefs.h
9798
9799
9800 $as_echo "#define USE_NPTH 1" >>confdefs.h
9801
9802 else
9803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9804 ***
9805 *** To support concurrent access for example in gpg-agent and the SCdaemon
9806 *** we need the support of the New Portable Threads Library.
9807 ***" >&5
9808 $as_echo "$as_me: WARNING:
9809 ***
9810 *** To support concurrent access for example in gpg-agent and the SCdaemon
9811 *** we need the support of the New Portable Threads Library.
9812 ***" >&2;}
9813 fi
9814 #
9815 # Enable debugging of nPth
9816 #
9817 # Check whether --enable-npth-debug was given.
9818 if test "${enable_npth_debug+set}" = set; then :
9819   enableval=$enable_npth_debug; if test $enableval = yes ; then
9820
9821 $as_echo "#define NPTH_ENABLE_DEBUG 1" >>confdefs.h
9822
9823                   fi
9824 fi
9825
9826
9827
9828
9829 #
9830 # NTBTLS is our TLS library.  If it is not available we fall back to
9831 # GNUTLS.
9832 #
9833 # Check whether --enable-ntbtls was given.
9834 if test "${enable_ntbtls+set}" = set; then :
9835   enableval=$enable_ntbtls; try_ntbtls=$enableval
9836 else
9837   try_ntbtls=yes
9838 fi
9839
9840 if test x"$try_ntbtls" = xyes ; then
9841
9842
9843 # Check whether --with-ntbtls-prefix was given.
9844 if test "${with_ntbtls_prefix+set}" = set; then :
9845   withval=$with_ntbtls_prefix; ntbtls_config_prefix="$withval"
9846 else
9847   ntbtls_config_prefix=""
9848 fi
9849
9850   if test x"${NTBTLS_CONFIG}" = x ; then
9851      if test x"${ntbtls_config_prefix}" != x ; then
9852         NTBTLS_CONFIG="${ntbtls_config_prefix}/bin/ntbtls-config"
9853      fi
9854   fi
9855
9856   use_gpgrt_config=""
9857   if test x"${NTBTLS_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
9858     if $GPGRT_CONFIG ntbtls --exists; then
9859       NTBTLS_CONFIG="$GPGRT_CONFIG ntbtls"
9860       { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as ntbtls-config" >&5
9861 $as_echo "$as_me: Use gpgrt-config as ntbtls-config" >&6;}
9862       use_gpgrt_config=yes
9863     fi
9864   fi
9865   if test -z "$use_gpgrt_config"; then
9866     if test x"${NTBTLS_CONFIG}" = x ; then
9867       case "${SYSROOT}" in
9868         /*)
9869           if test -x "${SYSROOT}/bin/ntbtls-config" ; then
9870             NTBTLS_CONFIG="${SYSROOT}/bin/ntbtls-config"
9871           fi
9872           ;;
9873         '')
9874           ;;
9875          *)
9876           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
9877 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
9878           ;;
9879       esac
9880     fi
9881     # Extract the first word of "ntbtls-config", so it can be a program name with args.
9882 set dummy ntbtls-config; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if ${ac_cv_path_NTBTLS_CONFIG+:} false; then :
9886   $as_echo_n "(cached) " >&6
9887 else
9888   case $NTBTLS_CONFIG in
9889   [\\/]* | ?:[\\/]*)
9890   ac_cv_path_NTBTLS_CONFIG="$NTBTLS_CONFIG" # Let the user override the test with a path.
9891   ;;
9892   *)
9893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9895 do
9896   IFS=$as_save_IFS
9897   test -z "$as_dir" && as_dir=.
9898     for ac_exec_ext in '' $ac_executable_extensions; do
9899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900     ac_cv_path_NTBTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902     break 2
9903   fi
9904 done
9905   done
9906 IFS=$as_save_IFS
9907
9908   test -z "$ac_cv_path_NTBTLS_CONFIG" && ac_cv_path_NTBTLS_CONFIG="no"
9909   ;;
9910 esac
9911 fi
9912 NTBTLS_CONFIG=$ac_cv_path_NTBTLS_CONFIG
9913 if test -n "$NTBTLS_CONFIG"; then
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NTBTLS_CONFIG" >&5
9915 $as_echo "$NTBTLS_CONFIG" >&6; }
9916 else
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920
9921
9922   fi
9923
9924   tmp="$NEED_NTBTLS_API:$NEED_NTBTLS_VERSION"
9925   if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
9926      req_ntbtls_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
9927      min_ntbtls_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
9928   else
9929      req_ntbtls_api=0
9930      min_ntbtls_version="$tmp"
9931   fi
9932
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NTBTLS - version >= $min_ntbtls_version" >&5
9934 $as_echo_n "checking for NTBTLS - version >= $min_ntbtls_version... " >&6; }
9935   ok=no
9936   if test "$NTBTLS_CONFIG" != "no" ; then
9937     req_major=`echo $min_ntbtls_version | \
9938                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
9939     req_minor=`echo $min_ntbtls_version | \
9940                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
9941     req_micro=`echo $min_ntbtls_version | \
9942                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
9943     if test -z "$use_gpgrt_config"; then
9944       ntbtls_config_version=`$NTBTLS_CONFIG --version`
9945     else
9946       ntbtls_config_version=`$NTBTLS_CONFIG --modversion`
9947     fi
9948     major=`echo $ntbtls_config_version | \
9949                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
9950     minor=`echo $ntbtls_config_version | \
9951                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
9952     micro=`echo $ntbtls_config_version | \
9953                sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
9954     if test "$major" -gt "$req_major"; then
9955         ok=yes
9956     else
9957         if test "$major" -eq "$req_major"; then
9958             if test "$minor" -gt "$req_minor"; then
9959                ok=yes
9960             else
9961                if test "$minor" -eq "$req_minor"; then
9962                    if test "$micro" -ge "$req_micro"; then
9963                      ok=yes
9964                    fi
9965                fi
9966             fi
9967         fi
9968     fi
9969   fi
9970   if test $ok = yes; then
9971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ntbtls_config_version)" >&5
9972 $as_echo "yes ($ntbtls_config_version)" >&6; }
9973   else
9974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9976   fi
9977   if test $ok = yes; then
9978      # If we have a recent ntbtls, we should also check that the
9979      # API is compatible
9980      if test "$req_ntbtls_api" -gt 0 ; then
9981         if test -z "$use_gpgrt_config"; then
9982           tmp=`$NTBTLS_CONFIG --api-version 2>/dev/null || echo 0`
9983         else
9984           tmp=`$NTBTLS_CONFIG --variable=api_version 2>/dev/null || echo 0`
9985         fi
9986         if test "$tmp" -gt 0 ; then
9987            { $as_echo "$as_me:${as_lineno-$LINENO}: checking NTBTLS API version" >&5
9988 $as_echo_n "checking NTBTLS API version... " >&6; }
9989            if test "$req_ntbtls_api" -eq "$tmp" ; then
9990              { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
9991 $as_echo "okay" >&6; }
9992            else
9993              ok=no
9994              { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_ntbtls_api got=$tmp" >&5
9995 $as_echo "does not match. want=$req_ntbtls_api got=$tmp" >&6; }
9996            fi
9997         fi
9998      fi
9999   fi
10000   if test $ok = yes; then
10001     NTBTLS_CFLAGS=`$NTBTLS_CONFIG --cflags`
10002     NTBTLS_LIBS=`$NTBTLS_CONFIG --libs`
10003     have_ntbtls=yes
10004     if test -z "$use_gpgrt_config"; then
10005       ntbtls_config_host=`$NTBTLS_CONFIG --host 2>/dev/null || echo none`
10006     else
10007       ntbtls_config_host=`$NTBTLS_CONFIG --variable=host 2>/dev/null || echo none`
10008     fi
10009     if test x"$ntbtls_config_host" != xnone ; then
10010       if test x"$ntbtls_config_host" != x"$host" ; then
10011   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10012 ***
10013 *** The config script \"$NTBTLS_CONFIG\" was
10014 *** built for $ntbtls_config_host and thus may not match the
10015 *** used host $host.
10016 *** You may want to use the configure option --with-ntbtls-prefix
10017 *** to specify a matching config script or use \$SYSROOT.
10018 ***" >&5
10019 $as_echo "$as_me: WARNING:
10020 ***
10021 *** The config script \"$NTBTLS_CONFIG\" was
10022 *** built for $ntbtls_config_host and thus may not match the
10023 *** used host $host.
10024 *** You may want to use the configure option --with-ntbtls-prefix
10025 *** to specify a matching config script or use \$SYSROOT.
10026 ***" >&2;}
10027         gpg_config_script_warn="$gpg_config_script_warn ntbtls"
10028       fi
10029     fi
10030   else
10031     NTBTLS_CFLAGS=""
10032     NTBTLS_LIBS=""
10033     have_ntbtls=no
10034   fi
10035
10036
10037
10038 fi
10039 if test "$have_ntbtls" = yes ; then
10040    use_tls_library=ntbtls
10041
10042 $as_echo "#define HTTP_USE_NTBTLS 1" >>confdefs.h
10043
10044 else
10045   # Check whether --enable-gnutls was given.
10046 if test "${enable_gnutls+set}" = set; then :
10047   enableval=$enable_gnutls; try_gnutls=$enableval
10048 else
10049   try_gnutls=yes
10050 fi
10051
10052   if test x"$try_gnutls" = xyes ; then
10053
10054 pkg_failed=no
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNUTLS" >&5
10056 $as_echo_n "checking for LIBGNUTLS... " >&6; }
10057
10058 if test -n "$LIBGNUTLS_CFLAGS"; then
10059     pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
10060  elif test -n "$PKG_CONFIG"; then
10061     if test -n "$PKG_CONFIG" && \
10062     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10063   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10064   ac_status=$?
10065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10066   test $ac_status = 0; }; then
10067   pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10068                       test "x$?" != "x0" && pkg_failed=yes
10069 else
10070   pkg_failed=yes
10071 fi
10072  else
10073     pkg_failed=untried
10074 fi
10075 if test -n "$LIBGNUTLS_LIBS"; then
10076     pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
10077  elif test -n "$PKG_CONFIG"; then
10078     if test -n "$PKG_CONFIG" && \
10079     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= \$NEED_GNUTLS_VERSION\""; } >&5
10080   ($PKG_CONFIG --exists --print-errors "gnutls >= $NEED_GNUTLS_VERSION") 2>&5
10081   ac_status=$?
10082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10083   test $ac_status = 0; }; then
10084   pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>/dev/null`
10085                       test "x$?" != "x0" && pkg_failed=yes
10086 else
10087   pkg_failed=yes
10088 fi
10089  else
10090     pkg_failed=untried
10091 fi
10092
10093
10094
10095 if test $pkg_failed = yes; then
10096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10098
10099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10100         _pkg_short_errors_supported=yes
10101 else
10102         _pkg_short_errors_supported=no
10103 fi
10104         if test $_pkg_short_errors_supported = yes; then
10105                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10106         else
10107                 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= $NEED_GNUTLS_VERSION" 2>&1`
10108         fi
10109         # Put the nasty error message in config.log where it belongs
10110         echo "$LIBGNUTLS_PKG_ERRORS" >&5
10111
10112         have_gnutls=no
10113 elif test $pkg_failed = untried; then
10114         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10115 $as_echo "no" >&6; }
10116         have_gnutls=no
10117 else
10118         LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
10119         LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
10120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121 $as_echo "yes" >&6; }
10122         have_gnutls=yes
10123 fi
10124   fi
10125   if test "$have_gnutls" = "yes"; then
10126
10127
10128     use_tls_library=gnutls
10129
10130 $as_echo "#define HTTP_USE_GNUTLS 1" >>confdefs.h
10131
10132   else
10133     tmp=$(echo "$LIBGNUTLS_PKG_ERRORS" | tr '\n' '\v' | sed 's/\v/\n*** /g')
10134     build_dirmngr=no
10135     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10136 ***
10137 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10138 ***
10139 *** $tmp" >&5
10140 $as_echo "$as_me: WARNING:
10141 ***
10142 *** Neither NTBTLS nor GNUTLS available - not building dirmngr.
10143 ***
10144 *** $tmp" >&2;}
10145   fi
10146 fi
10147
10148 #
10149 # Allow to set a fixed trust store file for system provided certificates.
10150 #
10151
10152 # Check whether --with-default-trust-store-file was given.
10153 if test "${with_default_trust_store_file+set}" = set; then :
10154   withval=$with_default_trust_store_file; default_trust_store_file="$withval"
10155 else
10156   default_trust_store_file=""
10157 fi
10158
10159 if test x"$default_trust_store_file" = xno;then
10160   default_trust_store_file=""
10161 fi
10162 if test x"$default_trust_store_file" != x ; then
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define DEFAULT_TRUST_STORE_FILE "$default_trust_store_file"
10166 _ACEOF
10167
10168 fi
10169
10170
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for networking options" >&5
10172 $as_echo "$as_me: checking for networking options" >&6;}
10173
10174 #
10175 # Must check for network library requirements before doing link tests
10176 # for ldap, for example. If ldap libs are static (or dynamic and without
10177 # ELF runtime link paths), then link will fail and LDAP support won't
10178 # be detected.
10179 #
10180 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10181 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10182
10183 else
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10185 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10186 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10187   $as_echo_n "(cached) " >&6
10188 else
10189   ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-lnsl  $LIBS"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195    Use char because int might match the return type of a GCC
10196    builtin and then its argument prototype would still apply.  */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char gethostbyname ();
10201 int
10202 main ()
10203 {
10204 return gethostbyname ();
10205   ;
10206   return 0;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10210   ac_cv_lib_nsl_gethostbyname=yes
10211 else
10212   ac_cv_lib_nsl_gethostbyname=no
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext \
10215     conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10219 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10220 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10221   NETLIBS="-lnsl $NETLIBS"
10222 fi
10223
10224 fi
10225
10226 ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
10227 if test "x$ac_cv_func_setsockopt" = xyes; then :
10228
10229 else
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5
10231 $as_echo_n "checking for setsockopt in -lsocket... " >&6; }
10232 if ${ac_cv_lib_socket_setsockopt+:} false; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-lsocket  $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char setsockopt ();
10247 int
10248 main ()
10249 {
10250 return setsockopt ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256   ac_cv_lib_socket_setsockopt=yes
10257 else
10258   ac_cv_lib_socket_setsockopt=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261     conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5
10265 $as_echo "$ac_cv_lib_socket_setsockopt" >&6; }
10266 if test "x$ac_cv_lib_socket_setsockopt" = xyes; then :
10267   NETLIBS="-lsocket $NETLIBS"
10268 fi
10269
10270 fi
10271
10272
10273
10274 #
10275 # Check standard resolver functions.
10276 #
10277 if test "$build_dirmngr" = "yes"; then
10278   _dns_save_libs=$LIBS
10279   LIBS=""
10280
10281   # Find the system resolver which can always be enabled with
10282   # the dirmngr option --standard-resolver.
10283
10284   # the double underscore thing is a glibc-ism?
10285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_query" >&5
10286 $as_echo_n "checking for library containing res_query... " >&6; }
10287 if ${ac_cv_search_res_query+:} false; then :
10288   $as_echo_n "(cached) " >&6
10289 else
10290   ac_func_search_save_LIBS=$LIBS
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h.  */
10293
10294 /* Override any GCC internal prototype to avoid an error.
10295    Use char because int might match the return type of a GCC
10296    builtin and then its argument prototype would still apply.  */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 char res_query ();
10301 int
10302 main ()
10303 {
10304 return res_query ();
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 for ac_lib in '' resolv bind; do
10310   if test -z "$ac_lib"; then
10311     ac_res="none required"
10312   else
10313     ac_res=-l$ac_lib
10314     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10315   fi
10316   if ac_fn_c_try_link "$LINENO"; then :
10317   ac_cv_search_res_query=$ac_res
10318 fi
10319 rm -f core conftest.err conftest.$ac_objext \
10320     conftest$ac_exeext
10321   if ${ac_cv_search_res_query+:} false; then :
10322   break
10323 fi
10324 done
10325 if ${ac_cv_search_res_query+:} false; then :
10326
10327 else
10328   ac_cv_search_res_query=no
10329 fi
10330 rm conftest.$ac_ext
10331 LIBS=$ac_func_search_save_LIBS
10332 fi
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_query" >&5
10334 $as_echo "$ac_cv_search_res_query" >&6; }
10335 ac_res=$ac_cv_search_res_query
10336 if test "$ac_res" != no; then :
10337   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10338
10339 else
10340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_query" >&5
10341 $as_echo_n "checking for library containing __res_query... " >&6; }
10342 if ${ac_cv_search___res_query+:} false; then :
10343   $as_echo_n "(cached) " >&6
10344 else
10345   ac_func_search_save_LIBS=$LIBS
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h.  */
10348
10349 /* Override any GCC internal prototype to avoid an error.
10350    Use char because int might match the return type of a GCC
10351    builtin and then its argument prototype would still apply.  */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char __res_query ();
10356 int
10357 main ()
10358 {
10359 return __res_query ();
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 for ac_lib in '' resolv bind; do
10365   if test -z "$ac_lib"; then
10366     ac_res="none required"
10367   else
10368     ac_res=-l$ac_lib
10369     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10370   fi
10371   if ac_fn_c_try_link "$LINENO"; then :
10372   ac_cv_search___res_query=$ac_res
10373 fi
10374 rm -f core conftest.err conftest.$ac_objext \
10375     conftest$ac_exeext
10376   if ${ac_cv_search___res_query+:} false; then :
10377   break
10378 fi
10379 done
10380 if ${ac_cv_search___res_query+:} false; then :
10381
10382 else
10383   ac_cv_search___res_query=no
10384 fi
10385 rm conftest.$ac_ext
10386 LIBS=$ac_func_search_save_LIBS
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_query" >&5
10389 $as_echo "$ac_cv_search___res_query" >&6; }
10390 ac_res=$ac_cv_search___res_query
10391 if test "$ac_res" != no; then :
10392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10393
10394 else
10395   have_resolver=no
10396 fi
10397
10398 fi
10399
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_expand" >&5
10401 $as_echo_n "checking for library containing dn_expand... " >&6; }
10402 if ${ac_cv_search_dn_expand+:} false; then :
10403   $as_echo_n "(cached) " >&6
10404 else
10405   ac_func_search_save_LIBS=$LIBS
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407 /* end confdefs.h.  */
10408
10409 /* Override any GCC internal prototype to avoid an error.
10410    Use char because int might match the return type of a GCC
10411    builtin and then its argument prototype would still apply.  */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 char dn_expand ();
10416 int
10417 main ()
10418 {
10419 return dn_expand ();
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 for ac_lib in '' resolv bind; do
10425   if test -z "$ac_lib"; then
10426     ac_res="none required"
10427   else
10428     ac_res=-l$ac_lib
10429     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10430   fi
10431   if ac_fn_c_try_link "$LINENO"; then :
10432   ac_cv_search_dn_expand=$ac_res
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext \
10435     conftest$ac_exeext
10436   if ${ac_cv_search_dn_expand+:} false; then :
10437   break
10438 fi
10439 done
10440 if ${ac_cv_search_dn_expand+:} false; then :
10441
10442 else
10443   ac_cv_search_dn_expand=no
10444 fi
10445 rm conftest.$ac_ext
10446 LIBS=$ac_func_search_save_LIBS
10447 fi
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_expand" >&5
10449 $as_echo "$ac_cv_search_dn_expand" >&6; }
10450 ac_res=$ac_cv_search_dn_expand
10451 if test "$ac_res" != no; then :
10452   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10453
10454 else
10455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_expand" >&5
10456 $as_echo_n "checking for library containing __dn_expand... " >&6; }
10457 if ${ac_cv_search___dn_expand+:} false; then :
10458   $as_echo_n "(cached) " >&6
10459 else
10460   ac_func_search_save_LIBS=$LIBS
10461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462 /* end confdefs.h.  */
10463
10464 /* Override any GCC internal prototype to avoid an error.
10465    Use char because int might match the return type of a GCC
10466    builtin and then its argument prototype would still apply.  */
10467 #ifdef __cplusplus
10468 extern "C"
10469 #endif
10470 char __dn_expand ();
10471 int
10472 main ()
10473 {
10474 return __dn_expand ();
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 for ac_lib in '' resolv bind; do
10480   if test -z "$ac_lib"; then
10481     ac_res="none required"
10482   else
10483     ac_res=-l$ac_lib
10484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10485   fi
10486   if ac_fn_c_try_link "$LINENO"; then :
10487   ac_cv_search___dn_expand=$ac_res
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext \
10490     conftest$ac_exeext
10491   if ${ac_cv_search___dn_expand+:} false; then :
10492   break
10493 fi
10494 done
10495 if ${ac_cv_search___dn_expand+:} false; then :
10496
10497 else
10498   ac_cv_search___dn_expand=no
10499 fi
10500 rm conftest.$ac_ext
10501 LIBS=$ac_func_search_save_LIBS
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_expand" >&5
10504 $as_echo "$ac_cv_search___dn_expand" >&6; }
10505 ac_res=$ac_cv_search___dn_expand
10506 if test "$ac_res" != no; then :
10507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10508
10509 else
10510   have_resolver=no
10511 fi
10512
10513 fi
10514
10515
10516   # macOS renames dn_skipname into res_9_dn_skipname in <resolv.h>,
10517   # and for some reason fools us into believing we don't need
10518   # -lresolv even if we do.  Since the test program checking for the
10519   # symbol does not include <resolv.h>, we need to check for the
10520   # renamed symbol explicitly.
10521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_dn_skipname" >&5
10522 $as_echo_n "checking for library containing res_9_dn_skipname... " >&6; }
10523 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10524   $as_echo_n "(cached) " >&6
10525 else
10526   ac_func_search_save_LIBS=$LIBS
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h.  */
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531    Use char because int might match the return type of a GCC
10532    builtin and then its argument prototype would still apply.  */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char res_9_dn_skipname ();
10537 int
10538 main ()
10539 {
10540 return res_9_dn_skipname ();
10541   ;
10542   return 0;
10543 }
10544 _ACEOF
10545 for ac_lib in '' resolv bind; do
10546   if test -z "$ac_lib"; then
10547     ac_res="none required"
10548   else
10549     ac_res=-l$ac_lib
10550     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10551   fi
10552   if ac_fn_c_try_link "$LINENO"; then :
10553   ac_cv_search_res_9_dn_skipname=$ac_res
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext \
10556     conftest$ac_exeext
10557   if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10558   break
10559 fi
10560 done
10561 if ${ac_cv_search_res_9_dn_skipname+:} false; then :
10562
10563 else
10564   ac_cv_search_res_9_dn_skipname=no
10565 fi
10566 rm conftest.$ac_ext
10567 LIBS=$ac_func_search_save_LIBS
10568 fi
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_dn_skipname" >&5
10570 $as_echo "$ac_cv_search_res_9_dn_skipname" >&6; }
10571 ac_res=$ac_cv_search_res_9_dn_skipname
10572 if test "$ac_res" != no; then :
10573   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10574
10575 else
10576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dn_skipname" >&5
10577 $as_echo_n "checking for library containing dn_skipname... " >&6; }
10578 if ${ac_cv_search_dn_skipname+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   ac_func_search_save_LIBS=$LIBS
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h.  */
10584
10585 /* Override any GCC internal prototype to avoid an error.
10586    Use char because int might match the return type of a GCC
10587    builtin and then its argument prototype would still apply.  */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 char dn_skipname ();
10592 int
10593 main ()
10594 {
10595 return dn_skipname ();
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 for ac_lib in '' resolv bind; do
10601   if test -z "$ac_lib"; then
10602     ac_res="none required"
10603   else
10604     ac_res=-l$ac_lib
10605     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10606   fi
10607   if ac_fn_c_try_link "$LINENO"; then :
10608   ac_cv_search_dn_skipname=$ac_res
10609 fi
10610 rm -f core conftest.err conftest.$ac_objext \
10611     conftest$ac_exeext
10612   if ${ac_cv_search_dn_skipname+:} false; then :
10613   break
10614 fi
10615 done
10616 if ${ac_cv_search_dn_skipname+:} false; then :
10617
10618 else
10619   ac_cv_search_dn_skipname=no
10620 fi
10621 rm conftest.$ac_ext
10622 LIBS=$ac_func_search_save_LIBS
10623 fi
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dn_skipname" >&5
10625 $as_echo "$ac_cv_search_dn_skipname" >&6; }
10626 ac_res=$ac_cv_search_dn_skipname
10627 if test "$ac_res" != no; then :
10628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10629
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __dn_skipname" >&5
10632 $as_echo_n "checking for library containing __dn_skipname... " >&6; }
10633 if ${ac_cv_search___dn_skipname+:} false; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   ac_func_search_save_LIBS=$LIBS
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h.  */
10639
10640 /* Override any GCC internal prototype to avoid an error.
10641    Use char because int might match the return type of a GCC
10642    builtin and then its argument prototype would still apply.  */
10643 #ifdef __cplusplus
10644 extern "C"
10645 #endif
10646 char __dn_skipname ();
10647 int
10648 main ()
10649 {
10650 return __dn_skipname ();
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 for ac_lib in '' resolv bind; do
10656   if test -z "$ac_lib"; then
10657     ac_res="none required"
10658   else
10659     ac_res=-l$ac_lib
10660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10661   fi
10662   if ac_fn_c_try_link "$LINENO"; then :
10663   ac_cv_search___dn_skipname=$ac_res
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext \
10666     conftest$ac_exeext
10667   if ${ac_cv_search___dn_skipname+:} false; then :
10668   break
10669 fi
10670 done
10671 if ${ac_cv_search___dn_skipname+:} false; then :
10672
10673 else
10674   ac_cv_search___dn_skipname=no
10675 fi
10676 rm conftest.$ac_ext
10677 LIBS=$ac_func_search_save_LIBS
10678 fi
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___dn_skipname" >&5
10680 $as_echo "$ac_cv_search___dn_skipname" >&6; }
10681 ac_res=$ac_cv_search___dn_skipname
10682 if test "$ac_res" != no; then :
10683   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10684
10685 else
10686   have_resolver=no
10687 fi
10688
10689 fi
10690
10691 fi
10692
10693
10694   if test x"$have_resolver" != xno ; then
10695
10696       # Make sure that the BIND 4 resolver interface is workable before
10697       # enabling any code that calls it.  At some point I'll rewrite the
10698       # code to use the BIND 8 resolver API.
10699       # We might also want to use libdns instead.
10700
10701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the resolver is usable" >&5
10702 $as_echo_n "checking whether the resolver is usable... " >&6; }
10703     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705 #include <sys/types.h>
10706 #include <netinet/in.h>
10707 #include <arpa/nameser.h>
10708 #include <resolv.h>
10709 int
10710 main ()
10711 {
10712 unsigned char answer[PACKETSZ];
10713   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10714   dn_skipname(0,0);
10715   dn_expand(0,0,0,0,0);
10716
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722   have_resolver=yes
10723 else
10724   have_resolver=no
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727     conftest$ac_exeext conftest.$ac_ext
10728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10729 $as_echo "$have_resolver" >&6; }
10730
10731     # This is Apple-specific and somewhat bizarre as they changed the
10732     # define in bind 8 for some reason.
10733
10734     if test x"$have_resolver" != xyes ; then
10735       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make the resolver usable with BIND_8_COMPAT" >&5
10736 $as_echo_n "checking whether I can make the resolver usable with BIND_8_COMPAT... " >&6; }
10737       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h.  */
10739 #define BIND_8_COMPAT
10740 #include <sys/types.h>
10741 #include <netinet/in.h>
10742 #include <arpa/nameser.h>
10743 #include <resolv.h>
10744 int
10745 main ()
10746 {
10747 unsigned char answer[PACKETSZ];
10748   res_query("foo.bar",C_IN,T_A,answer,PACKETSZ);
10749   dn_skipname(0,0); dn_expand(0,0,0,0,0);
10750
10751   ;
10752   return 0;
10753 }
10754 _ACEOF
10755 if ac_fn_c_try_link "$LINENO"; then :
10756   have_resolver=yes ; need_compat=yes
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext \
10759     conftest$ac_exeext conftest.$ac_ext
10760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_resolver" >&5
10761 $as_echo "$have_resolver" >&6; }
10762     fi
10763   fi
10764
10765   if test x"$have_resolver" = xyes ; then
10766
10767 $as_echo "#define HAVE_SYSTEM_RESOLVER 1" >>confdefs.h
10768
10769     DNSLIBS="$DNSLIBS $LIBS"
10770     if test x"$need_compat" = xyes ; then
10771
10772 $as_echo "#define BIND_8_COMPAT 1" >>confdefs.h
10773
10774     fi
10775     if test "$use_libdns" = yes; then
10776      show_tor_support=yes
10777     fi
10778   elif test "$use_libdns" = yes; then
10779     show_tor_support=yes
10780   else
10781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10782 ***
10783 *** The system's DNS resolver is not usable.
10784 *** Dirmngr functionality is limited.
10785 ***" >&5
10786 $as_echo "$as_me: WARNING:
10787 ***
10788 *** The system's DNS resolver is not usable.
10789 *** Dirmngr functionality is limited.
10790 ***" >&2;}
10791     show_tor_support="${show_tor_support} (no system resolver)"
10792   fi
10793
10794   if test "$have_w32_system" = yes; then
10795     if test "$use_libdns" = yes; then
10796       DNSLIBS="$DNSLIBS -liphlpapi"
10797     fi
10798   fi
10799
10800   LIBS=$_dns_save_libs
10801 fi
10802
10803
10804
10805
10806 #
10807 # Check for LDAP
10808 #
10809 # Note that running the check changes the variable
10810 # gnupg_have_ldap from "n/a" to "no" or "yes".
10811
10812 # Check whether --enable-ldap was given.
10813 if test "${enable_ldap+set}" = set; then :
10814   enableval=$enable_ldap; if test "$enableval" = "no"; then gnupg_have_ldap=no; fi
10815 fi
10816
10817
10818 if test "$gnupg_have_ldap" != "no" ; then
10819   if test "$build_dirmngr" = "yes" ; then
10820
10821 # Try and link a LDAP test program to weed out unusable LDAP
10822 # libraries.  -lldap [-llber [-lresolv]] is for older OpenLDAPs.
10823 # OpenLDAP, circa 1999, was terrible with creating weird dependencies.
10824 # If all else fails, the user can play guess-the-dependency by using
10825 # something like ./configure LDAPLIBS="-Lfoo -lbar"
10826 gnupg_have_ldap=no
10827
10828 # Check whether --with-ldap was given.
10829 if test "${with_ldap+set}" = set; then :
10830   withval=$with_ldap; _ldap_with=$withval
10831 fi
10832
10833
10834 if test x$_ldap_with != xno ; then
10835
10836   if test -d "$withval" ; then
10837      LDAP_CPPFLAGS="-I$withval/include"
10838      LDAP_LDFLAGS="-L$withval/lib"
10839   fi
10840
10841   _ldap_save_cppflags=$CPPFLAGS
10842   CPPFLAGS="${LDAP_CPPFLAGS} ${CPPFLAGS}"
10843   _ldap_save_ldflags=$LDFLAGS
10844   LDFLAGS="${LDAP_LDFLAGS} ${LDFLAGS}"
10845
10846   for MY_LDAPLIBS in ${LDAPLIBS+"$LDAPLIBS"} "-lldap" "-lldap -llber" "-lldap -llber -lresolv" "-lwldap32"; do
10847     _ldap_save_libs=$LIBS
10848     LIBS="$MY_LDAPLIBS $NETLIBS $LIBS"
10849
10850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane" >&5
10851 $as_echo_n "checking whether LDAP via \"$MY_LDAPLIBS\" is present and sane... " >&6; }
10852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h.  */
10854
10855 #ifdef _WIN32
10856 #include <winsock2.h>
10857 #include <winldap.h>
10858 #else
10859 #include <ldap.h>
10860 #endif
10861
10862 int
10863 main ()
10864 {
10865 ldap_open("foobar",1234);
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871   gnupg_cv_func_ldap_init=yes
10872 else
10873   gnupg_cv_func_ldap_init=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876     conftest$ac_exeext conftest.$ac_ext
10877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_init" >&5
10878 $as_echo "$gnupg_cv_func_ldap_init" >&6; }
10879
10880     if test $gnupg_cv_func_ldap_init = no; then
10881       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether I can make LDAP be sane with lber.h" >&5
10882 $as_echo_n "checking whether I can make LDAP be sane with lber.h... " >&6; }
10883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h.  */
10885 #include <lber.h>
10886 #include <ldap.h>
10887 int
10888 main ()
10889 {
10890 ldap_open("foobar",1234);
10891   ;
10892   return 0;
10893 }
10894 _ACEOF
10895 if ac_fn_c_try_link "$LINENO"; then :
10896   gnupg_cv_func_ldaplber_init=yes
10897 else
10898   gnupg_cv_func_ldaplber_init=no
10899 fi
10900 rm -f core conftest.err conftest.$ac_objext \
10901     conftest$ac_exeext conftest.$ac_ext
10902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldaplber_init" >&5
10903 $as_echo "$gnupg_cv_func_ldaplber_init" >&6; }
10904     fi
10905
10906     if test "$gnupg_cv_func_ldaplber_init" = yes ; then
10907
10908 $as_echo "#define NEED_LBER_H 1" >>confdefs.h
10909
10910     fi
10911
10912     if test "$gnupg_cv_func_ldap_init" = yes || \
10913         test "$gnupg_cv_func_ldaplber_init" = yes ; then
10914        LDAPLIBS="$LDAP_LDFLAGS $MY_LDAPLIBS"
10915        GPGKEYS_LDAP="gpg2keys_ldap$EXEEXT"
10916        gnupg_have_ldap=yes
10917
10918        for ac_func in ldap_get_option ldap_set_option
10919 do :
10920   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10922 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10923   cat >>confdefs.h <<_ACEOF
10924 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10925 _ACEOF
10926
10927 fi
10928 done
10929
10930        # The extra test for ldap_start_tls_sA is for W32 because
10931        # that is the actual function in the library.
10932        for ac_func in ldap_start_tls_s ldap_start_tls_sA
10933 do :
10934   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10937   cat >>confdefs.h <<_ACEOF
10938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10939 _ACEOF
10940
10941 fi
10942 done
10943
10944
10945        if test "$ac_cv_func_ldap_get_option" != yes ; then
10946           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LDAP supports ld_errno" >&5
10947 $as_echo_n "checking whether LDAP supports ld_errno... " >&6; }
10948           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h.  */
10950 #include <ldap.h>
10951 int
10952 main ()
10953 {
10954 LDAP *ldap; ldap->ld_errno;
10955   ;
10956   return 0;
10957 }
10958 _ACEOF
10959 if ac_fn_c_try_link "$LINENO"; then :
10960   gnupg_cv_func_ldap_ld_errno=yes
10961 else
10962   gnupg_cv_func_ldap_ld_errno=no
10963 fi
10964 rm -f core conftest.err conftest.$ac_objext \
10965     conftest$ac_exeext conftest.$ac_ext
10966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ldap_ld_errno" >&5
10967 $as_echo "$gnupg_cv_func_ldap_ld_errno" >&6; }
10968
10969           if test "$gnupg_cv_func_ldap_ld_errno" = yes ; then
10970
10971 $as_echo "#define HAVE_LDAP_LD_ERRNO 1" >>confdefs.h
10972
10973           fi
10974        fi
10975     fi
10976
10977     LIBS=$_ldap_save_libs
10978
10979     if test "$GPGKEYS_LDAP" != "" ; then break; fi
10980   done
10981
10982
10983
10984
10985
10986   CPPFLAGS=$_ldap_save_cppflags
10987   LDFLAGS=$_ldap_save_ldflags
10988 fi
10989
10990      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -llber" >&5
10991 $as_echo_n "checking for ber_free in -llber... " >&6; }
10992 if ${ac_cv_lib_lber_ber_free+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-llber  $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char ber_free ();
11007 int
11008 main ()
11009 {
11010 return ber_free ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016   ac_cv_lib_lber_ber_free=yes
11017 else
11018   ac_cv_lib_lber_ber_free=no
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext \
11021     conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_free" >&5
11025 $as_echo "$ac_cv_lib_lber_ber_free" >&6; }
11026 if test "x$ac_cv_lib_lber_ber_free" = xyes; then :
11027    LBER_LIBS="$LBER_LIBS -llber"
11028
11029 $as_echo "#define HAVE_LBER 1" >>confdefs.h
11030
11031                     have_lber=yes
11032
11033 fi
11034
11035   fi
11036 fi
11037
11038 if test "$gnupg_have_ldap" = "no"; then
11039     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11040 ***
11041 *** Building without LDAP support.
11042 *** No CRL access or X.509 certificate search available.
11043 ***" >&5
11044 $as_echo "$as_me: WARNING:
11045 ***
11046 *** Building without LDAP support.
11047 *** No CRL access or X.509 certificate search available.
11048 ***" >&2;}
11049 fi
11050
11051  if test "$gnupg_have_ldap" = yes; then
11052   USE_LDAP_TRUE=
11053   USE_LDAP_FALSE='#'
11054 else
11055   USE_LDAP_TRUE='#'
11056   USE_LDAP_FALSE=
11057 fi
11058
11059 if test "$gnupg_have_ldap" = yes ; then
11060
11061 $as_echo "#define USE_LDAP 1" >>confdefs.h
11062
11063 fi
11064
11065
11066
11067 #
11068 # Check for sendmail
11069 #
11070 # This isn't necessarily sendmail itself, but anything that gives a
11071 # sendmail-ish interface to the outside world.  That includes Exim,
11072 # Postfix, etc.  Basically, anything that can handle "sendmail -t".
11073
11074 # Check whether --with-mailprog was given.
11075 if test "${with_mailprog+set}" = set; then :
11076   withval=$with_mailprog;
11077 else
11078   with_mailprog=yes
11079 fi
11080
11081 if test x"$with_mailprog" = xyes ; then
11082     # Extract the first word of "sendmail", so it can be a program name with args.
11083 set dummy sendmail; ac_word=$2
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085 $as_echo_n "checking for $ac_word... " >&6; }
11086 if ${ac_cv_path_SENDMAIL+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   case $SENDMAIL in
11090   [\\/]* | ?:[\\/]*)
11091   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
11092   ;;
11093   *)
11094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 as_dummy=""$PATH":/usr/sbin:/usr/libexec:/usr/lib"
11096 for as_dir in $as_dummy
11097 do
11098   IFS=$as_save_IFS
11099   test -z "$as_dir" && as_dir=.
11100     for ac_exec_ext in '' $ac_executable_extensions; do
11101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11102     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
11103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104     break 2
11105   fi
11106 done
11107   done
11108 IFS=$as_save_IFS
11109
11110   ;;
11111 esac
11112 fi
11113 SENDMAIL=$ac_cv_path_SENDMAIL
11114 if test -n "$SENDMAIL"; then
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENDMAIL" >&5
11116 $as_echo "$SENDMAIL" >&6; }
11117 else
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11119 $as_echo "no" >&6; }
11120 fi
11121
11122
11123 elif test x"$with_mailprog" != xno ; then
11124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a mail transport program" >&5
11125 $as_echo_n "checking for a mail transport program... " >&6; }
11126     SENDMAIL=$with_mailprog
11127
11128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mailprog" >&5
11129 $as_echo "$with_mailprog" >&6; }
11130 fi
11131
11132 cat >>confdefs.h <<_ACEOF
11133 #define NAME_OF_SENDMAIL "$SENDMAIL"
11134 _ACEOF
11135
11136
11137
11138 #
11139 # Construct a printable name of the OS
11140 #
11141 case "${host}" in
11142     *-mingw32ce*)
11143         PRINTABLE_OS_NAME="W32CE"
11144         ;;
11145     *-mingw32*)
11146         PRINTABLE_OS_NAME="MingW32"
11147         ;;
11148     *-*-cygwin*)
11149         PRINTABLE_OS_NAME="Cygwin"
11150         ;;
11151     i?86-emx-os2 | i?86-*-os2*emx )
11152         PRINTABLE_OS_NAME="OS/2"
11153         ;;
11154     i?86-*-msdosdjgpp*)
11155         PRINTABLE_OS_NAME="MSDOS/DJGPP"
11156         try_dynload=no
11157         ;;
11158     *-linux*)
11159         PRINTABLE_OS_NAME="GNU/Linux"
11160         ;;
11161     *)
11162         PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
11163         ;;
11164 esac
11165
11166 cat >>confdefs.h <<_ACEOF
11167 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
11168 _ACEOF
11169
11170
11171
11172 #
11173 # Checking for iconv
11174 #
11175 if test "$require_iconv" = yes; then
11176
11177       if test "X$prefix" = "XNONE"; then
11178     acl_final_prefix="$ac_default_prefix"
11179   else
11180     acl_final_prefix="$prefix"
11181   fi
11182   if test "X$exec_prefix" = "XNONE"; then
11183     acl_final_exec_prefix='${prefix}'
11184   else
11185     acl_final_exec_prefix="$exec_prefix"
11186   fi
11187   acl_save_prefix="$prefix"
11188   prefix="$acl_final_prefix"
11189   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11190   prefix="$acl_save_prefix"
11191
11192
11193 # Check whether --with-gnu-ld was given.
11194 if test "${with_gnu_ld+set}" = set; then :
11195   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11196 else
11197   with_gnu_ld=no
11198 fi
11199
11200 # Prepare PATH_SEPARATOR.
11201 # The user is always right.
11202 if test "${PATH_SEPARATOR+set}" != set; then
11203   echo "#! /bin/sh" >conf$$.sh
11204   echo  "exit 0"   >>conf$$.sh
11205   chmod +x conf$$.sh
11206   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11207     PATH_SEPARATOR=';'
11208   else
11209     PATH_SEPARATOR=:
11210   fi
11211   rm -f conf$$.sh
11212 fi
11213 ac_prog=ld
11214 if test "$GCC" = yes; then
11215   # Check if gcc -print-prog-name=ld gives a path.
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11217 $as_echo_n "checking for ld used by GCC... " >&6; }
11218   case $host in
11219   *-*-mingw*)
11220     # gcc leaves a trailing carriage return which upsets mingw
11221     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11222   *)
11223     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11224   esac
11225   case $ac_prog in
11226     # Accept absolute paths.
11227     [\\/]* | [A-Za-z]:[\\/]*)
11228       re_direlt='/[^/][^/]*/\.\./'
11229       # Canonicalize the path of ld
11230       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11231       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11232         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11233       done
11234       test -z "$LD" && LD="$ac_prog"
11235       ;;
11236   "")
11237     # If it fails, then pretend we aren't using GCC.
11238     ac_prog=ld
11239     ;;
11240   *)
11241     # If it is relative, then search for the first ld in PATH.
11242     with_gnu_ld=unknown
11243     ;;
11244   esac
11245 elif test "$with_gnu_ld" = yes; then
11246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11247 $as_echo_n "checking for GNU ld... " >&6; }
11248 else
11249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11250 $as_echo_n "checking for non-GNU ld... " >&6; }
11251 fi
11252 if ${acl_cv_path_LD+:} false; then :
11253   $as_echo_n "(cached) " >&6
11254 else
11255   if test -z "$LD"; then
11256   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11257   for ac_dir in $PATH; do
11258     test -z "$ac_dir" && ac_dir=.
11259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11260       acl_cv_path_LD="$ac_dir/$ac_prog"
11261       # Check to see if the program is GNU ld.  I'd rather use --version,
11262       # but apparently some GNU ld's only accept -v.
11263       # Break only if it was the GNU/non-GNU ld that we prefer.
11264       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11265       *GNU* | *'with BFD'*)
11266         test "$with_gnu_ld" != no && break ;;
11267       *)
11268         test "$with_gnu_ld" != yes && break ;;
11269       esac
11270     fi
11271   done
11272   IFS="$ac_save_ifs"
11273 else
11274   acl_cv_path_LD="$LD" # Let the user override the test with a path.
11275 fi
11276 fi
11277
11278 LD="$acl_cv_path_LD"
11279 if test -n "$LD"; then
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11281 $as_echo "$LD" >&6; }
11282 else
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11285 fi
11286 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11288 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11289 if ${acl_cv_prog_gnu_ld+:} false; then :
11290   $as_echo_n "(cached) " >&6
11291 else
11292   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11293 case `$LD -v 2>&1 </dev/null` in
11294 *GNU* | *'with BFD'*)
11295   acl_cv_prog_gnu_ld=yes ;;
11296 *)
11297   acl_cv_prog_gnu_ld=no ;;
11298 esac
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11301 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11302 with_gnu_ld=$acl_cv_prog_gnu_ld
11303
11304
11305
11306
11307                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11308 $as_echo_n "checking for shared library run path origin... " >&6; }
11309 if ${acl_cv_rpath+:} false; then :
11310   $as_echo_n "(cached) " >&6
11311 else
11312
11313     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11314     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11315     . ./conftest.sh
11316     rm -f ./conftest.sh
11317     acl_cv_rpath=done
11318
11319 fi
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11321 $as_echo "$acl_cv_rpath" >&6; }
11322   wl="$acl_cv_wl"
11323   acl_libext="$acl_cv_libext"
11324   acl_shlibext="$acl_cv_shlibext"
11325   acl_libname_spec="$acl_cv_libname_spec"
11326   acl_library_names_spec="$acl_cv_library_names_spec"
11327   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11328   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11329   acl_hardcode_direct="$acl_cv_hardcode_direct"
11330   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
11331     # Check whether --enable-rpath was given.
11332 if test "${enable_rpath+set}" = set; then :
11333   enableval=$enable_rpath; :
11334 else
11335   enable_rpath=yes
11336 fi
11337
11338
11339
11340                   acl_libdirstem=lib
11341   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11342   if test -n "$searchpath"; then
11343     acl_save_IFS="${IFS=        }"; IFS=":"
11344     for searchdir in $searchpath; do
11345       if test -d "$searchdir"; then
11346         case "$searchdir" in
11347           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11348           *) searchdir=`cd "$searchdir" && pwd`
11349              case "$searchdir" in
11350                */lib64 ) acl_libdirstem=lib64 ;;
11351              esac ;;
11352         esac
11353       fi
11354     done
11355     IFS="$acl_save_IFS"
11356   fi
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366     use_additional=yes
11367
11368   acl_save_prefix="$prefix"
11369   prefix="$acl_final_prefix"
11370   acl_save_exec_prefix="$exec_prefix"
11371   exec_prefix="$acl_final_exec_prefix"
11372
11373     eval additional_includedir=\"$includedir\"
11374     eval additional_libdir=\"$libdir\"
11375
11376   exec_prefix="$acl_save_exec_prefix"
11377   prefix="$acl_save_prefix"
11378
11379
11380 # Check whether --with-libiconv-prefix was given.
11381 if test "${with_libiconv_prefix+set}" = set; then :
11382   withval=$with_libiconv_prefix;
11383     if test "X$withval" = "Xno"; then
11384       use_additional=no
11385     else
11386       if test "X$withval" = "X"; then
11387
11388   acl_save_prefix="$prefix"
11389   prefix="$acl_final_prefix"
11390   acl_save_exec_prefix="$exec_prefix"
11391   exec_prefix="$acl_final_exec_prefix"
11392
11393           eval additional_includedir=\"$includedir\"
11394           eval additional_libdir=\"$libdir\"
11395
11396   exec_prefix="$acl_save_exec_prefix"
11397   prefix="$acl_save_prefix"
11398
11399       else
11400         additional_includedir="$withval/include"
11401         additional_libdir="$withval/$acl_libdirstem"
11402       fi
11403     fi
11404
11405 fi
11406
11407       LIBICONV=
11408   LTLIBICONV=
11409   INCICONV=
11410   LIBICONV_PREFIX=
11411   rpathdirs=
11412   ltrpathdirs=
11413   names_already_handled=
11414   names_next_round='iconv '
11415   while test -n "$names_next_round"; do
11416     names_this_round="$names_next_round"
11417     names_next_round=
11418     for name in $names_this_round; do
11419       already_handled=
11420       for n in $names_already_handled; do
11421         if test "$n" = "$name"; then
11422           already_handled=yes
11423           break
11424         fi
11425       done
11426       if test -z "$already_handled"; then
11427         names_already_handled="$names_already_handled $name"
11428                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11429         eval value=\"\$HAVE_LIB$uppername\"
11430         if test -n "$value"; then
11431           if test "$value" = yes; then
11432             eval value=\"\$LIB$uppername\"
11433             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11434             eval value=\"\$LTLIB$uppername\"
11435             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11436           else
11437                                     :
11438           fi
11439         else
11440                               found_dir=
11441           found_la=
11442           found_so=
11443           found_a=
11444           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11445           if test -n "$acl_shlibext"; then
11446             shrext=".$acl_shlibext"             # typically: shrext=.so
11447           else
11448             shrext=
11449           fi
11450           if test $use_additional = yes; then
11451             dir="$additional_libdir"
11452                                     if test -n "$acl_shlibext"; then
11453               if test -f "$dir/$libname$shrext"; then
11454                 found_dir="$dir"
11455                 found_so="$dir/$libname$shrext"
11456               else
11457                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11458                   ver=`(cd "$dir" && \
11459                         for f in "$libname$shrext".*; do echo "$f"; done \
11460                         | sed -e "s,^$libname$shrext\\\\.,," \
11461                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11462                         | sed 1q ) 2>/dev/null`
11463                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11464                     found_dir="$dir"
11465                     found_so="$dir/$libname$shrext.$ver"
11466                   fi
11467                 else
11468                   eval library_names=\"$acl_library_names_spec\"
11469                   for f in $library_names; do
11470                     if test -f "$dir/$f"; then
11471                       found_dir="$dir"
11472                       found_so="$dir/$f"
11473                       break
11474                     fi
11475                   done
11476                 fi
11477               fi
11478             fi
11479                         if test "X$found_dir" = "X"; then
11480               if test -f "$dir/$libname.$acl_libext"; then
11481                 found_dir="$dir"
11482                 found_a="$dir/$libname.$acl_libext"
11483               fi
11484             fi
11485             if test "X$found_dir" != "X"; then
11486               if test -f "$dir/$libname.la"; then
11487                 found_la="$dir/$libname.la"
11488               fi
11489             fi
11490           fi
11491           if test "X$found_dir" = "X"; then
11492             for x in $LDFLAGS $LTLIBICONV; do
11493
11494   acl_save_prefix="$prefix"
11495   prefix="$acl_final_prefix"
11496   acl_save_exec_prefix="$exec_prefix"
11497   exec_prefix="$acl_final_exec_prefix"
11498   eval x=\"$x\"
11499   exec_prefix="$acl_save_exec_prefix"
11500   prefix="$acl_save_prefix"
11501
11502               case "$x" in
11503                 -L*)
11504                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11505                                     if test -n "$acl_shlibext"; then
11506                     if test -f "$dir/$libname$shrext"; then
11507                       found_dir="$dir"
11508                       found_so="$dir/$libname$shrext"
11509                     else
11510                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11511                         ver=`(cd "$dir" && \
11512                               for f in "$libname$shrext".*; do echo "$f"; done \
11513                               | sed -e "s,^$libname$shrext\\\\.,," \
11514                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11515                               | sed 1q ) 2>/dev/null`
11516                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11517                           found_dir="$dir"
11518                           found_so="$dir/$libname$shrext.$ver"
11519                         fi
11520                       else
11521                         eval library_names=\"$acl_library_names_spec\"
11522                         for f in $library_names; do
11523                           if test -f "$dir/$f"; then
11524                             found_dir="$dir"
11525                             found_so="$dir/$f"
11526                             break
11527                           fi
11528                         done
11529                       fi
11530                     fi
11531                   fi
11532                                     if test "X$found_dir" = "X"; then
11533                     if test -f "$dir/$libname.$acl_libext"; then
11534                       found_dir="$dir"
11535                       found_a="$dir/$libname.$acl_libext"
11536                     fi
11537                   fi
11538                   if test "X$found_dir" != "X"; then
11539                     if test -f "$dir/$libname.la"; then
11540                       found_la="$dir/$libname.la"
11541                     fi
11542                   fi
11543                   ;;
11544               esac
11545               if test "X$found_dir" != "X"; then
11546                 break
11547               fi
11548             done
11549           fi
11550           if test "X$found_dir" != "X"; then
11551                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11552             if test "X$found_so" != "X"; then
11553                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11554                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11555               else
11556                                                                                 haveit=
11557                 for x in $ltrpathdirs; do
11558                   if test "X$x" = "X$found_dir"; then
11559                     haveit=yes
11560                     break
11561                   fi
11562                 done
11563                 if test -z "$haveit"; then
11564                   ltrpathdirs="$ltrpathdirs $found_dir"
11565                 fi
11566                                 if test "$acl_hardcode_direct" = yes; then
11567                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11568                 else
11569                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11570                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11571                                                             haveit=
11572                     for x in $rpathdirs; do
11573                       if test "X$x" = "X$found_dir"; then
11574                         haveit=yes
11575                         break
11576                       fi
11577                     done
11578                     if test -z "$haveit"; then
11579                       rpathdirs="$rpathdirs $found_dir"
11580                     fi
11581                   else
11582                                                                                 haveit=
11583                     for x in $LDFLAGS $LIBICONV; do
11584
11585   acl_save_prefix="$prefix"
11586   prefix="$acl_final_prefix"
11587   acl_save_exec_prefix="$exec_prefix"
11588   exec_prefix="$acl_final_exec_prefix"
11589   eval x=\"$x\"
11590   exec_prefix="$acl_save_exec_prefix"
11591   prefix="$acl_save_prefix"
11592
11593                       if test "X$x" = "X-L$found_dir"; then
11594                         haveit=yes
11595                         break
11596                       fi
11597                     done
11598                     if test -z "$haveit"; then
11599                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11600                     fi
11601                     if test "$acl_hardcode_minus_L" != no; then
11602                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11603                     else
11604                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11605                     fi
11606                   fi
11607                 fi
11608               fi
11609             else
11610               if test "X$found_a" != "X"; then
11611                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11612               else
11613                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11614               fi
11615             fi
11616                         additional_includedir=
11617             case "$found_dir" in
11618               */$acl_libdirstem | */$acl_libdirstem/)
11619                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11620                 LIBICONV_PREFIX="$basedir"
11621                 additional_includedir="$basedir/include"
11622                 ;;
11623             esac
11624             if test "X$additional_includedir" != "X"; then
11625                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11626                 haveit=
11627                 if test "X$additional_includedir" = "X/usr/local/include"; then
11628                   if test -n "$GCC"; then
11629                     case $host_os in
11630                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11631                     esac
11632                   fi
11633                 fi
11634                 if test -z "$haveit"; then
11635                   for x in $CPPFLAGS $INCICONV; do
11636
11637   acl_save_prefix="$prefix"
11638   prefix="$acl_final_prefix"
11639   acl_save_exec_prefix="$exec_prefix"
11640   exec_prefix="$acl_final_exec_prefix"
11641   eval x=\"$x\"
11642   exec_prefix="$acl_save_exec_prefix"
11643   prefix="$acl_save_prefix"
11644
11645                     if test "X$x" = "X-I$additional_includedir"; then
11646                       haveit=yes
11647                       break
11648                     fi
11649                   done
11650                   if test -z "$haveit"; then
11651                     if test -d "$additional_includedir"; then
11652                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11653                     fi
11654                   fi
11655                 fi
11656               fi
11657             fi
11658                         if test -n "$found_la"; then
11659                                                         save_libdir="$libdir"
11660               case "$found_la" in
11661                 */* | *\\*) . "$found_la" ;;
11662                 *) . "./$found_la" ;;
11663               esac
11664               libdir="$save_libdir"
11665                             for dep in $dependency_libs; do
11666                 case "$dep" in
11667                   -L*)
11668                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11669                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11670                       haveit=
11671                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11672                         if test -n "$GCC"; then
11673                           case $host_os in
11674                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11675                           esac
11676                         fi
11677                       fi
11678                       if test -z "$haveit"; then
11679                         haveit=
11680                         for x in $LDFLAGS $LIBICONV; do
11681
11682   acl_save_prefix="$prefix"
11683   prefix="$acl_final_prefix"
11684   acl_save_exec_prefix="$exec_prefix"
11685   exec_prefix="$acl_final_exec_prefix"
11686   eval x=\"$x\"
11687   exec_prefix="$acl_save_exec_prefix"
11688   prefix="$acl_save_prefix"
11689
11690                           if test "X$x" = "X-L$additional_libdir"; then
11691                             haveit=yes
11692                             break
11693                           fi
11694                         done
11695                         if test -z "$haveit"; then
11696                           if test -d "$additional_libdir"; then
11697                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11698                           fi
11699                         fi
11700                         haveit=
11701                         for x in $LDFLAGS $LTLIBICONV; do
11702
11703   acl_save_prefix="$prefix"
11704   prefix="$acl_final_prefix"
11705   acl_save_exec_prefix="$exec_prefix"
11706   exec_prefix="$acl_final_exec_prefix"
11707   eval x=\"$x\"
11708   exec_prefix="$acl_save_exec_prefix"
11709   prefix="$acl_save_prefix"
11710
11711                           if test "X$x" = "X-L$additional_libdir"; then
11712                             haveit=yes
11713                             break
11714                           fi
11715                         done
11716                         if test -z "$haveit"; then
11717                           if test -d "$additional_libdir"; then
11718                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11719                           fi
11720                         fi
11721                       fi
11722                     fi
11723                     ;;
11724                   -R*)
11725                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11726                     if test "$enable_rpath" != no; then
11727                                                                   haveit=
11728                       for x in $rpathdirs; do
11729                         if test "X$x" = "X$dir"; then
11730                           haveit=yes
11731                           break
11732                         fi
11733                       done
11734                       if test -z "$haveit"; then
11735                         rpathdirs="$rpathdirs $dir"
11736                       fi
11737                                                                   haveit=
11738                       for x in $ltrpathdirs; do
11739                         if test "X$x" = "X$dir"; then
11740                           haveit=yes
11741                           break
11742                         fi
11743                       done
11744                       if test -z "$haveit"; then
11745                         ltrpathdirs="$ltrpathdirs $dir"
11746                       fi
11747                     fi
11748                     ;;
11749                   -l*)
11750                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11751                     ;;
11752                   *.la)
11753                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11754                     ;;
11755                   *)
11756                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11757                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11758                     ;;
11759                 esac
11760               done
11761             fi
11762           else
11763                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11764             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11765           fi
11766         fi
11767       fi
11768     done
11769   done
11770   if test "X$rpathdirs" != "X"; then
11771     if test -n "$acl_hardcode_libdir_separator"; then
11772                         alldirs=
11773       for found_dir in $rpathdirs; do
11774         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11775       done
11776             acl_save_libdir="$libdir"
11777       libdir="$alldirs"
11778       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11779       libdir="$acl_save_libdir"
11780       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11781     else
11782             for found_dir in $rpathdirs; do
11783         acl_save_libdir="$libdir"
11784         libdir="$found_dir"
11785         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11786         libdir="$acl_save_libdir"
11787         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11788       done
11789     fi
11790   fi
11791   if test "X$ltrpathdirs" != "X"; then
11792             for found_dir in $ltrpathdirs; do
11793       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11794     done
11795   fi
11796
11797
11798
11799
11800
11801
11802
11803           am_save_CPPFLAGS="$CPPFLAGS"
11804
11805   for element in $INCICONV; do
11806     haveit=
11807     for x in $CPPFLAGS; do
11808
11809   acl_save_prefix="$prefix"
11810   prefix="$acl_final_prefix"
11811   acl_save_exec_prefix="$exec_prefix"
11812   exec_prefix="$acl_final_exec_prefix"
11813   eval x=\"$x\"
11814   exec_prefix="$acl_save_exec_prefix"
11815   prefix="$acl_save_prefix"
11816
11817       if test "X$x" = "X$element"; then
11818         haveit=yes
11819         break
11820       fi
11821     done
11822     if test -z "$haveit"; then
11823       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11824     fi
11825   done
11826
11827
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11829 $as_echo_n "checking for iconv... " >&6; }
11830 if ${am_cv_func_iconv+:} false; then :
11831   $as_echo_n "(cached) " >&6
11832 else
11833
11834     am_cv_func_iconv="no, consider installing GNU libiconv"
11835     am_cv_lib_iconv=no
11836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h.  */
11838
11839 #include <stdlib.h>
11840 #include <iconv.h>
11841
11842 int
11843 main ()
11844 {
11845 iconv_t cd = iconv_open("","");
11846            iconv(cd,NULL,NULL,NULL,NULL);
11847            iconv_close(cd);
11848   ;
11849   return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_link "$LINENO"; then :
11853   am_cv_func_iconv=yes
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext \
11856     conftest$ac_exeext conftest.$ac_ext
11857     if test "$am_cv_func_iconv" != yes; then
11858       am_save_LIBS="$LIBS"
11859       LIBS="$LIBS $LIBICONV"
11860       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h.  */
11862
11863 #include <stdlib.h>
11864 #include <iconv.h>
11865
11866 int
11867 main ()
11868 {
11869 iconv_t cd = iconv_open("","");
11870              iconv(cd,NULL,NULL,NULL,NULL);
11871              iconv_close(cd);
11872   ;
11873   return 0;
11874 }
11875 _ACEOF
11876 if ac_fn_c_try_link "$LINENO"; then :
11877   am_cv_lib_iconv=yes
11878         am_cv_func_iconv=yes
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext \
11881     conftest$ac_exeext conftest.$ac_ext
11882       LIBS="$am_save_LIBS"
11883     fi
11884
11885 fi
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11887 $as_echo "$am_cv_func_iconv" >&6; }
11888   if test "$am_cv_func_iconv" = yes; then
11889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11890 $as_echo_n "checking for working iconv... " >&6; }
11891 if ${am_cv_func_iconv_works+:} false; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894
11895                   am_save_LIBS="$LIBS"
11896       if test $am_cv_lib_iconv = yes; then
11897         LIBS="$LIBS $LIBICONV"
11898       fi
11899       am_cv_func_iconv_works=no
11900       for ac_iconv_const in '' 'const'; do
11901         if test "$cross_compiling" = yes; then :
11902   case "$host_os" in
11903              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11904              *)            am_cv_func_iconv_works="guessing yes" ;;
11905            esac
11906 else
11907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h.  */
11909
11910 #include <iconv.h>
11911 #include <string.h>
11912
11913 #ifndef ICONV_CONST
11914 # define ICONV_CONST $ac_iconv_const
11915 #endif
11916
11917 int
11918 main ()
11919 {
11920 int result = 0;
11921   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11922      returns.  */
11923   {
11924     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11925     if (cd_utf8_to_88591 != (iconv_t)(-1))
11926       {
11927         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11928         char buf[10];
11929         ICONV_CONST char *inptr = input;
11930         size_t inbytesleft = strlen (input);
11931         char *outptr = buf;
11932         size_t outbytesleft = sizeof (buf);
11933         size_t res = iconv (cd_utf8_to_88591,
11934                             &inptr, &inbytesleft,
11935                             &outptr, &outbytesleft);
11936         if (res == 0)
11937           result |= 1;
11938         iconv_close (cd_utf8_to_88591);
11939       }
11940   }
11941   /* Test against Solaris 10 bug: Failures are not distinguishable from
11942      successful returns.  */
11943   {
11944     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11945     if (cd_ascii_to_88591 != (iconv_t)(-1))
11946       {
11947         static ICONV_CONST char input[] = "\263";
11948         char buf[10];
11949         ICONV_CONST char *inptr = input;
11950         size_t inbytesleft = strlen (input);
11951         char *outptr = buf;
11952         size_t outbytesleft = sizeof (buf);
11953         size_t res = iconv (cd_ascii_to_88591,
11954                             &inptr, &inbytesleft,
11955                             &outptr, &outbytesleft);
11956         if (res == 0)
11957           result |= 2;
11958         iconv_close (cd_ascii_to_88591);
11959       }
11960   }
11961   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
11962   {
11963     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11964     if (cd_88591_to_utf8 != (iconv_t)(-1))
11965       {
11966         static ICONV_CONST char input[] = "\304";
11967         static char buf[2] = { (char)0xDE, (char)0xAD };
11968         ICONV_CONST char *inptr = input;
11969         size_t inbytesleft = 1;
11970         char *outptr = buf;
11971         size_t outbytesleft = 1;
11972         size_t res = iconv (cd_88591_to_utf8,
11973                             &inptr, &inbytesleft,
11974                             &outptr, &outbytesleft);
11975         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11976           result |= 4;
11977         iconv_close (cd_88591_to_utf8);
11978       }
11979   }
11980 #if 0 /* This bug could be worked around by the caller.  */
11981   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
11982   {
11983     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11984     if (cd_88591_to_utf8 != (iconv_t)(-1))
11985       {
11986         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11987         char buf[50];
11988         ICONV_CONST char *inptr = input;
11989         size_t inbytesleft = strlen (input);
11990         char *outptr = buf;
11991         size_t outbytesleft = sizeof (buf);
11992         size_t res = iconv (cd_88591_to_utf8,
11993                             &inptr, &inbytesleft,
11994                             &outptr, &outbytesleft);
11995         if ((int)res > 0)
11996           result |= 8;
11997         iconv_close (cd_88591_to_utf8);
11998       }
11999   }
12000 #endif
12001   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12002      provided.  */
12003   {
12004     /* Try standardized names.  */
12005     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12006     /* Try IRIX, OSF/1 names.  */
12007     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12008     /* Try AIX names.  */
12009     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12010     /* Try HP-UX names.  */
12011     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12012     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12013         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12014       result |= 16;
12015     if (cd1 != (iconv_t)(-1))
12016       iconv_close (cd1);
12017     if (cd2 != (iconv_t)(-1))
12018       iconv_close (cd2);
12019     if (cd3 != (iconv_t)(-1))
12020       iconv_close (cd3);
12021     if (cd4 != (iconv_t)(-1))
12022       iconv_close (cd4);
12023   }
12024   return result;
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_run "$LINENO"; then :
12031   am_cv_func_iconv_works=yes
12032 fi
12033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12034   conftest.$ac_objext conftest.beam conftest.$ac_ext
12035 fi
12036
12037         test "$am_cv_func_iconv_works" = no || break
12038       done
12039       LIBS="$am_save_LIBS"
12040
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12043 $as_echo "$am_cv_func_iconv_works" >&6; }
12044     case "$am_cv_func_iconv_works" in
12045       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12046       *)   am_func_iconv=yes ;;
12047     esac
12048   else
12049     am_func_iconv=no am_cv_lib_iconv=no
12050   fi
12051   if test "$am_func_iconv" = yes; then
12052
12053 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12054
12055   fi
12056   if test "$am_cv_lib_iconv" = yes; then
12057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12058 $as_echo_n "checking how to link with libiconv... " >&6; }
12059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12060 $as_echo "$LIBICONV" >&6; }
12061   else
12062             CPPFLAGS="$am_save_CPPFLAGS"
12063     LIBICONV=
12064     LTLIBICONV=
12065   fi
12066
12067
12068
12069   if test "$am_cv_func_iconv" = yes; then
12070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
12071 $as_echo_n "checking for iconv declaration... " >&6; }
12072     if ${am_cv_proto_iconv+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075
12076       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h.  */
12078
12079 #include <stdlib.h>
12080 #include <iconv.h>
12081 extern
12082 #ifdef __cplusplus
12083 "C"
12084 #endif
12085 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
12086 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12087 #else
12088 size_t iconv();
12089 #endif
12090
12091 int
12092 main ()
12093 {
12094
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 if ac_fn_c_try_compile "$LINENO"; then :
12100   am_cv_proto_iconv_arg1=""
12101 else
12102   am_cv_proto_iconv_arg1="const"
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105       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);"
12106 fi
12107
12108     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12109     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
12110          $am_cv_proto_iconv" >&5
12111 $as_echo "
12112          $am_cv_proto_iconv" >&6; }
12113   else
12114             am_cv_proto_iconv_arg1=""
12115   fi
12116
12117 cat >>confdefs.h <<_ACEOF
12118 #define ICONV_CONST $am_cv_proto_iconv_arg1
12119 _ACEOF
12120
12121
12122
12123 else
12124   LIBICONV=
12125   LTLIBICONV=
12126
12127
12128 fi
12129
12130
12131 #
12132 # Check for gettext
12133 #
12134 # This is "GNU gnupg" - The project-id script from gettext
12135 #                       needs this string
12136 #
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
12138 $as_echo "$as_me: checking for gettext" >&6;}
12139
12140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12141 $as_echo_n "checking whether NLS is requested... " >&6; }
12142     # Check whether --enable-nls was given.
12143 if test "${enable_nls+set}" = set; then :
12144   enableval=$enable_nls; USE_NLS=$enableval
12145 else
12146   USE_NLS=yes
12147 fi
12148
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12150 $as_echo "$USE_NLS" >&6; }
12151
12152
12153
12154
12155       GETTEXT_MACRO_VERSION=0.17
12156
12157
12158
12159
12160 # Prepare PATH_SEPARATOR.
12161 # The user is always right.
12162 if test "${PATH_SEPARATOR+set}" != set; then
12163   echo "#! /bin/sh" >conf$$.sh
12164   echo  "exit 0"   >>conf$$.sh
12165   chmod +x conf$$.sh
12166   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12167     PATH_SEPARATOR=';'
12168   else
12169     PATH_SEPARATOR=:
12170   fi
12171   rm -f conf$$.sh
12172 fi
12173
12174 # Find out how to test for executable files. Don't use a zero-byte file,
12175 # as systems may use methods other than mode bits to determine executability.
12176 cat >conf$$.file <<_ASEOF
12177 #! /bin/sh
12178 exit 0
12179 _ASEOF
12180 chmod +x conf$$.file
12181 if test -x conf$$.file >/dev/null 2>&1; then
12182   ac_executable_p="test -x"
12183 else
12184   ac_executable_p="test -f"
12185 fi
12186 rm -f conf$$.file
12187
12188 # Extract the first word of "msgfmt", so it can be a program name with args.
12189 set dummy msgfmt; ac_word=$2
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12191 $as_echo_n "checking for $ac_word... " >&6; }
12192 if ${ac_cv_path_MSGFMT+:} false; then :
12193   $as_echo_n "(cached) " >&6
12194 else
12195   case "$MSGFMT" in
12196   [\\/]* | ?:[\\/]*)
12197     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12198     ;;
12199   *)
12200     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12201     for ac_dir in $PATH; do
12202       IFS="$ac_save_IFS"
12203       test -z "$ac_dir" && ac_dir=.
12204       for ac_exec_ext in '' $ac_executable_extensions; do
12205         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12206           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12207           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12208      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12209             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12210             break 2
12211           fi
12212         fi
12213       done
12214     done
12215     IFS="$ac_save_IFS"
12216   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12217     ;;
12218 esac
12219 fi
12220 MSGFMT="$ac_cv_path_MSGFMT"
12221 if test "$MSGFMT" != ":"; then
12222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12223 $as_echo "$MSGFMT" >&6; }
12224 else
12225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12227 fi
12228
12229   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12230 set dummy gmsgfmt; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232 $as_echo_n "checking for $ac_word... " >&6; }
12233 if ${ac_cv_path_GMSGFMT+:} false; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   case $GMSGFMT in
12237   [\\/]* | ?:[\\/]*)
12238   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12239   ;;
12240   *)
12241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12243 do
12244   IFS=$as_save_IFS
12245   test -z "$as_dir" && as_dir=.
12246     for ac_exec_ext in '' $ac_executable_extensions; do
12247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250     break 2
12251   fi
12252 done
12253   done
12254 IFS=$as_save_IFS
12255
12256   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12257   ;;
12258 esac
12259 fi
12260 GMSGFMT=$ac_cv_path_GMSGFMT
12261 if test -n "$GMSGFMT"; then
12262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12263 $as_echo "$GMSGFMT" >&6; }
12264 else
12265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267 fi
12268
12269
12270
12271     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12272     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12273     *) MSGFMT_015=$MSGFMT ;;
12274   esac
12275
12276   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12277     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12278     *) GMSGFMT_015=$GMSGFMT ;;
12279   esac
12280
12281
12282
12283 # Prepare PATH_SEPARATOR.
12284 # The user is always right.
12285 if test "${PATH_SEPARATOR+set}" != set; then
12286   echo "#! /bin/sh" >conf$$.sh
12287   echo  "exit 0"   >>conf$$.sh
12288   chmod +x conf$$.sh
12289   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12290     PATH_SEPARATOR=';'
12291   else
12292     PATH_SEPARATOR=:
12293   fi
12294   rm -f conf$$.sh
12295 fi
12296
12297 # Find out how to test for executable files. Don't use a zero-byte file,
12298 # as systems may use methods other than mode bits to determine executability.
12299 cat >conf$$.file <<_ASEOF
12300 #! /bin/sh
12301 exit 0
12302 _ASEOF
12303 chmod +x conf$$.file
12304 if test -x conf$$.file >/dev/null 2>&1; then
12305   ac_executable_p="test -x"
12306 else
12307   ac_executable_p="test -f"
12308 fi
12309 rm -f conf$$.file
12310
12311 # Extract the first word of "xgettext", so it can be a program name with args.
12312 set dummy xgettext; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_path_XGETTEXT+:} false; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   case "$XGETTEXT" in
12319   [\\/]* | ?:[\\/]*)
12320     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12321     ;;
12322   *)
12323     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12324     for ac_dir in $PATH; do
12325       IFS="$ac_save_IFS"
12326       test -z "$ac_dir" && ac_dir=.
12327       for ac_exec_ext in '' $ac_executable_extensions; do
12328         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12329           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12330           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12331      (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
12332             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12333             break 2
12334           fi
12335         fi
12336       done
12337     done
12338     IFS="$ac_save_IFS"
12339   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12340     ;;
12341 esac
12342 fi
12343 XGETTEXT="$ac_cv_path_XGETTEXT"
12344 if test "$XGETTEXT" != ":"; then
12345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12346 $as_echo "$XGETTEXT" >&6; }
12347 else
12348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12350 fi
12351
12352     rm -f messages.po
12353
12354     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12355     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12356     *) XGETTEXT_015=$XGETTEXT ;;
12357   esac
12358
12359
12360
12361 # Prepare PATH_SEPARATOR.
12362 # The user is always right.
12363 if test "${PATH_SEPARATOR+set}" != set; then
12364   echo "#! /bin/sh" >conf$$.sh
12365   echo  "exit 0"   >>conf$$.sh
12366   chmod +x conf$$.sh
12367   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12368     PATH_SEPARATOR=';'
12369   else
12370     PATH_SEPARATOR=:
12371   fi
12372   rm -f conf$$.sh
12373 fi
12374
12375 # Find out how to test for executable files. Don't use a zero-byte file,
12376 # as systems may use methods other than mode bits to determine executability.
12377 cat >conf$$.file <<_ASEOF
12378 #! /bin/sh
12379 exit 0
12380 _ASEOF
12381 chmod +x conf$$.file
12382 if test -x conf$$.file >/dev/null 2>&1; then
12383   ac_executable_p="test -x"
12384 else
12385   ac_executable_p="test -f"
12386 fi
12387 rm -f conf$$.file
12388
12389 # Extract the first word of "msgmerge", so it can be a program name with args.
12390 set dummy msgmerge; ac_word=$2
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if ${ac_cv_path_MSGMERGE+:} false; then :
12394   $as_echo_n "(cached) " >&6
12395 else
12396   case "$MSGMERGE" in
12397   [\\/]* | ?:[\\/]*)
12398     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12399     ;;
12400   *)
12401     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12402     for ac_dir in $PATH; do
12403       IFS="$ac_save_IFS"
12404       test -z "$ac_dir" && ac_dir=.
12405       for ac_exec_ext in '' $ac_executable_extensions; do
12406         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12407           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12408           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12409             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12410             break 2
12411           fi
12412         fi
12413       done
12414     done
12415     IFS="$ac_save_IFS"
12416   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12417     ;;
12418 esac
12419 fi
12420 MSGMERGE="$ac_cv_path_MSGMERGE"
12421 if test "$MSGMERGE" != ":"; then
12422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12423 $as_echo "$MSGMERGE" >&6; }
12424 else
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427 fi
12428
12429
12430         test -n "$localedir" || localedir='${datadir}/locale'
12431
12432
12433     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12434
12435
12436   ac_config_commands="$ac_config_commands po-directories"
12437
12438
12439
12440 if test "$try_gettext" = yes; then
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
12465 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
12466 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
12467   $as_echo_n "(cached) " >&6
12468 else
12469   gt_save_LIBS="$LIBS"
12470      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12471      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h.  */
12473 #include <CoreFoundation/CFPreferences.h>
12474 int
12475 main ()
12476 {
12477 CFPreferencesCopyAppValue(NULL, NULL)
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"; then :
12483   gt_cv_func_CFPreferencesCopyAppValue=yes
12484 else
12485   gt_cv_func_CFPreferencesCopyAppValue=no
12486 fi
12487 rm -f core conftest.err conftest.$ac_objext \
12488     conftest$ac_exeext conftest.$ac_ext
12489      LIBS="$gt_save_LIBS"
12490 fi
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12492 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12493   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12494
12495 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
12496
12497   fi
12498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
12499 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
12500 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
12501   $as_echo_n "(cached) " >&6
12502 else
12503   gt_save_LIBS="$LIBS"
12504      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
12505      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h.  */
12507 #include <CoreFoundation/CFLocale.h>
12508 int
12509 main ()
12510 {
12511 CFLocaleCopyCurrent();
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517   gt_cv_func_CFLocaleCopyCurrent=yes
12518 else
12519   gt_cv_func_CFLocaleCopyCurrent=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext conftest.$ac_ext
12523      LIBS="$gt_save_LIBS"
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12526 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12527   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12528
12529 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
12530
12531   fi
12532   INTL_MACOSX_LIBS=
12533   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12534     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12535   fi
12536
12537
12538
12539
12540
12541
12542   LIBINTL=
12543   LTLIBINTL=
12544   POSUB=
12545
12546     case " $gt_needs " in
12547     *" need-formatstring-macros "*) gt_api_version=3 ;;
12548     *" need-ngettext "*) gt_api_version=2 ;;
12549     *) gt_api_version=1 ;;
12550   esac
12551   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
12552   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
12553
12554     if test "$USE_NLS" = "yes"; then
12555     gt_use_preinstalled_gnugettext=no
12556
12557
12558         if test $gt_api_version -ge 3; then
12559           gt_revision_test_code='
12560 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12561 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
12562 #endif
12563 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
12564 '
12565         else
12566           gt_revision_test_code=
12567         fi
12568         if test $gt_api_version -ge 2; then
12569           gt_expression_test_code=' + * ngettext ("", "", 0)'
12570         else
12571           gt_expression_test_code=
12572         fi
12573
12574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
12575 $as_echo_n "checking for GNU gettext in libc... " >&6; }
12576 if eval \${$gt_func_gnugettext_libc+:} false; then :
12577   $as_echo_n "(cached) " >&6
12578 else
12579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h.  */
12581
12582 #include <libintl.h>
12583 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
12584 extern int _nl_msg_cat_cntr;
12585 extern int *_nl_domain_bindings;
12586 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
12587 #else
12588 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
12589 #endif
12590 $gt_revision_test_code
12591
12592 int
12593 main ()
12594 {
12595
12596 bindtextdomain ("", "");
12597 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
12598
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_link "$LINENO"; then :
12604   eval "$gt_func_gnugettext_libc=yes"
12605 else
12606   eval "$gt_func_gnugettext_libc=no"
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext \
12609     conftest$ac_exeext conftest.$ac_ext
12610 fi
12611 eval ac_res=\$$gt_func_gnugettext_libc
12612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12613 $as_echo "$ac_res" >&6; }
12614
12615         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
12616
12617
12618
12619
12620
12621           am_save_CPPFLAGS="$CPPFLAGS"
12622
12623   for element in $INCICONV; do
12624     haveit=
12625     for x in $CPPFLAGS; do
12626
12627   acl_save_prefix="$prefix"
12628   prefix="$acl_final_prefix"
12629   acl_save_exec_prefix="$exec_prefix"
12630   exec_prefix="$acl_final_exec_prefix"
12631   eval x=\"$x\"
12632   exec_prefix="$acl_save_exec_prefix"
12633   prefix="$acl_save_prefix"
12634
12635       if test "X$x" = "X$element"; then
12636         haveit=yes
12637         break
12638       fi
12639     done
12640     if test -z "$haveit"; then
12641       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12642     fi
12643   done
12644
12645
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12647 $as_echo_n "checking for iconv... " >&6; }
12648 if ${am_cv_func_iconv+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651
12652     am_cv_func_iconv="no, consider installing GNU libiconv"
12653     am_cv_lib_iconv=no
12654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h.  */
12656
12657 #include <stdlib.h>
12658 #include <iconv.h>
12659
12660 int
12661 main ()
12662 {
12663 iconv_t cd = iconv_open("","");
12664            iconv(cd,NULL,NULL,NULL,NULL);
12665            iconv_close(cd);
12666   ;
12667   return 0;
12668 }
12669 _ACEOF
12670 if ac_fn_c_try_link "$LINENO"; then :
12671   am_cv_func_iconv=yes
12672 fi
12673 rm -f core conftest.err conftest.$ac_objext \
12674     conftest$ac_exeext conftest.$ac_ext
12675     if test "$am_cv_func_iconv" != yes; then
12676       am_save_LIBS="$LIBS"
12677       LIBS="$LIBS $LIBICONV"
12678       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680
12681 #include <stdlib.h>
12682 #include <iconv.h>
12683
12684 int
12685 main ()
12686 {
12687 iconv_t cd = iconv_open("","");
12688              iconv(cd,NULL,NULL,NULL,NULL);
12689              iconv_close(cd);
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695   am_cv_lib_iconv=yes
12696         am_cv_func_iconv=yes
12697 fi
12698 rm -f core conftest.err conftest.$ac_objext \
12699     conftest$ac_exeext conftest.$ac_ext
12700       LIBS="$am_save_LIBS"
12701     fi
12702
12703 fi
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12705 $as_echo "$am_cv_func_iconv" >&6; }
12706   if test "$am_cv_func_iconv" = yes; then
12707     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12708 $as_echo_n "checking for working iconv... " >&6; }
12709 if ${am_cv_func_iconv_works+:} false; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712
12713                   am_save_LIBS="$LIBS"
12714       if test $am_cv_lib_iconv = yes; then
12715         LIBS="$LIBS $LIBICONV"
12716       fi
12717       am_cv_func_iconv_works=no
12718       for ac_iconv_const in '' 'const'; do
12719         if test "$cross_compiling" = yes; then :
12720   case "$host_os" in
12721              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12722              *)            am_cv_func_iconv_works="guessing yes" ;;
12723            esac
12724 else
12725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726 /* end confdefs.h.  */
12727
12728 #include <iconv.h>
12729 #include <string.h>
12730
12731 #ifndef ICONV_CONST
12732 # define ICONV_CONST $ac_iconv_const
12733 #endif
12734
12735 int
12736 main ()
12737 {
12738 int result = 0;
12739   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12740      returns.  */
12741   {
12742     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12743     if (cd_utf8_to_88591 != (iconv_t)(-1))
12744       {
12745         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
12746         char buf[10];
12747         ICONV_CONST char *inptr = input;
12748         size_t inbytesleft = strlen (input);
12749         char *outptr = buf;
12750         size_t outbytesleft = sizeof (buf);
12751         size_t res = iconv (cd_utf8_to_88591,
12752                             &inptr, &inbytesleft,
12753                             &outptr, &outbytesleft);
12754         if (res == 0)
12755           result |= 1;
12756         iconv_close (cd_utf8_to_88591);
12757       }
12758   }
12759   /* Test against Solaris 10 bug: Failures are not distinguishable from
12760      successful returns.  */
12761   {
12762     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12763     if (cd_ascii_to_88591 != (iconv_t)(-1))
12764       {
12765         static ICONV_CONST char input[] = "\263";
12766         char buf[10];
12767         ICONV_CONST char *inptr = input;
12768         size_t inbytesleft = strlen (input);
12769         char *outptr = buf;
12770         size_t outbytesleft = sizeof (buf);
12771         size_t res = iconv (cd_ascii_to_88591,
12772                             &inptr, &inbytesleft,
12773                             &outptr, &outbytesleft);
12774         if (res == 0)
12775           result |= 2;
12776         iconv_close (cd_ascii_to_88591);
12777       }
12778   }
12779   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
12780   {
12781     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
12782     if (cd_88591_to_utf8 != (iconv_t)(-1))
12783       {
12784         static ICONV_CONST char input[] = "\304";
12785         static char buf[2] = { (char)0xDE, (char)0xAD };
12786         ICONV_CONST char *inptr = input;
12787         size_t inbytesleft = 1;
12788         char *outptr = buf;
12789         size_t outbytesleft = 1;
12790         size_t res = iconv (cd_88591_to_utf8,
12791                             &inptr, &inbytesleft,
12792                             &outptr, &outbytesleft);
12793         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
12794           result |= 4;
12795         iconv_close (cd_88591_to_utf8);
12796       }
12797   }
12798 #if 0 /* This bug could be worked around by the caller.  */
12799   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
12800   {
12801     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12802     if (cd_88591_to_utf8 != (iconv_t)(-1))
12803       {
12804         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12805         char buf[50];
12806         ICONV_CONST char *inptr = input;
12807         size_t inbytesleft = strlen (input);
12808         char *outptr = buf;
12809         size_t outbytesleft = sizeof (buf);
12810         size_t res = iconv (cd_88591_to_utf8,
12811                             &inptr, &inbytesleft,
12812                             &outptr, &outbytesleft);
12813         if ((int)res > 0)
12814           result |= 8;
12815         iconv_close (cd_88591_to_utf8);
12816       }
12817   }
12818 #endif
12819   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12820      provided.  */
12821   {
12822     /* Try standardized names.  */
12823     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
12824     /* Try IRIX, OSF/1 names.  */
12825     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
12826     /* Try AIX names.  */
12827     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
12828     /* Try HP-UX names.  */
12829     iconv_t cd4 = iconv_open ("utf8", "eucJP");
12830     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
12831         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
12832       result |= 16;
12833     if (cd1 != (iconv_t)(-1))
12834       iconv_close (cd1);
12835     if (cd2 != (iconv_t)(-1))
12836       iconv_close (cd2);
12837     if (cd3 != (iconv_t)(-1))
12838       iconv_close (cd3);
12839     if (cd4 != (iconv_t)(-1))
12840       iconv_close (cd4);
12841   }
12842   return result;
12843
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_run "$LINENO"; then :
12849   am_cv_func_iconv_works=yes
12850 fi
12851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12852   conftest.$ac_objext conftest.beam conftest.$ac_ext
12853 fi
12854
12855         test "$am_cv_func_iconv_works" = no || break
12856       done
12857       LIBS="$am_save_LIBS"
12858
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
12861 $as_echo "$am_cv_func_iconv_works" >&6; }
12862     case "$am_cv_func_iconv_works" in
12863       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
12864       *)   am_func_iconv=yes ;;
12865     esac
12866   else
12867     am_func_iconv=no am_cv_lib_iconv=no
12868   fi
12869   if test "$am_func_iconv" = yes; then
12870
12871 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
12872
12873   fi
12874   if test "$am_cv_lib_iconv" = yes; then
12875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
12876 $as_echo_n "checking how to link with libiconv... " >&6; }
12877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
12878 $as_echo "$LIBICONV" >&6; }
12879   else
12880             CPPFLAGS="$am_save_CPPFLAGS"
12881     LIBICONV=
12882     LTLIBICONV=
12883   fi
12884
12885
12886
12887
12888
12889
12890
12891
12892     use_additional=yes
12893
12894   acl_save_prefix="$prefix"
12895   prefix="$acl_final_prefix"
12896   acl_save_exec_prefix="$exec_prefix"
12897   exec_prefix="$acl_final_exec_prefix"
12898
12899     eval additional_includedir=\"$includedir\"
12900     eval additional_libdir=\"$libdir\"
12901
12902   exec_prefix="$acl_save_exec_prefix"
12903   prefix="$acl_save_prefix"
12904
12905
12906 # Check whether --with-libintl-prefix was given.
12907 if test "${with_libintl_prefix+set}" = set; then :
12908   withval=$with_libintl_prefix;
12909     if test "X$withval" = "Xno"; then
12910       use_additional=no
12911     else
12912       if test "X$withval" = "X"; then
12913
12914   acl_save_prefix="$prefix"
12915   prefix="$acl_final_prefix"
12916   acl_save_exec_prefix="$exec_prefix"
12917   exec_prefix="$acl_final_exec_prefix"
12918
12919           eval additional_includedir=\"$includedir\"
12920           eval additional_libdir=\"$libdir\"
12921
12922   exec_prefix="$acl_save_exec_prefix"
12923   prefix="$acl_save_prefix"
12924
12925       else
12926         additional_includedir="$withval/include"
12927         additional_libdir="$withval/$acl_libdirstem"
12928       fi
12929     fi
12930
12931 fi
12932
12933       LIBINTL=
12934   LTLIBINTL=
12935   INCINTL=
12936   LIBINTL_PREFIX=
12937   rpathdirs=
12938   ltrpathdirs=
12939   names_already_handled=
12940   names_next_round='intl '
12941   while test -n "$names_next_round"; do
12942     names_this_round="$names_next_round"
12943     names_next_round=
12944     for name in $names_this_round; do
12945       already_handled=
12946       for n in $names_already_handled; do
12947         if test "$n" = "$name"; then
12948           already_handled=yes
12949           break
12950         fi
12951       done
12952       if test -z "$already_handled"; then
12953         names_already_handled="$names_already_handled $name"
12954                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12955         eval value=\"\$HAVE_LIB$uppername\"
12956         if test -n "$value"; then
12957           if test "$value" = yes; then
12958             eval value=\"\$LIB$uppername\"
12959             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12960             eval value=\"\$LTLIB$uppername\"
12961             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12962           else
12963                                     :
12964           fi
12965         else
12966                               found_dir=
12967           found_la=
12968           found_so=
12969           found_a=
12970           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
12971           if test -n "$acl_shlibext"; then
12972             shrext=".$acl_shlibext"             # typically: shrext=.so
12973           else
12974             shrext=
12975           fi
12976           if test $use_additional = yes; then
12977             dir="$additional_libdir"
12978                                     if test -n "$acl_shlibext"; then
12979               if test -f "$dir/$libname$shrext"; then
12980                 found_dir="$dir"
12981                 found_so="$dir/$libname$shrext"
12982               else
12983                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12984                   ver=`(cd "$dir" && \
12985                         for f in "$libname$shrext".*; do echo "$f"; done \
12986                         | sed -e "s,^$libname$shrext\\\\.,," \
12987                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12988                         | sed 1q ) 2>/dev/null`
12989                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12990                     found_dir="$dir"
12991                     found_so="$dir/$libname$shrext.$ver"
12992                   fi
12993                 else
12994                   eval library_names=\"$acl_library_names_spec\"
12995                   for f in $library_names; do
12996                     if test -f "$dir/$f"; then
12997                       found_dir="$dir"
12998                       found_so="$dir/$f"
12999                       break
13000                     fi
13001                   done
13002                 fi
13003               fi
13004             fi
13005                         if test "X$found_dir" = "X"; then
13006               if test -f "$dir/$libname.$acl_libext"; then
13007                 found_dir="$dir"
13008                 found_a="$dir/$libname.$acl_libext"
13009               fi
13010             fi
13011             if test "X$found_dir" != "X"; then
13012               if test -f "$dir/$libname.la"; then
13013                 found_la="$dir/$libname.la"
13014               fi
13015             fi
13016           fi
13017           if test "X$found_dir" = "X"; then
13018             for x in $LDFLAGS $LTLIBINTL; do
13019
13020   acl_save_prefix="$prefix"
13021   prefix="$acl_final_prefix"
13022   acl_save_exec_prefix="$exec_prefix"
13023   exec_prefix="$acl_final_exec_prefix"
13024   eval x=\"$x\"
13025   exec_prefix="$acl_save_exec_prefix"
13026   prefix="$acl_save_prefix"
13027
13028               case "$x" in
13029                 -L*)
13030                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13031                                     if test -n "$acl_shlibext"; then
13032                     if test -f "$dir/$libname$shrext"; then
13033                       found_dir="$dir"
13034                       found_so="$dir/$libname$shrext"
13035                     else
13036                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13037                         ver=`(cd "$dir" && \
13038                               for f in "$libname$shrext".*; do echo "$f"; done \
13039                               | sed -e "s,^$libname$shrext\\\\.,," \
13040                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13041                               | sed 1q ) 2>/dev/null`
13042                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13043                           found_dir="$dir"
13044                           found_so="$dir/$libname$shrext.$ver"
13045                         fi
13046                       else
13047                         eval library_names=\"$acl_library_names_spec\"
13048                         for f in $library_names; do
13049                           if test -f "$dir/$f"; then
13050                             found_dir="$dir"
13051                             found_so="$dir/$f"
13052                             break
13053                           fi
13054                         done
13055                       fi
13056                     fi
13057                   fi
13058                                     if test "X$found_dir" = "X"; then
13059                     if test -f "$dir/$libname.$acl_libext"; then
13060                       found_dir="$dir"
13061                       found_a="$dir/$libname.$acl_libext"
13062                     fi
13063                   fi
13064                   if test "X$found_dir" != "X"; then
13065                     if test -f "$dir/$libname.la"; then
13066                       found_la="$dir/$libname.la"
13067                     fi
13068                   fi
13069                   ;;
13070               esac
13071               if test "X$found_dir" != "X"; then
13072                 break
13073               fi
13074             done
13075           fi
13076           if test "X$found_dir" != "X"; then
13077                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13078             if test "X$found_so" != "X"; then
13079                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13080                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13081               else
13082                                                                                 haveit=
13083                 for x in $ltrpathdirs; do
13084                   if test "X$x" = "X$found_dir"; then
13085                     haveit=yes
13086                     break
13087                   fi
13088                 done
13089                 if test -z "$haveit"; then
13090                   ltrpathdirs="$ltrpathdirs $found_dir"
13091                 fi
13092                                 if test "$acl_hardcode_direct" = yes; then
13093                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13094                 else
13095                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13096                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13097                                                             haveit=
13098                     for x in $rpathdirs; do
13099                       if test "X$x" = "X$found_dir"; then
13100                         haveit=yes
13101                         break
13102                       fi
13103                     done
13104                     if test -z "$haveit"; then
13105                       rpathdirs="$rpathdirs $found_dir"
13106                     fi
13107                   else
13108                                                                                 haveit=
13109                     for x in $LDFLAGS $LIBINTL; do
13110
13111   acl_save_prefix="$prefix"
13112   prefix="$acl_final_prefix"
13113   acl_save_exec_prefix="$exec_prefix"
13114   exec_prefix="$acl_final_exec_prefix"
13115   eval x=\"$x\"
13116   exec_prefix="$acl_save_exec_prefix"
13117   prefix="$acl_save_prefix"
13118
13119                       if test "X$x" = "X-L$found_dir"; then
13120                         haveit=yes
13121                         break
13122                       fi
13123                     done
13124                     if test -z "$haveit"; then
13125                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13126                     fi
13127                     if test "$acl_hardcode_minus_L" != no; then
13128                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13129                     else
13130                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13131                     fi
13132                   fi
13133                 fi
13134               fi
13135             else
13136               if test "X$found_a" != "X"; then
13137                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13138               else
13139                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13140               fi
13141             fi
13142                         additional_includedir=
13143             case "$found_dir" in
13144               */$acl_libdirstem | */$acl_libdirstem/)
13145                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13146                 LIBINTL_PREFIX="$basedir"
13147                 additional_includedir="$basedir/include"
13148                 ;;
13149             esac
13150             if test "X$additional_includedir" != "X"; then
13151                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13152                 haveit=
13153                 if test "X$additional_includedir" = "X/usr/local/include"; then
13154                   if test -n "$GCC"; then
13155                     case $host_os in
13156                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13157                     esac
13158                   fi
13159                 fi
13160                 if test -z "$haveit"; then
13161                   for x in $CPPFLAGS $INCINTL; do
13162
13163   acl_save_prefix="$prefix"
13164   prefix="$acl_final_prefix"
13165   acl_save_exec_prefix="$exec_prefix"
13166   exec_prefix="$acl_final_exec_prefix"
13167   eval x=\"$x\"
13168   exec_prefix="$acl_save_exec_prefix"
13169   prefix="$acl_save_prefix"
13170
13171                     if test "X$x" = "X-I$additional_includedir"; then
13172                       haveit=yes
13173                       break
13174                     fi
13175                   done
13176                   if test -z "$haveit"; then
13177                     if test -d "$additional_includedir"; then
13178                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13179                     fi
13180                   fi
13181                 fi
13182               fi
13183             fi
13184                         if test -n "$found_la"; then
13185                                                         save_libdir="$libdir"
13186               case "$found_la" in
13187                 */* | *\\*) . "$found_la" ;;
13188                 *) . "./$found_la" ;;
13189               esac
13190               libdir="$save_libdir"
13191                             for dep in $dependency_libs; do
13192                 case "$dep" in
13193                   -L*)
13194                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13195                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13196                       haveit=
13197                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13198                         if test -n "$GCC"; then
13199                           case $host_os in
13200                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13201                           esac
13202                         fi
13203                       fi
13204                       if test -z "$haveit"; then
13205                         haveit=
13206                         for x in $LDFLAGS $LIBINTL; do
13207
13208   acl_save_prefix="$prefix"
13209   prefix="$acl_final_prefix"
13210   acl_save_exec_prefix="$exec_prefix"
13211   exec_prefix="$acl_final_exec_prefix"
13212   eval x=\"$x\"
13213   exec_prefix="$acl_save_exec_prefix"
13214   prefix="$acl_save_prefix"
13215
13216                           if test "X$x" = "X-L$additional_libdir"; then
13217                             haveit=yes
13218                             break
13219                           fi
13220                         done
13221                         if test -z "$haveit"; then
13222                           if test -d "$additional_libdir"; then
13223                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13224                           fi
13225                         fi
13226                         haveit=
13227                         for x in $LDFLAGS $LTLIBINTL; do
13228
13229   acl_save_prefix="$prefix"
13230   prefix="$acl_final_prefix"
13231   acl_save_exec_prefix="$exec_prefix"
13232   exec_prefix="$acl_final_exec_prefix"
13233   eval x=\"$x\"
13234   exec_prefix="$acl_save_exec_prefix"
13235   prefix="$acl_save_prefix"
13236
13237                           if test "X$x" = "X-L$additional_libdir"; then
13238                             haveit=yes
13239                             break
13240                           fi
13241                         done
13242                         if test -z "$haveit"; then
13243                           if test -d "$additional_libdir"; then
13244                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13245                           fi
13246                         fi
13247                       fi
13248                     fi
13249                     ;;
13250                   -R*)
13251                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13252                     if test "$enable_rpath" != no; then
13253                                                                   haveit=
13254                       for x in $rpathdirs; do
13255                         if test "X$x" = "X$dir"; then
13256                           haveit=yes
13257                           break
13258                         fi
13259                       done
13260                       if test -z "$haveit"; then
13261                         rpathdirs="$rpathdirs $dir"
13262                       fi
13263                                                                   haveit=
13264                       for x in $ltrpathdirs; do
13265                         if test "X$x" = "X$dir"; then
13266                           haveit=yes
13267                           break
13268                         fi
13269                       done
13270                       if test -z "$haveit"; then
13271                         ltrpathdirs="$ltrpathdirs $dir"
13272                       fi
13273                     fi
13274                     ;;
13275                   -l*)
13276                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13277                     ;;
13278                   *.la)
13279                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13280                     ;;
13281                   *)
13282                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13283                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13284                     ;;
13285                 esac
13286               done
13287             fi
13288           else
13289                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13290             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13291           fi
13292         fi
13293       fi
13294     done
13295   done
13296   if test "X$rpathdirs" != "X"; then
13297     if test -n "$acl_hardcode_libdir_separator"; then
13298                         alldirs=
13299       for found_dir in $rpathdirs; do
13300         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13301       done
13302             acl_save_libdir="$libdir"
13303       libdir="$alldirs"
13304       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13305       libdir="$acl_save_libdir"
13306       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13307     else
13308             for found_dir in $rpathdirs; do
13309         acl_save_libdir="$libdir"
13310         libdir="$found_dir"
13311         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13312         libdir="$acl_save_libdir"
13313         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13314       done
13315     fi
13316   fi
13317   if test "X$ltrpathdirs" != "X"; then
13318             for found_dir in $ltrpathdirs; do
13319       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13320     done
13321   fi
13322
13323           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
13324 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
13325 if eval \${$gt_func_gnugettext_libintl+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328   gt_save_CPPFLAGS="$CPPFLAGS"
13329             CPPFLAGS="$CPPFLAGS $INCINTL"
13330             gt_save_LIBS="$LIBS"
13331             LIBS="$LIBS $LIBINTL"
13332                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h.  */
13334
13335 #include <libintl.h>
13336 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13337 extern int _nl_msg_cat_cntr;
13338 extern
13339 #ifdef __cplusplus
13340 "C"
13341 #endif
13342 const char *_nl_expand_alias (const char *);
13343 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13344 #else
13345 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13346 #endif
13347 $gt_revision_test_code
13348
13349 int
13350 main ()
13351 {
13352
13353 bindtextdomain ("", "");
13354 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_link "$LINENO"; then :
13361   eval "$gt_func_gnugettext_libintl=yes"
13362 else
13363   eval "$gt_func_gnugettext_libintl=no"
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext \
13366     conftest$ac_exeext conftest.$ac_ext
13367                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
13368               LIBS="$LIBS $LIBICONV"
13369               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h.  */
13371
13372 #include <libintl.h>
13373 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13374 extern int _nl_msg_cat_cntr;
13375 extern
13376 #ifdef __cplusplus
13377 "C"
13378 #endif
13379 const char *_nl_expand_alias (const char *);
13380 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
13381 #else
13382 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
13383 #endif
13384 $gt_revision_test_code
13385
13386 int
13387 main ()
13388 {
13389
13390 bindtextdomain ("", "");
13391 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
13392
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398   LIBINTL="$LIBINTL $LIBICONV"
13399                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13400                  eval "$gt_func_gnugettext_libintl=yes"
13401
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext \
13404     conftest$ac_exeext conftest.$ac_ext
13405             fi
13406             CPPFLAGS="$gt_save_CPPFLAGS"
13407             LIBS="$gt_save_LIBS"
13408 fi
13409 eval ac_res=\$$gt_func_gnugettext_libintl
13410                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13411 $as_echo "$ac_res" >&6; }
13412         fi
13413
13414                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
13415            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
13416                 && test "$PACKAGE" != gettext-runtime \
13417                 && test "$PACKAGE" != gettext-tools; }; then
13418           gt_use_preinstalled_gnugettext=yes
13419         else
13420                     LIBINTL=
13421           LTLIBINTL=
13422           INCINTL=
13423         fi
13424
13425
13426
13427     if test -n "$INTL_MACOSX_LIBS"; then
13428       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13429          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13430                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13431         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13432       fi
13433     fi
13434
13435     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13436        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13437
13438 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13439
13440     else
13441       USE_NLS=no
13442     fi
13443   fi
13444
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
13446 $as_echo_n "checking whether to use NLS... " >&6; }
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13448 $as_echo "$USE_NLS" >&6; }
13449   if test "$USE_NLS" = "yes"; then
13450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
13451 $as_echo_n "checking where the gettext function comes from... " >&6; }
13452     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13453       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13454         gt_source="external libintl"
13455       else
13456         gt_source="libc"
13457       fi
13458     else
13459       gt_source="included intl directory"
13460     fi
13461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
13462 $as_echo "$gt_source" >&6; }
13463   fi
13464
13465   if test "$USE_NLS" = "yes"; then
13466
13467     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13468       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
13469         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
13470 $as_echo_n "checking how to link with libintl... " >&6; }
13471         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
13472 $as_echo "$LIBINTL" >&6; }
13473
13474   for element in $INCINTL; do
13475     haveit=
13476     for x in $CPPFLAGS; do
13477
13478   acl_save_prefix="$prefix"
13479   prefix="$acl_final_prefix"
13480   acl_save_exec_prefix="$exec_prefix"
13481   exec_prefix="$acl_final_exec_prefix"
13482   eval x=\"$x\"
13483   exec_prefix="$acl_save_exec_prefix"
13484   prefix="$acl_save_prefix"
13485
13486       if test "X$x" = "X$element"; then
13487         haveit=yes
13488         break
13489       fi
13490     done
13491     if test -z "$haveit"; then
13492       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13493     fi
13494   done
13495
13496       fi
13497
13498
13499 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
13500
13501
13502 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
13503
13504     fi
13505
13506         POSUB=po
13507   fi
13508
13509
13510
13511     INTLLIBS="$LIBINTL"
13512
13513
13514
13515
13516
13517
13518
13519   # gettext requires some extra checks.  These really should be part of
13520   # the basic AM_GNU_GETTEXT macro.  TODO: move other gettext-specific
13521   # function checks to here.
13522
13523   for ac_func in strchr
13524 do :
13525   ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
13526 if test "x$ac_cv_func_strchr" = xyes; then :
13527   cat >>confdefs.h <<_ACEOF
13528 #define HAVE_STRCHR 1
13529 _ACEOF
13530
13531 fi
13532 done
13533
13534 else
13535   USE_NLS=no
13536   USE_INCLUDED_LIBINTL=no
13537   BUILD_INCLUDED_LIBINTL=no
13538   POSUB=po
13539
13540
13541
13542
13543 fi
13544
13545 # We use HAVE_LANGINFO_CODESET in a couple of places.
13546
13547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13548 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13549 if ${am_cv_langinfo_codeset+:} false; then :
13550   $as_echo_n "(cached) " >&6
13551 else
13552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h.  */
13554 #include <langinfo.h>
13555 int
13556 main ()
13557 {
13558 char* cs = nl_langinfo(CODESET); return !cs;
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564   am_cv_langinfo_codeset=yes
13565 else
13566   am_cv_langinfo_codeset=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext \
13569     conftest$ac_exeext conftest.$ac_ext
13570
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13573 $as_echo "$am_cv_langinfo_codeset" >&6; }
13574   if test $am_cv_langinfo_codeset = yes; then
13575
13576 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13577
13578   fi
13579
13580
13581 # Checks required for our use of locales
13582
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13585 if ${gt_cv_val_LC_MESSAGES+:} false; then :
13586   $as_echo_n "(cached) " >&6
13587 else
13588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590 #include <locale.h>
13591 int
13592 main ()
13593 {
13594 return LC_MESSAGES
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 if ac_fn_c_try_link "$LINENO"; then :
13600   gt_cv_val_LC_MESSAGES=yes
13601 else
13602   gt_cv_val_LC_MESSAGES=no
13603 fi
13604 rm -f core conftest.err conftest.$ac_objext \
13605     conftest$ac_exeext conftest.$ac_ext
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
13608 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
13609   if test $gt_cv_val_LC_MESSAGES = yes; then
13610
13611 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13612
13613   fi
13614
13615
13616
13617 #
13618 # SELinux support
13619 #
13620 if test "$selinux_support" = yes ; then
13621
13622 $as_echo "#define ENABLE_SELINUX_HACKS 1" >>confdefs.h
13623
13624 fi
13625
13626
13627 #
13628 # Checks for header files.
13629 #
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for header files" >&5
13631 $as_echo "$as_me: checking for header files" >&6;}
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13633 $as_echo_n "checking for ANSI C header files... " >&6; }
13634 if ${ac_cv_header_stdc+:} false; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h.  */
13639 #include <stdlib.h>
13640 #include <stdarg.h>
13641 #include <string.h>
13642 #include <float.h>
13643
13644 int
13645 main ()
13646 {
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_compile "$LINENO"; then :
13653   ac_cv_header_stdc=yes
13654 else
13655   ac_cv_header_stdc=no
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658
13659 if test $ac_cv_header_stdc = yes; then
13660   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h.  */
13663 #include <string.h>
13664
13665 _ACEOF
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667   $EGREP "memchr" >/dev/null 2>&1; then :
13668
13669 else
13670   ac_cv_header_stdc=no
13671 fi
13672 rm -f conftest*
13673
13674 fi
13675
13676 if test $ac_cv_header_stdc = yes; then
13677   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h.  */
13680 #include <stdlib.h>
13681
13682 _ACEOF
13683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13684   $EGREP "free" >/dev/null 2>&1; then :
13685
13686 else
13687   ac_cv_header_stdc=no
13688 fi
13689 rm -f conftest*
13690
13691 fi
13692
13693 if test $ac_cv_header_stdc = yes; then
13694   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13695   if test "$cross_compiling" = yes; then :
13696   :
13697 else
13698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h.  */
13700 #include <ctype.h>
13701 #include <stdlib.h>
13702 #if ((' ' & 0x0FF) == 0x020)
13703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13705 #else
13706 # define ISLOWER(c) \
13707                    (('a' <= (c) && (c) <= 'i') \
13708                      || ('j' <= (c) && (c) <= 'r') \
13709                      || ('s' <= (c) && (c) <= 'z'))
13710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13711 #endif
13712
13713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13714 int
13715 main ()
13716 {
13717   int i;
13718   for (i = 0; i < 256; i++)
13719     if (XOR (islower (i), ISLOWER (i))
13720         || toupper (i) != TOUPPER (i))
13721       return 2;
13722   return 0;
13723 }
13724 _ACEOF
13725 if ac_fn_c_try_run "$LINENO"; then :
13726
13727 else
13728   ac_cv_header_stdc=no
13729 fi
13730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13731   conftest.$ac_objext conftest.beam conftest.$ac_ext
13732 fi
13733
13734 fi
13735 fi
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13737 $as_echo "$ac_cv_header_stdc" >&6; }
13738 if test $ac_cv_header_stdc = yes; then
13739
13740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13741
13742 fi
13743
13744 for ac_header in string.h unistd.h langinfo.h termio.h locale.h getopt.h \
13745                   pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h     \
13746                   stdint.h signal.h util.h libutil.h termios.h \
13747                   ucred.h sys/ucred.h sys/sysmacros.h sys/mkdev.h
13748 do :
13749   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13752   cat >>confdefs.h <<_ACEOF
13753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13754 _ACEOF
13755
13756 fi
13757
13758 done
13759
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13763 if ${ac_cv_header_time+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768 #include <sys/types.h>
13769 #include <sys/time.h>
13770 #include <time.h>
13771
13772 int
13773 main ()
13774 {
13775 if ((struct tm *) 0)
13776 return 0;
13777   ;
13778   return 0;
13779 }
13780 _ACEOF
13781 if ac_fn_c_try_compile "$LINENO"; then :
13782   ac_cv_header_time=yes
13783 else
13784   ac_cv_header_time=no
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13789 $as_echo "$ac_cv_header_time" >&6; }
13790 if test $ac_cv_header_time = yes; then
13791
13792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13793
13794 fi
13795
13796
13797
13798 #
13799 # Checks for typedefs, structures, and compiler characteristics.
13800 #
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system characteristics" >&5
13802 $as_echo "$as_me: checking for system characteristics" >&6;}
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13804 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13805 if ${ac_cv_c_const+:} false; then :
13806   $as_echo_n "(cached) " >&6
13807 else
13808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h.  */
13810
13811 int
13812 main ()
13813 {
13814
13815 #ifndef __cplusplus
13816   /* Ultrix mips cc rejects this sort of thing.  */
13817   typedef int charset[2];
13818   const charset cs = { 0, 0 };
13819   /* SunOS 4.1.1 cc rejects this.  */
13820   char const *const *pcpcc;
13821   char **ppc;
13822   /* NEC SVR4.0.2 mips cc rejects this.  */
13823   struct point {int x, y;};
13824   static struct point const zero = {0,0};
13825   /* AIX XL C 1.02.0.0 rejects this.
13826      It does not let you subtract one const X* pointer from another in
13827      an arm of an if-expression whose if-part is not a constant
13828      expression */
13829   const char *g = "string";
13830   pcpcc = &g + (g ? g-g : 0);
13831   /* HPUX 7.0 cc rejects these. */
13832   ++pcpcc;
13833   ppc = (char**) pcpcc;
13834   pcpcc = (char const *const *) ppc;
13835   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13836     char tx;
13837     char *t = &tx;
13838     char const *s = 0 ? (char *) 0 : (char const *) 0;
13839
13840     *t++ = 0;
13841     if (s) return 0;
13842   }
13843   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13844     int x[] = {25, 17};
13845     const int *foo = &x[0];
13846     ++foo;
13847   }
13848   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13849     typedef const int *iptr;
13850     iptr p = 0;
13851     ++p;
13852   }
13853   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13854        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13855     struct s { int j; const int *ap[3]; } bx;
13856     struct s *b = &bx; b->j = 5;
13857   }
13858   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13859     const int foo = 10;
13860     if (!foo) return 0;
13861   }
13862   return !cs[0] && !zero.x;
13863 #endif
13864
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 if ac_fn_c_try_compile "$LINENO"; then :
13870   ac_cv_c_const=yes
13871 else
13872   ac_cv_c_const=no
13873 fi
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13877 $as_echo "$ac_cv_c_const" >&6; }
13878 if test $ac_cv_c_const = no; then
13879
13880 $as_echo "#define const /**/" >>confdefs.h
13881
13882 fi
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13885 $as_echo_n "checking for inline... " >&6; }
13886 if ${ac_cv_c_inline+:} false; then :
13887   $as_echo_n "(cached) " >&6
13888 else
13889   ac_cv_c_inline=no
13890 for ac_kw in inline __inline__ __inline; do
13891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h.  */
13893 #ifndef __cplusplus
13894 typedef int foo_t;
13895 static $ac_kw foo_t static_foo () {return 0; }
13896 $ac_kw foo_t foo () {return 0; }
13897 #endif
13898
13899 _ACEOF
13900 if ac_fn_c_try_compile "$LINENO"; then :
13901   ac_cv_c_inline=$ac_kw
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904   test "$ac_cv_c_inline" != no && break
13905 done
13906
13907 fi
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13909 $as_echo "$ac_cv_c_inline" >&6; }
13910
13911 case $ac_cv_c_inline in
13912   inline | yes) ;;
13913   *)
13914     case $ac_cv_c_inline in
13915       no) ac_val=;;
13916       *) ac_val=$ac_cv_c_inline;;
13917     esac
13918     cat >>confdefs.h <<_ACEOF
13919 #ifndef __cplusplus
13920 #define inline $ac_val
13921 #endif
13922 _ACEOF
13923     ;;
13924 esac
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13927 $as_echo_n "checking for working volatile... " >&6; }
13928 if ${ac_cv_c_volatile+:} false; then :
13929   $as_echo_n "(cached) " >&6
13930 else
13931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h.  */
13933
13934 int
13935 main ()
13936 {
13937
13938 volatile int x;
13939 int * volatile y = (int *) 0;
13940 return !x && !y;
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946   ac_cv_c_volatile=yes
13947 else
13948   ac_cv_c_volatile=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 fi
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13953 $as_echo "$ac_cv_c_volatile" >&6; }
13954 if test $ac_cv_c_volatile = no; then
13955
13956 $as_echo "#define volatile /**/" >>confdefs.h
13957
13958 fi
13959
13960 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13961 if test "x$ac_cv_type_size_t" = xyes; then :
13962
13963 else
13964
13965 cat >>confdefs.h <<_ACEOF
13966 #define size_t unsigned int
13967 _ACEOF
13968
13969 fi
13970
13971 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13972 if test "x$ac_cv_type_mode_t" = xyes; then :
13973
13974 else
13975
13976 cat >>confdefs.h <<_ACEOF
13977 #define mode_t int
13978 _ACEOF
13979
13980 fi
13981
13982 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13983 /* NetBSD declares sys_siglist in unistd.h.  */
13984 #ifdef HAVE_UNISTD_H
13985 # include <unistd.h>
13986 #endif
13987
13988 "
13989 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13990   ac_have_decl=1
13991 else
13992   ac_have_decl=0
13993 fi
13994
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13997 _ACEOF
13998
13999
14000
14001
14002
14003
14004   for ac_header in $ac_header_list
14005 do :
14006   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14008 "
14009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14010   cat >>confdefs.h <<_ACEOF
14011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14012 _ACEOF
14013
14014 fi
14015
14016 done
14017
14018
14019
14020
14021
14022   if test $ac_cv_header_sys_socket_h = yes; then
14023     SYS_SOCKET_H=''
14024   else
14025                     for ac_header in winsock2.h ws2tcpip.h
14026 do :
14027   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14028 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14029 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14030   cat >>confdefs.h <<_ACEOF
14031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14032 _ACEOF
14033
14034 fi
14035
14036 done
14037
14038     SYS_SOCKET_H='sys/socket.h'
14039   fi
14040
14041
14042
14043    if test $ac_cv_header_sys_socket_h = no; then
14044                          for ac_header in ws2tcpip.h
14045 do :
14046   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14047 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14048   cat >>confdefs.h <<_ACEOF
14049 #define HAVE_WS2TCPIP_H 1
14050 _ACEOF
14051
14052 fi
14053
14054 done
14055
14056    fi
14057
14058    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14059 /* <sys/types.h> is not needed according to POSIX, but the
14060    <sys/socket.h> in i386-unknown-freebsd4.10 and
14061    powerpc-apple-darwin5.5 required it. */
14062 #include <sys/types.h>
14063 #if HAVE_SYS_SOCKET_H
14064 # include <sys/socket.h>
14065 #elif HAVE_WS2TCPIP_H
14066 # include <ws2tcpip.h>
14067 #endif
14068
14069 "
14070 if test "x$ac_cv_type_socklen_t" = xyes; then :
14071
14072 else
14073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14074 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14075 if ${gl_cv_socklen_t_equiv+:} false; then :
14076   $as_echo_n "(cached) " >&6
14077 else
14078   # Systems have either "struct sockaddr *" or
14079          # "void *" as the second argument to getpeername
14080          gl_cv_socklen_t_equiv=
14081          for arg2 in "struct sockaddr" void; do
14082            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
14083              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14084 /* end confdefs.h.  */
14085 #include <sys/types.h>
14086                    #include <sys/socket.h>
14087
14088                    int getpeername (int, $arg2 *, $t *);
14089 int
14090 main ()
14091 {
14092 $t len;
14093                   getpeername (0, 0, &len);
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 if ac_fn_c_try_compile "$LINENO"; then :
14099   gl_cv_socklen_t_equiv="$t"
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102              test "$gl_cv_socklen_t_equiv" != "" && break
14103            done
14104            test "$gl_cv_socklen_t_equiv" != "" && break
14105          done
14106          if test "$gl_cv_socklen_t_equiv" = ""; then
14107            as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
14108          fi
14109
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
14112 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
14113
14114 cat >>confdefs.h <<_ACEOF
14115 #define socklen_t $gl_cv_socklen_t_equiv
14116 _ACEOF
14117
14118 fi
14119
14120
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
14122 $as_echo_n "checking for library containing inet_addr... " >&6; }
14123 if ${ac_cv_search_inet_addr+:} false; then :
14124   $as_echo_n "(cached) " >&6
14125 else
14126   ac_func_search_save_LIBS=$LIBS
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h.  */
14129
14130 /* Override any GCC internal prototype to avoid an error.
14131    Use char because int might match the return type of a GCC
14132    builtin and then its argument prototype would still apply.  */
14133 #ifdef __cplusplus
14134 extern "C"
14135 #endif
14136 char inet_addr ();
14137 int
14138 main ()
14139 {
14140 return inet_addr ();
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 for ac_lib in '' nsl; do
14146   if test -z "$ac_lib"; then
14147     ac_res="none required"
14148   else
14149     ac_res=-l$ac_lib
14150     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14151   fi
14152   if ac_fn_c_try_link "$LINENO"; then :
14153   ac_cv_search_inet_addr=$ac_res
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext \
14156     conftest$ac_exeext
14157   if ${ac_cv_search_inet_addr+:} false; then :
14158   break
14159 fi
14160 done
14161 if ${ac_cv_search_inet_addr+:} false; then :
14162
14163 else
14164   ac_cv_search_inet_addr=no
14165 fi
14166 rm conftest.$ac_ext
14167 LIBS=$ac_func_search_save_LIBS
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
14170 $as_echo "$ac_cv_search_inet_addr" >&6; }
14171 ac_res=$ac_cv_search_inet_addr
14172 if test "$ac_res" != no; then :
14173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14174
14175 fi
14176
14177
14178 # Check whether --enable-endian-check was given.
14179 if test "${enable_endian_check+set}" = set; then :
14180   enableval=$enable_endian_check; endiancheck=$enableval
14181 else
14182   endiancheck=yes
14183 fi
14184
14185
14186 if test x"$endiancheck" = xyes ; then
14187
14188     tmp_assumed_endian=big
14189     tmp_assume_warn=""
14190     if test "$cross_compiling" = yes; then
14191       case "$host_cpu" in
14192          i[345678]* )
14193             tmp_assumed_endian=little
14194             ;;
14195          *)
14196             ;;
14197       esac
14198     fi
14199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking endianness" >&5
14200 $as_echo_n "checking endianness... " >&6; }
14201     if ${gnupg_cv_c_endian+:} false; then :
14202   $as_echo_n "(cached) " >&6
14203 else
14204    gnupg_cv_c_endian=unknown
14205         # See if sys/param.h defines the BYTE_ORDER macro.
14206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h.  */
14208 #include <sys/types.h>
14209         #include <sys/param.h>
14210 int
14211 main ()
14212 {
14213
14214         #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14215          bogus endian macros
14216         #endif
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222   # It does; now see whether it defined to BIG_ENDIAN or not.
14223         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h.  */
14225 #include <sys/types.h>
14226         #include <sys/param.h>
14227 int
14228 main ()
14229 {
14230
14231         #if BYTE_ORDER != BIG_ENDIAN
14232          not big endian
14233         #endif
14234   ;
14235   return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_compile "$LINENO"; then :
14239   gnupg_cv_c_endian=big
14240 else
14241   gnupg_cv_c_endian=little
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246         if test "$gnupg_cv_c_endian" = unknown; then
14247             if test "$cross_compiling" = yes; then :
14248   gnupg_cv_c_endian=$tmp_assumed_endian
14249               tmp_assumed_warn=" (assumed)"
14250
14251 else
14252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h.  */
14254 main () {
14255               /* Are we little or big endian?  From Harbison&Steele.  */
14256               union
14257               {
14258                 long l;
14259                 char c[sizeof (long)];
14260               } u;
14261               u.l = 1;
14262               exit (u.c[sizeof (long) - 1] == 1);
14263               }
14264 _ACEOF
14265 if ac_fn_c_try_run "$LINENO"; then :
14266   gnupg_cv_c_endian=little
14267 else
14268   gnupg_cv_c_endian=big
14269 fi
14270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14271   conftest.$ac_objext conftest.beam conftest.$ac_ext
14272 fi
14273
14274         fi
14275
14276 fi
14277
14278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gnupg_cv_c_endian}${tmp_assumed_warn}" >&5
14279 $as_echo "${gnupg_cv_c_endian}${tmp_assumed_warn}" >&6; }
14280     if test "$gnupg_cv_c_endian" = little; then
14281
14282 $as_echo "#define LITTLE_ENDIAN_HOST 1" >>confdefs.h
14283
14284     else
14285
14286 $as_echo "#define BIG_ENDIAN_HOST 1" >>confdefs.h
14287
14288     fi
14289
14290 fi
14291
14292 # fixme: we should get rid of the byte type
14293 ac_fn_c_check_type "$LINENO" "byte" "ac_cv_type_byte" "$ac_includes_default"
14294 if test "x$ac_cv_type_byte" = xyes; then :
14295
14296 cat >>confdefs.h <<_ACEOF
14297 #define HAVE_BYTE 1
14298 _ACEOF
14299
14300
14301 fi
14302 ac_fn_c_check_type "$LINENO" "ushort" "ac_cv_type_ushort" "$ac_includes_default"
14303 if test "x$ac_cv_type_ushort" = xyes; then :
14304
14305 cat >>confdefs.h <<_ACEOF
14306 #define HAVE_USHORT 1
14307 _ACEOF
14308
14309
14310 fi
14311 ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
14312 if test "x$ac_cv_type_ulong" = xyes; then :
14313
14314 cat >>confdefs.h <<_ACEOF
14315 #define HAVE_ULONG 1
14316 _ACEOF
14317
14318
14319 fi
14320 ac_fn_c_check_type "$LINENO" "u16" "ac_cv_type_u16" "$ac_includes_default"
14321 if test "x$ac_cv_type_u16" = xyes; then :
14322
14323 cat >>confdefs.h <<_ACEOF
14324 #define HAVE_U16 1
14325 _ACEOF
14326
14327
14328 fi
14329 ac_fn_c_check_type "$LINENO" "u32" "ac_cv_type_u32" "$ac_includes_default"
14330 if test "x$ac_cv_type_u32" = xyes; then :
14331
14332 cat >>confdefs.h <<_ACEOF
14333 #define HAVE_U32 1
14334 _ACEOF
14335
14336
14337 fi
14338
14339 # The cast to long int works around a bug in the HP C Compiler
14340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14342 # This bug is HP SR number 8606223364.
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
14344 $as_echo_n "checking size of unsigned short... " >&6; }
14345 if ${ac_cv_sizeof_unsigned_short+:} false; then :
14346   $as_echo_n "(cached) " >&6
14347 else
14348   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
14349
14350 else
14351   if test "$ac_cv_type_unsigned_short" = yes; then
14352      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14354 as_fn_error 77 "cannot compute sizeof (unsigned short)
14355 See \`config.log' for more details" "$LINENO" 5; }
14356    else
14357      ac_cv_sizeof_unsigned_short=0
14358    fi
14359 fi
14360
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
14363 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
14364
14365
14366
14367 cat >>confdefs.h <<_ACEOF
14368 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
14369 _ACEOF
14370
14371
14372 # The cast to long int works around a bug in the HP C Compiler
14373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14375 # This bug is HP SR number 8606223364.
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14377 $as_echo_n "checking size of unsigned int... " >&6; }
14378 if ${ac_cv_sizeof_unsigned_int+:} false; then :
14379   $as_echo_n "(cached) " >&6
14380 else
14381   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
14382
14383 else
14384   if test "$ac_cv_type_unsigned_int" = yes; then
14385      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14387 as_fn_error 77 "cannot compute sizeof (unsigned int)
14388 See \`config.log' for more details" "$LINENO" 5; }
14389    else
14390      ac_cv_sizeof_unsigned_int=0
14391    fi
14392 fi
14393
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14396 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14397
14398
14399
14400 cat >>confdefs.h <<_ACEOF
14401 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14402 _ACEOF
14403
14404
14405 # The cast to long int works around a bug in the HP C Compiler
14406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14408 # This bug is HP SR number 8606223364.
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14410 $as_echo_n "checking size of unsigned long... " >&6; }
14411 if ${ac_cv_sizeof_unsigned_long+:} false; then :
14412   $as_echo_n "(cached) " >&6
14413 else
14414   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
14415
14416 else
14417   if test "$ac_cv_type_unsigned_long" = yes; then
14418      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14420 as_fn_error 77 "cannot compute sizeof (unsigned long)
14421 See \`config.log' for more details" "$LINENO" 5; }
14422    else
14423      ac_cv_sizeof_unsigned_long=0
14424    fi
14425 fi
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14429 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14430
14431
14432
14433 cat >>confdefs.h <<_ACEOF
14434 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14435 _ACEOF
14436
14437
14438 # The cast to long int works around a bug in the HP C Compiler
14439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14441 # This bug is HP SR number 8606223364.
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
14443 $as_echo_n "checking size of unsigned long long... " >&6; }
14444 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
14445   $as_echo_n "(cached) " >&6
14446 else
14447   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
14448
14449 else
14450   if test "$ac_cv_type_unsigned_long_long" = yes; then
14451      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14453 as_fn_error 77 "cannot compute sizeof (unsigned long long)
14454 See \`config.log' for more details" "$LINENO" 5; }
14455    else
14456      ac_cv_sizeof_unsigned_long_long=0
14457    fi
14458 fi
14459
14460 fi
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
14462 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
14463
14464
14465
14466 cat >>confdefs.h <<_ACEOF
14467 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
14468 _ACEOF
14469
14470
14471 # The cast to long int works around a bug in the HP C Compiler
14472 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14473 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14474 # This bug is HP SR number 8606223364.
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14476 $as_echo_n "checking size of size_t... " >&6; }
14477 if ${ac_cv_sizeof_size_t+:} false; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14481
14482 else
14483   if test "$ac_cv_type_size_t" = yes; then
14484      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14486 as_fn_error 77 "cannot compute sizeof (size_t)
14487 See \`config.log' for more details" "$LINENO" 5; }
14488    else
14489      ac_cv_sizeof_size_t=0
14490    fi
14491 fi
14492
14493 fi
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14495 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14496
14497
14498
14499 cat >>confdefs.h <<_ACEOF
14500 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14501 _ACEOF
14502
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14505 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14506 if ${ac_cv_header_time+:} false; then :
14507   $as_echo_n "(cached) " >&6
14508 else
14509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h.  */
14511 #include <sys/types.h>
14512 #include <sys/time.h>
14513 #include <time.h>
14514
14515 int
14516 main ()
14517 {
14518 if ((struct tm *) 0)
14519 return 0;
14520   ;
14521   return 0;
14522 }
14523 _ACEOF
14524 if ac_fn_c_try_compile "$LINENO"; then :
14525   ac_cv_header_time=yes
14526 else
14527   ac_cv_header_time=no
14528 fi
14529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14532 $as_echo "$ac_cv_header_time" >&6; }
14533 if test $ac_cv_header_time = yes; then
14534
14535 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14536
14537 fi
14538
14539 # The cast to long int works around a bug in the HP C Compiler
14540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14542 # This bug is HP SR number 8606223364.
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14544 $as_echo_n "checking size of time_t... " >&6; }
14545 if ${ac_cv_sizeof_time_t+:} false; then :
14546   $as_echo_n "(cached) " >&6
14547 else
14548   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14549 #include <stdio.h>
14550 #if TIME_WITH_SYS_TIME
14551 # include <sys/time.h>
14552 # include <time.h>
14553 #else
14554 # if HAVE_SYS_TIME_H
14555 #  include <sys/time.h>
14556 # else
14557 #  include <time.h>
14558 # endif
14559 #endif
14560
14561 "; then :
14562
14563 else
14564   if test "$ac_cv_type_time_t" = yes; then
14565      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14567 as_fn_error 77 "cannot compute sizeof (time_t)
14568 See \`config.log' for more details" "$LINENO" 5; }
14569    else
14570      ac_cv_sizeof_time_t=0
14571    fi
14572 fi
14573
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14576 $as_echo "$ac_cv_sizeof_time_t" >&6; }
14577
14578
14579
14580 cat >>confdefs.h <<_ACEOF
14581 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14582 _ACEOF
14583
14584
14585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is unsigned" >&5
14586 $as_echo_n "checking whether time_t is unsigned... " >&6; }
14587 if ${gnupg_cv_time_t_unsigned+:} false; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14591 /* end confdefs.h.  */
14592 $ac_includes_default
14593 #if TIME_WITH_SYS_TIME
14594 # include <sys/time.h>
14595 # include <time.h>
14596 #else
14597 # if HAVE_SYS_TIME_H
14598 #  include <sys/time.h>
14599 # else
14600 #  include <time.h>
14601 # endif
14602 #endif
14603
14604 int
14605 main ()
14606 {
14607 static int test_array [1 - 2 * !(((time_t)-1) < 0)];
14608 test_array [0] = 0;
14609 return test_array [0];
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616   gnupg_cv_time_t_unsigned=no
14617 else
14618   gnupg_cv_time_t_unsigned=yes
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_time_t_unsigned" >&5
14623 $as_echo "$gnupg_cv_time_t_unsigned" >&6; }
14624     if test $gnupg_cv_time_t_unsigned = yes; then
14625
14626 $as_echo "#define HAVE_UNSIGNED_TIME_T 1" >>confdefs.h
14627
14628     fi
14629
14630
14631
14632 if test "$ac_cv_sizeof_unsigned_short" = "0" \
14633    || test "$ac_cv_sizeof_unsigned_int" = "0" \
14634    || test "$ac_cv_sizeof_unsigned_long" = "0"; then
14635     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
14636 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
14637 fi
14638
14639
14640 #
14641 # Checks for library functions.
14642 #
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library functions" >&5
14644 $as_echo "$as_me: checking for library functions" >&6;}
14645 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
14646 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
14647   ac_have_decl=1
14648 else
14649   ac_have_decl=0
14650 fi
14651
14652 cat >>confdefs.h <<_ACEOF
14653 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
14654 _ACEOF
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14657 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14658 if ${ac_cv_sys_largefile_source+:} false; then :
14659   $as_echo_n "(cached) " >&6
14660 else
14661   while :; do
14662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h.  */
14664 #include <sys/types.h> /* for off_t */
14665      #include <stdio.h>
14666 int
14667 main ()
14668 {
14669 int (*fp) (FILE *, off_t, int) = fseeko;
14670      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 if ac_fn_c_try_link "$LINENO"; then :
14676   ac_cv_sys_largefile_source=no; break
14677 fi
14678 rm -f core conftest.err conftest.$ac_objext \
14679     conftest$ac_exeext conftest.$ac_ext
14680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14681 /* end confdefs.h.  */
14682 #define _LARGEFILE_SOURCE 1
14683 #include <sys/types.h> /* for off_t */
14684      #include <stdio.h>
14685 int
14686 main ()
14687 {
14688 int (*fp) (FILE *, off_t, int) = fseeko;
14689      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 if ac_fn_c_try_link "$LINENO"; then :
14695   ac_cv_sys_largefile_source=1; break
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext \
14698     conftest$ac_exeext conftest.$ac_ext
14699   ac_cv_sys_largefile_source=unknown
14700   break
14701 done
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14704 $as_echo "$ac_cv_sys_largefile_source" >&6; }
14705 case $ac_cv_sys_largefile_source in #(
14706   no | unknown) ;;
14707   *)
14708 cat >>confdefs.h <<_ACEOF
14709 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14710 _ACEOF
14711 ;;
14712 esac
14713 rm -rf conftest*
14714
14715 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14716 # in glibc 2.1.3, but that breaks too many other things.
14717 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14718 if test $ac_cv_sys_largefile_source != unknown; then
14719
14720 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
14721
14722 fi
14723
14724 for ac_func in vprintf
14725 do :
14726   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14727 if test "x$ac_cv_func_vprintf" = xyes; then :
14728   cat >>confdefs.h <<_ACEOF
14729 #define HAVE_VPRINTF 1
14730 _ACEOF
14731
14732 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14733 if test "x$ac_cv_func__doprnt" = xyes; then :
14734
14735 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14736
14737 fi
14738
14739 fi
14740 done
14741
14742
14743 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14744 if test "x$ac_cv_type_pid_t" = xyes; then :
14745
14746 else
14747
14748 cat >>confdefs.h <<_ACEOF
14749 #define pid_t int
14750 _ACEOF
14751
14752 fi
14753
14754 for ac_header in vfork.h
14755 do :
14756   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14757 if test "x$ac_cv_header_vfork_h" = xyes; then :
14758   cat >>confdefs.h <<_ACEOF
14759 #define HAVE_VFORK_H 1
14760 _ACEOF
14761
14762 fi
14763
14764 done
14765
14766 for ac_func in fork vfork
14767 do :
14768   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14769 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14770 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14771   cat >>confdefs.h <<_ACEOF
14772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14773 _ACEOF
14774
14775 fi
14776 done
14777
14778 if test "x$ac_cv_func_fork" = xyes; then
14779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14780 $as_echo_n "checking for working fork... " >&6; }
14781 if ${ac_cv_func_fork_works+:} false; then :
14782   $as_echo_n "(cached) " >&6
14783 else
14784   if test "$cross_compiling" = yes; then :
14785   ac_cv_func_fork_works=cross
14786 else
14787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h.  */
14789 $ac_includes_default
14790 int
14791 main ()
14792 {
14793
14794           /* By Ruediger Kuhlmann. */
14795           return fork () < 0;
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 if ac_fn_c_try_run "$LINENO"; then :
14802   ac_cv_func_fork_works=yes
14803 else
14804   ac_cv_func_fork_works=no
14805 fi
14806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14807   conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 fi
14809
14810 fi
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14812 $as_echo "$ac_cv_func_fork_works" >&6; }
14813
14814 else
14815   ac_cv_func_fork_works=$ac_cv_func_fork
14816 fi
14817 if test "x$ac_cv_func_fork_works" = xcross; then
14818   case $host in
14819     *-*-amigaos* | *-*-msdosdjgpp*)
14820       # Override, as these systems have only a dummy fork() stub
14821       ac_cv_func_fork_works=no
14822       ;;
14823     *)
14824       ac_cv_func_fork_works=yes
14825       ;;
14826   esac
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14828 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14829 fi
14830 ac_cv_func_vfork_works=$ac_cv_func_vfork
14831 if test "x$ac_cv_func_vfork" = xyes; then
14832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14833 $as_echo_n "checking for working vfork... " >&6; }
14834 if ${ac_cv_func_vfork_works+:} false; then :
14835   $as_echo_n "(cached) " >&6
14836 else
14837   if test "$cross_compiling" = yes; then :
14838   ac_cv_func_vfork_works=cross
14839 else
14840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h.  */
14842 /* Thanks to Paul Eggert for this test.  */
14843 $ac_includes_default
14844 #include <sys/wait.h>
14845 #ifdef HAVE_VFORK_H
14846 # include <vfork.h>
14847 #endif
14848 /* On some sparc systems, changes by the child to local and incoming
14849    argument registers are propagated back to the parent.  The compiler
14850    is told about this with #include <vfork.h>, but some compilers
14851    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14852    static variable whose address is put into a register that is
14853    clobbered by the vfork.  */
14854 static void
14855 #ifdef __cplusplus
14856 sparc_address_test (int arg)
14857 # else
14858 sparc_address_test (arg) int arg;
14859 #endif
14860 {
14861   static pid_t child;
14862   if (!child) {
14863     child = vfork ();
14864     if (child < 0) {
14865       perror ("vfork");
14866       _exit(2);
14867     }
14868     if (!child) {
14869       arg = getpid();
14870       write(-1, "", 0);
14871       _exit (arg);
14872     }
14873   }
14874 }
14875
14876 int
14877 main ()
14878 {
14879   pid_t parent = getpid ();
14880   pid_t child;
14881
14882   sparc_address_test (0);
14883
14884   child = vfork ();
14885
14886   if (child == 0) {
14887     /* Here is another test for sparc vfork register problems.  This
14888        test uses lots of local variables, at least as many local
14889        variables as main has allocated so far including compiler
14890        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14891        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14892        reuse the register of parent for one of the local variables,
14893        since it will think that parent can't possibly be used any more
14894        in this routine.  Assigning to the local variable will thus
14895        munge parent in the parent process.  */
14896     pid_t
14897       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14898       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14899     /* Convince the compiler that p..p7 are live; otherwise, it might
14900        use the same hardware register for all 8 local variables.  */
14901     if (p != p1 || p != p2 || p != p3 || p != p4
14902         || p != p5 || p != p6 || p != p7)
14903       _exit(1);
14904
14905     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14906        from child file descriptors.  If the child closes a descriptor
14907        before it execs or exits, this munges the parent's descriptor
14908        as well.  Test for this by closing stdout in the child.  */
14909     _exit(close(fileno(stdout)) != 0);
14910   } else {
14911     int status;
14912     struct stat st;
14913
14914     while (wait(&status) != child)
14915       ;
14916     return (
14917          /* Was there some problem with vforking?  */
14918          child < 0
14919
14920          /* Did the child fail?  (This shouldn't happen.)  */
14921          || status
14922
14923          /* Did the vfork/compiler bug occur?  */
14924          || parent != getpid()
14925
14926          /* Did the file descriptor bug occur?  */
14927          || fstat(fileno(stdout), &st) != 0
14928          );
14929   }
14930 }
14931 _ACEOF
14932 if ac_fn_c_try_run "$LINENO"; then :
14933   ac_cv_func_vfork_works=yes
14934 else
14935   ac_cv_func_vfork_works=no
14936 fi
14937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14938   conftest.$ac_objext conftest.beam conftest.$ac_ext
14939 fi
14940
14941 fi
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14943 $as_echo "$ac_cv_func_vfork_works" >&6; }
14944
14945 fi;
14946 if test "x$ac_cv_func_fork_works" = xcross; then
14947   ac_cv_func_vfork_works=$ac_cv_func_vfork
14948   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14949 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14950 fi
14951
14952 if test "x$ac_cv_func_vfork_works" = xyes; then
14953
14954 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14955
14956 else
14957
14958 $as_echo "#define vfork fork" >>confdefs.h
14959
14960 fi
14961 if test "x$ac_cv_func_fork_works" = xyes; then
14962
14963 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14964
14965 fi
14966
14967 for ac_func in atexit canonicalize_file_name clock_gettime ctermid  \
14968                 explicit_bzero fcntl flockfile fsync ftello          \
14969                 ftruncate funlockfile getaddrinfo getenv getpagesize \
14970                 getpwnam getpwuid getrlimit getrusage gettimeofday   \
14971                 gmtime_r inet_ntop inet_pton isascii lstat memicmp   \
14972                 memmove memrchr mmap nl_langinfo pipe raise rand     \
14973                 setenv setlocale setrlimit sigaction sigprocmask     \
14974                 stat stpcpy strcasecmp strerror strftime stricmp     \
14975                 strlwr strncasecmp strpbrk strsep strtol strtoul     \
14976                 strtoull tcgetattr timegm times ttyname unsetenv     \
14977                 wait4 waitpid
14978 do :
14979   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14982   cat >>confdefs.h <<_ACEOF
14983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14984 _ACEOF
14985
14986 fi
14987 done
14988
14989
14990 # On some systems (e.g. Solaris) nanosleep requires linking to librl.
14991 # Given that we use nanosleep only as an optimization over a select
14992 # based wait function we want it only if it is available in libc.
14993 _save_libs="$LIBS"
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14995 $as_echo_n "checking for library containing nanosleep... " >&6; }
14996 if ${ac_cv_search_nanosleep+:} false; then :
14997   $as_echo_n "(cached) " >&6
14998 else
14999   ac_func_search_save_LIBS=$LIBS
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h.  */
15002
15003 /* Override any GCC internal prototype to avoid an error.
15004    Use char because int might match the return type of a GCC
15005    builtin and then its argument prototype would still apply.  */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char nanosleep ();
15010 int
15011 main ()
15012 {
15013 return nanosleep ();
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 for ac_lib in '' ; do
15019   if test -z "$ac_lib"; then
15020     ac_res="none required"
15021   else
15022     ac_res=-l$ac_lib
15023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15024   fi
15025   if ac_fn_c_try_link "$LINENO"; then :
15026   ac_cv_search_nanosleep=$ac_res
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext \
15029     conftest$ac_exeext
15030   if ${ac_cv_search_nanosleep+:} false; then :
15031   break
15032 fi
15033 done
15034 if ${ac_cv_search_nanosleep+:} false; then :
15035
15036 else
15037   ac_cv_search_nanosleep=no
15038 fi
15039 rm conftest.$ac_ext
15040 LIBS=$ac_func_search_save_LIBS
15041 fi
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
15043 $as_echo "$ac_cv_search_nanosleep" >&6; }
15044 ac_res=$ac_cv_search_nanosleep
15045 if test "$ac_res" != no; then :
15046   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15047
15048 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
15049
15050 fi
15051
15052 LIBS="$_save_libs"
15053
15054
15055 # See whether libc supports the Linux inotify interface
15056 case "${host}" in
15057     *-*-linux*)
15058         for ac_func in inotify_init
15059 do :
15060   ac_fn_c_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
15061 if test "x$ac_cv_func_inotify_init" = xyes; then :
15062   cat >>confdefs.h <<_ACEOF
15063 #define HAVE_INOTIFY_INIT 1
15064 _ACEOF
15065
15066 fi
15067 done
15068
15069         ;;
15070 esac
15071
15072
15073 if test "$have_android_system" = yes; then
15074    # On Android ttyname is a stub but prints an error message.
15075
15076 $as_echo "#define HAVE_BROKEN_TTYNAME 1" >>confdefs.h
15077
15078 fi
15079
15080 ac_fn_c_check_type "$LINENO" "struct sigaction" "ac_cv_type_struct_sigaction" "#include <signal.h>
15081 "
15082 if test "x$ac_cv_type_struct_sigaction" = xyes; then :
15083
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_STRUCT_SIGACTION 1
15086 _ACEOF
15087
15088
15089 fi
15090 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
15091 "
15092 if test "x$ac_cv_type_sigset_t" = xyes; then :
15093
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_SIGSET_T 1
15096 _ACEOF
15097
15098
15099 fi
15100
15101
15102 # Dirmngr requires mmap on Unix systems.
15103 if test $ac_cv_func_mmap != yes -a $mmap_needed = yes; then
15104   as_fn_error $? "Sorry, the current implementation requires mmap." "$LINENO" 5
15105 fi
15106
15107
15108 #
15109 # Check for the getsockopt SO_PEERCRED, etc.
15110 #
15111 ac_fn_c_check_member "$LINENO" "struct ucred" "pid" "ac_cv_member_struct_ucred_pid" "#include <sys/types.h>
15112 #include <sys/socket.h>
15113 "
15114 if test "x$ac_cv_member_struct_ucred_pid" = xyes; then :
15115
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_STRUCT_UCRED_PID 1
15118 _ACEOF
15119
15120
15121 fi
15122 ac_fn_c_check_member "$LINENO" "struct ucred" "cr_pid" "ac_cv_member_struct_ucred_cr_pid" "#include <sys/types.h>
15123 #include <sys/socket.h>
15124 "
15125 if test "x$ac_cv_member_struct_ucred_cr_pid" = xyes; then :
15126
15127 cat >>confdefs.h <<_ACEOF
15128 #define HAVE_STRUCT_UCRED_CR_PID 1
15129 _ACEOF
15130
15131
15132 fi
15133 ac_fn_c_check_member "$LINENO" "struct sockpeercred" "pid" "ac_cv_member_struct_sockpeercred_pid" "#include <sys/types.h>
15134 #include <sys/socket.h>
15135 "
15136 if test "x$ac_cv_member_struct_sockpeercred_pid" = xyes; then :
15137
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_STRUCT_SOCKPEERCRED_PID 1
15140 _ACEOF
15141
15142
15143 fi
15144
15145
15146 # (Open)Solaris
15147 for ac_func in getpeerucred
15148 do :
15149   ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
15150 if test "x$ac_cv_func_getpeerucred" = xyes; then :
15151   cat >>confdefs.h <<_ACEOF
15152 #define HAVE_GETPEERUCRED 1
15153 _ACEOF
15154
15155 fi
15156 done
15157
15158
15159
15160 #
15161 # W32 specific test
15162 #
15163
15164
15165 #
15166 # Do we have zlib? Must do it here because Solaris failed
15167 # when compiling a conftest (due to the "-lz" from LIBS).
15168 # Note that we combine zlib and bzlib2 in ZLIBS.
15169 #
15170 if test "$use_zip" = yes ; then
15171   _cppflags="${CPPFLAGS}"
15172   _ldflags="${LDFLAGS}"
15173
15174 # Check whether --with-zlib was given.
15175 if test "${with_zlib+set}" = set; then :
15176   withval=$with_zlib;
15177       if test -d "$withval"; then
15178         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15179         LDFLAGS="${LDFLAGS} -L$withval/lib"
15180       fi
15181
15182 fi
15183
15184
15185   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15186 if test "x$ac_cv_header_zlib_h" = xyes; then :
15187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateInit2_ in -lz" >&5
15188 $as_echo_n "checking for deflateInit2_ in -lz... " >&6; }
15189 if ${ac_cv_lib_z_deflateInit2_+:} false; then :
15190   $as_echo_n "(cached) " >&6
15191 else
15192   ac_check_lib_save_LIBS=$LIBS
15193 LIBS="-lz  $LIBS"
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h.  */
15196
15197 /* Override any GCC internal prototype to avoid an error.
15198    Use char because int might match the return type of a GCC
15199    builtin and then its argument prototype would still apply.  */
15200 #ifdef __cplusplus
15201 extern "C"
15202 #endif
15203 char deflateInit2_ ();
15204 int
15205 main ()
15206 {
15207 return deflateInit2_ ();
15208   ;
15209   return 0;
15210 }
15211 _ACEOF
15212 if ac_fn_c_try_link "$LINENO"; then :
15213   ac_cv_lib_z_deflateInit2_=yes
15214 else
15215   ac_cv_lib_z_deflateInit2_=no
15216 fi
15217 rm -f core conftest.err conftest.$ac_objext \
15218     conftest$ac_exeext conftest.$ac_ext
15219 LIBS=$ac_check_lib_save_LIBS
15220 fi
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateInit2_" >&5
15222 $as_echo "$ac_cv_lib_z_deflateInit2_" >&6; }
15223 if test "x$ac_cv_lib_z_deflateInit2_" = xyes; then :
15224
15225        ZLIBS="-lz"
15226
15227 $as_echo "#define HAVE_ZIP 1" >>confdefs.h
15228
15229
15230 else
15231   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15232 fi
15233
15234 else
15235   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15236 fi
15237
15238
15239 fi
15240
15241
15242 #
15243 # Check whether we can support bzip2
15244 #
15245 if test "$use_bzip2" = yes ; then
15246   _cppflags="${CPPFLAGS}"
15247   _ldflags="${LDFLAGS}"
15248
15249 # Check whether --with-bzip2 was given.
15250 if test "${with_bzip2+set}" = set; then :
15251   withval=$with_bzip2;
15252       if test -d "$withval" ; then
15253         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15254         LDFLAGS="${LDFLAGS} -L$withval/lib"
15255       fi
15256
15257 else
15258   withval=""
15259 fi
15260
15261
15262   # Checking alongside stdio.h as an early version of bzip2 (1.0)
15263   # required stdio.h to be included before bzlib.h, and Solaris 9 is
15264   # woefully out of date.
15265   if test "$withval" != no ; then
15266      ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "#include <stdio.h>
15267 "
15268 if test "x$ac_cv_header_bzlib_h" = xyes; then :
15269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15270 $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15271 if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
15272   $as_echo_n "(cached) " >&6
15273 else
15274   ac_check_lib_save_LIBS=$LIBS
15275 LIBS="-lbz2  $LIBS"
15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h.  */
15278
15279 /* Override any GCC internal prototype to avoid an error.
15280    Use char because int might match the return type of a GCC
15281    builtin and then its argument prototype would still apply.  */
15282 #ifdef __cplusplus
15283 extern "C"
15284 #endif
15285 char BZ2_bzCompressInit ();
15286 int
15287 main ()
15288 {
15289 return BZ2_bzCompressInit ();
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 if ac_fn_c_try_link "$LINENO"; then :
15295   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15296 else
15297   ac_cv_lib_bz2_BZ2_bzCompressInit=no
15298 fi
15299 rm -f core conftest.err conftest.$ac_objext \
15300     conftest$ac_exeext conftest.$ac_ext
15301 LIBS=$ac_check_lib_save_LIBS
15302 fi
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15304 $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15305 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
15306
15307           have_bz2=yes
15308           ZLIBS="$ZLIBS -lbz2"
15309
15310 $as_echo "#define HAVE_BZIP2 1" >>confdefs.h
15311
15312
15313 else
15314   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15315 fi
15316
15317 else
15318   CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
15319 fi
15320
15321
15322   fi
15323 fi
15324  if test x"$have_bz2" = "xyes"; then
15325   ENABLE_BZIP2_SUPPORT_TRUE=
15326   ENABLE_BZIP2_SUPPORT_FALSE='#'
15327 else
15328   ENABLE_BZIP2_SUPPORT_TRUE='#'
15329   ENABLE_BZIP2_SUPPORT_FALSE=
15330 fi
15331
15332
15333
15334
15335 # Check for readline support
15336
15337
15338 # Check whether --with-readline was given.
15339 if test "${with_readline+set}" = set; then :
15340   withval=$with_readline; _do_readline=$withval
15341 else
15342   _do_readline=yes
15343 fi
15344
15345
15346   gnupg_cv_have_readline=no
15347   if test "$_do_readline" != "no" ; then
15348      if test -d "$withval" ; then
15349         CPPFLAGS="${CPPFLAGS} -I$withval/include"
15350         LDFLAGS="${LDFLAGS} -L$withval/lib"
15351      fi
15352
15353      for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
15354         _readline_save_libs=$LIBS
15355         _combo="-lreadline${_termcap:+ $_termcap}"
15356         LIBS="$LIBS $_combo"
15357
15358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
15359 $as_echo_n "checking whether readline via \"$_combo\" is present and sane... " >&6; }
15360
15361         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h.  */
15363
15364 #include <stdio.h>
15365 #include <readline/readline.h>
15366 #include <readline/history.h>
15367
15368 int
15369 main ()
15370 {
15371
15372 rl_completion_func_t *completer;
15373 add_history("foobar");
15374 rl_catch_signals=0;
15375 rl_inhibit_completion=0;
15376 rl_attempted_completion_function=NULL;
15377 rl_completion_matches(NULL,NULL);
15378
15379   ;
15380   return 0;
15381 }
15382 _ACEOF
15383 if ac_fn_c_try_link "$LINENO"; then :
15384   _found_readline=yes
15385 else
15386   _found_readline=no
15387 fi
15388 rm -f core conftest.err conftest.$ac_objext \
15389     conftest$ac_exeext conftest.$ac_ext
15390
15391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
15392 $as_echo "$_found_readline" >&6; }
15393
15394         LIBS=$_readline_save_libs
15395
15396         if test $_found_readline = yes ; then
15397
15398 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
15399
15400            LIBREADLINE=$_combo
15401
15402            gnupg_cv_have_readline=yes
15403            break
15404         fi
15405      done
15406
15407      unset _termcap
15408      unset _readline_save_libs
15409      unset _combo
15410      unset _found_readline
15411   fi
15412
15413
15414
15415 if test "$development_version" = yes; then
15416
15417 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
15418
15419 fi
15420
15421 if test "$USE_MAINTAINER_MODE" = "yes"; then
15422
15423 $as_echo "#define MAINTAINER_MODE 1" >>confdefs.h
15424
15425 fi
15426
15427  if test x$cross_compiling = xyes; then
15428   CROSS_COMPILING_TRUE=
15429   CROSS_COMPILING_FALSE='#'
15430 else
15431   CROSS_COMPILING_TRUE='#'
15432   CROSS_COMPILING_FALSE=
15433 fi
15434
15435
15436
15437     if ${MAKE-make} --version 2>/dev/null | grep '^GNU ' >/dev/null 2>&1; then
15438         :
15439     else
15440         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15441 ***
15442 *** It seems that you are not using GNU make.  Some make tools have serious
15443 *** flaws and you may not be able to build this software at all. Before you
15444 *** complain, please try GNU make:  GNU make is easy to build and available
15445 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15446 ***" >&5
15447 $as_echo "$as_me: WARNING:
15448 ***
15449 *** It seems that you are not using GNU make.  Some make tools have serious
15450 *** flaws and you may not be able to build this software at all. Before you
15451 *** complain, please try GNU make:  GNU make is easy to build and available
15452 *** at all GNU archives.  It is always available from ftp.gnu.org:/gnu/make.
15453 ***" >&2;}
15454     fi
15455
15456
15457 # Add some extra libs here so that previous tests don't fail for
15458 # mysterious reasons - the final link step should bail out.
15459 # W32SOCKLIBS is also defined so that if can be used for tools not
15460 # requiring any network stuff but linking to code in libcommon which
15461 # tracks in winsock stuff (e.g. init_common_subsystems).
15462 if test "$have_w32_system" = yes; then
15463    if test "$have_w32ce_system" = yes; then
15464      W32SOCKLIBS="-lws2"
15465    else
15466      W32SOCKLIBS="-lws2_32"
15467    fi
15468    NETLIBS="${NETLIBS} ${W32SOCKLIBS}"
15469 fi
15470
15471
15472
15473
15474 #
15475 # TPM libtss library .. don't compile TPM support if we don't have it
15476 #
15477
15478 # Check whether --with-tss was given.
15479 if test "${with_tss+set}" = set; then :
15480   withval=$with_tss; with_tss=$withval
15481 else
15482   with_tss=autodetect
15483 fi
15484
15485 LIBTSS_LIBS=
15486 LIBTSS_CFLAGS=
15487 if test "$build_tpm2d" = "yes"; then
15488   _save_libs="$LIBS"
15489   _save_cflags="$CFLAGS"
15490   LIBS=""
15491   if test "$with_tss" = autodetect; then
15492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15493 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15494 if ${ac_cv_search_TSS_Create+:} false; then :
15495   $as_echo_n "(cached) " >&6
15496 else
15497   ac_func_search_save_LIBS=$LIBS
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500
15501 /* Override any GCC internal prototype to avoid an error.
15502    Use char because int might match the return type of a GCC
15503    builtin and then its argument prototype would still apply.  */
15504 #ifdef __cplusplus
15505 extern "C"
15506 #endif
15507 char TSS_Create ();
15508 int
15509 main ()
15510 {
15511 return TSS_Create ();
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 for ac_lib in '' tss ibmtss; do
15517   if test -z "$ac_lib"; then
15518     ac_res="none required"
15519   else
15520     ac_res=-l$ac_lib
15521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15522   fi
15523   if ac_fn_c_try_link "$LINENO"; then :
15524   ac_cv_search_TSS_Create=$ac_res
15525 fi
15526 rm -f core conftest.err conftest.$ac_objext \
15527     conftest$ac_exeext
15528   if ${ac_cv_search_TSS_Create+:} false; then :
15529   break
15530 fi
15531 done
15532 if ${ac_cv_search_TSS_Create+:} false; then :
15533
15534 else
15535   ac_cv_search_TSS_Create=no
15536 fi
15537 rm conftest.$ac_ext
15538 LIBS=$ac_func_search_save_LIBS
15539 fi
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15541 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15542 ac_res=$ac_cv_search_TSS_Create
15543 if test "$ac_res" != no; then :
15544   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15545   have_libtss=IBM
15546 else
15547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15548 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15549 if ${ac_cv_search_Esys_Initialize+:} false; then :
15550   $as_echo_n "(cached) " >&6
15551 else
15552   ac_func_search_save_LIBS=$LIBS
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h.  */
15555
15556 /* Override any GCC internal prototype to avoid an error.
15557    Use char because int might match the return type of a GCC
15558    builtin and then its argument prototype would still apply.  */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 char Esys_Initialize ();
15563 int
15564 main ()
15565 {
15566 return Esys_Initialize ();
15567   ;
15568   return 0;
15569 }
15570 _ACEOF
15571 for ac_lib in '' tss2-esys; do
15572   if test -z "$ac_lib"; then
15573     ac_res="none required"
15574   else
15575     ac_res=-l$ac_lib
15576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15577   fi
15578   if ac_fn_c_try_link "$LINENO"; then :
15579   ac_cv_search_Esys_Initialize=$ac_res
15580 fi
15581 rm -f core conftest.err conftest.$ac_objext \
15582     conftest$ac_exeext
15583   if ${ac_cv_search_Esys_Initialize+:} false; then :
15584   break
15585 fi
15586 done
15587 if ${ac_cv_search_Esys_Initialize+:} false; then :
15588
15589 else
15590   ac_cv_search_Esys_Initialize=no
15591 fi
15592 rm conftest.$ac_ext
15593 LIBS=$ac_func_search_save_LIBS
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15596 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15597 ac_res=$ac_cv_search_Esys_Initialize
15598 if test "$ac_res" != no; then :
15599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15600   have_libtss=Intel
15601 else
15602   have_libtss=no
15603 fi
15604
15605 fi
15606
15607   elif test "$with_tss" = ibm; then
15608     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing TSS_Create" >&5
15609 $as_echo_n "checking for library containing TSS_Create... " >&6; }
15610 if ${ac_cv_search_TSS_Create+:} false; then :
15611   $as_echo_n "(cached) " >&6
15612 else
15613   ac_func_search_save_LIBS=$LIBS
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h.  */
15616
15617 /* Override any GCC internal prototype to avoid an error.
15618    Use char because int might match the return type of a GCC
15619    builtin and then its argument prototype would still apply.  */
15620 #ifdef __cplusplus
15621 extern "C"
15622 #endif
15623 char TSS_Create ();
15624 int
15625 main ()
15626 {
15627 return TSS_Create ();
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 for ac_lib in '' tss ibmtss; do
15633   if test -z "$ac_lib"; then
15634     ac_res="none required"
15635   else
15636     ac_res=-l$ac_lib
15637     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15638   fi
15639   if ac_fn_c_try_link "$LINENO"; then :
15640   ac_cv_search_TSS_Create=$ac_res
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext \
15643     conftest$ac_exeext
15644   if ${ac_cv_search_TSS_Create+:} false; then :
15645   break
15646 fi
15647 done
15648 if ${ac_cv_search_TSS_Create+:} false; then :
15649
15650 else
15651   ac_cv_search_TSS_Create=no
15652 fi
15653 rm conftest.$ac_ext
15654 LIBS=$ac_func_search_save_LIBS
15655 fi
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_TSS_Create" >&5
15657 $as_echo "$ac_cv_search_TSS_Create" >&6; }
15658 ac_res=$ac_cv_search_TSS_Create
15659 if test "$ac_res" != no; then :
15660   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15661   have_libtss=IBM
15662 else
15663   as_fn_error $? "IBM TPM Software Stack requested but not found" "$LINENO" 5
15664 fi
15665
15666   elif test "$with_tss" = intel; then
15667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing Esys_Initialize" >&5
15668 $as_echo_n "checking for library containing Esys_Initialize... " >&6; }
15669 if ${ac_cv_search_Esys_Initialize+:} false; then :
15670   $as_echo_n "(cached) " >&6
15671 else
15672   ac_func_search_save_LIBS=$LIBS
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h.  */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677    Use char because int might match the return type of a GCC
15678    builtin and then its argument prototype would still apply.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char Esys_Initialize ();
15683 int
15684 main ()
15685 {
15686 return Esys_Initialize ();
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 for ac_lib in '' tss2-esys; do
15692   if test -z "$ac_lib"; then
15693     ac_res="none required"
15694   else
15695     ac_res=-l$ac_lib
15696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15697   fi
15698   if ac_fn_c_try_link "$LINENO"; then :
15699   ac_cv_search_Esys_Initialize=$ac_res
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext \
15702     conftest$ac_exeext
15703   if ${ac_cv_search_Esys_Initialize+:} false; then :
15704   break
15705 fi
15706 done
15707 if ${ac_cv_search_Esys_Initialize+:} false; then :
15708
15709 else
15710   ac_cv_search_Esys_Initialize=no
15711 fi
15712 rm conftest.$ac_ext
15713 LIBS=$ac_func_search_save_LIBS
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_Esys_Initialize" >&5
15716 $as_echo "$ac_cv_search_Esys_Initialize" >&6; }
15717 ac_res=$ac_cv_search_Esys_Initialize
15718 if test "$ac_res" != no; then :
15719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15720   have_libtss=Intel
15721 else
15722   as_fn_error $? "Intel TPM Software Stack requested but not found" "$LINENO" 5
15723 fi
15724
15725   else
15726     as_fn_error $? "Invalid TPM Software Stack requested: $with_tss" "$LINENO" 5
15727   fi
15728
15729   if test "$have_libtss" = IBM; then
15730     LIBTSS_CFLAGS="-DTPM_POSIX"
15731     CFLAGS="$CFLAGS ${LIBTSS_CFLAGS}"
15732     ac_fn_c_check_header_mongrel "$LINENO" "tss2/tss.h" "ac_cv_header_tss2_tss_h" "$ac_includes_default"
15733 if test "x$ac_cv_header_tss2_tss_h" = xyes; then :
15734
15735 $as_echo "#define TSS_INCLUDE tss2" >>confdefs.h
15736
15737 else
15738
15739       ac_fn_c_check_header_mongrel "$LINENO" "ibmtss/tss.h" "ac_cv_header_ibmtss_tss_h" "$ac_includes_default"
15740 if test "x$ac_cv_header_ibmtss_tss_h" = xyes; then :
15741
15742 $as_echo "#define TSS_INCLUDE ibmtss" >>confdefs.h
15743
15744 else
15745
15746         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No TSS2 include directory found, disabling TPM support" >&5
15747 $as_echo "$as_me: WARNING: No TSS2 include directory found, disabling TPM support" >&2;}
15748         have_libtss=no
15749
15750 fi
15751
15752
15753
15754 fi
15755
15756
15757     LIBTSS_LIBS=$LIBS
15758
15759   elif test "$have_libtss" = Intel; then
15760     ##
15761     # Intel TSS has an API issue: Esys_TR_GetTpmHandle wasn't introduced
15762     # until version 2.4.0.
15763     #
15764     # Note: the missing API is fairly serious and is also easily backportable
15765     # so keep the check below as is intead of going by library version number.
15766     ##
15767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Esys_TR_GetTpmHandle in -ltss2-esys" >&5
15768 $as_echo_n "checking for Esys_TR_GetTpmHandle in -ltss2-esys... " >&6; }
15769 if ${ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle+:} false; then :
15770   $as_echo_n "(cached) " >&6
15771 else
15772   ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-ltss2-esys  $LIBS"
15774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775 /* end confdefs.h.  */
15776
15777 /* Override any GCC internal prototype to avoid an error.
15778    Use char because int might match the return type of a GCC
15779    builtin and then its argument prototype would still apply.  */
15780 #ifdef __cplusplus
15781 extern "C"
15782 #endif
15783 char Esys_TR_GetTpmHandle ();
15784 int
15785 main ()
15786 {
15787 return Esys_TR_GetTpmHandle ();
15788   ;
15789   return 0;
15790 }
15791 _ACEOF
15792 if ac_fn_c_try_link "$LINENO"; then :
15793   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=yes
15794 else
15795   ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle=no
15796 fi
15797 rm -f core conftest.err conftest.$ac_objext \
15798     conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15800 fi
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&5
15802 $as_echo "$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" >&6; }
15803 if test "x$ac_cv_lib_tss2_esys_Esys_TR_GetTpmHandle" = xyes; then :
15804   cat >>confdefs.h <<_ACEOF
15805 #define HAVE_LIBTSS2_ESYS 1
15806 _ACEOF
15807
15808   LIBS="-ltss2-esys $LIBS"
15809
15810 else
15811
15812         { $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
15813 $as_echo "$as_me: WARNING: Need Esys_TR_GetTpmHandle API (usually requires Intel TSS 2.4.0 or later, disabling TPM support)" >&2;}
15814         have_libtss=no
15815
15816 fi
15817
15818     LIBTSS_LIBS="$LIBS -ltss2-mu -ltss2-rc -ltss2-tctildr"
15819
15820 $as_echo "#define HAVE_INTEL_TSS 1" >>confdefs.h
15821
15822   fi
15823   LIBS="$_save_libs"
15824   CFLAGS="$_save_cflags"
15825   if test "$have_libtss" != no; then
15826
15827 $as_echo "#define HAVE_LIBTSS 1" >>confdefs.h
15828
15829     # look for a TPM emulator for testing
15830     # Extract the first word of "tpm_server", so it can be a program name with args.
15831 set dummy tpm_server; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833 $as_echo_n "checking for $ac_word... " >&6; }
15834 if ${ac_cv_path_TPMSERVER+:} false; then :
15835   $as_echo_n "(cached) " >&6
15836 else
15837   case $TPMSERVER in
15838   [\\/]* | ?:[\\/]*)
15839   ac_cv_path_TPMSERVER="$TPMSERVER" # Let the user override the test with a path.
15840   ;;
15841   *)
15842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15843 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15844 for as_dir in $as_dummy
15845 do
15846   IFS=$as_save_IFS
15847   test -z "$as_dir" && as_dir=.
15848     for ac_exec_ext in '' $ac_executable_extensions; do
15849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15850     ac_cv_path_TPMSERVER="$as_dir/$ac_word$ac_exec_ext"
15851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15852     break 2
15853   fi
15854 done
15855   done
15856 IFS=$as_save_IFS
15857
15858   ;;
15859 esac
15860 fi
15861 TPMSERVER=$ac_cv_path_TPMSERVER
15862 if test -n "$TPMSERVER"; then
15863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TPMSERVER" >&5
15864 $as_echo "$TPMSERVER" >&6; }
15865 else
15866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867 $as_echo "no" >&6; }
15868 fi
15869
15870
15871     # Extract the first word of "swtpm", so it can be a program name with args.
15872 set dummy swtpm; ac_word=$2
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15874 $as_echo_n "checking for $ac_word... " >&6; }
15875 if ${ac_cv_path_SWTPM+:} false; then :
15876   $as_echo_n "(cached) " >&6
15877 else
15878   case $SWTPM in
15879   [\\/]* | ?:[\\/]*)
15880   ac_cv_path_SWTPM="$SWTPM" # Let the user override the test with a path.
15881   ;;
15882   *)
15883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15884 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15885 for as_dir in $as_dummy
15886 do
15887   IFS=$as_save_IFS
15888   test -z "$as_dir" && as_dir=.
15889     for ac_exec_ext in '' $ac_executable_extensions; do
15890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891     ac_cv_path_SWTPM="$as_dir/$ac_word$ac_exec_ext"
15892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893     break 2
15894   fi
15895 done
15896   done
15897 IFS=$as_save_IFS
15898
15899   ;;
15900 esac
15901 fi
15902 SWTPM=$ac_cv_path_SWTPM
15903 if test -n "$SWTPM"; then
15904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM" >&5
15905 $as_echo "$SWTPM" >&6; }
15906 else
15907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15908 $as_echo "no" >&6; }
15909 fi
15910
15911
15912     # Extract the first word of "swtpm_ioctl", so it can be a program name with args.
15913 set dummy swtpm_ioctl; ac_word=$2
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15915 $as_echo_n "checking for $ac_word... " >&6; }
15916 if ${ac_cv_path_SWTPM_IOCTL+:} false; then :
15917   $as_echo_n "(cached) " >&6
15918 else
15919   case $SWTPM_IOCTL in
15920   [\\/]* | ?:[\\/]*)
15921   ac_cv_path_SWTPM_IOCTL="$SWTPM_IOCTL" # Let the user override the test with a path.
15922   ;;
15923   *)
15924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15925 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15926 for as_dir in $as_dummy
15927 do
15928   IFS=$as_save_IFS
15929   test -z "$as_dir" && as_dir=.
15930     for ac_exec_ext in '' $ac_executable_extensions; do
15931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15932     ac_cv_path_SWTPM_IOCTL="$as_dir/$ac_word$ac_exec_ext"
15933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15934     break 2
15935   fi
15936 done
15937   done
15938 IFS=$as_save_IFS
15939
15940   ;;
15941 esac
15942 fi
15943 SWTPM_IOCTL=$ac_cv_path_SWTPM_IOCTL
15944 if test -n "$SWTPM_IOCTL"; then
15945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWTPM_IOCTL" >&5
15946 $as_echo "$SWTPM_IOCTL" >&6; }
15947 else
15948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15949 $as_echo "no" >&6; }
15950 fi
15951
15952
15953     # Extract the first word of "tssstartup", so it can be a program name with args.
15954 set dummy tssstartup; ac_word=$2
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15956 $as_echo_n "checking for $ac_word... " >&6; }
15957 if ${ac_cv_path_TSSSTARTUP+:} false; then :
15958   $as_echo_n "(cached) " >&6
15959 else
15960   case $TSSSTARTUP in
15961   [\\/]* | ?:[\\/]*)
15962   ac_cv_path_TSSSTARTUP="$TSSSTARTUP" # Let the user override the test with a path.
15963   ;;
15964   *)
15965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966 as_dummy="/bin:/usr/bin:/usr/lib/ibmtss:/usr/libexec/ibmtss"
15967 for as_dir in $as_dummy
15968 do
15969   IFS=$as_save_IFS
15970   test -z "$as_dir" && as_dir=.
15971     for ac_exec_ext in '' $ac_executable_extensions; do
15972   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15973     ac_cv_path_TSSSTARTUP="$as_dir/$ac_word$ac_exec_ext"
15974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15975     break 2
15976   fi
15977 done
15978   done
15979 IFS=$as_save_IFS
15980
15981   ;;
15982 esac
15983 fi
15984 TSSSTARTUP=$ac_cv_path_TSSSTARTUP
15985 if test -n "$TSSSTARTUP"; then
15986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TSSSTARTUP" >&5
15987 $as_echo "$TSSSTARTUP" >&6; }
15988 else
15989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990 $as_echo "no" >&6; }
15991 fi
15992
15993
15994   fi
15995 fi
15996 if test "$have_libtss" = no; then
15997   build_tpm2d=no
15998 fi
15999
16000
16001  if test "$have_libtss" != no; then
16002   HAVE_LIBTSS_TRUE=
16003   HAVE_LIBTSS_FALSE='#'
16004 else
16005   HAVE_LIBTSS_TRUE='#'
16006   HAVE_LIBTSS_FALSE=
16007 fi
16008
16009  if test -n "$TPMSERVER" || test -n "$SWTPM" && test -n "$TSSSTARTUP"; then
16010   TEST_LIBTSS_TRUE=
16011   TEST_LIBTSS_FALSE='#'
16012 else
16013   TEST_LIBTSS_TRUE='#'
16014   TEST_LIBTSS_FALSE=
16015 fi
16016
16017
16018
16019 #
16020 # Setup gcc specific options
16021 #
16022 USE_C99_CFLAGS=
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
16024 $as_echo "$as_me: checking for cc features" >&6;}
16025 if test "$GCC" = yes; then
16026     mycflags=
16027     mycflags_save=$CFLAGS
16028
16029     # Check whether gcc does not emit a diagnositc for unknown -Wno-*
16030     # options.  This is the case for gcc >= 4.6
16031     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc ignores unknown -Wno-* options" >&5
16032 $as_echo_n "checking if gcc ignores unknown -Wno-* options... " >&6; }
16033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h.  */
16035
16036 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6 )
16037 #kickerror
16038 #endif
16039 int
16040 main ()
16041 {
16042
16043   ;
16044   return 0;
16045 }
16046 _ACEOF
16047 if ac_fn_c_try_compile "$LINENO"; then :
16048   _gcc_silent_wno=yes
16049 else
16050   _gcc_silent_wno=no
16051 fi
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_silent_wno" >&5
16054 $as_echo "$_gcc_silent_wno" >&6; }
16055
16056     # Note that it is okay to use CFLAGS here because these are just
16057     # warning options and the user should have a chance of overriding
16058     # them.
16059     if test "$USE_MAINTAINER_MODE" = "yes"; then
16060         mycflags="$mycflags -O3 -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
16061         mycflags="$mycflags -Wformat -Wno-format-y2k -Wformat-security"
16062         if test x"$_gcc_silent_wno" = xyes ; then
16063           _gcc_wopt=yes
16064         else
16065           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
16066 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
16067           CFLAGS="-Wno-missing-field-initializers"
16068           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h.  */
16070
16071 int
16072 main ()
16073 {
16074
16075   ;
16076   return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_compile "$LINENO"; then :
16080   _gcc_wopt=yes
16081 else
16082   _gcc_wopt=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16085           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16086 $as_echo "$_gcc_wopt" >&6; }
16087         fi
16088         if test x"$_gcc_wopt" = xyes ; then
16089           mycflags="$mycflags -W -Wno-sign-compare -Wno-format-zero-length"
16090           mycflags="$mycflags -Wno-missing-field-initializers"
16091         fi
16092
16093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdeclaration-after-statement" >&5
16094 $as_echo_n "checking if gcc supports -Wdeclaration-after-statement... " >&6; }
16095         CFLAGS="-Wdeclaration-after-statement"
16096         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16097 /* end confdefs.h.  */
16098
16099 int
16100 main ()
16101 {
16102
16103   ;
16104   return 0;
16105 }
16106 _ACEOF
16107 if ac_fn_c_try_compile "$LINENO"; then :
16108   _gcc_wopt=yes
16109 else
16110   _gcc_wopt=no
16111 fi
16112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16114 $as_echo "$_gcc_wopt" >&6; }
16115         if test x"$_gcc_wopt" = xyes ; then
16116           mycflags="$mycflags -Wdeclaration-after-statement"
16117         fi
16118
16119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wlogical-op" >&5
16120 $as_echo_n "checking if gcc supports -Wlogical-op... " >&6; }
16121         CFLAGS="-Wlogical-op -Werror"
16122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h.  */
16124
16125 int
16126 main ()
16127 {
16128
16129   ;
16130   return 0;
16131 }
16132 _ACEOF
16133 if ac_fn_c_try_compile "$LINENO"; then :
16134   _gcc_wopt=yes
16135 else
16136   _gcc_wopt=no
16137 fi
16138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16140 $as_echo "$_gcc_wopt" >&6; }
16141         if test x"$_gcc_wopt" = xyes ; then
16142           mycflags="$mycflags -Wlogical-op"
16143         fi
16144
16145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvla" >&5
16146 $as_echo_n "checking if gcc supports -Wvla... " >&6; }
16147         CFLAGS="-Wvla"
16148         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h.  */
16150
16151 int
16152 main ()
16153 {
16154
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 if ac_fn_c_try_compile "$LINENO"; then :
16160   _gcc_wopt=yes
16161 else
16162   _gcc_wopt=no
16163 fi
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
16166 $as_echo "$_gcc_wopt" >&6; }
16167         if test x"$_gcc_wopt" = xyes ; then
16168           mycflags="$mycflags -Wvla"
16169         fi
16170
16171     else
16172         mycflags="$mycflags -Wall"
16173         if test x"$_gcc_silent_wno" = xyes ; then
16174           mycflags="$mycflags -Wno-format-zero-length"
16175         fi
16176     fi
16177
16178     if test x"$_gcc_silent_wno" = xyes ; then
16179       _gcc_psign=yes
16180     else
16181       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-pointer-sign" >&5
16182 $as_echo_n "checking if gcc supports -Wno-pointer-sign... " >&6; }
16183       CFLAGS="-Wno-pointer-sign"
16184       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h.  */
16186
16187 int
16188 main ()
16189 {
16190
16191   ;
16192   return 0;
16193 }
16194 _ACEOF
16195 if ac_fn_c_try_compile "$LINENO"; then :
16196   _gcc_psign=yes
16197 else
16198   _gcc_psign=no
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16202 $as_echo "$_gcc_psign" >&6; }
16203     fi
16204     if test x"$_gcc_psign" = xyes ; then
16205        mycflags="$mycflags -Wno-pointer-sign"
16206     fi
16207
16208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
16209 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
16210     CFLAGS="-Wpointer-arith"
16211     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h.  */
16213
16214 int
16215 main ()
16216 {
16217
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 if ac_fn_c_try_compile "$LINENO"; then :
16223   _gcc_psign=yes
16224 else
16225   _gcc_psign=no
16226 fi
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_psign" >&5
16229 $as_echo "$_gcc_psign" >&6; }
16230     if test x"$_gcc_psign" = xyes ; then
16231        mycflags="$mycflags -Wpointer-arith"
16232     fi
16233
16234     CFLAGS="$mycflags $mycflags_save"
16235     if test "$use_libdns" = yes; then
16236        # dirmngr/dns.{c,h} require C99 and GNU extensions.  */
16237        USE_C99_CFLAGS="-std=gnu99"
16238     fi
16239 fi
16240
16241
16242
16243
16244 #
16245 # This is handy for debugging so the compiler doesn't rearrange
16246 # things and eliminate variables.
16247 #
16248 # Check whether --enable-optimization was given.
16249 if test "${enable_optimization+set}" = set; then :
16250   enableval=$enable_optimization; if test $enableval = no ; then
16251                       CFLAGS=`echo $CFLAGS | sed s/-O[1-9]\ /-O0\ /g`
16252                    fi
16253 fi
16254
16255
16256 #
16257 # log_debug has certain requirements which might hamper portability.
16258 # Thus we use an option to enable it.
16259 #
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable log_clock" >&5
16261 $as_echo_n "checking whether to enable log_clock... " >&6; }
16262 # Check whether --enable-log_clock was given.
16263 if test "${enable_log_clock+set}" = set; then :
16264   enableval=$enable_log_clock; enable_log_clock=$enableval
16265 else
16266   enable_log_clock=no
16267 fi
16268
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_log_clock" >&5
16270 $as_echo "$enable_log_clock" >&6; }
16271 if test "$enable_log_clock" = yes ; then
16272
16273 $as_echo "#define ENABLE_LOG_CLOCK 1" >>confdefs.h
16274
16275 fi
16276
16277 # Add -Werror to CFLAGS.  This hack can be used to avoid problems with
16278 # misbehaving autoconf tests in case the user supplied -Werror.
16279 #
16280 # Check whether --enable-werror was given.
16281 if test "${enable_werror+set}" = set; then :
16282   enableval=$enable_werror; if test $enableval = yes ; then
16283                       CFLAGS="$CFLAGS -Werror"
16284                    fi
16285 fi
16286
16287
16288 #
16289 # Configure option --enable-all-tests
16290 #
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \"make check\" shall run all tests" >&5
16292 $as_echo_n "checking whether \"make check\" shall run all tests... " >&6; }
16293 # Check whether --enable-all-tests was given.
16294 if test "${enable_all_tests+set}" = set; then :
16295   enableval=$enable_all_tests; run_all_tests=$enableval
16296 else
16297   run_all_tests=no
16298 fi
16299
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_all_tests" >&5
16301 $as_echo "$run_all_tests" >&6; }
16302 if test "$run_all_tests" = "yes"; then
16303
16304 $as_echo "#define RUN_ALL_TESTS 1" >>confdefs.h
16305
16306 fi
16307
16308 #
16309 # Configure option --disable-tests
16310 #
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests should be run" >&5
16312 $as_echo_n "checking whether tests should be run... " >&6; }
16313 # Check whether --enable-tests was given.
16314 if test "${enable_tests+set}" = set; then :
16315   enableval=$enable_tests; run_tests=$enableval
16316 else
16317   run_tests=yes
16318 fi
16319
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $run_tests" >&5
16321 $as_echo "$run_tests" >&6; }
16322
16323 #
16324 # We do not want support for the GNUPG_BUILDDIR environment variable
16325 # in a released version.  However, our regression tests suite requires
16326 # this and thus we build with support for it during "make distcheck".
16327 # This configure option implements this along with the top Makefile's
16328 # AM_DISTCHECK_CONFIGURE_FLAGS.
16329 #
16330 gnupg_builddir_envvar=no
16331 # Check whether --enable-gnupg-builddir-envvar was given.
16332 if test "${enable_gnupg_builddir_envvar+set}" = set; then :
16333   enableval=$enable_gnupg_builddir_envvar; gnupg_builddir_envvar=$enableval
16334 fi
16335
16336 if test x"$gnupg_builddir_envvar" = x"yes"; then
16337
16338 $as_echo "#define ENABLE_GNUPG_BUILDDIR_ENVVAR 1" >>confdefs.h
16339
16340 fi
16341
16342
16343 #
16344 # To avoid problems with systemd cleaning up the /run/user directory,
16345 # this option will make GnuPG try to use /run/gnupg/user as socket dir
16346 # before /run/user
16347 #
16348 # Check whether --enable-run-gnupg-user-socket was given.
16349 if test "${enable_run_gnupg_user_socket+set}" = set; then :
16350   enableval=$enable_run_gnupg_user_socket; use_run_gnupg_user_socket=$enableval
16351 fi
16352
16353 if test x"$use_run_gnupg_user_socket" = x"yes"; then
16354
16355 $as_echo "#define USE_RUN_GNUPG_USER_SOCKET 1" >>confdefs.h
16356
16357 fi
16358
16359
16360 #
16361 # Decide what to build
16362 #
16363
16364 build_scdaemon_extra=""
16365 if test "$build_scdaemon" = "yes"; then
16366   if test $have_libusb = no; then
16367      build_scdaemon_extra="without internal CCID driver"
16368   fi
16369   if test -n "$build_scdaemon_extra"; then
16370      build_scdaemon_extra="(${build_scdaemon_extra})"
16371   fi
16372 fi
16373
16374
16375 #
16376 # Set variables for use by automake makefiles.
16377 #
16378  if test "$build_gpg" = "yes"; then
16379   BUILD_GPG_TRUE=
16380   BUILD_GPG_FALSE='#'
16381 else
16382   BUILD_GPG_TRUE='#'
16383   BUILD_GPG_FALSE=
16384 fi
16385
16386  if test "$build_gpgsm" = "yes"; then
16387   BUILD_GPGSM_TRUE=
16388   BUILD_GPGSM_FALSE='#'
16389 else
16390   BUILD_GPGSM_TRUE='#'
16391   BUILD_GPGSM_FALSE=
16392 fi
16393
16394  if test "$build_agent" = "yes"; then
16395   BUILD_AGENT_TRUE=
16396   BUILD_AGENT_FALSE='#'
16397 else
16398   BUILD_AGENT_TRUE='#'
16399   BUILD_AGENT_FALSE=
16400 fi
16401
16402  if test "$build_scdaemon" = "yes"; then
16403   BUILD_SCDAEMON_TRUE=
16404   BUILD_SCDAEMON_FALSE='#'
16405 else
16406   BUILD_SCDAEMON_TRUE='#'
16407   BUILD_SCDAEMON_FALSE=
16408 fi
16409
16410  if test "$build_g13" = "yes"; then
16411   BUILD_G13_TRUE=
16412   BUILD_G13_FALSE='#'
16413 else
16414   BUILD_G13_TRUE='#'
16415   BUILD_G13_FALSE=
16416 fi
16417
16418  if test "$build_dirmngr" = "yes"; then
16419   BUILD_DIRMNGR_TRUE=
16420   BUILD_DIRMNGR_FALSE='#'
16421 else
16422   BUILD_DIRMNGR_TRUE='#'
16423   BUILD_DIRMNGR_FALSE=
16424 fi
16425
16426  if test "$build_keyboxd" = "yes"; then
16427   BUILD_KEYBOXD_TRUE=
16428   BUILD_KEYBOXD_FALSE='#'
16429 else
16430   BUILD_KEYBOXD_TRUE='#'
16431   BUILD_KEYBOXD_FALSE=
16432 fi
16433
16434  if test "$build_tpm2d" = "yes"; then
16435   BUILD_TPM2D_TRUE=
16436   BUILD_TPM2D_FALSE='#'
16437 else
16438   BUILD_TPM2D_TRUE='#'
16439   BUILD_TPM2D_FALSE=
16440 fi
16441
16442  if test "$build_doc" = "yes"; then
16443   BUILD_DOC_TRUE=
16444   BUILD_DOC_FALSE='#'
16445 else
16446   BUILD_DOC_TRUE='#'
16447   BUILD_DOC_FALSE=
16448 fi
16449
16450  if test "$build_gpgtar" = "yes"; then
16451   BUILD_GPGTAR_TRUE=
16452   BUILD_GPGTAR_FALSE='#'
16453 else
16454   BUILD_GPGTAR_TRUE='#'
16455   BUILD_GPGTAR_FALSE=
16456 fi
16457
16458  if test "$build_wks_tools" = "yes"; then
16459   BUILD_WKS_TOOLS_TRUE=
16460   BUILD_WKS_TOOLS_FALSE='#'
16461 else
16462   BUILD_WKS_TOOLS_TRUE='#'
16463   BUILD_WKS_TOOLS_FALSE=
16464 fi
16465
16466
16467  if test "$run_tests" != yes; then
16468   DISABLE_TESTS_TRUE=
16469   DISABLE_TESTS_FALSE='#'
16470 else
16471   DISABLE_TESTS_TRUE='#'
16472   DISABLE_TESTS_FALSE=
16473 fi
16474
16475  if test "$card_support" = yes; then
16476   ENABLE_CARD_SUPPORT_TRUE=
16477   ENABLE_CARD_SUPPORT_FALSE='#'
16478 else
16479   ENABLE_CARD_SUPPORT_TRUE='#'
16480   ENABLE_CARD_SUPPORT_FALSE=
16481 fi
16482
16483  if test "$use_trust_models" = no; then
16484   NO_TRUST_MODELS_TRUE=
16485   NO_TRUST_MODELS_FALSE='#'
16486 else
16487   NO_TRUST_MODELS_TRUE='#'
16488   NO_TRUST_MODELS_FALSE=
16489 fi
16490
16491  if test "$use_tofu" = yes; then
16492   USE_TOFU_TRUE=
16493   USE_TOFU_FALSE='#'
16494 else
16495   USE_TOFU_TRUE='#'
16496   USE_TOFU_FALSE=
16497 fi
16498
16499
16500 #
16501 # Set some defines for use gpgconf.
16502 #
16503 if test "$build_gpg" = yes ; then
16504
16505 $as_echo "#define BUILD_WITH_GPG 1" >>confdefs.h
16506
16507 fi
16508 if test "$build_gpgsm" = yes ; then
16509
16510 $as_echo "#define BUILD_WITH_GPGSM 1" >>confdefs.h
16511
16512 fi
16513 if test "$build_agent" = yes ; then
16514
16515 $as_echo "#define BUILD_WITH_AGENT 1" >>confdefs.h
16516
16517 fi
16518 if test "$build_scdaemon" = yes ; then
16519
16520 $as_echo "#define BUILD_WITH_SCDAEMON 1" >>confdefs.h
16521
16522 fi
16523 if test "$build_dirmngr" = yes ; then
16524
16525 $as_echo "#define BUILD_WITH_DIRMNGR 1" >>confdefs.h
16526
16527 fi
16528 if test "$build_keyboxd" = yes ; then
16529
16530 $as_echo "#define BUILD_WITH_KEYBOXD 1" >>confdefs.h
16531
16532 fi
16533 if test "$build_tpm2d" = yes ; then
16534
16535 $as_echo "#define BUILD_WITH_TPM2D 1" >>confdefs.h
16536
16537 fi
16538 if test "$build_g13" = yes ; then
16539
16540 $as_echo "#define BUILD_WITH_G13 1" >>confdefs.h
16541
16542 fi
16543
16544
16545 #
16546 # Define Name strings
16547 #
16548
16549 cat >>confdefs.h <<_ACEOF
16550 #define GNUPG_NAME "GnuPG"
16551 _ACEOF
16552
16553
16554
16555 cat >>confdefs.h <<_ACEOF
16556 #define GPG_NAME "gpg"
16557 _ACEOF
16558
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define GPG_DISP_NAME "GnuPG"
16562 _ACEOF
16563
16564
16565
16566 cat >>confdefs.h <<_ACEOF
16567 #define GPGSM_NAME "gpgsm"
16568 _ACEOF
16569
16570
16571 cat >>confdefs.h <<_ACEOF
16572 #define GPGSM_DISP_NAME "GPGSM"
16573 _ACEOF
16574
16575
16576
16577 cat >>confdefs.h <<_ACEOF
16578 #define GPG_AGENT_NAME "gpg-agent"
16579 _ACEOF
16580
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define GPG_AGENT_DISP_NAME "GPG Agent"
16584 _ACEOF
16585
16586
16587
16588 cat >>confdefs.h <<_ACEOF
16589 #define TPM2DAEMON_NAME "tpm2daemon"
16590 _ACEOF
16591
16592
16593 cat >>confdefs.h <<_ACEOF
16594 #define TPM2DAEMON_DISP_NAME "TPM2 Daemon"
16595 _ACEOF
16596
16597
16598
16599 cat >>confdefs.h <<_ACEOF
16600 #define SCDAEMON_NAME "scdaemon"
16601 _ACEOF
16602
16603
16604 cat >>confdefs.h <<_ACEOF
16605 #define SCDAEMON_DISP_NAME "SCDaemon"
16606 _ACEOF
16607
16608
16609
16610 cat >>confdefs.h <<_ACEOF
16611 #define DIRMNGR_NAME "dirmngr"
16612 _ACEOF
16613
16614
16615 cat >>confdefs.h <<_ACEOF
16616 #define DIRMNGR_DISP_NAME "DirMngr"
16617 _ACEOF
16618
16619
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define KEYBOXD_NAME "keyboxd"
16623 _ACEOF
16624
16625
16626 cat >>confdefs.h <<_ACEOF
16627 #define KEYBOXD_DISP_NAME "Keyboxd"
16628 _ACEOF
16629
16630
16631
16632 cat >>confdefs.h <<_ACEOF
16633 #define G13_NAME "g13"
16634 _ACEOF
16635
16636
16637 cat >>confdefs.h <<_ACEOF
16638 #define G13_DISP_NAME "G13"
16639 _ACEOF
16640
16641
16642
16643 cat >>confdefs.h <<_ACEOF
16644 #define GPGCONF_NAME "gpgconf"
16645 _ACEOF
16646
16647
16648 cat >>confdefs.h <<_ACEOF
16649 #define GPGCONF_DISP_NAME "GPGConf"
16650 _ACEOF
16651
16652
16653
16654 cat >>confdefs.h <<_ACEOF
16655 #define GPGTAR_NAME "gpgtar"
16656 _ACEOF
16657
16658
16659
16660 cat >>confdefs.h <<_ACEOF
16661 #define GPG_AGENT_SOCK_NAME "S.gpg-agent"
16662 _ACEOF
16663
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define GPG_AGENT_EXTRA_SOCK_NAME "S.gpg-agent.extra"
16667 _ACEOF
16668
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define GPG_AGENT_BROWSER_SOCK_NAME "S.gpg-agent.browser"
16672 _ACEOF
16673
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define GPG_AGENT_SSH_SOCK_NAME "S.gpg-agent.ssh"
16677 _ACEOF
16678
16679
16680 cat >>confdefs.h <<_ACEOF
16681 #define DIRMNGR_INFO_NAME "DIRMNGR_INFO"
16682 _ACEOF
16683
16684
16685 cat >>confdefs.h <<_ACEOF
16686 #define SCDAEMON_SOCK_NAME "S.scdaemon"
16687 _ACEOF
16688
16689
16690 cat >>confdefs.h <<_ACEOF
16691 #define KEYBOXD_SOCK_NAME "S.keyboxd"
16692 _ACEOF
16693
16694
16695 cat >>confdefs.h <<_ACEOF
16696 #define TPM2DAEMON_SOCK_NAME "S.tpm2daemon"
16697 _ACEOF
16698
16699
16700 cat >>confdefs.h <<_ACEOF
16701 #define DIRMNGR_SOCK_NAME "S.dirmngr"
16702 _ACEOF
16703
16704
16705 cat >>confdefs.h <<_ACEOF
16706 #define DIRMNGR_DEFAULT_KEYSERVER "hkps://hkps.pool.sks-keyservers.net"
16707 _ACEOF
16708
16709
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define GPGEXT_GPG "gpg"
16713 _ACEOF
16714
16715
16716 if test "$have_w32_system" = yes; then
16717
16718 cat >>confdefs.h <<_ACEOF
16719 #define GNUPG_REGISTRY_DIR "Software\\\\GNU\\\\GnuPG"
16720 _ACEOF
16721
16722 fi
16723
16724
16725 #
16726 # Provide information about the build.
16727 #
16728 BUILD_REVISION="cbbdb8862"
16729
16730
16731 cat >>confdefs.h <<_ACEOF
16732 #define BUILD_REVISION "$BUILD_REVISION"
16733 _ACEOF
16734
16735
16736 BUILD_VERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./'`
16737 BUILD_VERSION="${BUILD_VERSION}52157"
16738 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
16739
16740
16741
16742 # Check whether --enable-build-timestamp was given.
16743 if test "${enable_build_timestamp+set}" = set; then :
16744   enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
16745         BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
16746       else
16747         BUILD_TIMESTAMP="$enableval"
16748       fi
16749       BUILD_HOSTNAME="$ac_hostname"
16750 else
16751   BUILD_TIMESTAMP="<none>"
16752       BUILD_HOSTNAME="<anon>"
16753 fi
16754
16755
16756
16757 cat >>confdefs.h <<_ACEOF
16758 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
16759 _ACEOF
16760
16761
16762
16763
16764 #
16765 # Print errors here so that they are visible all
16766 # together and the user can acquire them all together.
16767 #
16768 die=no
16769 if test "$have_gpg_error" = "no"; then
16770    die=yes
16771    { $as_echo "$as_me:${as_lineno-$LINENO}:
16772 ***
16773 *** You need libgpg-error to build this program.
16774 **  This library is for example available at
16775 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16776 *** (at least version $NEED_GPGRT_VERSION is required.)
16777 ***" >&5
16778 $as_echo "$as_me:
16779 ***
16780 *** You need libgpg-error to build this program.
16781 **  This library is for example available at
16782 ***   https://gnupg.org/ftp/gcrypt/gpgrt
16783 *** (at least version $NEED_GPGRT_VERSION is required.)
16784 ***" >&6;}
16785 fi
16786 if test "$have_libgcrypt" = "no"; then
16787    die=yes
16788    { $as_echo "$as_me:${as_lineno-$LINENO}:
16789 ***
16790 *** You need libgcrypt to build this program.
16791 **  This library is for example available at
16792 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16793 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16794 ***" >&5
16795 $as_echo "$as_me:
16796 ***
16797 *** You need libgcrypt to build this program.
16798 **  This library is for example available at
16799 ***   https://gnupg.org/ftp/gcrypt/libgcrypt/
16800 *** (at least version $NEED_LIBGCRYPT_VERSION (API $NEED_LIBGCRYPT_API) is required.)
16801 ***" >&6;}
16802 fi
16803 if test "$have_libassuan" = "no"; then
16804    die=yes
16805    { $as_echo "$as_me:${as_lineno-$LINENO}:
16806 ***
16807 *** You need libassuan to build this program.
16808 *** This library is for example available at
16809 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16810 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16811 ***" >&5
16812 $as_echo "$as_me:
16813 ***
16814 *** You need libassuan to build this program.
16815 *** This library is for example available at
16816 ***   https://gnupg.org/ftp/gcrypt/libassuan/
16817 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
16818 ***" >&6;}
16819 fi
16820 if test "$have_ksba" = "no"; then
16821     die=yes
16822     { $as_echo "$as_me:${as_lineno-$LINENO}:
16823 ***
16824 *** You need libksba to build this program.
16825 *** This library is for example available at
16826 ***   https://gnupg.org/ftp/gcrypt/libksba/
16827 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16828 ***" >&5
16829 $as_echo "$as_me:
16830 ***
16831 *** You need libksba to build this program.
16832 *** This library is for example available at
16833 ***   https://gnupg.org/ftp/gcrypt/libksba/
16834 *** (at least version $NEED_KSBA_VERSION using API $NEED_KSBA_API is required).
16835 ***" >&6;}
16836 fi
16837 if test "$gnupg_have_ldap" = yes; then
16838   if test "$have_w32ce_system" = yes; then
16839     { $as_echo "$as_me:${as_lineno-$LINENO}:
16840 *** Note that CeGCC might be broken, a package fixing this is:
16841 ***    http://files.kolab.org/local/windows-ce/
16842 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16843 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16844 ***" >&5
16845 $as_echo "$as_me:
16846 *** Note that CeGCC might be broken, a package fixing this is:
16847 ***    http://files.kolab.org/local/windows-ce/
16848 ***                           source/wldap32_0.1-mingw32ce.orig.tar.gz
16849 ***                           binary/wldap32-ce-arm-dev_0.1-1_all.deb
16850 ***" >&6;}
16851    fi
16852 fi
16853 if test "$have_npth" = "no"; then
16854     die=yes
16855     { $as_echo "$as_me:${as_lineno-$LINENO}:
16856 ***
16857 *** It is now required to build with support for the
16858 *** New Portable Threads Library (nPth). Please install this
16859 *** library first.  The library is for example available at
16860 ***   https://gnupg.org/ftp/gcrypt/npth/
16861 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16862 ***" >&5
16863 $as_echo "$as_me:
16864 ***
16865 *** It is now required to build with support for the
16866 *** New Portable Threads Library (nPth). Please install this
16867 *** library first.  The library is for example available at
16868 ***   https://gnupg.org/ftp/gcrypt/npth/
16869 *** (at least version $NEED_NPTH_VERSION (API $NEED_NPTH_API) is required).
16870 ***" >&6;}
16871 fi
16872
16873 if test "$require_iconv" = yes; then
16874   if test "$am_func_iconv" != yes; then
16875     die=yes
16876     { $as_echo "$as_me:${as_lineno-$LINENO}:
16877 ***
16878 *** The system does not provide a working iconv function.  Please
16879 *** install a suitable library; for example GNU Libiconv which is
16880 *** available at:
16881 ***   https://ftp.gnu.org/gnu/libiconv/
16882 ***" >&5
16883 $as_echo "$as_me:
16884 ***
16885 *** The system does not provide a working iconv function.  Please
16886 *** install a suitable library; for example GNU Libiconv which is
16887 *** available at:
16888 ***   https://ftp.gnu.org/gnu/libiconv/
16889 ***" >&6;}
16890   fi
16891 fi
16892
16893 if test "$use_ccid_driver" = yes; then
16894   if test "$have_libusb" != yes; then
16895     die=yes
16896     { $as_echo "$as_me:${as_lineno-$LINENO}:
16897 ***
16898 *** You need libusb to build the internal ccid driver.  Please
16899 *** install a libusb suitable for your system.
16900 ***" >&5
16901 $as_echo "$as_me:
16902 ***
16903 *** You need libusb to build the internal ccid driver.  Please
16904 *** install a libusb suitable for your system.
16905 ***" >&6;}
16906   fi
16907 fi
16908
16909 if test "$die" = "yes"; then
16910     as_fn_error $? "
16911 ***
16912 *** Required libraries not found. Please consult the above messages
16913 *** and install them before running configure again.
16914 ***" "$LINENO" 5
16915 fi
16916
16917
16918
16919 ac_config_files="$ac_config_files m4/Makefile Makefile po/Makefile.in common/Makefile common/w32info-rc.h regexp/Makefile kbx/Makefile g10/Makefile sm/Makefile agent/Makefile scd/Makefile tpm2d/Makefile g13/Makefile dirmngr/Makefile tools/Makefile doc/Makefile tests/Makefile tests/gpgscm/Makefile tests/openpgp/Makefile tests/tpm2dtests/Makefile tests/migrations/Makefile tests/gpgsm/Makefile tests/gpgme/Makefile tests/pkits/Makefile g10/gpg.w32-manifest tools/gpg-connect-agent.w32-manifest tools/gpgconf.w32-manifest tools/gpgtar.w32-manifest tools/gpg-check-pattern.w32-manifest tools/gpg-wks-client.w32-manifest tools/gpg-card.w32-manifest"
16920
16921
16922
16923 cat >confcache <<\_ACEOF
16924 # This file is a shell script that caches the results of configure
16925 # tests run on this system so they can be shared between configure
16926 # scripts and configure runs, see configure's option --config-cache.
16927 # It is not useful on other systems.  If it contains results you don't
16928 # want to keep, you may remove or edit it.
16929 #
16930 # config.status only pays attention to the cache file if you give it
16931 # the --recheck option to rerun configure.
16932 #
16933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16935 # following values.
16936
16937 _ACEOF
16938
16939 # The following way of writing the cache mishandles newlines in values,
16940 # but we know of no workaround that is simple, portable, and efficient.
16941 # So, we kill variables containing newlines.
16942 # Ultrix sh set writes to stderr and can't be redirected directly,
16943 # and sets the high bit in the cache file unless we assign to the vars.
16944 (
16945   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16946     eval ac_val=\$$ac_var
16947     case $ac_val in #(
16948     *${as_nl}*)
16949       case $ac_var in #(
16950       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16952       esac
16953       case $ac_var in #(
16954       _ | IFS | as_nl) ;; #(
16955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16956       *) { eval $ac_var=; unset $ac_var;} ;;
16957       esac ;;
16958     esac
16959   done
16960
16961   (set) 2>&1 |
16962     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16963     *${as_nl}ac_space=\ *)
16964       # `set' does not quote correctly, so add quotes: double-quote
16965       # substitution turns \\\\ into \\, and sed turns \\ into \.
16966       sed -n \
16967         "s/'/'\\\\''/g;
16968           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16969       ;; #(
16970     *)
16971       # `set' quotes correctly as required by POSIX, so do not add quotes.
16972       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16973       ;;
16974     esac |
16975     sort
16976 ) |
16977   sed '
16978      /^ac_cv_env_/b end
16979      t clear
16980      :clear
16981      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16982      t end
16983      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16984      :end' >>confcache
16985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16986   if test -w "$cache_file"; then
16987     if test "x$cache_file" != "x/dev/null"; then
16988       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16989 $as_echo "$as_me: updating cache $cache_file" >&6;}
16990       if test ! -f "$cache_file" || test -h "$cache_file"; then
16991         cat confcache >"$cache_file"
16992       else
16993         case $cache_file in #(
16994         */* | ?:*)
16995           mv -f confcache "$cache_file"$$ &&
16996           mv -f "$cache_file"$$ "$cache_file" ;; #(
16997         *)
16998           mv -f confcache "$cache_file" ;;
16999         esac
17000       fi
17001     fi
17002   else
17003     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17004 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17005   fi
17006 fi
17007 rm -f confcache
17008
17009 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17010 # Let make expand exec_prefix.
17011 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17012
17013 DEFS=-DHAVE_CONFIG_H
17014
17015 ac_libobjs=
17016 ac_ltlibobjs=
17017 U=
17018 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17019   # 1. Remove the extension, and $U if already installed.
17020   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17021   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17022   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17023   #    will be set to the directory where LIBOBJS objects are built.
17024   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17025   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17026 done
17027 LIBOBJS=$ac_libobjs
17028
17029 LTLIBOBJS=$ac_ltlibobjs
17030
17031
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17033 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17034    if test -n "$am_sleep_pid"; then
17035      # Hide warnings about reused PIDs.
17036      wait $am_sleep_pid 2>/dev/null
17037    fi
17038    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17039 $as_echo "done" >&6; }
17040  if test -n "$EXEEXT"; then
17041   am__EXEEXT_TRUE=
17042   am__EXEEXT_FALSE='#'
17043 else
17044   am__EXEEXT_TRUE='#'
17045   am__EXEEXT_FALSE=
17046 fi
17047
17048 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17049   as_fn_error $? "conditional \"AMDEP\" was never defined.
17050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17051 fi
17052 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17053   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17055 fi
17056 if test -z "${GNUPG_AGENT_PGM_TRUE}" && test -z "${GNUPG_AGENT_PGM_FALSE}"; then
17057   as_fn_error $? "conditional \"GNUPG_AGENT_PGM\" was never defined.
17058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17059 fi
17060 if test -z "${GNUPG_PINENTRY_PGM_TRUE}" && test -z "${GNUPG_PINENTRY_PGM_FALSE}"; then
17061   as_fn_error $? "conditional \"GNUPG_PINENTRY_PGM\" was never defined.
17062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17063 fi
17064 if test -z "${GNUPG_SCDAEMON_PGM_TRUE}" && test -z "${GNUPG_SCDAEMON_PGM_FALSE}"; then
17065   as_fn_error $? "conditional \"GNUPG_SCDAEMON_PGM\" was never defined.
17066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 fi
17068 if test -z "${GNUPG_TPM2DAEMON_PGM_TRUE}" && test -z "${GNUPG_TPM2DAEMON_PGM_FALSE}"; then
17069   as_fn_error $? "conditional \"GNUPG_TPM2DAEMON_PGM\" was never defined.
17070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17071 fi
17072 if test -z "${GNUPG_DIRMNGR_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_PGM_FALSE}"; then
17073   as_fn_error $? "conditional \"GNUPG_DIRMNGR_PGM\" was never defined.
17074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17075 fi
17076 if test -z "${GNUPG_KEYBOXD_PGM_TRUE}" && test -z "${GNUPG_KEYBOXD_PGM_FALSE}"; then
17077   as_fn_error $? "conditional \"GNUPG_KEYBOXD_PGM\" was never defined.
17078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17079 fi
17080 if test -z "${GNUPG_PROTECT_TOOL_PGM_TRUE}" && test -z "${GNUPG_PROTECT_TOOL_PGM_FALSE}"; then
17081   as_fn_error $? "conditional \"GNUPG_PROTECT_TOOL_PGM\" was never defined.
17082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17083 fi
17084 if test -z "${GNUPG_DIRMNGR_LDAP_PGM_TRUE}" && test -z "${GNUPG_DIRMNGR_LDAP_PGM_FALSE}"; then
17085   as_fn_error $? "conditional \"GNUPG_DIRMNGR_LDAP_PGM\" was never defined.
17086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087 fi
17088 if test -z "${USE_GPG2_HACK_TRUE}" && test -z "${USE_GPG2_HACK_FALSE}"; then
17089   as_fn_error $? "conditional \"USE_GPG2_HACK\" was never defined.
17090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091 fi
17092 if test -z "${USE_LIBDNS_TRUE}" && test -z "${USE_LIBDNS_FALSE}"; then
17093   as_fn_error $? "conditional \"USE_LIBDNS\" was never defined.
17094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095 fi
17096 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17097   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17101 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17102    if test -n "$am_sleep_pid"; then
17103      # Hide warnings about reused PIDs.
17104      wait $am_sleep_pid 2>/dev/null
17105    fi
17106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17107 $as_echo "done" >&6; }
17108 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17109   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17111 fi
17112 if test -z "${HAVE_YAT2M_TRUE}" && test -z "${HAVE_YAT2M_FALSE}"; then
17113   as_fn_error $? "conditional \"HAVE_YAT2M\" was never defined.
17114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17115 fi
17116 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
17117   as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
17118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 fi
17120 if test -z "${USE_SIMPLE_GETTEXT_TRUE}" && test -z "${USE_SIMPLE_GETTEXT_FALSE}"; then
17121   as_fn_error $? "conditional \"USE_SIMPLE_GETTEXT\" was never defined.
17122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17123 fi
17124 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
17125   as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
17126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17127 fi
17128 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
17129   as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
17130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17131 fi
17132 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
17133   as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
17134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17135 fi
17136 if test -z "${SQLITE3_TRUE}" && test -z "${SQLITE3_FALSE}"; then
17137   as_fn_error $? "conditional \"SQLITE3\" was never defined.
17138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17139 fi
17140 if test -z "${USE_LDAP_TRUE}" && test -z "${USE_LDAP_FALSE}"; then
17141   as_fn_error $? "conditional \"USE_LDAP\" was never defined.
17142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17143 fi
17144 if test -z "${ENABLE_BZIP2_SUPPORT_TRUE}" && test -z "${ENABLE_BZIP2_SUPPORT_FALSE}"; then
17145   as_fn_error $? "conditional \"ENABLE_BZIP2_SUPPORT\" was never defined.
17146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17147 fi
17148 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17149   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17151 fi
17152 if test -z "${HAVE_LIBTSS_TRUE}" && test -z "${HAVE_LIBTSS_FALSE}"; then
17153   as_fn_error $? "conditional \"HAVE_LIBTSS\" was never defined.
17154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17155 fi
17156 if test -z "${TEST_LIBTSS_TRUE}" && test -z "${TEST_LIBTSS_FALSE}"; then
17157   as_fn_error $? "conditional \"TEST_LIBTSS\" was never defined.
17158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17159 fi
17160 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17161   as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17163 fi
17164 if test -z "${BUILD_GPGSM_TRUE}" && test -z "${BUILD_GPGSM_FALSE}"; then
17165   as_fn_error $? "conditional \"BUILD_GPGSM\" was never defined.
17166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17167 fi
17168 if test -z "${BUILD_AGENT_TRUE}" && test -z "${BUILD_AGENT_FALSE}"; then
17169   as_fn_error $? "conditional \"BUILD_AGENT\" was never defined.
17170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17171 fi
17172 if test -z "${BUILD_SCDAEMON_TRUE}" && test -z "${BUILD_SCDAEMON_FALSE}"; then
17173   as_fn_error $? "conditional \"BUILD_SCDAEMON\" was never defined.
17174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17175 fi
17176 if test -z "${BUILD_G13_TRUE}" && test -z "${BUILD_G13_FALSE}"; then
17177   as_fn_error $? "conditional \"BUILD_G13\" was never defined.
17178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17179 fi
17180 if test -z "${BUILD_DIRMNGR_TRUE}" && test -z "${BUILD_DIRMNGR_FALSE}"; then
17181   as_fn_error $? "conditional \"BUILD_DIRMNGR\" was never defined.
17182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17183 fi
17184 if test -z "${BUILD_KEYBOXD_TRUE}" && test -z "${BUILD_KEYBOXD_FALSE}"; then
17185   as_fn_error $? "conditional \"BUILD_KEYBOXD\" was never defined.
17186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17187 fi
17188 if test -z "${BUILD_TPM2D_TRUE}" && test -z "${BUILD_TPM2D_FALSE}"; then
17189   as_fn_error $? "conditional \"BUILD_TPM2D\" was never defined.
17190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17191 fi
17192 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
17193   as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
17194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17195 fi
17196 if test -z "${BUILD_GPGTAR_TRUE}" && test -z "${BUILD_GPGTAR_FALSE}"; then
17197   as_fn_error $? "conditional \"BUILD_GPGTAR\" was never defined.
17198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17199 fi
17200 if test -z "${BUILD_WKS_TOOLS_TRUE}" && test -z "${BUILD_WKS_TOOLS_FALSE}"; then
17201   as_fn_error $? "conditional \"BUILD_WKS_TOOLS\" was never defined.
17202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17203 fi
17204 if test -z "${DISABLE_TESTS_TRUE}" && test -z "${DISABLE_TESTS_FALSE}"; then
17205   as_fn_error $? "conditional \"DISABLE_TESTS\" was never defined.
17206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17207 fi
17208 if test -z "${ENABLE_CARD_SUPPORT_TRUE}" && test -z "${ENABLE_CARD_SUPPORT_FALSE}"; then
17209   as_fn_error $? "conditional \"ENABLE_CARD_SUPPORT\" was never defined.
17210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17211 fi
17212 if test -z "${NO_TRUST_MODELS_TRUE}" && test -z "${NO_TRUST_MODELS_FALSE}"; then
17213   as_fn_error $? "conditional \"NO_TRUST_MODELS\" was never defined.
17214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17215 fi
17216 if test -z "${USE_TOFU_TRUE}" && test -z "${USE_TOFU_FALSE}"; then
17217   as_fn_error $? "conditional \"USE_TOFU\" was never defined.
17218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17219 fi
17220
17221 : "${CONFIG_STATUS=./config.status}"
17222 ac_write_fail=0
17223 ac_clean_files_save=$ac_clean_files
17224 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17226 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17227 as_write_fail=0
17228 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17229 #! $SHELL
17230 # Generated by $as_me.
17231 # Run this file to recreate the current configuration.
17232 # Compiler output produced by configure, useful for debugging
17233 # configure, is in config.log if it exists.
17234
17235 debug=false
17236 ac_cs_recheck=false
17237 ac_cs_silent=false
17238
17239 SHELL=\${CONFIG_SHELL-$SHELL}
17240 export SHELL
17241 _ASEOF
17242 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17243 ## -------------------- ##
17244 ## M4sh Initialization. ##
17245 ## -------------------- ##
17246
17247 # Be more Bourne compatible
17248 DUALCASE=1; export DUALCASE # for MKS sh
17249 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17250   emulate sh
17251   NULLCMD=:
17252   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17253   # is contrary to our usage.  Disable this feature.
17254   alias -g '${1+"$@"}'='"$@"'
17255   setopt NO_GLOB_SUBST
17256 else
17257   case `(set -o) 2>/dev/null` in #(
17258   *posix*) :
17259     set -o posix ;; #(
17260   *) :
17261      ;;
17262 esac
17263 fi
17264
17265
17266 as_nl='
17267 '
17268 export as_nl
17269 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17270 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17273 # Prefer a ksh shell builtin over an external printf program on Solaris,
17274 # but without wasting forks for bash or zsh.
17275 if test -z "$BASH_VERSION$ZSH_VERSION" \
17276     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17277   as_echo='print -r --'
17278   as_echo_n='print -rn --'
17279 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17280   as_echo='printf %s\n'
17281   as_echo_n='printf %s'
17282 else
17283   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17284     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17285     as_echo_n='/usr/ucb/echo -n'
17286   else
17287     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17288     as_echo_n_body='eval
17289       arg=$1;
17290       case $arg in #(
17291       *"$as_nl"*)
17292         expr "X$arg" : "X\\(.*\\)$as_nl";
17293         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17294       esac;
17295       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17296     '
17297     export as_echo_n_body
17298     as_echo_n='sh -c $as_echo_n_body as_echo'
17299   fi
17300   export as_echo_body
17301   as_echo='sh -c $as_echo_body as_echo'
17302 fi
17303
17304 # The user is always right.
17305 if test "${PATH_SEPARATOR+set}" != set; then
17306   PATH_SEPARATOR=:
17307   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17308     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17309       PATH_SEPARATOR=';'
17310   }
17311 fi
17312
17313
17314 # IFS
17315 # We need space, tab and new line, in precisely that order.  Quoting is
17316 # there to prevent editors from complaining about space-tab.
17317 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17318 # splitting by setting IFS to empty value.)
17319 IFS=" ""        $as_nl"
17320
17321 # Find who we are.  Look in the path if we contain no directory separator.
17322 as_myself=
17323 case $0 in #((
17324   *[\\/]* ) as_myself=$0 ;;
17325   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $PATH
17327 do
17328   IFS=$as_save_IFS
17329   test -z "$as_dir" && as_dir=.
17330     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17331   done
17332 IFS=$as_save_IFS
17333
17334      ;;
17335 esac
17336 # We did not find ourselves, most probably we were run as `sh COMMAND'
17337 # in which case we are not to be found in the path.
17338 if test "x$as_myself" = x; then
17339   as_myself=$0
17340 fi
17341 if test ! -f "$as_myself"; then
17342   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17343   exit 1
17344 fi
17345
17346 # Unset variables that we do not need and which cause bugs (e.g. in
17347 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17348 # suppresses any "Segmentation fault" message there.  '((' could
17349 # trigger a bug in pdksh 5.2.14.
17350 for as_var in BASH_ENV ENV MAIL MAILPATH
17351 do eval test x\${$as_var+set} = xset \
17352   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17353 done
17354 PS1='$ '
17355 PS2='> '
17356 PS4='+ '
17357
17358 # NLS nuisances.
17359 LC_ALL=C
17360 export LC_ALL
17361 LANGUAGE=C
17362 export LANGUAGE
17363
17364 # CDPATH.
17365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17366
17367
17368 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17369 # ----------------------------------------
17370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17372 # script with STATUS, using 1 if that was 0.
17373 as_fn_error ()
17374 {
17375   as_status=$1; test $as_status -eq 0 && as_status=1
17376   if test "$4"; then
17377     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17378     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17379   fi
17380   $as_echo "$as_me: error: $2" >&2
17381   as_fn_exit $as_status
17382 } # as_fn_error
17383
17384
17385 # as_fn_set_status STATUS
17386 # -----------------------
17387 # Set $? to STATUS, without forking.
17388 as_fn_set_status ()
17389 {
17390   return $1
17391 } # as_fn_set_status
17392
17393 # as_fn_exit STATUS
17394 # -----------------
17395 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17396 as_fn_exit ()
17397 {
17398   set +e
17399   as_fn_set_status $1
17400   exit $1
17401 } # as_fn_exit
17402
17403 # as_fn_unset VAR
17404 # ---------------
17405 # Portably unset VAR.
17406 as_fn_unset ()
17407 {
17408   { eval $1=; unset $1;}
17409 }
17410 as_unset=as_fn_unset
17411 # as_fn_append VAR VALUE
17412 # ----------------------
17413 # Append the text in VALUE to the end of the definition contained in VAR. Take
17414 # advantage of any shell optimizations that allow amortized linear growth over
17415 # repeated appends, instead of the typical quadratic growth present in naive
17416 # implementations.
17417 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17418   eval 'as_fn_append ()
17419   {
17420     eval $1+=\$2
17421   }'
17422 else
17423   as_fn_append ()
17424   {
17425     eval $1=\$$1\$2
17426   }
17427 fi # as_fn_append
17428
17429 # as_fn_arith ARG...
17430 # ------------------
17431 # Perform arithmetic evaluation on the ARGs, and store the result in the
17432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17433 # must be portable across $(()) and expr.
17434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17435   eval 'as_fn_arith ()
17436   {
17437     as_val=$(( $* ))
17438   }'
17439 else
17440   as_fn_arith ()
17441   {
17442     as_val=`expr "$@" || test $? -eq 1`
17443   }
17444 fi # as_fn_arith
17445
17446
17447 if expr a : '\(a\)' >/dev/null 2>&1 &&
17448    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17449   as_expr=expr
17450 else
17451   as_expr=false
17452 fi
17453
17454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17455   as_basename=basename
17456 else
17457   as_basename=false
17458 fi
17459
17460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17461   as_dirname=dirname
17462 else
17463   as_dirname=false
17464 fi
17465
17466 as_me=`$as_basename -- "$0" ||
17467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17468          X"$0" : 'X\(//\)$' \| \
17469          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17470 $as_echo X/"$0" |
17471     sed '/^.*\/\([^/][^/]*\)\/*$/{
17472             s//\1/
17473             q
17474           }
17475           /^X\/\(\/\/\)$/{
17476             s//\1/
17477             q
17478           }
17479           /^X\/\(\/\).*/{
17480             s//\1/
17481             q
17482           }
17483           s/.*/./; q'`
17484
17485 # Avoid depending upon Character Ranges.
17486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17489 as_cr_digits='0123456789'
17490 as_cr_alnum=$as_cr_Letters$as_cr_digits
17491
17492 ECHO_C= ECHO_N= ECHO_T=
17493 case `echo -n x` in #(((((
17494 -n*)
17495   case `echo 'xy\c'` in
17496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17497   xy)  ECHO_C='\c';;
17498   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17499        ECHO_T=' ';;
17500   esac;;
17501 *)
17502   ECHO_N='-n';;
17503 esac
17504
17505 rm -f conf$$ conf$$.exe conf$$.file
17506 if test -d conf$$.dir; then
17507   rm -f conf$$.dir/conf$$.file
17508 else
17509   rm -f conf$$.dir
17510   mkdir conf$$.dir 2>/dev/null
17511 fi
17512 if (echo >conf$$.file) 2>/dev/null; then
17513   if ln -s conf$$.file conf$$ 2>/dev/null; then
17514     as_ln_s='ln -s'
17515     # ... but there are two gotchas:
17516     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17517     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17518     # In both cases, we have to default to `cp -pR'.
17519     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17520       as_ln_s='cp -pR'
17521   elif ln conf$$.file conf$$ 2>/dev/null; then
17522     as_ln_s=ln
17523   else
17524     as_ln_s='cp -pR'
17525   fi
17526 else
17527   as_ln_s='cp -pR'
17528 fi
17529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17530 rmdir conf$$.dir 2>/dev/null
17531
17532
17533 # as_fn_mkdir_p
17534 # -------------
17535 # Create "$as_dir" as a directory, including parents if necessary.
17536 as_fn_mkdir_p ()
17537 {
17538
17539   case $as_dir in #(
17540   -*) as_dir=./$as_dir;;
17541   esac
17542   test -d "$as_dir" || eval $as_mkdir_p || {
17543     as_dirs=
17544     while :; do
17545       case $as_dir in #(
17546       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17547       *) as_qdir=$as_dir;;
17548       esac
17549       as_dirs="'$as_qdir' $as_dirs"
17550       as_dir=`$as_dirname -- "$as_dir" ||
17551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17552          X"$as_dir" : 'X\(//\)[^/]' \| \
17553          X"$as_dir" : 'X\(//\)$' \| \
17554          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17555 $as_echo X"$as_dir" |
17556     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17557             s//\1/
17558             q
17559           }
17560           /^X\(\/\/\)[^/].*/{
17561             s//\1/
17562             q
17563           }
17564           /^X\(\/\/\)$/{
17565             s//\1/
17566             q
17567           }
17568           /^X\(\/\).*/{
17569             s//\1/
17570             q
17571           }
17572           s/.*/./; q'`
17573       test -d "$as_dir" && break
17574     done
17575     test -z "$as_dirs" || eval "mkdir $as_dirs"
17576   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17577
17578
17579 } # as_fn_mkdir_p
17580 if mkdir -p . 2>/dev/null; then
17581   as_mkdir_p='mkdir -p "$as_dir"'
17582 else
17583   test -d ./-p && rmdir ./-p
17584   as_mkdir_p=false
17585 fi
17586
17587
17588 # as_fn_executable_p FILE
17589 # -----------------------
17590 # Test if FILE is an executable regular file.
17591 as_fn_executable_p ()
17592 {
17593   test -f "$1" && test -x "$1"
17594 } # as_fn_executable_p
17595 as_test_x='test -x'
17596 as_executable_p=as_fn_executable_p
17597
17598 # Sed expression to map a string onto a valid CPP name.
17599 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17600
17601 # Sed expression to map a string onto a valid variable name.
17602 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17603
17604
17605 exec 6>&1
17606 ## ----------------------------------- ##
17607 ## Main body of $CONFIG_STATUS script. ##
17608 ## ----------------------------------- ##
17609 _ASEOF
17610 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17611
17612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17613 # Save the log message, to keep $0 and so on meaningful, and to
17614 # report actual input values of CONFIG_FILES etc. instead of their
17615 # values after options handling.
17616 ac_log="
17617 This file was extended by gnupg $as_me 2.3.1, which was
17618 generated by GNU Autoconf 2.69.  Invocation command line was
17619
17620   CONFIG_FILES    = $CONFIG_FILES
17621   CONFIG_HEADERS  = $CONFIG_HEADERS
17622   CONFIG_LINKS    = $CONFIG_LINKS
17623   CONFIG_COMMANDS = $CONFIG_COMMANDS
17624   $ $0 $@
17625
17626 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17627 "
17628
17629 _ACEOF
17630
17631 case $ac_config_files in *"
17632 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17633 esac
17634
17635 case $ac_config_headers in *"
17636 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17637 esac
17638
17639
17640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17641 # Files that config.status was made for.
17642 config_files="$ac_config_files"
17643 config_headers="$ac_config_headers"
17644 config_commands="$ac_config_commands"
17645
17646 _ACEOF
17647
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17649 ac_cs_usage="\
17650 \`$as_me' instantiates files and other configuration actions
17651 from templates according to the current configuration.  Unless the files
17652 and actions are specified as TAGs, all are instantiated by default.
17653
17654 Usage: $0 [OPTION]... [TAG]...
17655
17656   -h, --help       print this help, then exit
17657   -V, --version    print version number and configuration settings, then exit
17658       --config     print configuration, then exit
17659   -q, --quiet, --silent
17660                    do not print progress messages
17661   -d, --debug      don't remove temporary files
17662       --recheck    update $as_me by reconfiguring in the same conditions
17663       --file=FILE[:TEMPLATE]
17664                    instantiate the configuration file FILE
17665       --header=FILE[:TEMPLATE]
17666                    instantiate the configuration header FILE
17667
17668 Configuration files:
17669 $config_files
17670
17671 Configuration headers:
17672 $config_headers
17673
17674 Configuration commands:
17675 $config_commands
17676
17677 Report bugs to <https://bugs.gnupg.org>."
17678
17679 _ACEOF
17680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17681 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17682 ac_cs_version="\\
17683 gnupg config.status 2.3.1
17684 configured by $0, generated by GNU Autoconf 2.69,
17685   with options \\"\$ac_cs_config\\"
17686
17687 Copyright (C) 2012 Free Software Foundation, Inc.
17688 This config.status script is free software; the Free Software Foundation
17689 gives unlimited permission to copy, distribute and modify it."
17690
17691 ac_pwd='$ac_pwd'
17692 srcdir='$srcdir'
17693 INSTALL='$INSTALL'
17694 MKDIR_P='$MKDIR_P'
17695 AWK='$AWK'
17696 test -n "\$AWK" || AWK=awk
17697 _ACEOF
17698
17699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17700 # The default lists apply if the user does not specify any file.
17701 ac_need_defaults=:
17702 while test $# != 0
17703 do
17704   case $1 in
17705   --*=?*)
17706     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17707     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17708     ac_shift=:
17709     ;;
17710   --*=)
17711     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17712     ac_optarg=
17713     ac_shift=:
17714     ;;
17715   *)
17716     ac_option=$1
17717     ac_optarg=$2
17718     ac_shift=shift
17719     ;;
17720   esac
17721
17722   case $ac_option in
17723   # Handling of the options.
17724   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17725     ac_cs_recheck=: ;;
17726   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17727     $as_echo "$ac_cs_version"; exit ;;
17728   --config | --confi | --conf | --con | --co | --c )
17729     $as_echo "$ac_cs_config"; exit ;;
17730   --debug | --debu | --deb | --de | --d | -d )
17731     debug=: ;;
17732   --file | --fil | --fi | --f )
17733     $ac_shift
17734     case $ac_optarg in
17735     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17736     '') as_fn_error $? "missing file argument" ;;
17737     esac
17738     as_fn_append CONFIG_FILES " '$ac_optarg'"
17739     ac_need_defaults=false;;
17740   --header | --heade | --head | --hea )
17741     $ac_shift
17742     case $ac_optarg in
17743     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17744     esac
17745     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17746     ac_need_defaults=false;;
17747   --he | --h)
17748     # Conflict between --help and --header
17749     as_fn_error $? "ambiguous option: \`$1'
17750 Try \`$0 --help' for more information.";;
17751   --help | --hel | -h )
17752     $as_echo "$ac_cs_usage"; exit ;;
17753   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17754   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17755     ac_cs_silent=: ;;
17756
17757   # This is an error.
17758   -*) as_fn_error $? "unrecognized option: \`$1'
17759 Try \`$0 --help' for more information." ;;
17760
17761   *) as_fn_append ac_config_targets " $1"
17762      ac_need_defaults=false ;;
17763
17764   esac
17765   shift
17766 done
17767
17768 ac_configure_extra_args=
17769
17770 if $ac_cs_silent; then
17771   exec 6>/dev/null
17772   ac_configure_extra_args="$ac_configure_extra_args --silent"
17773 fi
17774
17775 _ACEOF
17776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17777 if \$ac_cs_recheck; then
17778   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17779   shift
17780   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17781   CONFIG_SHELL='$SHELL'
17782   export CONFIG_SHELL
17783   exec "\$@"
17784 fi
17785
17786 _ACEOF
17787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17788 exec 5>>config.log
17789 {
17790   echo
17791   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17792 ## Running $as_me. ##
17793 _ASBOX
17794   $as_echo "$ac_log"
17795 } >&5
17796
17797 _ACEOF
17798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17799 #
17800 # INIT-COMMANDS
17801 #
17802 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17803 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17804     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17805     # from automake < 1.5.
17806     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17807     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17808     LINGUAS="${LINGUAS-%UNSET%}"
17809
17810
17811 _ACEOF
17812
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814
17815 # Handling of arguments.
17816 for ac_config_target in $ac_config_targets
17817 do
17818   case $ac_config_target in
17819     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17820     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17821     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17822     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17823     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17824     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17825     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17826     "common/w32info-rc.h") CONFIG_FILES="$CONFIG_FILES common/w32info-rc.h" ;;
17827     "regexp/Makefile") CONFIG_FILES="$CONFIG_FILES regexp/Makefile" ;;
17828     "kbx/Makefile") CONFIG_FILES="$CONFIG_FILES kbx/Makefile" ;;
17829     "g10/Makefile") CONFIG_FILES="$CONFIG_FILES g10/Makefile" ;;
17830     "sm/Makefile") CONFIG_FILES="$CONFIG_FILES sm/Makefile" ;;
17831     "agent/Makefile") CONFIG_FILES="$CONFIG_FILES agent/Makefile" ;;
17832     "scd/Makefile") CONFIG_FILES="$CONFIG_FILES scd/Makefile" ;;
17833     "tpm2d/Makefile") CONFIG_FILES="$CONFIG_FILES tpm2d/Makefile" ;;
17834     "g13/Makefile") CONFIG_FILES="$CONFIG_FILES g13/Makefile" ;;
17835     "dirmngr/Makefile") CONFIG_FILES="$CONFIG_FILES dirmngr/Makefile" ;;
17836     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
17837     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17838     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17839     "tests/gpgscm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgscm/Makefile" ;;
17840     "tests/openpgp/Makefile") CONFIG_FILES="$CONFIG_FILES tests/openpgp/Makefile" ;;
17841     "tests/tpm2dtests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/tpm2dtests/Makefile" ;;
17842     "tests/migrations/Makefile") CONFIG_FILES="$CONFIG_FILES tests/migrations/Makefile" ;;
17843     "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
17844     "tests/gpgme/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgme/Makefile" ;;
17845     "tests/pkits/Makefile") CONFIG_FILES="$CONFIG_FILES tests/pkits/Makefile" ;;
17846     "g10/gpg.w32-manifest") CONFIG_FILES="$CONFIG_FILES g10/gpg.w32-manifest" ;;
17847     "tools/gpg-connect-agent.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-connect-agent.w32-manifest" ;;
17848     "tools/gpgconf.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgconf.w32-manifest" ;;
17849     "tools/gpgtar.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpgtar.w32-manifest" ;;
17850     "tools/gpg-check-pattern.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-check-pattern.w32-manifest" ;;
17851     "tools/gpg-wks-client.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-wks-client.w32-manifest" ;;
17852     "tools/gpg-card.w32-manifest") CONFIG_FILES="$CONFIG_FILES tools/gpg-card.w32-manifest" ;;
17853
17854   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17855   esac
17856 done
17857
17858
17859 # If the user did not use the arguments to specify the items to instantiate,
17860 # then the envvar interface is used.  Set only those that are not.
17861 # We use the long form for the default assignment because of an extremely
17862 # bizarre bug on SunOS 4.1.3.
17863 if $ac_need_defaults; then
17864   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17865   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17866   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17867 fi
17868
17869 # Have a temporary directory for convenience.  Make it in the build tree
17870 # simply because there is no reason against having it here, and in addition,
17871 # creating and moving files from /tmp can sometimes cause problems.
17872 # Hook for its removal unless debugging.
17873 # Note that there is a small window in which the directory will not be cleaned:
17874 # after its creation but before its name has been assigned to `$tmp'.
17875 $debug ||
17876 {
17877   tmp= ac_tmp=
17878   trap 'exit_status=$?
17879   : "${ac_tmp:=$tmp}"
17880   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17881 ' 0
17882   trap 'as_fn_exit 1' 1 2 13 15
17883 }
17884 # Create a (secure) tmp directory for tmp files.
17885
17886 {
17887   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17888   test -d "$tmp"
17889 }  ||
17890 {
17891   tmp=./conf$$-$RANDOM
17892   (umask 077 && mkdir "$tmp")
17893 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17894 ac_tmp=$tmp
17895
17896 # Set up the scripts for CONFIG_FILES section.
17897 # No need to generate them if there are no CONFIG_FILES.
17898 # This happens for instance with `./config.status config.h'.
17899 if test -n "$CONFIG_FILES"; then
17900
17901
17902 ac_cr=`echo X | tr X '\015'`
17903 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17904 # But we know of no other shell where ac_cr would be empty at this
17905 # point, so we can use a bashism as a fallback.
17906 if test "x$ac_cr" = x; then
17907   eval ac_cr=\$\'\\r\'
17908 fi
17909 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17910 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17911   ac_cs_awk_cr='\\r'
17912 else
17913   ac_cs_awk_cr=$ac_cr
17914 fi
17915
17916 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17917 _ACEOF
17918
17919
17920 {
17921   echo "cat >conf$$subs.awk <<_ACEOF" &&
17922   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17923   echo "_ACEOF"
17924 } >conf$$subs.sh ||
17925   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17927 ac_delim='%!_!# '
17928 for ac_last_try in false false false false false :; do
17929   . ./conf$$subs.sh ||
17930     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17931
17932   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17933   if test $ac_delim_n = $ac_delim_num; then
17934     break
17935   elif $ac_last_try; then
17936     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17937   else
17938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17939   fi
17940 done
17941 rm -f conf$$subs.sh
17942
17943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17944 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17945 _ACEOF
17946 sed -n '
17947 h
17948 s/^/S["/; s/!.*/"]=/
17949 p
17950 g
17951 s/^[^!]*!//
17952 :repl
17953 t repl
17954 s/'"$ac_delim"'$//
17955 t delim
17956 :nl
17957 h
17958 s/\(.\{148\}\)..*/\1/
17959 t more1
17960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17961 p
17962 n
17963 b repl
17964 :more1
17965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17966 p
17967 g
17968 s/.\{148\}//
17969 t nl
17970 :delim
17971 h
17972 s/\(.\{148\}\)..*/\1/
17973 t more2
17974 s/["\\]/\\&/g; s/^/"/; s/$/"/
17975 p
17976 b
17977 :more2
17978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17979 p
17980 g
17981 s/.\{148\}//
17982 t delim
17983 ' <conf$$subs.awk | sed '
17984 /^[^""]/{
17985   N
17986   s/\n//
17987 }
17988 ' >>$CONFIG_STATUS || ac_write_fail=1
17989 rm -f conf$$subs.awk
17990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17991 _ACAWK
17992 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17993   for (key in S) S_is_set[key] = 1
17994   FS = "\a"
17995
17996 }
17997 {
17998   line = $ 0
17999   nfields = split(line, field, "@")
18000   substed = 0
18001   len = length(field[1])
18002   for (i = 2; i < nfields; i++) {
18003     key = field[i]
18004     keylen = length(key)
18005     if (S_is_set[key]) {
18006       value = S[key]
18007       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18008       len += length(value) + length(field[++i])
18009       substed = 1
18010     } else
18011       len += 1 + keylen
18012   }
18013
18014   print line
18015 }
18016
18017 _ACAWK
18018 _ACEOF
18019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18021   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18022 else
18023   cat
18024 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18025   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18026 _ACEOF
18027
18028 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18029 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18030 # trailing colons and then remove the whole line if VPATH becomes empty
18031 # (actually we leave an empty line to preserve line numbers).
18032 if test "x$srcdir" = x.; then
18033   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18034 h
18035 s///
18036 s/^/:/
18037 s/[      ]*$/:/
18038 s/:\$(srcdir):/:/g
18039 s/:\${srcdir}:/:/g
18040 s/:@srcdir@:/:/g
18041 s/^:*//
18042 s/:*$//
18043 x
18044 s/\(=[   ]*\).*/\1/
18045 G
18046 s/\n//
18047 s/^[^=]*=[       ]*$//
18048 }'
18049 fi
18050
18051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18052 fi # test -n "$CONFIG_FILES"
18053
18054 # Set up the scripts for CONFIG_HEADERS section.
18055 # No need to generate them if there are no CONFIG_HEADERS.
18056 # This happens for instance with `./config.status Makefile'.
18057 if test -n "$CONFIG_HEADERS"; then
18058 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18059 BEGIN {
18060 _ACEOF
18061
18062 # Transform confdefs.h into an awk script `defines.awk', embedded as
18063 # here-document in config.status, that substitutes the proper values into
18064 # config.h.in to produce config.h.
18065
18066 # Create a delimiter string that does not exist in confdefs.h, to ease
18067 # handling of long lines.
18068 ac_delim='%!_!# '
18069 for ac_last_try in false false :; do
18070   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18071   if test -z "$ac_tt"; then
18072     break
18073   elif $ac_last_try; then
18074     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18075   else
18076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18077   fi
18078 done
18079
18080 # For the awk script, D is an array of macro values keyed by name,
18081 # likewise P contains macro parameters if any.  Preserve backslash
18082 # newline sequences.
18083
18084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18085 sed -n '
18086 s/.\{148\}/&'"$ac_delim"'/g
18087 t rset
18088 :rset
18089 s/^[     ]*#[    ]*define[       ][      ]*/ /
18090 t def
18091 d
18092 :def
18093 s/\\$//
18094 t bsnl
18095 s/["\\]/\\&/g
18096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18097 D["\1"]=" \3"/p
18098 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18099 d
18100 :bsnl
18101 s/["\\]/\\&/g
18102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18103 D["\1"]=" \3\\\\\\n"\\/p
18104 t cont
18105 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18106 t cont
18107 d
18108 :cont
18109 n
18110 s/.\{148\}/&'"$ac_delim"'/g
18111 t clear
18112 :clear
18113 s/\\$//
18114 t bsnlc
18115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18116 d
18117 :bsnlc
18118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18119 b cont
18120 ' <confdefs.h | sed '
18121 s/'"$ac_delim"'/"\\\
18122 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18123
18124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18125   for (key in D) D_is_set[key] = 1
18126   FS = "\a"
18127 }
18128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18129   line = \$ 0
18130   split(line, arg, " ")
18131   if (arg[1] == "#") {
18132     defundef = arg[2]
18133     mac1 = arg[3]
18134   } else {
18135     defundef = substr(arg[1], 2)
18136     mac1 = arg[2]
18137   }
18138   split(mac1, mac2, "(") #)
18139   macro = mac2[1]
18140   prefix = substr(line, 1, index(line, defundef) - 1)
18141   if (D_is_set[macro]) {
18142     # Preserve the white space surrounding the "#".
18143     print prefix "define", macro P[macro] D[macro]
18144     next
18145   } else {
18146     # Replace #undef with comments.  This is necessary, for example,
18147     # in the case of _POSIX_SOURCE, which is predefined and required
18148     # on some systems where configure will not decide to define it.
18149     if (defundef == "undef") {
18150       print "/*", prefix defundef, macro, "*/"
18151       next
18152     }
18153   }
18154 }
18155 { print }
18156 _ACAWK
18157 _ACEOF
18158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18159   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18160 fi # test -n "$CONFIG_HEADERS"
18161
18162
18163 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18164 shift
18165 for ac_tag
18166 do
18167   case $ac_tag in
18168   :[FHLC]) ac_mode=$ac_tag; continue;;
18169   esac
18170   case $ac_mode$ac_tag in
18171   :[FHL]*:*);;
18172   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18173   :[FH]-) ac_tag=-:-;;
18174   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18175   esac
18176   ac_save_IFS=$IFS
18177   IFS=:
18178   set x $ac_tag
18179   IFS=$ac_save_IFS
18180   shift
18181   ac_file=$1
18182   shift
18183
18184   case $ac_mode in
18185   :L) ac_source=$1;;
18186   :[FH])
18187     ac_file_inputs=
18188     for ac_f
18189     do
18190       case $ac_f in
18191       -) ac_f="$ac_tmp/stdin";;
18192       *) # Look for the file first in the build tree, then in the source tree
18193          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18194          # because $ac_f cannot contain `:'.
18195          test -f "$ac_f" ||
18196            case $ac_f in
18197            [\\/$]*) false;;
18198            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18199            esac ||
18200            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18201       esac
18202       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18203       as_fn_append ac_file_inputs " '$ac_f'"
18204     done
18205
18206     # Let's still pretend it is `configure' which instantiates (i.e., don't
18207     # use $as_me), people would be surprised to read:
18208     #    /* config.h.  Generated by config.status.  */
18209     configure_input='Generated from '`
18210           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18211         `' by configure.'
18212     if test x"$ac_file" != x-; then
18213       configure_input="$ac_file.  $configure_input"
18214       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18215 $as_echo "$as_me: creating $ac_file" >&6;}
18216     fi
18217     # Neutralize special characters interpreted by sed in replacement strings.
18218     case $configure_input in #(
18219     *\&* | *\|* | *\\* )
18220        ac_sed_conf_input=`$as_echo "$configure_input" |
18221        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18222     *) ac_sed_conf_input=$configure_input;;
18223     esac
18224
18225     case $ac_tag in
18226     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18227       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18228     esac
18229     ;;
18230   esac
18231
18232   ac_dir=`$as_dirname -- "$ac_file" ||
18233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234          X"$ac_file" : 'X\(//\)[^/]' \| \
18235          X"$ac_file" : 'X\(//\)$' \| \
18236          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18237 $as_echo X"$ac_file" |
18238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239             s//\1/
18240             q
18241           }
18242           /^X\(\/\/\)[^/].*/{
18243             s//\1/
18244             q
18245           }
18246           /^X\(\/\/\)$/{
18247             s//\1/
18248             q
18249           }
18250           /^X\(\/\).*/{
18251             s//\1/
18252             q
18253           }
18254           s/.*/./; q'`
18255   as_dir="$ac_dir"; as_fn_mkdir_p
18256   ac_builddir=.
18257
18258 case "$ac_dir" in
18259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18260 *)
18261   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18262   # A ".." for each directory in $ac_dir_suffix.
18263   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18264   case $ac_top_builddir_sub in
18265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18267   esac ;;
18268 esac
18269 ac_abs_top_builddir=$ac_pwd
18270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18271 # for backward compatibility:
18272 ac_top_builddir=$ac_top_build_prefix
18273
18274 case $srcdir in
18275   .)  # We are building in place.
18276     ac_srcdir=.
18277     ac_top_srcdir=$ac_top_builddir_sub
18278     ac_abs_top_srcdir=$ac_pwd ;;
18279   [\\/]* | ?:[\\/]* )  # Absolute name.
18280     ac_srcdir=$srcdir$ac_dir_suffix;
18281     ac_top_srcdir=$srcdir
18282     ac_abs_top_srcdir=$srcdir ;;
18283   *) # Relative name.
18284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18285     ac_top_srcdir=$ac_top_build_prefix$srcdir
18286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18287 esac
18288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18289
18290
18291   case $ac_mode in
18292   :F)
18293   #
18294   # CONFIG_FILE
18295   #
18296
18297   case $INSTALL in
18298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18299   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18300   esac
18301   ac_MKDIR_P=$MKDIR_P
18302   case $MKDIR_P in
18303   [\\/$]* | ?:[\\/]* ) ;;
18304   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18305   esac
18306 _ACEOF
18307
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18309 # If the template does not know about datarootdir, expand it.
18310 # FIXME: This hack should be removed a few years after 2.60.
18311 ac_datarootdir_hack=; ac_datarootdir_seen=
18312 ac_sed_dataroot='
18313 /datarootdir/ {
18314   p
18315   q
18316 }
18317 /@datadir@/p
18318 /@docdir@/p
18319 /@infodir@/p
18320 /@localedir@/p
18321 /@mandir@/p'
18322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18323 *datarootdir*) ac_datarootdir_seen=yes;;
18324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18327 _ACEOF
18328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18329   ac_datarootdir_hack='
18330   s&@datadir@&$datadir&g
18331   s&@docdir@&$docdir&g
18332   s&@infodir@&$infodir&g
18333   s&@localedir@&$localedir&g
18334   s&@mandir@&$mandir&g
18335   s&\\\${datarootdir}&$datarootdir&g' ;;
18336 esac
18337 _ACEOF
18338
18339 # Neutralize VPATH when `$srcdir' = `.'.
18340 # Shell code in configure.ac might set extrasub.
18341 # FIXME: do we really want to maintain this feature?
18342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18343 ac_sed_extra="$ac_vpsub
18344 $extrasub
18345 _ACEOF
18346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18347 :t
18348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18349 s|@configure_input@|$ac_sed_conf_input|;t t
18350 s&@top_builddir@&$ac_top_builddir_sub&;t t
18351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18352 s&@srcdir@&$ac_srcdir&;t t
18353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18354 s&@top_srcdir@&$ac_top_srcdir&;t t
18355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18356 s&@builddir@&$ac_builddir&;t t
18357 s&@abs_builddir@&$ac_abs_builddir&;t t
18358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18359 s&@INSTALL@&$ac_INSTALL&;t t
18360 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18361 $ac_datarootdir_hack
18362 "
18363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18364   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18365
18366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18367   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18368   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18369       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18371 which seems to be undefined.  Please make sure it is defined" >&5
18372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18373 which seems to be undefined.  Please make sure it is defined" >&2;}
18374
18375   rm -f "$ac_tmp/stdin"
18376   case $ac_file in
18377   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18378   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18379   esac \
18380   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18381  ;;
18382   :H)
18383   #
18384   # CONFIG_HEADER
18385   #
18386   if test x"$ac_file" != x-; then
18387     {
18388       $as_echo "/* $configure_input  */" \
18389       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18390     } >"$ac_tmp/config.h" \
18391       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18392     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18393       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18394 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18395     else
18396       rm -f "$ac_file"
18397       mv "$ac_tmp/config.h" "$ac_file" \
18398         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18399     fi
18400   else
18401     $as_echo "/* $configure_input  */" \
18402       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18403       || as_fn_error $? "could not create -" "$LINENO" 5
18404   fi
18405 # Compute "$ac_file"'s index in $config_headers.
18406 _am_arg="$ac_file"
18407 _am_stamp_count=1
18408 for _am_header in $config_headers :; do
18409   case $_am_header in
18410     $_am_arg | $_am_arg:* )
18411       break ;;
18412     * )
18413       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18414   esac
18415 done
18416 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18417 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418          X"$_am_arg" : 'X\(//\)[^/]' \| \
18419          X"$_am_arg" : 'X\(//\)$' \| \
18420          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18421 $as_echo X"$_am_arg" |
18422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18423             s//\1/
18424             q
18425           }
18426           /^X\(\/\/\)[^/].*/{
18427             s//\1/
18428             q
18429           }
18430           /^X\(\/\/\)$/{
18431             s//\1/
18432             q
18433           }
18434           /^X\(\/\).*/{
18435             s//\1/
18436             q
18437           }
18438           s/.*/./; q'`/stamp-h$_am_stamp_count
18439  ;;
18440
18441   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18442 $as_echo "$as_me: executing $ac_file commands" >&6;}
18443  ;;
18444   esac
18445
18446
18447   case $ac_file$ac_mode in
18448     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18449   # Older Autoconf quotes --file arguments for eval, but not when files
18450   # are listed without --file.  Let's play safe and only enable the eval
18451   # if we detect the quoting.
18452   # TODO: see whether this extra hack can be removed once we start
18453   # requiring Autoconf 2.70 or later.
18454   case $CONFIG_FILES in #(
18455   *\'*) :
18456     eval set x "$CONFIG_FILES" ;; #(
18457   *) :
18458     set x $CONFIG_FILES ;; #(
18459   *) :
18460      ;;
18461 esac
18462   shift
18463   # Used to flag and report bootstrapping failures.
18464   am_rc=0
18465   for am_mf
18466   do
18467     # Strip MF so we end up with the name of the file.
18468     am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18469     # Check whether this is an Automake generated Makefile which includes
18470     # dependency-tracking related rules and includes.
18471     # Grep'ing the whole file directly is not great: AIX grep has a line
18472     # limit of 2048, but all sed's we know have understand at least 4000.
18473     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18474       || continue
18475     am_dirpart=`$as_dirname -- "$am_mf" ||
18476 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18477          X"$am_mf" : 'X\(//\)[^/]' \| \
18478          X"$am_mf" : 'X\(//\)$' \| \
18479          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18480 $as_echo X"$am_mf" |
18481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18482             s//\1/
18483             q
18484           }
18485           /^X\(\/\/\)[^/].*/{
18486             s//\1/
18487             q
18488           }
18489           /^X\(\/\/\)$/{
18490             s//\1/
18491             q
18492           }
18493           /^X\(\/\).*/{
18494             s//\1/
18495             q
18496           }
18497           s/.*/./; q'`
18498     am_filepart=`$as_basename -- "$am_mf" ||
18499 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18500          X"$am_mf" : 'X\(//\)$' \| \
18501          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X/"$am_mf" |
18503     sed '/^.*\/\([^/][^/]*\)\/*$/{
18504             s//\1/
18505             q
18506           }
18507           /^X\/\(\/\/\)$/{
18508             s//\1/
18509             q
18510           }
18511           /^X\/\(\/\).*/{
18512             s//\1/
18513             q
18514           }
18515           s/.*/./; q'`
18516     { echo "$as_me:$LINENO: cd "$am_dirpart" \
18517       && sed -e '/# am--include-marker/d' "$am_filepart" \
18518         | $MAKE -f - am--depfiles" >&5
18519    (cd "$am_dirpart" \
18520       && sed -e '/# am--include-marker/d' "$am_filepart" \
18521         | $MAKE -f - am--depfiles) >&5 2>&5
18522    ac_status=$?
18523    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524    (exit $ac_status); } || am_rc=$?
18525   done
18526   if test $am_rc -ne 0; then
18527     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18529 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18530     for automatic dependency tracking.  If GNU make was not used, consider
18531     re-running the configure script with MAKE=\"gmake\" (or whatever is
18532     necessary).  You can also try re-running configure with the
18533     '--disable-dependency-tracking' option to at least be able to build
18534     the package (albeit without support for automatic dependency tracking).
18535 See \`config.log' for more details" "$LINENO" 5; }
18536   fi
18537   { am_dirpart=; unset am_dirpart;}
18538   { am_filepart=; unset am_filepart;}
18539   { am_mf=; unset am_mf;}
18540   { am_rc=; unset am_rc;}
18541   rm -f conftest-deps.mk
18542 }
18543  ;;
18544     "po-directories":C)
18545     for ac_file in $CONFIG_FILES; do
18546       # Support "outfile[:infile[:infile...]]"
18547       case "$ac_file" in
18548         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18549       esac
18550       # PO directories have a Makefile.in generated from Makefile.in.in.
18551       case "$ac_file" in */Makefile.in)
18552         # Adjust a relative srcdir.
18553         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18554         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18555         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18556         # In autoconf-2.13 it is called $ac_given_srcdir.
18557         # In autoconf-2.50 it is called $srcdir.
18558         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18559         case "$ac_given_srcdir" in
18560           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18561           /*) top_srcdir="$ac_given_srcdir" ;;
18562           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18563         esac
18564         # Treat a directory as a PO directory if and only if it has a
18565         # POTFILES.in file. This allows packages to have multiple PO
18566         # directories under different names or in different locations.
18567         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18568           rm -f "$ac_dir/POTFILES"
18569           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18570           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18571           POMAKEFILEDEPS="POTFILES.in"
18572           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
18573           # on $ac_dir but don't depend on user-specified configuration
18574           # parameters.
18575           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18576             # The LINGUAS file contains the set of available languages.
18577             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18578               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18579             fi
18580             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18581             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18582             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18583             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18584           else
18585             # The set of available languages was given in configure.in.
18586             # Hide the ALL_LINGUAS assignment from automake < 1.5.
18587             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18588           fi
18589           # Compute POFILES
18590           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
18591           # Compute UPDATEPOFILES
18592           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
18593           # Compute DUMMYPOFILES
18594           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
18595           # Compute GMOFILES
18596           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18597           case "$ac_given_srcdir" in
18598             .) srcdirpre= ;;
18599             *) srcdirpre='$(srcdir)/' ;;
18600           esac
18601           POFILES=
18602           UPDATEPOFILES=
18603           DUMMYPOFILES=
18604           GMOFILES=
18605           for lang in $ALL_LINGUAS; do
18606             POFILES="$POFILES $srcdirpre$lang.po"
18607             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18608             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18609             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18610           done
18611           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18612           # environment variable.
18613           INST_LINGUAS=
18614           if test -n "$ALL_LINGUAS"; then
18615             for presentlang in $ALL_LINGUAS; do
18616               useit=no
18617               if test "%UNSET%" != "$LINGUAS"; then
18618                 desiredlanguages="$LINGUAS"
18619               else
18620                 desiredlanguages="$ALL_LINGUAS"
18621               fi
18622               for desiredlang in $desiredlanguages; do
18623                 # Use the presentlang catalog if desiredlang is
18624                 #   a. equal to presentlang, or
18625                 #   b. a variant of presentlang (because in this case,
18626                 #      presentlang can be used as a fallback for messages
18627                 #      which are not translated in the desiredlang catalog).
18628                 case "$desiredlang" in
18629                   "$presentlang"*) useit=yes;;
18630                 esac
18631               done
18632               if test $useit = yes; then
18633                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18634               fi
18635             done
18636           fi
18637           CATALOGS=
18638           if test -n "$INST_LINGUAS"; then
18639             for lang in $INST_LINGUAS; do
18640               CATALOGS="$CATALOGS $lang.gmo"
18641             done
18642           fi
18643           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18644           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"
18645           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18646             if test -f "$f"; then
18647               case "$f" in
18648                 *.orig | *.bak | *~) ;;
18649                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18650               esac
18651             fi
18652           done
18653         fi
18654         ;;
18655       esac
18656     done ;;
18657
18658   esac
18659 done # for ac_tag
18660
18661
18662 as_fn_exit 0
18663 _ACEOF
18664 ac_clean_files=$ac_clean_files_save
18665
18666 test $ac_write_fail = 0 ||
18667   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18668
18669
18670 # configure is writing to config.log, and then calls config.status.
18671 # config.status does its own redirection, appending to config.log.
18672 # Unfortunately, on DOS this fails, as config.log is still kept open
18673 # by configure, so config.status won't be able to write to it; its
18674 # output is simply discarded.  So we exec the FD to /dev/null,
18675 # effectively closing config.log, so it can be properly (re)opened and
18676 # appended to by config.status.  When coming back to configure, we
18677 # need to make the FD available again.
18678 if test "$no_create" != yes; then
18679   ac_cs_success=:
18680   ac_config_status_args=
18681   test "$silent" = yes &&
18682     ac_config_status_args="$ac_config_status_args --quiet"
18683   exec 5>/dev/null
18684   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18685   exec 5>>config.log
18686   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18687   # would make configure fail if this is the last instruction.
18688   $ac_cs_success || as_fn_exit 1
18689 fi
18690 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18692 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18693 fi
18694
18695
18696 show_tss_type=
18697 if test "$build_tpm2d" = "yes"; then
18698   show_tss_type="($have_libtss)"
18699 fi
18700
18701 echo "
18702         GnuPG v${VERSION} has been configured as follows:
18703
18704         Revision:  cbbdb8862  (52157)
18705         Platform:  $PRINTABLE_OS_NAME ($host)
18706
18707         OpenPGP:   $build_gpg
18708         S/MIME:    $build_gpgsm
18709         Agent:     $build_agent
18710         Smartcard: $build_scdaemon $build_scdaemon_extra
18711         TPM:       $build_tpm2d $show_tss_type
18712         G13:       $build_g13
18713         Dirmngr:   $build_dirmngr
18714         Keyboxd:   $build_keyboxd
18715         Gpgtar:    $build_gpgtar
18716         WKS tools: $build_wks_tools
18717
18718         Protect tool:       $show_gnupg_protect_tool_pgm
18719         LDAP wrapper:       $show_gnupg_dirmngr_ldap_pgm
18720         Default agent:      $show_gnupg_agent_pgm
18721         Default pinentry:   $show_gnupg_pinentry_pgm
18722         Default scdaemon:   $show_gnupg_scdaemon_pgm
18723         Default keyboxd:    $show_gnupg_keyboxd_pgm
18724         Default tpm2daemon: $show_gnupg_tpm2daemon_pgm
18725         Default dirmngr:    $show_gnupg_dirmngr_pgm
18726
18727         Dirmngr auto start:  $dirmngr_auto_start
18728         Readline support:    $gnupg_cv_have_readline
18729         LDAP support:        $gnupg_have_ldap
18730         TLS support:         $use_tls_library
18731         TOFU support:        $use_tofu
18732         Tor support:         $show_tor_support
18733 "
18734 if test "$have_libtss" != no -a -z "$TPMSERVER" -a -z "$SWTPM"; then
18735 cat <<G10EOF
18736         Warning: TPM support is compiled in but no software TPM
18737                  for testing was discovered. TPM tests are disabled
18738
18739 G10EOF
18740 fi
18741 if test "x${gpg_config_script_warn}" != x; then
18742 cat <<G10EOF
18743         Warning: Mismatches between the target platform and the
18744                  to be used libraries have been detected for:
18745                   ${gpg_config_script_warn}
18746                  Please check above for more warning messages.
18747
18748 G10EOF
18749 fi
18750 if test "${build_gpg}" != "yes"; then
18751 cat <<G10EOF
18752         Warning: The component "gpg" is used by other components as
18753                  well as for the test suite.  You have disabled
18754                  this component and thus other things won't work.
18755
18756 G10EOF
18757 fi
18758 if test "${run_tests}" != "yes"; then
18759 cat <<G10EOF
18760         Warning: The use of the test suite has been disabled!
18761                  This is in almost all cases a bad idea.  Take care.
18762
18763 G10EOF
18764 fi